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

/*++
Copyright (c) 2000-2001 Microsoft Corporation
Module Name:
fusionversion.h
Abstract:
Author:
Jay Krell (JayKrell) April 2001
Revision History:
--*/
#pragma once
inline DWORD FusionpGetWindowsNtBuildVersion()
{
DWORD dwVersion = GetVersion();
if ((dwVersion & 0x80000000) != 0)
return 0;
return (dwVersion & 0xffff0000) >> 16;
}
inline DWORD FusionpGetWindowsNtMinorVersion()
{
DWORD dwVersion = GetVersion();
if ((dwVersion & 0x80000000) != 0)
return 0;
return (dwVersion & 0xff00) >> 8;
}
inline DWORD FusionpGetWindowsNtMajorVersion()
{
DWORD dwVersion = GetVersion();
if ((dwVersion & 0x80000000) != 0)
return 0;
return (dwVersion & 0xff);
}