GetWinVer.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. // GetWinVer.h Version 1.1
  2. //
  3. // Copyright (C) 2001-2003 Hans Dietrich
  4. //
  5. // This software is released into the public domain.
  6. // You are free to use it in any way you like, except
  7. // that you may not sell this source code.
  8. //
  9. // This software is provided "as is" with no expressed
  10. // or implied warranty. I accept no liability for any
  11. // damage or loss of business that this software may cause.
  12. //
  13. ///////////////////////////////////////////////////////////////////////////////
  14. #include <windows.h>
  15. #ifndef GETWINVER_H
  16. #define GETWINVER_H
  17. #define WUNKNOWNSTR L"Windows [Unknown version]"
  18. #define W95STR L"Windows 95"
  19. #define W95SP1STR L"Windows 95 SP1"
  20. #define W95OSR2STR L"Windows 95 OSR2"
  21. #define W98STR L"Windows 98"
  22. #define W98SP1STR L"Windows 98 SP1"
  23. #define W98SESTR L"Windows 98 SE"
  24. #define WMESTR L"Windows ME"
  25. #define WNT351STR L"Windows NT 3.51"
  26. #define WNT4STR L"Windows NT 4"
  27. #define W2KSTR L"Windows 2000"
  28. #define WXPSTR L"Windows XP"
  29. #define W2003SERVERSTR L"Windows 2003 Server"
  30. #define WVSTR L"Windows Vista"
  31. #define W7STR L"Windows 7"
  32. #define W8STR L"Windows 8"
  33. #define W81STR L"Windows 8.1"
  34. #define W10STR L"Windows 10"
  35. #define W11STR L"Windows 11"
  36. #define WCESTR L"Windows CE"
  37. #define WUNKNOWN 0
  38. #define W9XFIRST 1
  39. #define W95 1
  40. #define W95SP1 2
  41. #define W95OSR2 3
  42. #define W98 4
  43. #define W98SP1 5
  44. #define W98SE 6
  45. #define WME 7
  46. #define W9XLAST 99
  47. #define WNTFIRST 101
  48. #define WNT351 101
  49. #define WNT4 102
  50. #define W2K 103
  51. #define WXP 104
  52. #define W2003SERVER 105
  53. #define WV 106
  54. #define W7 107
  55. #define W8 108
  56. #define W81 109
  57. #define W10 110
  58. #define W11 111
  59. #define WNTLAST 199
  60. #define WCEFIRST 201
  61. #define WCE 201
  62. #define WCELAST 299
  63. BOOL GetWinVer(LPWSTR pszVersion, int *nVersion, LPWSTR pszMajorMinorBuild);
  64. #endif //GETWINVER_H