Mercurial > mm7
diff OSInfo.h @ 0:9c0607679772
init
author | Ritor1 |
---|---|
date | Sat, 12 Jan 2013 09:45:18 +0600 |
parents | |
children | 934074e7fcc1 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/OSInfo.h Sat Jan 12 09:45:18 2013 +0600 @@ -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