Source code of Windows XP (NT5)
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.

34 lines
739 B

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1997 - 1999
  6. //
  7. // File: osver.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #ifndef _INC_CSCUI_OSVER_H
  11. #define _INC_CSCUI_OSVER_H
  12. class OsVersion
  13. {
  14. public:
  15. enum { UNKNOWN, WIN95, WIN98, NT4, NT5 };
  16. OsVersion(void)
  17. : m_os(UNKNOWN) { }
  18. int Get(void) const;
  19. bool IsNT(void) const
  20. { return NT4 == Get() || NT5 == Get(); }
  21. bool IsWindows(void) const
  22. { return WIN95 == Get() || WIN98 == Get(); }
  23. private:
  24. mutable int m_os;
  25. };
  26. #endif // _INC_CSCUI_OSVER_H