diff options
Diffstat (limited to 'winsup/cygserver/wincap.h')
-rw-r--r-- | winsup/cygserver/wincap.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/winsup/cygserver/wincap.h b/winsup/cygserver/wincap.h new file mode 100644 index 000000000..af09cadf8 --- /dev/null +++ b/winsup/cygserver/wincap.h @@ -0,0 +1,30 @@ +/* wincap.h: Header for OS capability class. + Lightweight version for Cygserver. + + Copyright 2006 Red Hat, Inc. + +This file is part of Cygwin. + +This software is a copyrighted work licensed under the terms of the +Cygwin license. Please consult the file "CYGWIN_LICENSE" for +details. */ + +#ifndef _CYGSERVER_WINCAP_H +#define _CYGSERVER_WINCAP_H + +class wincapc +{ + OSVERSIONINFO version; + +public: + void init (); + + bool is_winnt () const + { return version.dwPlatformId == VER_PLATFORM_WIN32_NT; } + bool has_security () const + { return version.dwPlatformId == VER_PLATFORM_WIN32_NT; } +}; + +extern wincapc wincap; + +#endif /* _CYGSERVER_WINCAP_H */ |