annotate OSInfo.h @ 5:ca90d9e499b3

.
author Серик@ПончиК
date Tue, 09 Oct 2012 20:00:01 +0600
parents 8b8875f5b359
children
rev   line source
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1 #pragma once
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2 #include "OSAPI.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4 /* 293 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
6 struct OSVersion
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
7 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
8 //----- (004AD48F) --------------------------------------------------------
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
9 OSVersion()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
10 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
11 bInitialized = false;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
12 pVersionInfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFOA);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
13 if (GetVersionExA(&pVersionInfo))
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
14 bInitialized = true;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
15 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
16
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
17 //----- (004AD4BA) --------------------------------------------------------
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
18 virtual ~OSVersion()
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
19 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
20 bInitialized = false;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
21 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
22
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
23
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
24 //void (__thiscall ***vdestructor_ptr)(OSVersion *, bool);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
25 OSVERSIONINFOA pVersionInfo;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
26 int bInitialized;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
27 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
28 #pragma pack(pop)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
29
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
30
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
31 extern struct OSVersion *pVersion; // idb