targetver.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. #ifndef _RVC_TARGET_VER_H__
  2. #define _RVC_TARGET_VER_H__
  3. #pragma once
  4. #include "PlatformDef.h"
  5. #ifdef RVC_OS_WIN
  6. // The following macros define the minimum required platform. The minimum required platform
  7. // is the earliest version of Windows, Internet Explorer etc. that has the necessary features to run
  8. // your application. The macros work by enabling all features available on platform versions up to and
  9. // including the version specified.
  10. // Modify the following defines if you have to target a platform prior to the ones specified below.
  11. // Refer to MSDN for the latest info on corresponding values for different platforms.
  12. #ifndef WINVER // Specifies that the minimum required platform is Windows Vista.
  13. #define WINVER 0x0601 // Change this to the appropriate value to target other versions of Windows.
  14. #endif
  15. #ifndef _WIN32_WINNT // Specifies that the minimum required platform is Windows Vista.
  16. #define _WIN32_WINNT 0x0601 // Change this to the appropriate value to target other versions of Windows.
  17. #endif
  18. #ifndef _WIN32_WINDOWS // Specifies that the minimum required platform is Windows 98.
  19. #define _WIN32_WINDOWS 0x0601 // Change this to the appropriate value to target Windows Me or later.
  20. #endif
  21. #ifndef _WIN32_IE // Specifies that the minimum required platform is Internet Explorer 7.0.
  22. #define _WIN32_IE _WIN32_IE_IE80 // Change this to the appropriate value to target other versions of IE.
  23. #endif
  24. #if _MSC_VER >= 1400 // vs 2005 or later
  25. #ifndef _CRT_SECURE_NO_WARNINGS
  26. #define _CRT_SECURE_NO_WARNINGS
  27. #endif
  28. #endif
  29. //注意,请针对win7平台平台设置
  30. /*
  31. Minimum system required Macros to define
  32. Windows Vista _WIN32_WINNT>=0x0600
  33. WINVER>=0x0600
  34. Windows Server 2003 _WIN32_WINNT>=0x0502
  35. WINVER>=0x0502
  36. Windows XP _WIN32_WINNT>=0x0501
  37. WINVER>=0x0501
  38. Windows 2000 _WIN32_WINNT>=0x0500
  39. WINVER>=0x0500
  40. Windows NT 4.0 _WIN32_WINNT>=0x0400
  41. WINVER>=0x0400
  42. Windows Me _WIN32_WINDOWS=0x0500
  43. WINVER>=0x0500
  44. Windows 98 _WIN32_WINDOWS>=0x0410
  45. WINVER>=0x0410
  46. Windows 95 _WIN32_WINDOWS>=0x0400
  47. WINVER>=0x0400
  48. Internet Explorer 7.0 _WIN32_IE>=0x0700
  49. Internet Explorer 6.0 SP2 _WIN32_IE>=0x0603
  50. Internet Explorer 6.0 SP1 _WIN32_IE>=0x0601
  51. Internet Explorer 6.0 _WIN32_IE>=0x0600
  52. Internet Explorer 5.5 _WIN32_IE>=0x0550
  53. Internet Explorer 5.01 _WIN32_IE>=0x0501
  54. Internet Explorer 5.0, 5.0a, 5.0b _WIN32_IE>=0x0500
  55. Internet Explorer 4.01 _WIN32_IE>=0x0401
  56. Internet Explorer 4.0 _WIN32_IE>=0x0400
  57. Internet Explorer 3.0, 3.01, 3.02 _WIN32_IE>=0x0300
  58. */
  59. #endif // RVC_OS_WIN
  60. #endif /** _RVC_TARGET_VER_H__*/