Mercurial > might-and-magic-trilogy
diff OSInfo.h @ 0:8b8875f5b359
Initial commit
author | Nomad |
---|---|
date | Fri, 05 Oct 2012 16:07:14 +0200 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/OSInfo.h Fri Oct 05 16:07:14 2012 +0200 @@ -0,0 +1,31 @@ +#pragma once +#include "OSAPI.h" + +/* 293 */ +#pragma pack(push, 1) +struct OSVersion +{ + //----- (004AD48F) -------------------------------------------------------- + OSVersion() + { + bInitialized = false; + pVersionInfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFOA); + if (GetVersionExA(&pVersionInfo)) + bInitialized = true; + } + + //----- (004AD4BA) -------------------------------------------------------- + virtual ~OSVersion() + { + bInitialized = false; + } + + + //void (__thiscall ***vdestructor_ptr)(OSVersion *, bool); + OSVERSIONINFOA pVersionInfo; + int bInitialized; +}; +#pragma pack(pop) + + +extern struct OSVersion *pVersion; // idb \ No newline at end of file