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.

43 lines
732 B

  1. /*++
  2. Copyright (c) 2000-2001 Microsoft Corporation
  3. Module Name:
  4. fusionversion.h
  5. Abstract:
  6. Author:
  7. Jay Krell (JayKrell) April 2001
  8. Revision History:
  9. --*/
  10. #pragma once
  11. inline DWORD FusionpGetWindowsNtBuildVersion()
  12. {
  13. DWORD dwVersion = GetVersion();
  14. if ((dwVersion & 0x80000000) != 0)
  15. return 0;
  16. return (dwVersion & 0xffff0000) >> 16;
  17. }
  18. inline DWORD FusionpGetWindowsNtMinorVersion()
  19. {
  20. DWORD dwVersion = GetVersion();
  21. if ((dwVersion & 0x80000000) != 0)
  22. return 0;
  23. return (dwVersion & 0xff00) >> 8;
  24. }
  25. inline DWORD FusionpGetWindowsNtMajorVersion()
  26. {
  27. DWORD dwVersion = GetVersion();
  28. if ((dwVersion & 0x80000000) != 0)
  29. return 0;
  30. return (dwVersion & 0xff);
  31. }