You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

OSVersion.h 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /* Copyright (C) 2002-2003 RealVNC Ltd. All Rights Reserved.
  2. *
  3. * This is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License as published by
  5. * the Free Software Foundation; either version 2 of the License, or
  6. * (at your option) any later version.
  7. *
  8. * This software is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this software; if not, write to the Free Software
  15. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
  16. * USA.
  17. */
  18. // -=- OSVersion.h
  19. // Operating system version info.
  20. // GetVersionInfo is called once at process initialisation, and any
  21. // extra flags (such as isWinNT) are calculated and saved at that
  22. // point. It is assumed that the OS Version seldom changes during a
  23. // program's execution...
  24. #ifndef __RFB_WIN32_OS_VERSION_H__
  25. #define __RFB_WIN32_OS_VERSION_H__
  26. #define WIN32_LEAN_AND_MEAN
  27. #include <windows.h>
  28. namespace rfb {
  29. namespace win32 {
  30. extern struct OSVersionInfo : OSVERSIONINFO {
  31. OSVersionInfo();
  32. // Is the OS one of the NT family (NT 3.51, NT4.0, 2K, XP, etc.)?
  33. bool isPlatformNT;
  34. // Is one of the Windows family?
  35. bool isPlatformWindows;
  36. // Is this OS one of those that blue-screens when grabbing another desktop (NT4 pre SP3)?
  37. bool cannotSwitchDesktop;
  38. } osVersion;
  39. };
  40. };
  41. #endif // __RFB_WIN32_OS_VERSION_H__