windows-nt/Source/XPSP1/NT/base/win32/fusion/inc/fusionversion.h

44 lines
732 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
/*++
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);
}