Welcome to mirror list, hosted at ThFree Co, Russian Federation.

wincap.h « cygserver « winsup - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: af09cadf88de5a0bd3686cd934342a7623001ac7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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 */