windows-nt/Source/XPSP1/NT/sdktools/nmake/win32.cpp

36 lines
494 B
C++
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
#include "precomp.h"
#pragma hdrstop
#include "windows.h"
#ifdef _M_IX86
UCHAR
FIsChicago(void)
{
DWORD dw;
dw = GetVersion();
// Test the "win32s" bit
if ((dw & 0x80000000) == 0) {
// If Win32s bit not set, it's Windows NT.
return 0;
}
if (LOBYTE(dw) < 4) {
// Win32s version 3 is really Win32s. There
// won't ever be a real Win32s version 4.
return 0;
}
// Yep. It is really Chicago
return 1;
}
#endif