* wincap.cc: New file.

* wincap.h: New file.
	* Makefile.in: Accomodate having our own wincap implementation now.
This commit is contained in:
Corinna Vinschen
2006-01-12 16:59:15 +00:00
parent 0ae86d187c
commit f68671330f
4 changed files with 62 additions and 4 deletions

30
winsup/cygserver/wincap.h Normal file
View File

@ -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 */