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.
 
 
 
 
 
 

24 lines
473 B

#include <windows.h>
BOOL APIENTRY LibMain(HANDLE hModule, int nAttach, PCONTEXT pContext)
{
OSVERSIONINFO osVer;
osVer.dwOSVersionInfoSize= sizeof( osVer );
GetVersionEx( &osVer );
switch (nAttach)
{
// Only load on NT 5 or later.
case DLL_PROCESS_ATTACH:
if (osVer.dwPlatformId != VER_PLATFORM_WIN32_NT || osVer.dwMajorVersion <= 4)
{
return FALSE;
}
break;
}
return TRUE;
}