18 lines
381 B
C++
18 lines
381 B
C++
|
#include "rar.hpp"
|
||
|
|
||
|
#ifdef _WIN_32
|
||
|
int WinNT()
|
||
|
{
|
||
|
static int dwPlatformId=-1,dwMajorVersion;
|
||
|
if (dwPlatformId==-1)
|
||
|
{
|
||
|
OSVERSIONINFO WinVer;
|
||
|
WinVer.dwOSVersionInfoSize=sizeof(WinVer);
|
||
|
GetVersionEx(&WinVer);
|
||
|
dwPlatformId=WinVer.dwPlatformId;
|
||
|
dwMajorVersion=WinVer.dwMajorVersion;
|
||
|
}
|
||
|
return(dwPlatformId==VER_PLATFORM_WIN32_NT ? dwMajorVersion:0);
|
||
|
}
|
||
|
#endif
|