1 | ' winnt.ab
|
---|
2 |
|
---|
3 | #ifndef _WINNT_
|
---|
4 | #define _WINNT_
|
---|
5 |
|
---|
6 | '#include <ctype.h>
|
---|
7 | Const ANYSIZE_ARRAY = 1
|
---|
8 |
|
---|
9 | '#include <specstrings.h>
|
---|
10 |
|
---|
11 | 'RESTRICTED_POINTER
|
---|
12 |
|
---|
13 | 'UNALIGNED
|
---|
14 | 'UNALIGNED64
|
---|
15 |
|
---|
16 | #ifdef _WIN64
|
---|
17 | Const MAX_NATURAL_ALIGNMENT = SizeOf (QWord)
|
---|
18 | Const MEMORY_ALLOCATION_ALIGNMENT = 16
|
---|
19 | #else
|
---|
20 | Const MAX_NATURAL_ALIGNMENT = SizeOf (DWord)
|
---|
21 | Const MEMORY_ALLOCATION_ALIGNMENT = 8
|
---|
22 | #endif
|
---|
23 |
|
---|
24 | 'TYPE_ALIGNMENT
|
---|
25 | 'PROBE_ALIGNMENT
|
---|
26 | 'PROBE_ALIGNMENT32
|
---|
27 |
|
---|
28 | 'Const C_ASSERT(e) = 0
|
---|
29 |
|
---|
30 | '#require <basetsd.ab>
|
---|
31 | #ifdef _WIN64
|
---|
32 | TypeDef LONG_PTR = Int64
|
---|
33 | TypeDef ULONG_PTR = QWord
|
---|
34 | TypeDef HALF_PTR = Long
|
---|
35 | TypeDef UHALF_PTR = DWord
|
---|
36 | #else
|
---|
37 | TypeDef LONG_PTR = Long
|
---|
38 | TypeDef ULONG_PTR = DWord
|
---|
39 | TypeDef HALF_PTR = Integer
|
---|
40 | TypeDef UHALF_PTR = Word
|
---|
41 | #endif
|
---|
42 | TypeDef DWORD_PTR = ULONG_PTR
|
---|
43 |
|
---|
44 | TypeDef SIZE_T = ULONG_PTR
|
---|
45 | TypeDef SSIZE_T = LONG_PTR
|
---|
46 |
|
---|
47 | Const SYSTEM_CACHE_ALIGNMENT_SIZE = 64
|
---|
48 |
|
---|
49 | Const DECLSPEC_CACHEALIGN = 4
|
---|
50 | /*
|
---|
51 | #ifdef DEPRECATE_DDK_FUNCTIONS
|
---|
52 | #ifdef _NTDDK_
|
---|
53 | #define DECLSPEC_DEPRECATED_DDK DECLSPEC_DEPRECATED
|
---|
54 | #ifdef DEPRECATE_SUPPORTED
|
---|
55 | #define PRAGMA_DEPRECATED_DDK 1
|
---|
56 | #endif
|
---|
57 | #else
|
---|
58 | #define DECLSPEC_DEPRECATED_DDK
|
---|
59 | #define PRAGMA_DEPRECATED_DDK 1
|
---|
60 | #endif
|
---|
61 | #else
|
---|
62 | #define DECLSPEC_DEPRECATED_DDK
|
---|
63 | #define PRAGMA_DEPRECATED_DDK 0
|
---|
64 | #endif
|
---|
65 | */
|
---|
66 |
|
---|
67 | TypeDef PVOID = VoidPtr
|
---|
68 | #ifdef _WIN64
|
---|
69 | TypeDef PVOID64 = VoidPtr
|
---|
70 | #else
|
---|
71 | TypeDef PVOID64 = QWord
|
---|
72 | #endif
|
---|
73 |
|
---|
74 | '#ifndef VOID
|
---|
75 | '#define VOID void
|
---|
76 | TypeDef CHAR = SByte
|
---|
77 | TypeDef SHORT = Integer
|
---|
78 | TypeDef LONG = Long
|
---|
79 | TypeDef INT = Long
|
---|
80 | '#endif
|
---|
81 |
|
---|
82 | TypeDef WCHAR = Word
|
---|
83 |
|
---|
84 | TypeDef PWCHAR = *WCHAR
|
---|
85 | TypeDef LPWCH = *WCHAR
|
---|
86 | TypeDef PWCH = *WCHAR
|
---|
87 | TypeDef LPCWCH = *WCHAR
|
---|
88 | TypeDef NWPSTR = *WCHAR
|
---|
89 | TypeDef LPWSTR = *WCHAR
|
---|
90 | TypeDef PWSTR = *WCHAR
|
---|
91 | TypeDef PZPWSTR = *PWSTR
|
---|
92 | TypeDef PCZPWSTR = *PWSTR
|
---|
93 | TypeDef LPUWSTR = *WCHAR
|
---|
94 | TypeDef PUWSTR = *WCHAR
|
---|
95 | TypeDef LPCWSTR = *WCHAR
|
---|
96 | TypeDef PCWSTR = *WCHAR
|
---|
97 | TypeDef PZPCWSTR = *PCWSTR
|
---|
98 | TypeDef LPCUWSTR = *WCHAR
|
---|
99 | TypeDef PCUWSTR = *WCHAR
|
---|
100 |
|
---|
101 | TypeDef LPCWCHAR = *WCHAR
|
---|
102 | TypeDef PCWCHAR = *WCHAR
|
---|
103 | TypeDef LPCUWCHAR = *WCHAR
|
---|
104 | TypeDef PCUWCHAR = *WCHAR
|
---|
105 |
|
---|
106 | TypeDef UCSCHAR = DWord
|
---|
107 |
|
---|
108 | Const UCSCHAR_INVALID_CHARACTER = &hffffffff As UCSCHAR
|
---|
109 | Const MIN_UCSCHAR = 0 As UCSCHAR
|
---|
110 | Const MAX_UCSCHAR = &h0010ffff As UCSCHAR
|
---|
111 |
|
---|
112 | TypeDef PUCSCHAR = *UCSCHAR
|
---|
113 | TypeDef PCUCSCHAR = *UCSCHAR
|
---|
114 |
|
---|
115 | TypeDef PUCSSTR = *UCSCHAR
|
---|
116 | TypeDef PUUCSSTR = *UCSCHAR
|
---|
117 |
|
---|
118 | TypeDef PCUCSSTR = *UCSCHAR
|
---|
119 | TypeDef PCUUCSSTR = *UCSCHAR
|
---|
120 |
|
---|
121 | TypeDef PUUCSCHAR = *UCSCHAR
|
---|
122 | TypeDef PCUUCSCHAR = *UCSCHAR
|
---|
123 |
|
---|
124 | TypeDef PCHAR = *CHAR
|
---|
125 | TypeDef LPCH = *CHAR
|
---|
126 | TypeDef PCH = *CHAR
|
---|
127 | TypeDef LPCCH = *CHAR
|
---|
128 | TypeDef PCCH = *CHAR
|
---|
129 |
|
---|
130 | TypeDef NPSTR = *CHAR
|
---|
131 | TypeDef LPSTR = *CHAR
|
---|
132 | TypeDef PSTR = *CHAR
|
---|
133 | TypeDef PZPSTR = *PSTR
|
---|
134 | TypeDef PCZPSTR = *PSTR
|
---|
135 | TypeDef PCSTR = *CHAR
|
---|
136 | TypeDef LPCSTR = *CHAR
|
---|
137 | TypeDef PZPCSTR = *PCSTR
|
---|
138 |
|
---|
139 | #ifdef UNICODE
|
---|
140 |
|
---|
141 | #ifndef _TCHAR_DEFINED
|
---|
142 | TypeDef TCHAR = WCHAR
|
---|
143 | TypeDef PTCHAR = *WCHAR
|
---|
144 | TypeDef TBYTE = WCHAR
|
---|
145 | TypeDef PTBYTE = *WCHAR
|
---|
146 | #define _TCHAR_DEFINED
|
---|
147 | #endif
|
---|
148 |
|
---|
149 | TypeDef PTCH = PWCH
|
---|
150 | TypeDef LPTCH = LPWCH
|
---|
151 | TypeDef PTSTR = PWSTR
|
---|
152 | TypeDef LPTSTR = LPWSTR
|
---|
153 | TypeDef PCTSTR = PCWSTR
|
---|
154 | TypeDef LPCTSTR = LPCWSTR
|
---|
155 | TypeDef PUTSTR = PUWSTR
|
---|
156 | TypeDef LPUTSTR = LPUWSTR
|
---|
157 | TypeDef PCUTSTR = PCUWSTR
|
---|
158 | TypeDef LPCUTSTR = LPCUWSTR
|
---|
159 | 'TypeDef LP = LPWSTR
|
---|
160 |
|
---|
161 | #else
|
---|
162 |
|
---|
163 | #ifndef _TCHAR_DEFINED
|
---|
164 | TypeDef TCHAR = Char
|
---|
165 | TypeDef PTCHAR = *Char
|
---|
166 | TypeDef TBYTE = Byte
|
---|
167 | TypeDef PTBYTE = *Byte
|
---|
168 | #define _TCHAR_DEFINED
|
---|
169 | #endif
|
---|
170 |
|
---|
171 | TypeDef PTCH = PCH
|
---|
172 | TypeDef LPTCH = LPCH
|
---|
173 | TypeDef PTSTR = PSTR
|
---|
174 | TypeDef LPTSTR = LPSTR
|
---|
175 | TypeDef PUTSTR = PSTR
|
---|
176 | TypeDef LPUTSTR = LPSTR
|
---|
177 | TypeDef PCTSTR = PCSTR
|
---|
178 | TypeDef LPCTSTR = LPCSTR
|
---|
179 | TypeDef PCUTSTR = PCSTR
|
---|
180 | TypeDef LPCUTSTR = LPCSTR
|
---|
181 | #endif
|
---|
182 |
|
---|
183 | 'TypeDef PSHORT = SHORT
|
---|
184 | 'TypeDef PLONG = *Long
|
---|
185 |
|
---|
186 | TypeDef HANDLE = VoidPtr
|
---|
187 | TypeDef PHANDLE = *HANDLE
|
---|
188 |
|
---|
189 | TypeDef FCHAR = Byte
|
---|
190 | TypeDef FSHORT = Word
|
---|
191 | TypeDef FLONG = DWord
|
---|
192 |
|
---|
193 | #ifndef _HRESULT_DEFINED
|
---|
194 | #define _HRESULT_DEFINED
|
---|
195 | TypeDef HRESULT = Long
|
---|
196 | #endif
|
---|
197 |
|
---|
198 | TypeDef CCHAR = CHAR
|
---|
199 | TypeDef LCID = DWord
|
---|
200 | TypeDef PLCID = *DWord
|
---|
201 | TypeDef LANGID = Word
|
---|
202 | Const APPLICATION_ERROR_MASK = &h20000000
|
---|
203 | Const ERROR_SEVERITY_SUCCESS = &h00000000
|
---|
204 | Const ERROR_SEVERITY_INFORMATIONAL = &h40000000
|
---|
205 | Const ERROR_SEVERITY_WARNING = &h80000000
|
---|
206 | Const ERROR_SEVERITY_ERROR = &hC0000000
|
---|
207 |
|
---|
208 | Type FLOAT128
|
---|
209 | LowPart As Int64
|
---|
210 | HighPart As Int64
|
---|
211 | End Type
|
---|
212 | TypeDef PFLOAT128 = FLOAT128
|
---|
213 |
|
---|
214 | '#define _ULONGLONG_
|
---|
215 | TypeDef LONGLONG = Int64
|
---|
216 | TypeDef ULONGLONG = QWord
|
---|
217 |
|
---|
218 | Const MAXLONGLONG = (&h7fffffffffffffff)
|
---|
219 | '#endif
|
---|
220 |
|
---|
221 | TypeDef PLONGLONG = *LONGLONG
|
---|
222 | TypeDef PULONGLONG = *ULONGLONG
|
---|
223 |
|
---|
224 | TypeDef USN = LONGLONG
|
---|
225 |
|
---|
226 | Type LARGE_INTEGER
|
---|
227 | LowPart As DWord
|
---|
228 | HighPart As Long
|
---|
229 | End Type
|
---|
230 | TypeDef PLARGE_INTEGER = *LARGE_INTEGER
|
---|
231 |
|
---|
232 | Type ULARGE_INTEGER
|
---|
233 | LowPart As DWord
|
---|
234 | HighPart As DWord
|
---|
235 | End Type
|
---|
236 | TypeDef PULARGE_INTEGER = *ULARGE_INTEGER
|
---|
237 |
|
---|
238 | Type LUID
|
---|
239 | LowPart As DWord
|
---|
240 | HighPart As Long
|
---|
241 | End Type
|
---|
242 | TypeDef PLUID = *LUID
|
---|
243 |
|
---|
244 | '#define _DWORDLONG_
|
---|
245 | 'TypeDef DWORDLONG = ULONGLONG
|
---|
246 | 'TypeDef PDWORDLONG = DWORDLONG
|
---|
247 |
|
---|
248 | Const Int32x32To64(a, b) = (((a) As Long) As Int64 * ((b) As Long) As Int64)
|
---|
249 | Const UInt32x32To64(a, b) = (((a) As DWord) As QWord * ((b) As DWord) As QWord)
|
---|
250 | Const Int64ShllMod32(a, b) = ((a) As QWord << (b))
|
---|
251 | Const Int64ShraMod32(a, b) = ((a) As Int64 >> (b))
|
---|
252 | Const Int64ShrlMod32(a, b) = ((a) As QWord >> (b))
|
---|
253 |
|
---|
254 | Const ANSI_NULL = (0 As CHAR)
|
---|
255 | Const UNICODE_NULL = (0 As WCHAR)
|
---|
256 | Const UNICODE_STRING_MAX_BYTES = (65534 As Word)
|
---|
257 | Const UNICODE_STRING_MAX_CHARS = (32767)
|
---|
258 | TypeDef BOOLEAN = BYTE
|
---|
259 | TypeDef PBOOLEAN = *BOOLEAN
|
---|
260 |
|
---|
261 | Type LIST_ENTRY
|
---|
262 | Flink As *LIST_ENTRY
|
---|
263 | Blink As *LIST_ENTRY
|
---|
264 | End Type
|
---|
265 | TypeDef PLIST_ENTRY = *LIST_ENTRY
|
---|
266 | TypeDef PRLIST_ENTRY = *LIST_ENTRY
|
---|
267 |
|
---|
268 | Type SINGLE_LIST_ENTRY
|
---|
269 | Next As *SINGLE_LIST_ENTRY
|
---|
270 | End Type
|
---|
271 | TypeDef PSINGLE_LIST_ENTRY = *SINGLE_LIST_ENTRY
|
---|
272 |
|
---|
273 | Type LIST_ENTRY32
|
---|
274 | Flink As DWord
|
---|
275 | Blink As DWord
|
---|
276 | End Type
|
---|
277 | TypeDef PLIST_ENTRY32 = *LIST_ENTRY32
|
---|
278 |
|
---|
279 | Type LIST_ENTRY64
|
---|
280 | Flink As QWord
|
---|
281 | Blink As QWord
|
---|
282 | End Type
|
---|
283 | TypeDef PLIST_ENTRY64 = *LIST_ENTRY64
|
---|
284 |
|
---|
285 | #require <guiddef.ab>
|
---|
286 |
|
---|
287 | #ifndef __OBJECTID_DEFINED
|
---|
288 | #define __OBJECTID_DEFINED
|
---|
289 |
|
---|
290 | Type OBJECTID
|
---|
291 | Lineage As GUID
|
---|
292 | Uniquifier As DWord
|
---|
293 | End Type
|
---|
294 | #endif
|
---|
295 |
|
---|
296 | Const MINCHAR = &h80
|
---|
297 | Const MAXCHAR = &h7f
|
---|
298 | Const MINSHORT = &h8000
|
---|
299 | Const MAXSHORT = &h7fff
|
---|
300 | Const MINLONG = &h80000000
|
---|
301 | Const MAXLONG = &h7fffffff
|
---|
302 | Const MAXBYTE = &hff
|
---|
303 | Const MAXWORD = &hffff
|
---|
304 | Const MAXDWORD = &hffffffff
|
---|
305 |
|
---|
306 | 'FIELD_OFFSET
|
---|
307 | 'RTL_FIELD_SIZE
|
---|
308 | 'RTL_SIZEOF_THROUGH_FIELD
|
---|
309 | 'RTL_CONTAINS_FIELD
|
---|
310 | Const RTL_NUMBER_OF_V1(A) = (Len (A) \ Len(A[0]))
|
---|
311 | 'RtlpNumberOf
|
---|
312 | Const RTL_NUMBER_OF(A) = RTL_NUMBER_OF_V1(A)
|
---|
313 | Const ARRAYSIZE(A) = RTL_NUMBER_OF_V1(A) 'RTL_NUMBER_OF_V2(A)
|
---|
314 | Const _ARRAYSIZE(A) = RTL_NUMBER_OF_V1(A)
|
---|
315 | 'RTL_FIELD_TYPE
|
---|
316 | 'RTL_NUMBER_OF_FIELD
|
---|
317 | 'RTL_PADDING_BETWEEN_FIELDS
|
---|
318 | 'RTL_CONST_CAST
|
---|
319 | 'RTL_BITS_OF
|
---|
320 | 'RTL_BITS_OF_FIELD
|
---|
321 | 'CONTAINING_RECORD
|
---|
322 |
|
---|
323 | Const VER_SERVER_NT = &h80000000
|
---|
324 | Const VER_WORKSTATION_NT = &h40000000
|
---|
325 | Const VER_SUITE_SMALLBUSINESS = &h00000001
|
---|
326 | Const VER_SUITE_ENTERPRISE = &h00000002
|
---|
327 | Const VER_SUITE_BACKOFFICE = &h00000004
|
---|
328 | Const VER_SUITE_COMMUNICATIONS = &h00000008
|
---|
329 | Const VER_SUITE_TERMINAL = &h00000010
|
---|
330 | Const VER_SUITE_SMALLBUSINESS_RESTRICTED = &h00000020
|
---|
331 | Const VER_SUITE_EMBEDDEDNT = &h00000040
|
---|
332 | Const VER_SUITE_DATACENTER = &h00000080
|
---|
333 | Const VER_SUITE_SINGLEUSERTS = &h00000100
|
---|
334 | Const VER_SUITE_PERSONAL = &h00000200
|
---|
335 | Const VER_SUITE_BLADE = &h00000400
|
---|
336 | Const VER_SUITE_EMBEDDED_RESTRICTED = &h00000800
|
---|
337 | Const VER_SUITE_SECURITY_APPLIANCE = &h00001000
|
---|
338 | Const VER_SUITE_STORAGE_SERVER = &h00002000
|
---|
339 | Const VER_SUITE_COMPUTE_SERVER = &h00004000
|
---|
340 |
|
---|
341 | Const PRODUCT_UNDEFINED = &h00000000
|
---|
342 |
|
---|
343 | Const PRODUCT_ULTIMATE = &h00000001
|
---|
344 | Const PRODUCT_HOME_BASIC = &h00000002
|
---|
345 | Const PRODUCT_HOME_PREMIUM = &h00000003
|
---|
346 | Const PRODUCT_ENTERPRISE = &h00000004
|
---|
347 | Const PRODUCT_HOME_BASIC_N = &h00000005
|
---|
348 | Const PRODUCT_BUSINESS = &h00000006
|
---|
349 | Const PRODUCT_STANDARD_SERVER = &h00000007
|
---|
350 | Const PRODUCT_DATACENTER_SERVER = &h00000008
|
---|
351 | Const PRODUCT_SMALLBUSINESS_SERVER = &h00000009
|
---|
352 | Const PRODUCT_ENTERPRISE_SERVER = &h0000000A
|
---|
353 | Const PRODUCT_STARTER = &h0000000B
|
---|
354 | Const PRODUCT_DATACENTER_SERVER_CORE = &h0000000C
|
---|
355 | Const PRODUCT_STANDARD_SERVER_CORE = &h0000000D
|
---|
356 | Const PRODUCT_ENTERPRISE_SERVER_CORE = &h0000000E
|
---|
357 | Const PRODUCT_ENTERPRISE_SERVER_IA64 = &h0000000F
|
---|
358 | Const PRODUCT_BUSINESS_N = &h00000010
|
---|
359 | Const PRODUCT_WEB_SERVER = &h00000011
|
---|
360 | Const PRODUCT_CLUSTER_SERVER = &h00000012
|
---|
361 | Const PRODUCT_HOME_SERVER = &h00000013
|
---|
362 | Const PRODUCT_STORAGE_EXPRESS_SERVER = &h00000014
|
---|
363 | Const PRODUCT_STORAGE_STANDARD_SERVER = &h00000015
|
---|
364 | Const PRODUCT_STORAGE_WORKGROUP_SERVER = &h00000016
|
---|
365 | Const PRODUCT_STORAGE_ENTERPRISE_SERVER = &h00000017
|
---|
366 | Const PRODUCT_SERVER_FOR_SMALLBUSINESS = &h00000018
|
---|
367 | Const PRODUCT_SMALLBUSINESS_SERVER_PREMIUM = &h00000019
|
---|
368 |
|
---|
369 | Const PRODUCT_UNLICENSED = &hABCDABCD
|
---|
370 |
|
---|
371 | '#require <sdkddkver.ab>
|
---|
372 |
|
---|
373 | ' Primary language IDs.
|
---|
374 | Const LANG_NEUTRAL = &h00
|
---|
375 | Const LANG_INVARIANT = &h7f
|
---|
376 |
|
---|
377 | Const LANG_AFRIKAANS = &h36
|
---|
378 | Const LANG_ALBANIAN = &h1c
|
---|
379 | Const LANG_ALSATIAN = &h84
|
---|
380 | Const LANG_AMHARIC = &h5e
|
---|
381 | Const LANG_ARABIC = &h01
|
---|
382 | Const LANG_ARMENIAN = &h2b
|
---|
383 | Const LANG_ASSAMESE = &h4d
|
---|
384 | Const LANG_AZERI = &h2c
|
---|
385 | Const LANG_BASHKIR = &h6d
|
---|
386 | Const LANG_BASQUE = &h2d
|
---|
387 | Const LANG_BELARUSIAN = &h23
|
---|
388 | Const LANG_BENGALI = &h45
|
---|
389 | Const LANG_BRETON = &h7e
|
---|
390 | Const LANG_BOSNIAN = &h1a
|
---|
391 | Const LANG_BOSNIAN_NEUTRAL = &h781a
|
---|
392 | Const LANG_BULGARIAN = &h02
|
---|
393 | Const LANG_CATALAN = &h03
|
---|
394 | Const LANG_CHINESE = &h04
|
---|
395 | Const LANG_CHINESE_SIMPLIFIED = &h04
|
---|
396 | Const LANG_CHINESE_TRADITIONAL = &h7c04
|
---|
397 | Const LANG_CORSICAN = &h83
|
---|
398 | Const LANG_CROATIAN = &h1a
|
---|
399 | Const LANG_CZECH = &h05
|
---|
400 | Const LANG_DANISH = &h06
|
---|
401 | Const LANG_DARI = &h8c
|
---|
402 | Const LANG_DIVEHI = &h65
|
---|
403 | Const LANG_DUTCH = &h13
|
---|
404 | Const LANG_ENGLISH = &h09
|
---|
405 | Const LANG_ESTONIAN = &h25
|
---|
406 | Const LANG_FAEROESE = &h38
|
---|
407 | Const LANG_FARSI = &h29
|
---|
408 | Const LANG_FILIPINO = &h64
|
---|
409 | Const LANG_FINNISH = &h0b
|
---|
410 | Const LANG_FRENCH = &h0c
|
---|
411 | Const LANG_FRISIAN = &h62
|
---|
412 | Const LANG_GALICIAN = &h56
|
---|
413 | Const LANG_GEORGIAN = &h37
|
---|
414 | Const LANG_GERMAN = &h07
|
---|
415 | Const LANG_GREEK = &h08
|
---|
416 | Const LANG_GREENLANDIC = &h6f
|
---|
417 | Const LANG_GUJARATI = &h47
|
---|
418 | Const LANG_HAUSA = &h68
|
---|
419 | Const LANG_HEBREW = &h0d
|
---|
420 | Const LANG_HINDI = &h39
|
---|
421 | Const LANG_HUNGARIAN = &h0e
|
---|
422 | Const LANG_ICELANDIC = &h0f
|
---|
423 | Const LANG_IGBO = &h70
|
---|
424 | Const LANG_INDONESIAN = &h21
|
---|
425 | Const LANG_INUKTITUT = &h5d
|
---|
426 | Const LANG_IRISH = &h3c
|
---|
427 | Const LANG_ITALIAN = &h10
|
---|
428 | Const LANG_JAPANESE = &h11
|
---|
429 | Const LANG_KANNADA = &h4b
|
---|
430 | Const LANG_KASHMIRI = &h60
|
---|
431 | Const LANG_KAZAK = &h3f
|
---|
432 | Const LANG_KHMER = &h53
|
---|
433 | Const LANG_KICHE = &h86
|
---|
434 | Const LANG_KINYARWANDA = &h87
|
---|
435 | Const LANG_KONKANI = &h57
|
---|
436 | Const LANG_KOREAN = &h12
|
---|
437 | Const LANG_KYRGYZ = &h40
|
---|
438 | Const LANG_LAO = &h54
|
---|
439 | Const LANG_LATVIAN = &h26
|
---|
440 | Const LANG_LITHUANIAN = &h27
|
---|
441 | Const LANG_LOWER_SORBIAN = &h2e
|
---|
442 | Const LANG_LUXEMBOURGISH = &h6e
|
---|
443 | Const LANG_MACEDONIAN = &h2f
|
---|
444 | Const LANG_MALAY = &h3e
|
---|
445 | Const LANG_MALAYALAM = &h4c
|
---|
446 | Const LANG_MALTESE = &h3a
|
---|
447 | Const LANG_MANIPURI = &h58
|
---|
448 | Const LANG_MAORI = &h81
|
---|
449 | Const LANG_MAPUDUNGUN = &h7a
|
---|
450 | Const LANG_MARATHI = &h4e
|
---|
451 | Const LANG_MOHAWK = &h7c
|
---|
452 | Const LANG_MONGOLIAN = &h50
|
---|
453 | Const LANG_NEPALI = &h61
|
---|
454 | Const LANG_NORWEGIAN = &h14
|
---|
455 | Const LANG_OCCITAN = &h82
|
---|
456 | Const LANG_ORIYA = &h48
|
---|
457 | Const LANG_PASHTO = &h63
|
---|
458 | Const LANG_PERSIAN = &h29
|
---|
459 | Const LANG_POLISH = &h15
|
---|
460 | Const LANG_PORTUGUESE = &h16
|
---|
461 | Const LANG_PUNJABI = &h46
|
---|
462 | Const LANG_QUECHUA = &h6b
|
---|
463 | Const LANG_ROMANIAN = &h18
|
---|
464 | Const LANG_ROMANSH = &h17
|
---|
465 | Const LANG_RUSSIAN = &h19
|
---|
466 | Const LANG_SAMI = &h3b
|
---|
467 | Const LANG_SANSKRIT = &h4f
|
---|
468 | Const LANG_SERBIAN = &h1a
|
---|
469 | Const LANG_SERBIAN_NEUTRAL = &h7c1a
|
---|
470 | Const LANG_SINDHI = &h59
|
---|
471 | Const LANG_SINHALESE = &h5b
|
---|
472 | Const LANG_SLOVAK = &h1b
|
---|
473 | Const LANG_SLOVENIAN = &h24
|
---|
474 | Const LANG_SOTHO = &h6c
|
---|
475 | Const LANG_SPANISH = &h0a
|
---|
476 | Const LANG_SWAHILI = &h41
|
---|
477 | Const LANG_SWEDISH = &h1d
|
---|
478 | Const LANG_SYRIAC = &h5a
|
---|
479 | Const LANG_TAJIK = &h28
|
---|
480 | Const LANG_TAMAZIGHT = &h5f
|
---|
481 | Const LANG_TAMIL = &h49
|
---|
482 | Const LANG_TATAR = &h44
|
---|
483 | Const LANG_TELUGU = &h4a
|
---|
484 | Const LANG_THAI = &h1e
|
---|
485 | Const LANG_TIBETAN = &h51
|
---|
486 | Const LANG_TIGRIGNA = &h73
|
---|
487 | Const LANG_TSWANA = &h32
|
---|
488 | Const LANG_TURKISH = &h1f
|
---|
489 | Const LANG_TURKMEN = &h42
|
---|
490 | Const LANG_UIGHUR = &h80
|
---|
491 | Const LANG_UKRAINIAN = &h22
|
---|
492 | Const LANG_UPPER_SORBIAN = &h2e
|
---|
493 | Const LANG_URDU = &h20
|
---|
494 | Const LANG_UZBEK = &h43
|
---|
495 | Const LANG_VIETNAMESE = &h2a
|
---|
496 | Const LANG_WELSH = &h52
|
---|
497 | Const LANG_WOLOF = &h88
|
---|
498 | Const LANG_XHOSA = &h34
|
---|
499 | Const LANG_YAKUT = &h85
|
---|
500 | Const LANG_YI = &h78
|
---|
501 | Const LANG_YORUBA = &h6a
|
---|
502 | Const LANG_ZULU = &h35
|
---|
503 |
|
---|
504 | ' Sublanguage IDs.
|
---|
505 | Const SUBLANG_NEUTRAL = &h00
|
---|
506 | Const SUBLANG_DEFAULT = &h01
|
---|
507 | Const SUBLANG_SYS_DEFAULT = &h02
|
---|
508 | Const SUBLANG_CUSTOM_DEFAULT = &h03
|
---|
509 | Const SUBLANG_CUSTOM_UNSPECIFIED = &h04
|
---|
510 | Const SUBLANG_UI_CUSTOM_DEFAULT = &h05
|
---|
511 |
|
---|
512 | Const SUBLANG_AFRIKAANS_SOUTH_AFRICA = &h01
|
---|
513 | Const SUBLANG_ALBANIAN_ALBANIA = &h01
|
---|
514 | Const SUBLANG_ALSATIAN_FRANCE = &h01
|
---|
515 | Const SUBLANG_AMHARIC_ETHIOPIA = &h01
|
---|
516 | Const SUBLANG_ARABIC_SAUDI_ARABIA = &h01
|
---|
517 | Const SUBLANG_ARABIC_IRAQ = &h02
|
---|
518 | Const SUBLANG_ARABIC_EGYPT = &h03
|
---|
519 | Const SUBLANG_ARABIC_LIBYA = &h04
|
---|
520 | Const SUBLANG_ARABIC_ALGERIA = &h05
|
---|
521 | Const SUBLANG_ARABIC_MOROCCO = &h06
|
---|
522 | Const SUBLANG_ARABIC_TUNISIA = &h07
|
---|
523 | Const SUBLANG_ARABIC_OMAN = &h08
|
---|
524 | Const SUBLANG_ARABIC_YEMEN = &h09
|
---|
525 | Const SUBLANG_ARABIC_SYRIA = &h0a
|
---|
526 | Const SUBLANG_ARABIC_JORDAN = &h0b
|
---|
527 | Const SUBLANG_ARABIC_LEBANON = &h0c
|
---|
528 | Const SUBLANG_ARABIC_KUWAIT = &h0d
|
---|
529 | Const SUBLANG_ARABIC_UAE = &h0e
|
---|
530 | Const SUBLANG_ARABIC_BAHRAIN = &h0f
|
---|
531 | Const SUBLANG_ARABIC_QATAR = &h10
|
---|
532 | Const SUBLANG_ARMENIAN_ARMENIA = &h01
|
---|
533 | Const SUBLANG_ASSAMESE_INDIA = &h01
|
---|
534 | Const SUBLANG_AZERI_LATIN = &h01
|
---|
535 | Const SUBLANG_AZERI_CYRILLIC = &h02
|
---|
536 | Const SUBLANG_BASHKIR_RUSSIA = &h01
|
---|
537 | Const SUBLANG_BASQUE_BASQUE = &h01
|
---|
538 | Const SUBLANG_BELARUSIAN_BELARUS = &h01
|
---|
539 | Const SUBLANG_BENGALI_INDIA = &h01
|
---|
540 | Const SUBLANG_BENGALI_BANGLADESH = &h02
|
---|
541 | Const SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN = &h05
|
---|
542 | Const SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC = &h08
|
---|
543 | Const SUBLANG_BRETON_FRANCE = &h01
|
---|
544 | Const SUBLANG_BULGARIAN_BULGARIA = &h01
|
---|
545 | Const SUBLANG_CATALAN_CATALAN = &h01
|
---|
546 | Const SUBLANG_CHINESE_TRADITIONAL = &h01
|
---|
547 | Const SUBLANG_CHINESE_SIMPLIFIED = &h02
|
---|
548 | Const SUBLANG_CHINESE_HONGKONG = &h03
|
---|
549 | Const SUBLANG_CHINESE_SINGAPORE = &h04
|
---|
550 | Const SUBLANG_CHINESE_MACAU = &h05
|
---|
551 | Const SUBLANG_CORSICAN_FRANCE = &h01
|
---|
552 | Const SUBLANG_CZECH_CZECH_REPUBLIC = &h01
|
---|
553 | Const SUBLANG_CROATIAN_CROATIA = &h01
|
---|
554 | Const SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN = &h04
|
---|
555 | Const SUBLANG_DANISH_DENMARK = &h01
|
---|
556 | Const SUBLANG_DARI_AFGHANISTAN = &h01
|
---|
557 | Const SUBLANG_DIVEHI_MALDIVES = &h01
|
---|
558 | Const SUBLANG_DUTCH = &h01
|
---|
559 | Const SUBLANG_DUTCH_BELGIAN = &h02
|
---|
560 | Const SUBLANG_ENGLISH_US = &h01
|
---|
561 | Const SUBLANG_ENGLISH_UK = &h02
|
---|
562 | Const SUBLANG_ENGLISH_AUS = &h03
|
---|
563 | Const SUBLANG_ENGLISH_CAN = &h04
|
---|
564 | Const SUBLANG_ENGLISH_NZ = &h05
|
---|
565 | Const SUBLANG_ENGLISH_EIRE = &h06
|
---|
566 | Const SUBLANG_ENGLISH_SOUTH_AFRICA = &h07
|
---|
567 | Const SUBLANG_ENGLISH_JAMAICA = &h08
|
---|
568 | Const SUBLANG_ENGLISH_CARIBBEAN = &h09
|
---|
569 | Const SUBLANG_ENGLISH_BELIZE = &h0a
|
---|
570 | Const SUBLANG_ENGLISH_TRINIDAD = &h0b
|
---|
571 | Const SUBLANG_ENGLISH_ZIMBABWE = &h0c
|
---|
572 | Const SUBLANG_ENGLISH_PHILIPPINES = &h0d
|
---|
573 | Const SUBLANG_ENGLISH_INDIA = &h10
|
---|
574 | Const SUBLANG_ENGLISH_MALAYSIA = &h11
|
---|
575 | Const SUBLANG_ENGLISH_SINGAPORE = &h12
|
---|
576 | Const SUBLANG_ESTONIAN_ESTONIA = &h01
|
---|
577 | Const SUBLANG_FAEROESE_FAROE_ISLANDS = &h01
|
---|
578 | Const SUBLANG_FILIPINO_PHILIPPINES = &h01
|
---|
579 | Const SUBLANG_FINNISH_FINLAND = &h01
|
---|
580 | Const SUBLANG_FRENCH = &h01
|
---|
581 | Const SUBLANG_FRENCH_BELGIAN = &h02
|
---|
582 | Const SUBLANG_FRENCH_CANADIAN = &h03
|
---|
583 | Const SUBLANG_FRENCH_SWISS = &h04
|
---|
584 | Const SUBLANG_FRENCH_LUXEMBOURG = &h05
|
---|
585 | Const SUBLANG_FRENCH_MONACO = &h06
|
---|
586 | Const SUBLANG_FRISIAN_NETHERLANDS = &h01
|
---|
587 | Const SUBLANG_GALICIAN_GALICIAN = &h01
|
---|
588 | Const SUBLANG_GEORGIAN_GEORGIA = &h01
|
---|
589 | Const SUBLANG_GERMAN = &h01
|
---|
590 | Const SUBLANG_GERMAN_SWISS = &h02
|
---|
591 | Const SUBLANG_GERMAN_AUSTRIAN = &h03
|
---|
592 | Const SUBLANG_GERMAN_LUXEMBOURG = &h04
|
---|
593 | Const SUBLANG_GERMAN_LIECHTENSTEIN = &h05
|
---|
594 | Const SUBLANG_GREEK_GREECE = &h01
|
---|
595 | Const SUBLANG_GREENLANDIC_GREENLAND = &h01
|
---|
596 | Const SUBLANG_GUJARATI_INDIA = &h01
|
---|
597 | Const SUBLANG_HAUSA_NIGERIA_LATIN = &h01
|
---|
598 | Const SUBLANG_HEBREW_ISRAEL = &h01
|
---|
599 | Const SUBLANG_HINDI_INDIA = &h01
|
---|
600 | Const SUBLANG_HUNGARIAN_HUNGARY = &h01
|
---|
601 | Const SUBLANG_ICELANDIC_ICELAND = &h01
|
---|
602 | Const SUBLANG_IGBO_NIGERIA = &h01
|
---|
603 | Const SUBLANG_INDONESIAN_INDONESIA = &h01
|
---|
604 | Const SUBLANG_INUKTITUT_CANADA = &h01
|
---|
605 | Const SUBLANG_INUKTITUT_CANADA_LATIN = &h02
|
---|
606 | Const SUBLANG_IRISH_IRELAND = &h02
|
---|
607 | Const SUBLANG_ITALIAN = &h01
|
---|
608 | Const SUBLANG_ITALIAN_SWISS = &h02
|
---|
609 | Const SUBLANG_JAPANESE_JAPAN = &h01
|
---|
610 | Const SUBLANG_KANNADA_INDIA = &h01
|
---|
611 | Const SUBLANG_KASHMIRI_SASIA = &h02
|
---|
612 | Const SUBLANG_KASHMIRI_INDIA = &h02
|
---|
613 | Const SUBLANG_KAZAK_KAZAKHSTAN = &h01
|
---|
614 | Const SUBLANG_KHMER_CAMBODIA = &h01
|
---|
615 | Const SUBLANG_KICHE_GUATEMALA = &h01
|
---|
616 | Const SUBLANG_KINYARWANDA_RWANDA = &h01
|
---|
617 | Const SUBLANG_KONKANI_INDIA = &h01
|
---|
618 | Const SUBLANG_KOREAN = &h01
|
---|
619 | Const SUBLANG_KYRGYZ_KYRGYZSTAN = &h01
|
---|
620 | Const SUBLANG_LAO_LAO = &h01
|
---|
621 | Const SUBLANG_LATVIAN_LATVIA = &h01
|
---|
622 | Const SUBLANG_LITHUANIAN = &h01
|
---|
623 | Const SUBLANG_LOWER_SORBIAN_GERM = &h02
|
---|
624 | Const SUBLANG_LUXEMBOURGISH_LUXEMBOURG = &h01
|
---|
625 | Const SUBLANG_MACEDONIAN_MACEDONIA = &h01
|
---|
626 | Const SUBLANG_MALAY_MALAYSIA = &h01
|
---|
627 | Const SUBLANG_MALAY_BRUNEI_DARUSSALAM = &h02
|
---|
628 | Const SUBLANG_MALAYALAM_INDIA = &h01
|
---|
629 | Const SUBLANG_MALTESE_MALTA = &h01
|
---|
630 | Const SUBLANG_MAORI_NEW_ZEALAND = &h01
|
---|
631 | Const SUBLANG_MAPUDUNGUN_CHILE = &h01
|
---|
632 | Const SUBLANG_MARATHI_INDIA = &h01
|
---|
633 | Const SUBLANG_MOHAWK_MOHAWK = &h01
|
---|
634 | Const SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA = &h01
|
---|
635 | Const SUBLANG_MONGOLIAN_PRC = &h02
|
---|
636 | Const SUBLANG_NEPALI_INDIA = &h02
|
---|
637 | Const SUBLANG_NEPALI_NEPAL = &h01
|
---|
638 | Const SUBLANG_NORWEGIAN_BOKMAL = &h01
|
---|
639 | Const SUBLANG_NORWEGIAN_NYNORSK = &h02
|
---|
640 | Const SUBLANG_OCCITAN_FRANCE = &h01
|
---|
641 | Const SUBLANG_ORIYA_INDIA = &h01
|
---|
642 | Const SUBLANG_PASHTO_AFGHANISTAN = &h01
|
---|
643 | Const SUBLANG_PERSIAN_IRAN = &h01
|
---|
644 | Const SUBLANG_POLISH_POLAND = &h01
|
---|
645 | Const SUBLANG_PORTUGUESE = &h02
|
---|
646 | Const SUBLANG_PORTUGUESE_BRAZILIAN = &h01
|
---|
647 | Const SUBLANG_PUNJABI_INDIA = &h01
|
---|
648 | Const SUBLANG_QUECHUA_BOLIVIA = &h01
|
---|
649 | Const SUBLANG_QUECHUA_ECUADOR = &h02
|
---|
650 | Const SUBLANG_QUECHUA_PERU = &h03
|
---|
651 | Const SUBLANG_ROMANIAN_ROMANIA = &h01
|
---|
652 | Const SUBLANG_ROMANSH_SWITZERLAND = &h01
|
---|
653 | Const SUBLANG_RUSSIAN_RUSSIA = &h01
|
---|
654 | Const SUBLANG_SAMI_NORTHERN_NORWAY = &h01
|
---|
655 | Const SUBLANG_SAMI_NORTHERN_SWEDEN = &h02
|
---|
656 | Const SUBLANG_SAMI_NORTHERN_FINLAND = &h03
|
---|
657 | Const SUBLANG_SAMI_LULE_NORWAY = &h04
|
---|
658 | Const SUBLANG_SAMI_LULE_SWEDEN = &h05
|
---|
659 | Const SUBLANG_SAMI_SOUTHERN_NORWAY = &h06
|
---|
660 | Const SUBLANG_SAMI_SOUTHERN_SWEDEN = &h07
|
---|
661 | Const SUBLANG_SAMI_SKOLT_FINLAND = &h08
|
---|
662 | Const SUBLANG_SAMI_INARI_FINLAND = &h09
|
---|
663 | Const SUBLANG_SANSKRIT_INDIA = &h01
|
---|
664 | Const SUBLANG_SERBIAN_BOSNIA_HERZEGOVINA_LATIN = &h06
|
---|
665 | Const SUBLANG_SERBIAN_BOSNIA_HERZEGOVINA_CYRILLIC = &h07
|
---|
666 | Const SUBLANG_SERBIAN_CROATIA = &h01
|
---|
667 | Const SUBLANG_SERBIAN_LATIN = &h02
|
---|
668 | Const SUBLANG_SERBIAN_CYRILLIC = &h03
|
---|
669 | Const SUBLANG_SINDHI_INDIA = &h01
|
---|
670 | Const SUBLANG_SINDHI_PAKISTAN = &h02
|
---|
671 | Const SUBLANG_SINDHI_AFGHANISTAN = &h02
|
---|
672 | Const SUBLANG_SINHALESE_SRI_LANKA = &h01
|
---|
673 | Const SUBLANG_SOTHO_NORTHERN_SOUTH_AFRICA = &h01
|
---|
674 | Const SUBLANG_SLOVAK_SLOVAKIA = &h01
|
---|
675 | Const SUBLANG_SLOVENIAN_SLOVENIA = &h01
|
---|
676 | Const SUBLANG_SPANISH = &h01
|
---|
677 | Const SUBLANG_SPANISH_MEXICAN = &h02
|
---|
678 | Const SUBLANG_SPANISH_MODERN = &h03
|
---|
679 | Const SUBLANG_SPANISH_GUATEMALA = &h04
|
---|
680 | Const SUBLANG_SPANISH_COSTA_RICA = &h05
|
---|
681 | Const SUBLANG_SPANISH_PANAMA = &h06
|
---|
682 | Const SUBLANG_SPANISH_DOMINICAN_REPUBLIC = &h07
|
---|
683 | Const SUBLANG_SPANISH_VENEZUELA = &h08
|
---|
684 | Const SUBLANG_SPANISH_COLOMBIA = &h09
|
---|
685 | Const SUBLANG_SPANISH_PERU = &h0a
|
---|
686 | Const SUBLANG_SPANISH_ARGENTINA = &h0b
|
---|
687 | Const SUBLANG_SPANISH_ECUADOR = &h0c
|
---|
688 | Const SUBLANG_SPANISH_CHILE = &h0d
|
---|
689 | Const SUBLANG_SPANISH_URUGUAY = &h0e
|
---|
690 | Const SUBLANG_SPANISH_PARAGUAY = &h0f
|
---|
691 | Const SUBLANG_SPANISH_BOLIVIA = &h10
|
---|
692 | Const SUBLANG_SPANISH_EL_SALVADOR = &h11
|
---|
693 | Const SUBLANG_SPANISH_HONDURAS = &h12
|
---|
694 | Const SUBLANG_SPANISH_NICARAGUA = &h13
|
---|
695 | Const SUBLANG_SPANISH_PUERTO_RICO = &h14
|
---|
696 | Const SUBLANG_SPANISH_US = &h15
|
---|
697 | Const SUBLANG_SWAHILI_KENYA = &h01
|
---|
698 | Const SUBLANG_SWEDISH = &h01
|
---|
699 | Const SUBLANG_SWEDISH_FINLAND = &h02
|
---|
700 | Const SUBLANG_SYRIAC_SYRIA = &h01
|
---|
701 | Const SUBLANG_TAJIK_TAJIKISTAN = &h01
|
---|
702 | Const SUBLANG_TAMAZIGHT_ALGERIA_LATIN = &h02
|
---|
703 | Const SUBLANG_TAMIL_INDIA = &h01
|
---|
704 | Const SUBLANG_TATAR_RUSSIA = &h01
|
---|
705 | Const SUBLANG_TELUGU_INDIA = &h01
|
---|
706 | Const SUBLANG_THAI_THAILAND = &h01
|
---|
707 | Const SUBLANG_TIBETAN_PRC = &h01
|
---|
708 | Const SUBLANG_TIGRIGNA_ERITREA = &h02
|
---|
709 | Const SUBLANG_TSWANA_SOUTH_AFRICA = &h01
|
---|
710 | Const SUBLANG_TURKISH_TURKEY = &h01
|
---|
711 | Const SUBLANG_TURKMEN_TURKMENISTAN = &h01
|
---|
712 | Const SUBLANG_UIGHUR_PRC = &h01
|
---|
713 | Const SUBLANG_UKRAINIAN_UKRAINE = &h01
|
---|
714 | Const SUBLANG_UPPER_SORBIAN_GERMANY = &h01
|
---|
715 | Const SUBLANG_URDU_PAKISTAN = &h01
|
---|
716 | Const SUBLANG_URDU_INDIA = &h02
|
---|
717 | Const SUBLANG_UZBEK_LATIN = &h01
|
---|
718 | Const SUBLANG_UZBEK_CYRILLIC = &h02
|
---|
719 | Const SUBLANG_VIETNAMESE_VIETNAM = &h01
|
---|
720 | Const SUBLANG_WELSH_UNITED_KINGDOM = &h01
|
---|
721 | Const SUBLANG_WOLOF_SENEGAL = &h01
|
---|
722 | Const SUBLANG_XHOSA_SOUTH_AFRICA = &h01
|
---|
723 | Const SUBLANG_YAKUT_RUSSIA = &h01
|
---|
724 | Const SUBLANG_YI_PRC = &h01
|
---|
725 | Const SUBLANG_YORUBA_NIGERIA = &h01
|
---|
726 | Const SUBLANG_ZULU_SOUTH_AFRICA = &h01
|
---|
727 |
|
---|
728 | ' Sorting IDs.
|
---|
729 | Const SORT_DEFAULT = &h0
|
---|
730 |
|
---|
731 | Const SORT_INVARIANT_MATH = &h1
|
---|
732 |
|
---|
733 | Const SORT_JAPANESE_XJIS = &h0
|
---|
734 | Const SORT_JAPANESE_UNICODE = &h1
|
---|
735 | Const SORT_JAPANESE_RADICALSTROKE = &h4
|
---|
736 |
|
---|
737 | Const SORT_CHINESE_BIG5 = &h0
|
---|
738 | Const SORT_CHINESE_PRCP = &h0
|
---|
739 | Const SORT_CHINESE_UNICODE = &h1
|
---|
740 | Const SORT_CHINESE_PRC = &h2
|
---|
741 | Const SORT_CHINESE_BOPOMOFO = &h3
|
---|
742 |
|
---|
743 | Const SORT_KOREAN_KSC = &h0
|
---|
744 | Const SORT_KOREAN_UNICODE = &h1
|
---|
745 |
|
---|
746 | Const SORT_GERMAN_PHONE_BOOK = &h1
|
---|
747 |
|
---|
748 | Const SORT_HUNGARIAN_DEFAULT = &h0
|
---|
749 | Const SORT_HUNGARIAN_TECHNICAL = &h1
|
---|
750 |
|
---|
751 | Const SORT_GEORGIAN_TRADITIONAL = &h0
|
---|
752 | Const SORT_GEORGIAN_MODERN = &h1
|
---|
753 |
|
---|
754 | Const MAKELANGID(p, s) = ((((s) As Word) << 10) Or (p) As Word)
|
---|
755 | Const PRIMARYLANGID(lgid) = ((lgid) As Word And &h3ff)
|
---|
756 | Const SUBLANGID(lgid) = ((lgid) As Word >> 10)
|
---|
757 |
|
---|
758 | Const NLS_VALID_LOCALE_MASK = &h000fffff
|
---|
759 |
|
---|
760 | Const MAKELCID(lgid, srtid) = ((((((srtid) As Word) As DWord) << 16) Or (((lgid) As Word) As DWord)) As DWord)
|
---|
761 | Const MAKESORTLCID(lgid, srtid, ver) = (((MAKELCID(lgid, srtid)) Or ((((ver) As Word)) As DWord << 20)) As DWord)
|
---|
762 | Const LANGIDFROMLCID(lcid) = ((lcid) As Word)
|
---|
763 | Const SORTIDFROMLCID(lcid) = (((((lcid) As DWord) >> 16) And &hf) As Word)
|
---|
764 | Const SORTVERSIONFROMLCID(lcid) = (((((lcid) As DWord) >> 20) And &hf) As Word)
|
---|
765 |
|
---|
766 | Const LOCALE_NAME_MAX_LENGTH = 85
|
---|
767 |
|
---|
768 | Const LANG_SYSTEM_DEFAULT = (MAKELANGID(LANG_NEUTRAL, SUBLANG_SYS_DEFAULT))
|
---|
769 | Const LANG_USER_DEFAULT = (MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT))
|
---|
770 |
|
---|
771 | Const LOCALE_SYSTEM_DEFAULT = (MAKELCID(LANG_SYSTEM_DEFAULT, SORT_DEFAULT))
|
---|
772 | Const LOCALE_USER_DEFAULT = (MAKELCID(LANG_USER_DEFAULT, SORT_DEFAULT))
|
---|
773 |
|
---|
774 | Const LOCALE_CUSTOM_DEFAULT = (MAKELCID(MAKELANGID(LANG_NEUTRAL, SUBLANG_CUSTOM_DEFAULT), SORT_DEFAULT))
|
---|
775 | Const LOCALE_CUSTOM_UNSPECIFIED = (MAKELCID(MAKELANGID(LANG_NEUTRAL, SUBLANG_CUSTOM_UNSPECIFIED), SORT_DEFAULT))
|
---|
776 | Const LOCALE_CUSTOM_UI_DEFAULT = (MAKELCID(MAKELANGID(LANG_NEUTRAL, SUBLANG_UI_CUSTOM_DEFAULT), SORT_DEFAULT))
|
---|
777 | Const LOCALE_NEUTRAL = (MAKELCID(MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL), SORT_DEFAULT))
|
---|
778 | Const LOCALE_INVARIANT = (MAKELCID(MAKELANGID(LANG_INVARIANT, SUBLANG_NEUTRAL), SORT_DEFAULT))
|
---|
779 |
|
---|
780 | ' DEFAULT_UNREACHABLE
|
---|
781 |
|
---|
782 | #ifndef WIN32_NO_STATUS
|
---|
783 | Const STATUS_WAIT_0 = (&h00000000 As DWord)
|
---|
784 | Const STATUS_ABANDONED_WAIT_0 = (&h00000080 As DWord)
|
---|
785 | Const STATUS_USER_APC = (&h000000C0 As DWord)
|
---|
786 | Const STATUS_TIMEOUT = (&h00000102 As DWord)
|
---|
787 | Const STATUS_PENDING = (&h00000103 As DWord)
|
---|
788 | Const DBG_EXCEPTION_HANDLED = (&h00010001 As DWord)
|
---|
789 | Const DBG_CONTINUE = (&h00010002 As DWord)
|
---|
790 | Const STATUS_SEGMENT_NOTIFICATION = (&h40000005 As DWord)
|
---|
791 | Const DBG_TERMINATE_THREAD = (&h40010003 As DWord)
|
---|
792 | Const DBG_TERMINATE_PROCESS = (&h40010004 As DWord)
|
---|
793 | Const DBG_CONTROL_C = (&h40010005 As DWord)
|
---|
794 | Const DBG_CONTROL_BREAK = (&h40010008 As DWord)
|
---|
795 | Const DBG_COMMAND_EXCEPTION = (&h40010009 As DWord)
|
---|
796 | Const STATUS_GUARD_PAGE_VIOLATION = (&h80000001 As DWord)
|
---|
797 | Const STATUS_DATATYPE_MISALIGNMENT = (&h80000002 As DWord)
|
---|
798 | Const STATUS_BREAKPOINT = (&h80000003 As DWord)
|
---|
799 | Const STATUS_SINGLE_STEP = (&h80000004 As DWord)
|
---|
800 | Const DBG_EXCEPTION_NOT_HANDLED = (&h80010001 As DWord)
|
---|
801 | Const STATUS_ACCESS_VIOLATION = (&hC0000005 As DWord)
|
---|
802 | Const STATUS_IN_PAGE_ERROR = (&hC0000006 As DWord)
|
---|
803 | Const STATUS_INVALID_HANDLE = (&hC0000008 As DWord)
|
---|
804 | Const STATUS_NO_MEMORY = (&hC0000017 As DWord)
|
---|
805 | Const STATUS_ILLEGAL_INSTRUCTION = (&hC000001D As DWord)
|
---|
806 | Const STATUS_NONCONTINUABLE_EXCEPTION = (&hC0000025 As DWord)
|
---|
807 | Const STATUS_INVALID_DISPOSITION = (&hC0000026 As DWord)
|
---|
808 | Const STATUS_ARRAY_BOUNDS_EXCEEDED = (&hC000008C As DWord)
|
---|
809 | Const STATUS_FLOAT_DENORMAL_OPERAND = (&hC000008D As DWord)
|
---|
810 | Const STATUS_FLOAT_DIVIDE_BY_ZERO = (&hC000008E As DWord)
|
---|
811 | Const STATUS_FLOAT_INEXACT_RESULT = (&hC000008F As DWord)
|
---|
812 | Const STATUS_FLOAT_INVALID_OPERATION = (&hC0000090 As DWord)
|
---|
813 | Const STATUS_FLOAT_OVERFLOW = (&hC0000091 As DWord)
|
---|
814 | Const STATUS_FLOAT_STACK_CHECK = (&hC0000092 As DWord)
|
---|
815 | Const STATUS_FLOAT_UNDERFLOW = (&hC0000093 As DWord)
|
---|
816 | Const STATUS_INTEGER_DIVIDE_BY_ZERO = (&hC0000094 As DWord)
|
---|
817 | Const STATUS_INTEGER_OVERFLOW = (&hC0000095 As DWord)
|
---|
818 | Const STATUS_PRIVILEGED_INSTRUCTION = (&hC0000096 As DWord)
|
---|
819 | Const STATUS_STACK_OVERFLOW = (&hC00000FD As DWord)
|
---|
820 | Const STATUS_CONTROL_C_EXIT = (&hC000013A As DWord)
|
---|
821 | Const STATUS_FLOAT_MULTIPLE_FAULTS = (&hC00002B4 As DWord)
|
---|
822 | Const STATUS_FLOAT_MULTIPLE_TRAPS = (&hC00002B5 As DWord)
|
---|
823 | Const STATUS_REG_NAT_CONSUMPTION = (&hC00002C9 As DWord)
|
---|
824 | '#if defined(STATUS_SUCCESS) || (_WIN32_WINNT > 0x0500) || (_WIN32_FUSION >= 0x0100)
|
---|
825 | Const STATUS_SXS_EARLY_DEACTIVATION = (&hC015000F As DWord)
|
---|
826 | Const STATUS_SXS_INVALID_DEACTIVATION = (&hC0150010 As DWord)
|
---|
827 | '#endif
|
---|
828 | #endif
|
---|
829 |
|
---|
830 | Const MAXIMUM_WAIT_OBJECTS = 64
|
---|
831 |
|
---|
832 | Const MAXIMUM_SUSPEND_COUNT = MAXCHAR
|
---|
833 |
|
---|
834 | TypeDef KSPIN_LOCK = ULONG_PTR
|
---|
835 | TypeDef PKSPIN_LOCK = KSPIN_LOCK
|
---|
836 |
|
---|
837 | #ifdef _WIN64
|
---|
838 |
|
---|
839 | Const EXCEPTION_READ_FAULT = 0
|
---|
840 | Const EXCEPTION_WRITE_FAULT = 1
|
---|
841 | Const EXCEPTION_EXECUTE_FAULT = 8
|
---|
842 |
|
---|
843 | Const CONTEXT_AMD64 = &h100000
|
---|
844 |
|
---|
845 | Const CONTEXT_CONTROL = (CONTEXT_AMD64 Or &h1)
|
---|
846 | Const CONTEXT_INTEGER = (CONTEXT_AMD64 Or &h2)
|
---|
847 | Const CONTEXT_SEGMENTS = (CONTEXT_AMD64 Or &h4)
|
---|
848 | Const CONTEXT_FLOATING_POINT = (CONTEXT_AMD64 Or &h8)
|
---|
849 | Const CONTEXT_DEBUG_REGISTERS = (CONTEXT_AMD64 Or &h10)
|
---|
850 |
|
---|
851 | Const CONTEXT_FULL = (CONTEXT_CONTROL Or CONTEXT_INTEGER Or CONTEXT_FLOATING_POINT)
|
---|
852 |
|
---|
853 | Const CONTEXT_ALL = (CONTEXT_CONTROL Or CONTEXT_INTEGER Or CONTEXT_SEGMENTS Or CONTEXT_FLOATING_POINT Or CONTEXT_DEBUG_REGISTERS)
|
---|
854 |
|
---|
855 | Const CONTEXT_EXCEPTION_ACTIVE = &h8000000
|
---|
856 | Const CONTEXT_SERVICE_ACTIVE = &h10000000
|
---|
857 | Const CONTEXT_EXCEPTION_REQUEST = &h40000000
|
---|
858 | Const CONTEXT_EXCEPTION_REPORTING = &h80000000
|
---|
859 |
|
---|
860 | Const INITIAL_MXCSR = &h1f80
|
---|
861 | Const INITIAL_FPCSR = &h027f
|
---|
862 |
|
---|
863 | Type Align(16) M128A
|
---|
864 | Low As QWord
|
---|
865 | High As Int64
|
---|
866 | End Type
|
---|
867 | TypeDef PM128A = *M128A
|
---|
868 |
|
---|
869 | Type XMM_SAVE_AREA32
|
---|
870 | ControlWord As Word
|
---|
871 | StatusWord As Word
|
---|
872 | TagWord As Byte
|
---|
873 | Reserved1 As Byte
|
---|
874 | ErrorOpcode As Word
|
---|
875 | ErrorOffset As DWord
|
---|
876 | ErrorSelector As Word
|
---|
877 | Reserved2 As Word
|
---|
878 | DataOffset As DWord
|
---|
879 | DataSelector As Word
|
---|
880 | Reserved3 As Word
|
---|
881 | MxCsr As DWord
|
---|
882 | MxCsr_Mask As DWord
|
---|
883 | FloatRegisters[ELM(8)] As M128A
|
---|
884 | XmmRegisters[ELM(16)] As M128A
|
---|
885 | Reserved4[ELM(96)] As Byte
|
---|
886 | End Type
|
---|
887 | TypeDef PXMM_SAVE_AREA32 = *XMM_SAVE_AREA32
|
---|
888 |
|
---|
889 | Const LEGACY_SAVE_AREA_LENGTH = SizeOf (XMM_SAVE_AREA32)
|
---|
890 |
|
---|
891 | Type Align(16) CONTEXT
|
---|
892 | 'Register parameter home addresses.
|
---|
893 | P1Home As QWord
|
---|
894 | P2Home As QWord
|
---|
895 | P3Home As QWord
|
---|
896 | P4Home As QWord
|
---|
897 | P5Home As QWord
|
---|
898 | P6Home As QWord
|
---|
899 | 'Control flags.
|
---|
900 | ContextFlags As DWord
|
---|
901 | MxCsr As DWord
|
---|
902 | 'Segment Registers and processor flags.
|
---|
903 | SegCs As Word
|
---|
904 | SegDs As Word
|
---|
905 | SegEs As Word
|
---|
906 | SegFs As Word
|
---|
907 | SegGs As Word
|
---|
908 | SegSs As Word
|
---|
909 | EFlags As DWord
|
---|
910 | 'Debug registers
|
---|
911 | Dr0 As QWord
|
---|
912 | Dr1 As QWord
|
---|
913 | Dr2 As QWord
|
---|
914 | Dr3 As QWord
|
---|
915 | Dr6 As QWord
|
---|
916 | Dr7 As QWord
|
---|
917 | 'Integer registers.
|
---|
918 | Rax As QWord
|
---|
919 | Rcx As QWord
|
---|
920 | Rdx As QWord
|
---|
921 | Rbx As QWord
|
---|
922 | Rsp As QWord
|
---|
923 | Rbp As QWord
|
---|
924 | Rsi As QWord
|
---|
925 | Rdi As QWord
|
---|
926 | R8 As QWord
|
---|
927 | R9 As QWord
|
---|
928 | R10 As QWord
|
---|
929 | R11 As QWord
|
---|
930 | R12 As QWord
|
---|
931 | R13 As QWord
|
---|
932 | R14 As QWord
|
---|
933 | R15 As QWord
|
---|
934 | 'Program counter.
|
---|
935 | Rip As QWord
|
---|
936 | 'MMX/floating point state.
|
---|
937 | Header[ELM(2)] As M128A
|
---|
938 | Legacy[ELM(8)] As M128A
|
---|
939 | Xmm0 As M128A
|
---|
940 | Xmm1 As M128A
|
---|
941 | Xmm2 As M128A
|
---|
942 | Xmm3 As M128A
|
---|
943 | Xmm4 As M128A
|
---|
944 | Xmm5 As M128A
|
---|
945 | Xmm6 As M128A
|
---|
946 | Xmm7 As M128A
|
---|
947 | Xmm8 As M128A
|
---|
948 | Xmm9 As M128A
|
---|
949 | Xmm10 As M128A
|
---|
950 | Xmm11 As M128A
|
---|
951 | Xmm12 As M128A
|
---|
952 | Xmm13 As M128A
|
---|
953 | Xmm14 As M128A
|
---|
954 | Xmm15 As M128A
|
---|
955 | Reserve[ELM(96)] As Byte
|
---|
956 | 'Vector registers
|
---|
957 | VectorRegisters[ELM(26)] As M128A
|
---|
958 | VectorControl As QWord
|
---|
959 | 'Special debug control registers.
|
---|
960 | DebugControl As QWord
|
---|
961 | LastBranchToRip As QWord
|
---|
962 | LastBranchFromRip As QWord
|
---|
963 | LastExceptionToRip As QWord
|
---|
964 | LastExceptionFromRip As QWord
|
---|
965 | End Type
|
---|
966 | TypeDef PCONTEXT = *CONTEXT
|
---|
967 |
|
---|
968 | Const RUNTIME_FUNCTION_INDIRECT = &h1
|
---|
969 |
|
---|
970 | Type RUNTIME_FUNCTION
|
---|
971 | BeginAddress As DWord
|
---|
972 | EndAddress As DWord
|
---|
973 | UnwindData As DWord
|
---|
974 | End Type
|
---|
975 | TypeDef PRUNTIME_FUNCTION = *RUNTIME_FUNCTION
|
---|
976 |
|
---|
977 | TypeDef PGET_RUNTIME_FUNCTION_CALLBACK = *Function(ControlPc As QWord, Context As PVOID) As PRUNTIME_FUNCTION
|
---|
978 |
|
---|
979 | TypeDef POUT_OF_PROCESS_FUNCTION_TABLE_CALLBACK = *Function(Process As HANDLE, TableAddress As PVOID, Entries As *DWord, ByRef Functions As PRUNTIME_FUNCTION) As DWord
|
---|
980 |
|
---|
981 | Const OUT_OF_PROCESS_FUNCTION_TABLE_CALLBACK_EXPORT_NAME = "OutOfProcessFunctionTableCallback"
|
---|
982 |
|
---|
983 | Declare Sub RtlRestoreContext Lib "kernel32" (ByRef ContextRecord As CONTEXT, ExceptionRecord As *EXCEPTION_RECORD)
|
---|
984 | Declare Function RtlAddFunctionTable Lib "kernel32" (FunctionTable As PRUNTIME_FUNCTION, EntryCount As DWord, BaseAddress As QWord) As BOOLEAN
|
---|
985 | Declare Function RtlInstallFunctionTableCallback Lib "kernel32" (TableIdentifier As QWord, BaseAddress As QWord, Length As DWord, Callback As PGET_RUNTIME_FUNCTION_CALLBACK, Context As PVOID, OutOfProcessCallbackDll As PCWSTR) As BOOLEAN
|
---|
986 | Declare Function RtlDeleteFunctionTable Lib "kernel32" (FunctionTable As PRUNTIME_FUNCTION) As BOOLEAN
|
---|
987 |
|
---|
988 | '#endif '_WIN64
|
---|
989 | #else
|
---|
990 | '#ifdef _WIN32
|
---|
991 | 'InterlockedBitTestAndSet
|
---|
992 | 'InterlockedBitTestAndReset
|
---|
993 | 'InterlockedBitTestAndComplement
|
---|
994 |
|
---|
995 |
|
---|
996 | 'MemoryBarrier
|
---|
997 | 'PreFetchCacheLine
|
---|
998 | 'ReadForWriteAccess
|
---|
999 |
|
---|
1000 | 'ReadPMC
|
---|
1001 | 'ReadTimeStampCounter
|
---|
1002 |
|
---|
1003 | 'DbgRaiseAssertionFailure
|
---|
1004 |
|
---|
1005 | 'GetFiberData
|
---|
1006 | 'GetCurrentFibe
|
---|
1007 |
|
---|
1008 | Const EXCEPTION_READ_FAULT = 0
|
---|
1009 | Const EXCEPTION_WRITE_FAULT = 1
|
---|
1010 | Const EXCEPTION_EXECUTE_FAULT = 8
|
---|
1011 |
|
---|
1012 | Const SIZE_OF_80387_REGISTERS = 80
|
---|
1013 |
|
---|
1014 | Const CONTEXT_i386 = &h00010000
|
---|
1015 | Const CONTEXT_i486 = &h00010000
|
---|
1016 |
|
---|
1017 | Const CONTEXT_CONTROL = (CONTEXT_i386 Or &h00000001) ' SS:SP, CS:IP, FLAGS, BP
|
---|
1018 | Const CONTEXT_INTEGER = (CONTEXT_i386 Or &h00000002) ' AX, BX, CX, DX, SI, DI
|
---|
1019 | Const CONTEXT_SEGMENTS = (CONTEXT_i386 Or &h00000004) ' DS, ES, FS, GS
|
---|
1020 | Const CONTEXT_FLOATING_POINT = (CONTEXT_i386 Or &h00000008) ' 387 state
|
---|
1021 | Const CONTEXT_DEBUG_REGISTERS = (CONTEXT_i386 Or &h00000010) ' DB 0-3,6,7
|
---|
1022 | Const CONTEXT_EXTENDED_REGISTERS = (CONTEXT_i386 Or &h00000020) ' cpu specific extensions
|
---|
1023 | Const CONTEXT_FULL = (CONTEXT_CONTROL Or CONTEXT_INTEGER Or CONTEXT_SEGMENTS)
|
---|
1024 | Const CONTEXT_ALL = (CONTEXT_CONTROL Or CONTEXT_INTEGER Or CONTEXT_SEGMENTS Or CONTEXT_FLOATING_POINT Or CONTEXT_DEBUG_REGISTERS Or CONTEXT_EXTENDED_REGISTERS)
|
---|
1025 |
|
---|
1026 | Const MAXIMUM_SUPPORTED_EXTENSION = 512
|
---|
1027 |
|
---|
1028 | Type FLOATING_SAVE_AREA
|
---|
1029 | ControlWord As DWord
|
---|
1030 | StatusWord As DWord
|
---|
1031 | TagWord As DWord
|
---|
1032 | ErrorOffset As DWord
|
---|
1033 | ErrorSelector As DWord
|
---|
1034 | DataOffset As DWord
|
---|
1035 | DataSelector As DWord
|
---|
1036 | RegisterArea[ELM(SIZE_OF_80387_REGISTERS)] As Byte
|
---|
1037 | Cr0NpxState As DWord
|
---|
1038 | End Type
|
---|
1039 | TypeDef PFLOATING_SAVE_AREA = FLOATING_SAVE_AREA
|
---|
1040 |
|
---|
1041 | Type CONTEXT
|
---|
1042 | ContextFlags As DWord
|
---|
1043 |
|
---|
1044 | Dr0 As DWord
|
---|
1045 | Dr1 As DWord
|
---|
1046 | Dr2 As DWord
|
---|
1047 | Dr3 As DWord
|
---|
1048 | Dr6 As DWord
|
---|
1049 | Dr7 As DWord
|
---|
1050 |
|
---|
1051 | FloatSave As FLOATING_SAVE_AREA
|
---|
1052 |
|
---|
1053 | SegGs As DWord
|
---|
1054 | SegFs As DWord
|
---|
1055 | SegEs As DWord
|
---|
1056 | SegDs As DWord
|
---|
1057 |
|
---|
1058 | Edi As DWord
|
---|
1059 | Esi As DWord
|
---|
1060 | Ebx As DWord
|
---|
1061 | Edx As DWord
|
---|
1062 | Ecx As DWord
|
---|
1063 | Eax As DWord
|
---|
1064 |
|
---|
1065 | Ebp As DWord
|
---|
1066 | Eip As DWord
|
---|
1067 | SegCs As DWord
|
---|
1068 | EFlags As DWord
|
---|
1069 | Esp As DWord
|
---|
1070 | SegSs As DWord
|
---|
1071 |
|
---|
1072 | ExtendedRegisters[ELM(MAXIMUM_SUPPORTED_EXTENSION)] As Byte
|
---|
1073 | End Type
|
---|
1074 |
|
---|
1075 | TypeDef PCONTEXT = *CONTEXT
|
---|
1076 |
|
---|
1077 | #endif
|
---|
1078 |
|
---|
1079 | #ifndef _LDT_ENTRY_DEFINED
|
---|
1080 | #define _LDT_ENTRY_DEFINED
|
---|
1081 |
|
---|
1082 | Type LDT_ENTRY
|
---|
1083 | LimitLow As Word
|
---|
1084 | BaseLow As Word
|
---|
1085 | BaseMid As Byte
|
---|
1086 | Flags1 As Byte
|
---|
1087 | Flags2 As Byte
|
---|
1088 | BaseHi As Byte
|
---|
1089 | End Type
|
---|
1090 | TypeDef PLDT_ENTRY = *LDT_ENTRY
|
---|
1091 |
|
---|
1092 | #endif
|
---|
1093 |
|
---|
1094 | Const WOW64_CONTEXT_i386 = &h00010000
|
---|
1095 | Const WOW64_CONTEXT_i486 = &h00010000
|
---|
1096 |
|
---|
1097 | Const WOW64_CONTEXT_CONTROL = (WOW64_CONTEXT_i386 Or &h00000001) ' SS:SP, CS:IP, FLAGS, BP
|
---|
1098 | Const WOW64_CONTEXT_INTEGER = (WOW64_CONTEXT_i386 Or &h00000002) ' AX, BX, CX, DX, SI, DI
|
---|
1099 | Const WOW64_CONTEXT_SEGMENTS = (WOW64_CONTEXT_i386 Or &h00000004) ' DS, ES, FS, GS
|
---|
1100 | Const WOW64_CONTEXT_FLOATING_POINT = (WOW64_CONTEXT_i386 Or &h00000008) ' 387 state
|
---|
1101 | Const WOW64_CONTEXT_DEBUG_REGISTERS = (WOW64_CONTEXT_i386 Or &h00000010) ' DB 0-3,6,7
|
---|
1102 | Const WOW64_CONTEXT_EXTENDED_REGISTERS = (WOW64_CONTEXT_i386 Or &h00000020) ' cpu specific extensions
|
---|
1103 | Const WOW64_CONTEXT_FULL = (WOW64_CONTEXT_CONTROL Or WOW64_CONTEXT_INTEGER Or WOW64_CONTEXT_SEGMENTS)
|
---|
1104 | Const WOW64_CONTEXT_ALL = (WOW64_CONTEXT_CONTROL Or WOW64_CONTEXT_INTEGER Or WOW64_CONTEXT_SEGMENTS Or WOW64_CONTEXT_FLOATING_POINT Or WOW64_CONTEXT_DEBUG_REGISTERS Or WOW64_CONTEXT_EXTENDED_REGISTERS)
|
---|
1105 |
|
---|
1106 | Const WOW64_SIZE_OF_80387_REGISTERS = 80
|
---|
1107 |
|
---|
1108 | Const WOW64_MAXIMUM_SUPPORTED_EXTENSION = 512
|
---|
1109 |
|
---|
1110 | Type WOW64_FLOATING_SAVE_AREA
|
---|
1111 | ControlWord As DWord
|
---|
1112 | StatusWord As DWord
|
---|
1113 | TagWord As DWord
|
---|
1114 | ErrorOffset As DWord
|
---|
1115 | ErrorSelector As DWord
|
---|
1116 | DataOffset As DWord
|
---|
1117 | DataSelector As DWord
|
---|
1118 | RegisterArea[ELM(WOW64_SIZE_OF_80387_REGISTERS)] As Byte
|
---|
1119 | Cr0NpxState As DWord
|
---|
1120 | End Type
|
---|
1121 | TypeDef PWOW64_FLOATING_SAVE_AREA = *WOW64_FLOATING_SAVE_AREA
|
---|
1122 |
|
---|
1123 | Type WOW64_CONTEXT
|
---|
1124 | ContextFlags As DWord
|
---|
1125 |
|
---|
1126 | Dr0 As DWord
|
---|
1127 | Dr1 As DWord
|
---|
1128 | Dr2 As DWord
|
---|
1129 | Dr3 As DWord
|
---|
1130 | Dr6 As DWord
|
---|
1131 | Dr7 As DWord
|
---|
1132 |
|
---|
1133 | FloatSave As WOW64_FLOATING_SAVE_AREA
|
---|
1134 |
|
---|
1135 | SegGs As DWord
|
---|
1136 | SegFs As DWord
|
---|
1137 | SegEs As DWord
|
---|
1138 | SegDs As DWord
|
---|
1139 |
|
---|
1140 | Edi As DWord
|
---|
1141 | Esi As DWord
|
---|
1142 | Ebx As DWord
|
---|
1143 | Edx As DWord
|
---|
1144 | Ecx As DWord
|
---|
1145 | Eax As DWord
|
---|
1146 |
|
---|
1147 | Ebp As DWord
|
---|
1148 | Eip As DWord
|
---|
1149 | SegCs As DWord
|
---|
1150 | EFlags As DWord
|
---|
1151 | Esp As DWord
|
---|
1152 | SegSs As DWord
|
---|
1153 |
|
---|
1154 | ExtendedRegisters[ELM(WOW64_MAXIMUM_SUPPORTED_EXTENSION)] As Byte
|
---|
1155 | End Type
|
---|
1156 |
|
---|
1157 | TypeDef PWOW64_CONTEXT = *WOW64_CONTEXT
|
---|
1158 |
|
---|
1159 | Const EXCEPTION_NONCONTINUABLE = &h1
|
---|
1160 | Const EXCEPTION_MAXIMUM_PARAMETERS = 15
|
---|
1161 |
|
---|
1162 | Type EXCEPTION_RECORD
|
---|
1163 | ExceptionCode As DWord
|
---|
1164 | ExceptionFlags As DWord
|
---|
1165 | ExceptionRecord As *EXCEPTION_RECORD
|
---|
1166 | ExceptionAddress As PVOID
|
---|
1167 | NumberParameters As DWord
|
---|
1168 | ExceptionInformation[ELM(EXCEPTION_MAXIMUM_PARAMETERS)] As ULONG_PTR
|
---|
1169 | End Type
|
---|
1170 | TypeDef PEXCEPTION_RECORD = *EXCEPTION_RECORD
|
---|
1171 |
|
---|
1172 | Type EXCEPTION_RECORD32
|
---|
1173 | ExceptionCode As DWord
|
---|
1174 | ExceptionFlags As DWord
|
---|
1175 | ExceptionRecord As DWord
|
---|
1176 | ExceptionAddress As DWord
|
---|
1177 | NumberParameters As DWord
|
---|
1178 | ExceptionInformation[ELM(EXCEPTION_MAXIMUM_PARAMETERS)] As DWord
|
---|
1179 | End Type
|
---|
1180 | TypeDef PEXCEPTION_RECORD32 = *EXCEPTION_RECORD32
|
---|
1181 |
|
---|
1182 | Type EXCEPTION_RECORD64
|
---|
1183 | ExceptionCode As DWord
|
---|
1184 | ExceptionFlags As DWord
|
---|
1185 | ExceptionRecord As QWord
|
---|
1186 | ExceptionAddress As QWord
|
---|
1187 | NumberParameters As DWord
|
---|
1188 | __unusedAlignment As DWord
|
---|
1189 | ExceptionInformation[ELM(EXCEPTION_MAXIMUM_PARAMETERS)] As QWord
|
---|
1190 | End Type
|
---|
1191 | TypeDef PEXCEPTION_RECORD64 = *EXCEPTION_RECORD64
|
---|
1192 |
|
---|
1193 | Type EXCEPTION_POINTERS
|
---|
1194 | ExceptionRecord As PEXCEPTION_RECORD
|
---|
1195 | ContextRecord As PCONTEXT
|
---|
1196 | End Type
|
---|
1197 | TypeDef PEXCEPTION_POINTERS = *EXCEPTION_POINTERS
|
---|
1198 |
|
---|
1199 | TypeDef PACCESS_TOKEN = PVOID
|
---|
1200 | 'TypeDef PSECURITY_DESCRIPTOR = PVOID
|
---|
1201 | 'TypeDef PSID = PVOID
|
---|
1202 |
|
---|
1203 | 'ACCESS MASK
|
---|
1204 | TypeDef ACCESS_MASK = DWord
|
---|
1205 | TypeDef PACCESS_MASK = *ACCESS_MASK
|
---|
1206 |
|
---|
1207 | 'ACCESS TYPES
|
---|
1208 |
|
---|
1209 | 'Const DELETE = (&h00010000)
|
---|
1210 | Const READ_CONTROL = (&h00020000)
|
---|
1211 | Const WRITE_DAC = (&h00040000)
|
---|
1212 | Const WRITE_OWNER = (&h00080000)
|
---|
1213 | Const SYNCHRONIZE = (&h00100000)
|
---|
1214 |
|
---|
1215 | Const STANDARD_RIGHTS_REQUIRED = (&h000F0000)
|
---|
1216 |
|
---|
1217 | Const STANDARD_RIGHTS_READ = (READ_CONTROL)
|
---|
1218 | Const STANDARD_RIGHTS_WRITE = (READ_CONTROL)
|
---|
1219 | Const STANDARD_RIGHTS_EXECUTE = (READ_CONTROL)
|
---|
1220 |
|
---|
1221 | Const STANDARD_RIGHTS_ALL = (&h001F0000)
|
---|
1222 |
|
---|
1223 | Const SPECIFIC_RIGHTS_ALL = (&h0000FFFF)
|
---|
1224 |
|
---|
1225 | Const ACCESS_SYSTEM_SECURITY = (&h01000000)
|
---|
1226 |
|
---|
1227 | Const MAXIMUM_ALLOWED = (&h02000000)
|
---|
1228 |
|
---|
1229 | Const GENERIC_READ = (&h80000000)
|
---|
1230 | Const GENERIC_WRITE = (&h40000000)
|
---|
1231 | Const GENERIC_EXECUTE = (&h20000000)
|
---|
1232 | Const GENERIC_ALL = (&h10000000)
|
---|
1233 |
|
---|
1234 | Type GENERIC_MAPPING
|
---|
1235 | GenericRead As ACCESS_MASK
|
---|
1236 | GenericWrite As ACCESS_MASK
|
---|
1237 | GenericExecute As ACCESS_MASK
|
---|
1238 | GenericAll As ACCESS_MASK
|
---|
1239 | End Type
|
---|
1240 | TypeDef PGENERIC_MAPPING = *GENERIC_MAPPING
|
---|
1241 |
|
---|
1242 | ' LUID_AND_ATTRIBUTES
|
---|
1243 | Type Align(4) LUID_AND_ATTRIBUTES
|
---|
1244 | Luid As LUID
|
---|
1245 | Attributes As DWord
|
---|
1246 | End Type
|
---|
1247 | 'TypeDef LUID_AND_ATTRIBUTES_ARRAY = LUID_AND_ATTRIBUTES[ANYSIZE_ARRAY]
|
---|
1248 | 'TypeDef PLUID_AND_ATTRIBUTES_ARRAY = *LUID_AND_ATTRIBUTES_ARRAY
|
---|
1249 |
|
---|
1250 | ' Security Id (SID)
|
---|
1251 |
|
---|
1252 | #ifndef SID_IDENTIFIER_AUTHORITY_DEFINED
|
---|
1253 | #define SID_IDENTIFIER_AUTHORITY_DEFINED
|
---|
1254 | Type SID_IDENTIFIER_AUTHORITY
|
---|
1255 | Value[ELM(6)] As Byte
|
---|
1256 | End Type
|
---|
1257 | TypeDef PSID_IDENTIFIER_AUTHORITY = *SID_IDENTIFIER_AUTHORITY
|
---|
1258 | #endif
|
---|
1259 |
|
---|
1260 | #ifndef SID_DEFINED
|
---|
1261 | #define SID_DEFINED
|
---|
1262 | Type SID
|
---|
1263 | Revision As Byte
|
---|
1264 | SubAuthorityCount As Byte
|
---|
1265 | IdentifierAuthority As SID_IDENTIFIER_AUTHORITY
|
---|
1266 | SubAuthority[ELM(ANYSIZE_ARRAY)] As DWord
|
---|
1267 | End Type
|
---|
1268 | TypeDef PSID = *SID
|
---|
1269 | #endif
|
---|
1270 |
|
---|
1271 | Const SID_REVISION = (1)
|
---|
1272 | Const SID_MAX_SUB_AUTHORITIES = (15)
|
---|
1273 | Const SID_RECOMMENDED_SUB_AUTHORITIES = (1)
|
---|
1274 |
|
---|
1275 | Const SECURITY_MAX_SID_SIZE = (SizeOf (SID) - SizeOf (DWord) + (SID_MAX_SUB_AUTHORITIES * SizeOf (DWord)))
|
---|
1276 |
|
---|
1277 | Enum SID_NAME_USE
|
---|
1278 | SidTypeUser = 1
|
---|
1279 | SidTypeGroup
|
---|
1280 | SidTypeDomain
|
---|
1281 | SidTypeAlias
|
---|
1282 | SidTypeWellKnownGroup
|
---|
1283 | SidTypeDeletedAccount
|
---|
1284 | SidTypeInvalid
|
---|
1285 | SidTypeUnknown
|
---|
1286 | SidTypeComputer
|
---|
1287 | SidTypeLabel
|
---|
1288 | End Enum
|
---|
1289 | TypeDef PSID_NAME_USE = *SID_NAME_USE
|
---|
1290 |
|
---|
1291 | Type SID_AND_ATTRIBUTES
|
---|
1292 | Sid As PSID
|
---|
1293 | Attributes As DWord
|
---|
1294 | End Type
|
---|
1295 | TypeDef PSID_AND_ATTRIBUTES = *SID_AND_ATTRIBUTES
|
---|
1296 |
|
---|
1297 | 'TypeDef SID_AND_ATTRIBUTES_ARRAY = SID_AND_ATTRIBUTES[ANYSIZE_ARRAY]
|
---|
1298 | 'TypeDef PSID_AND_ATTRIBUTES_ARRAY = *SID_AND_ATTRIBUTES_ARRAY
|
---|
1299 |
|
---|
1300 | Const SID_HASH_SIZE = 32
|
---|
1301 | TypeDef SID_HASH_ENTRY = ULONG_PTR
|
---|
1302 | TypeDef PSID_HASH_ENTRY = *SID_HASH_ENTRY
|
---|
1303 |
|
---|
1304 | Type SID_AND_ATTRIBUTES_HASH
|
---|
1305 | SidCount As DWord
|
---|
1306 | SidAttr As PSID_AND_ATTRIBUTES
|
---|
1307 | Hash[ELM(SID_HASH_SIZE)] As SID_HASH_ENTRY
|
---|
1308 | End Type
|
---|
1309 | TypeDef PSID_AND_ATTRIBUTES_HASH = *SID_AND_ATTRIBUTES_HASH
|
---|
1310 |
|
---|
1311 | ' Universal well-known SIDs
|
---|
1312 | 'Const SECURITY_NULL_SID_AUTHORITY = [0, 0, 0, 0, 0, 0] As SID_IDENTIFIER_AUTHORITY
|
---|
1313 | 'Const SECURITY_WORLD_SID_AUTHORITY = [0, 0, 0, 0, 0, 1] As SID_IDENTIFIER_AUTHORITY
|
---|
1314 | 'Const SECURITY_LOCAL_SID_AUTHORITY = [0, 0, 0, 0, 0, 2] As SID_IDENTIFIER_AUTHORITY
|
---|
1315 | 'Const SECURITY_CREATOR_SID_AUTHORITY = [0, 0, 0, 0, 0, 3] As SID_IDENTIFIER_AUTHORITY
|
---|
1316 | 'Const SECURITY_NON_UNIQUE_AUTHORITY = [0, 0, 0, 0, 0, 4] As SID_IDENTIFIER_AUTHORITY
|
---|
1317 | 'Const SECURITY_RESOURCE_MANAGER_AUTHORITY = [0, 0, 0, 0, 0, 9] As SID_IDENTIFIER_AUTHORITY
|
---|
1318 |
|
---|
1319 | Const SECURITY_NULL_RID = (&h00000000)
|
---|
1320 | Const SECURITY_WORLD_RID = (&h00000000)
|
---|
1321 | Const SECURITY_LOCAL_RID = (&h00000000)
|
---|
1322 |
|
---|
1323 | Const SECURITY_CREATOR_OWNER_RID = (&h00000000)
|
---|
1324 | Const SECURITY_CREATOR_GROUP_RID = (&h00000001)
|
---|
1325 |
|
---|
1326 | Const SECURITY_CREATOR_OWNER_SERVER_RID = (&h00000002)
|
---|
1327 | Const SECURITY_CREATOR_GROUP_SERVER_RID = (&h00000003)
|
---|
1328 |
|
---|
1329 | Const SECURITY_CREATOR_OWNER_RIGHTS_RID = (&h00000004)
|
---|
1330 |
|
---|
1331 | ' NT well-known SIDs
|
---|
1332 | 'Const SECURITY_NT_AUTHORITY = [0, 0, 0, 0, 0, 9] As SID_IDENTIFIER_AUTHORITY
|
---|
1333 |
|
---|
1334 | Const SECURITY_DIALUP_RID = (&h00000001)
|
---|
1335 | Const SECURITY_NETWORK_RID = (&h00000002)
|
---|
1336 | Const SECURITY_BATCH_RID = (&h00000003)
|
---|
1337 | Const SECURITY_INTERACTIVE_RID = (&h00000004)
|
---|
1338 | Const SECURITY_LOGON_IDS_RID = (&h00000005)
|
---|
1339 | Const SECURITY_LOGON_IDS_RID_COUNT = (3)
|
---|
1340 | Const SECURITY_SERVICE_RID = (&h00000006)
|
---|
1341 | Const SECURITY_ANONYMOUS_LOGON_RID = (&h00000007)
|
---|
1342 | Const SECURITY_PROXY_RID = (&h00000008)
|
---|
1343 | Const SECURITY_ENTERPRISE_CONTROLLERS_RID = (&h00000009)
|
---|
1344 | Const SECURITY_SERVER_LOGON_RID = SECURITY_ENTERPRISE_CONTROLLERS_RID
|
---|
1345 | Const SECURITY_PRINCIPAL_SELF_RID = (&h0000000A)
|
---|
1346 | Const SECURITY_AUTHENTICATED_USER_RID = (&h0000000B)
|
---|
1347 | Const SECURITY_RESTRICTED_CODE_RID = (&h0000000C)
|
---|
1348 | Const SECURITY_TERMINAL_SERVER_RID = (&h0000000D)
|
---|
1349 | Const SECURITY_REMOTE_LOGON_RID = (&h0000000E)
|
---|
1350 | Const SECURITY_THIS_ORGANIZATION_RID = (&h0000000F)
|
---|
1351 | Const SECURITY_IUSER_RID = (&h00000011)
|
---|
1352 | Const SECURITY_LOCAL_SYSTEM_RID = (&h00000012)
|
---|
1353 | Const SECURITY_LOCAL_SERVICE_RID = (&h00000013)
|
---|
1354 | Const SECURITY_NETWORK_SERVICE_RID = (&h00000014)
|
---|
1355 |
|
---|
1356 | Const SECURITY_NT_NON_UNIQUE = (&h00000015)
|
---|
1357 | Const SECURITY_NT_NON_UNIQUE_SUB_AUTH_COUNT = (3)
|
---|
1358 |
|
---|
1359 | Const SECURITY_ENTERPRISE_READONLY_CONTROLLERS_RID = (&h00000016)
|
---|
1360 |
|
---|
1361 | Const SECURITY_BUILTIN_DOMAIN_RID = (&h00000020)
|
---|
1362 | Const SECURITY_WRITE_RESTRICTED_CODE_RID = (&h00000021)
|
---|
1363 |
|
---|
1364 |
|
---|
1365 | Const SECURITY_PACKAGE_BASE_RID = (&h00000040)
|
---|
1366 | Const SECURITY_PACKAGE_RID_COUNT = (2)
|
---|
1367 | Const SECURITY_PACKAGE_NTLM_RID = (&h0000000A)
|
---|
1368 | Const SECURITY_PACKAGE_SCHANNEL_RID = (&h0000000E)
|
---|
1369 | Const SECURITY_PACKAGE_DIGEST_RID = (&h00000015)
|
---|
1370 |
|
---|
1371 | Const SECURITY_SERVICE_ID_BASE_RID = (&h00000050)
|
---|
1372 | Const SECURITY_SERVICE_ID_RID_COUNT = (6)
|
---|
1373 |
|
---|
1374 | Const SECURITY_RESERVED_ID_BASE_RID = (&h00000051)
|
---|
1375 |
|
---|
1376 | Const SECURITY_MAX_ALWAYS_FILTERED = (&h000003E7)
|
---|
1377 | Const SECURITY_MIN_NEVER_FILTERED = (&h000003E8)
|
---|
1378 |
|
---|
1379 | Const SECURITY_OTHER_ORGANIZATION_RID = (&h000003E8)
|
---|
1380 |
|
---|
1381 | ' well-known domain relative sub-authority values (RIDs)...
|
---|
1382 | ' Well-known users ...
|
---|
1383 | Const FOREST_USER_RID_MAX = (&h000001F3)
|
---|
1384 |
|
---|
1385 | Const DOMAIN_USER_RID_ADMIN = (&h000001F4)
|
---|
1386 | Const DOMAIN_USER_RID_GUEST = (&h000001F5)
|
---|
1387 | Const DOMAIN_USER_RID_KRBTGT = (&h000001F6)
|
---|
1388 |
|
---|
1389 | Const DOMAIN_USER_RID_MAX = (&h000003E7)
|
---|
1390 |
|
---|
1391 | ' well-known groups ...
|
---|
1392 | Const DOMAIN_GROUP_RID_ADMINS = (&h00000200)
|
---|
1393 | Const DOMAIN_GROUP_RID_USERS = (&h00000201)
|
---|
1394 | Const DOMAIN_GROUP_RID_GUESTS = (&h00000202)
|
---|
1395 | Const DOMAIN_GROUP_RID_COMPUTERS = (&h00000203)
|
---|
1396 | Const DOMAIN_GROUP_RID_CONTROLLERS = (&h00000204)
|
---|
1397 | Const DOMAIN_GROUP_RID_CERT_ADMINS = (&h00000205)
|
---|
1398 | Const DOMAIN_GROUP_RID_SCHEMA_ADMINS = (&h00000206)
|
---|
1399 | Const DOMAIN_GROUP_RID_ENTERPRISE_ADMINS = (&h00000207)
|
---|
1400 | Const DOMAIN_GROUP_RID_POLICY_ADMINS = (&h00000208)
|
---|
1401 | Const DOMAIN_GROUP_RID_READONLY_CONTROLLERS = (&h00000209)
|
---|
1402 |
|
---|
1403 | ' well-known aliases ...
|
---|
1404 | Const DOMAIN_ALIAS_RID_ADMINS = (&h00000220)
|
---|
1405 | Const DOMAIN_ALIAS_RID_USERS = (&h00000221)
|
---|
1406 | Const DOMAIN_ALIAS_RID_GUESTS = (&h00000222)
|
---|
1407 | Const DOMAIN_ALIAS_RID_POWER_USERS = (&h00000223)
|
---|
1408 |
|
---|
1409 | Const DOMAIN_ALIAS_RID_ACCOUNT_OPS = (&h00000224)
|
---|
1410 | Const DOMAIN_ALIAS_RID_SYSTEM_OPS = (&h00000225)
|
---|
1411 | Const DOMAIN_ALIAS_RID_PRINT_OPS = (&h00000226)
|
---|
1412 | Const DOMAIN_ALIAS_RID_BACKUP_OPS = (&h00000227)
|
---|
1413 |
|
---|
1414 | Const DOMAIN_ALIAS_RID_REPLICATOR = (&h00000228)
|
---|
1415 | Const DOMAIN_ALIAS_RID_RAS_SERVERS = (&h00000229)
|
---|
1416 | Const DOMAIN_ALIAS_RID_PREW2KCOMPACCESS = (&h0000022A)
|
---|
1417 | Const DOMAIN_ALIAS_RID_REMOTE_DESKTOP_USERS = (&h0000022B)
|
---|
1418 | Const DOMAIN_ALIAS_RID_NETWORK_CONFIGURATION_OPS = (&h0000022C)
|
---|
1419 | Const DOMAIN_ALIAS_RID_INCOMING_FOREST_TRUST_BUILDERS = (&h0000022D)
|
---|
1420 |
|
---|
1421 | Const DOMAIN_ALIAS_RID_MONITORING_USERS = (&h0000022E)
|
---|
1422 | Const DOMAIN_ALIAS_RID_LOGGING_USERS = (&h0000022F)
|
---|
1423 | Const DOMAIN_ALIAS_RID_AUTHORIZATIONACCESS = (&h00000230)
|
---|
1424 | Const DOMAIN_ALIAS_RID_TS_LICENSE_SERVERS = (&h00000231)
|
---|
1425 | Const DOMAIN_ALIAS_RID_DCOM_USERS = (&h00000232)
|
---|
1426 | Const DOMAIN_ALIAS_RID_IUSERS = (&h00000238)
|
---|
1427 | Const DOMAIN_ALIAS_RID_CRYPTO_OPERATORS = (&h00000239)
|
---|
1428 | Const DOMAIN_ALIAS_RID_CACHEABLE_PRINCIPALS_GROUP = (&h0000023B)
|
---|
1429 | Const DOMAIN_ALIAS_RID_NON_CACHEABLE_PRINCIPALS_GROUP = (&h0000023C)
|
---|
1430 | Const DOMAIN_ALIAS_RID_EVENT_LOG_READERS_GROUP = (&h0000023D)
|
---|
1431 |
|
---|
1432 | 'Const SECURITY_MANDATORY_LABEL_AUTHORITY = [0, 0, 0, 0 ,0, 16] As SID_IDENTIFIER_AUTHORITY
|
---|
1433 | Const SECURITY_MANDATORY_UNTRUSTED_RID = (&h00000000)
|
---|
1434 | Const SECURITY_MANDATORY_LOW_RID = (&h00001000)
|
---|
1435 | Const SECURITY_MANDATORY_MEDIUM_RID = (&h00002000)
|
---|
1436 | Const SECURITY_MANDATORY_HIGH_RID = (&h00003000)
|
---|
1437 | Const SECURITY_MANDATORY_SYSTEM_RID = (&h00004000)
|
---|
1438 | Const SECURITY_MANDATORY_PROTECTED_PROCESS_RID = (&h00005000)
|
---|
1439 |
|
---|
1440 |
|
---|
1441 | Const SECURITY_MANDATORY_MAXIMUM_USER_RID = SECURITY_MANDATORY_SYSTEM_RID
|
---|
1442 |
|
---|
1443 | Const MANDATORY_LEVEL_TO_MANDATORY_RID(I) = (I * &h1000)
|
---|
1444 |
|
---|
1445 | ' Well known SID definitions for lookup.
|
---|
1446 | Const Enum WELL_KNOWN_SID_TYPE
|
---|
1447 | WinNullSid = 0
|
---|
1448 | WinWorldSid = 1
|
---|
1449 | WinLocalSid = 2
|
---|
1450 | WinCreatorOwnerSid = 3
|
---|
1451 | WinCreatorGroupSid = 4
|
---|
1452 | WinCreatorOwnerServerSid = 5
|
---|
1453 | WinCreatorGroupServerSid = 6
|
---|
1454 | WinNtAuthoritySid = 7
|
---|
1455 | WinDialupSid = 8
|
---|
1456 | WinNetworkSid = 9
|
---|
1457 | WinBatchSid = 10
|
---|
1458 | WinInteractiveSid = 11
|
---|
1459 | WinServiceSid = 12
|
---|
1460 | WinAnonymousSid = 13
|
---|
1461 | WinProxySid = 14
|
---|
1462 | WinEnterpriseControllersSid = 15
|
---|
1463 | WinSelfSid = 16
|
---|
1464 | WinAuthenticatedUserSid = 17
|
---|
1465 | WinRestrictedCodeSid = 18
|
---|
1466 | WinTerminalServerSid = 19
|
---|
1467 | WinRemoteLogonIdSid = 20
|
---|
1468 | WinLogonIdsSid = 21
|
---|
1469 | WinLocalSystemSid = 22
|
---|
1470 | WinLocalServiceSid = 23
|
---|
1471 | WinNetworkServiceSid = 24
|
---|
1472 | WinBuiltinDomainSid = 25
|
---|
1473 | WinBuiltinAdministratorsSid = 26
|
---|
1474 | WinBuiltinUsersSid = 27
|
---|
1475 | WinBuiltinGuestsSid = 28
|
---|
1476 | WinBuiltinPowerUsersSid = 29
|
---|
1477 | WinBuiltinAccountOperatorsSid = 30
|
---|
1478 | WinBuiltinSystemOperatorsSid = 31
|
---|
1479 | WinBuiltinPrintOperatorsSid = 32
|
---|
1480 | WinBuiltinBackupOperatorsSid = 33
|
---|
1481 | WinBuiltinReplicatorSid = 34
|
---|
1482 | WinBuiltinPreWindows2000CompatibleAccessSid = 35
|
---|
1483 | WinBuiltinRemoteDesktopUsersSid = 36
|
---|
1484 | WinBuiltinNetworkConfigurationOperatorsSid = 37
|
---|
1485 | WinAccountAdministratorSid = 38
|
---|
1486 | WinAccountGuestSid = 39
|
---|
1487 | WinAccountKrbtgtSid = 40
|
---|
1488 | WinAccountDomainAdminsSid = 41
|
---|
1489 | WinAccountDomainUsersSid = 42
|
---|
1490 | WinAccountDomainGuestsSid = 43
|
---|
1491 | WinAccountComputersSid = 44
|
---|
1492 | WinAccountControllersSid = 45
|
---|
1493 | WinAccountCertAdminsSid = 46
|
---|
1494 | WinAccountSchemaAdminsSid = 47
|
---|
1495 | WinAccountEnterpriseAdminsSid = 48
|
---|
1496 | WinAccountPolicyAdminsSid = 49
|
---|
1497 | WinAccountRasAndIasServersSid = 50
|
---|
1498 | WinNTLMAuthenticationSid = 51
|
---|
1499 | WinDigestAuthenticationSid = 52
|
---|
1500 | WinSChannelAuthenticationSid = 53
|
---|
1501 | WinThisOrganizationSid = 54
|
---|
1502 | WinOtherOrganizationSid = 55
|
---|
1503 | WinBuiltinIncomingForestTrustBuildersSid = 56
|
---|
1504 | WinBuiltinPerfMonitoringUsersSid = 57
|
---|
1505 | WinBuiltinPerfLoggingUsersSid = 58
|
---|
1506 | WinBuiltinAuthorizationAccessSid = 59
|
---|
1507 | WinBuiltinTerminalServerLicenseServersSid = 60
|
---|
1508 | WinBuiltinDCOMUsersSid = 61
|
---|
1509 | WinBuiltinIUsersSid = 62
|
---|
1510 | WinIUserSid = 63
|
---|
1511 | WinBuiltinCryptoOperatorsSid = 64
|
---|
1512 | WinUntrustedLabelSid = 65
|
---|
1513 | WinLowLabelSid = 66
|
---|
1514 | WinMediumLabelSid = 67
|
---|
1515 | WinHighLabelSid = 68
|
---|
1516 | WinSystemLabelSid = 69
|
---|
1517 | WinWriteRestrictedCodeSid = 70
|
---|
1518 | WinCreatorOwnerRightsSid = 71
|
---|
1519 | WinCacheablePrincipalsGroupSid = 72
|
---|
1520 | WinNonCacheablePrincipalsGroupSid = 73
|
---|
1521 | WinEnterpriseReadonlyControllersSid = 74
|
---|
1522 | WinAccountReadonlyControllersSid = 75
|
---|
1523 | WinBuiltinEventLogReadersGroup = 76
|
---|
1524 | End Enum
|
---|
1525 |
|
---|
1526 | 'Const SYSTEM_LUID = [&h3e7, &h0] As LUID
|
---|
1527 | 'Const ANONYMOUS_LOGON_LUID = [&h3e6, &h0] As LUID
|
---|
1528 | 'Const LOCALSERVICE_LUID = [&h3e5, &h0] As LUID
|
---|
1529 | 'Const NETWORKSERVICE_LUID = [&h3e4, &h0] As LUID
|
---|
1530 | 'Const IUSER_LUID = [&h3e3, &h0] As LUID
|
---|
1531 |
|
---|
1532 | ' User and Group related SID attributes
|
---|
1533 |
|
---|
1534 | ' Group attributes
|
---|
1535 | Const SE_GROUP_MANDATORY = (&h00000001)
|
---|
1536 | Const SE_GROUP_ENABLED_BY_DEFAULT = (&h00000002)
|
---|
1537 | Const SE_GROUP_ENABLED = (&h00000004)
|
---|
1538 | Const SE_GROUP_OWNER = (&h00000008)
|
---|
1539 | Const SE_GROUP_USE_FOR_DENY_ONLY = (&h00000010)
|
---|
1540 | Const SE_GROUP_INTEGRITY = (&h00000020)
|
---|
1541 | Const SE_GROUP_INTEGRITY_ENABLED = (&h00000040)
|
---|
1542 | Const SE_GROUP_LOGON_ID = (&hC0000000)
|
---|
1543 | Const SE_GROUP_RESOURCE = (&h20000000)
|
---|
1544 |
|
---|
1545 | Const SE_GROUP_VALID_ATTRIBUTES = (SE_GROUP_MANDATORY Or SE_GROUP_ENABLED_BY_DEFAULT Or SE_GROUP_ENABLED Or SE_GROUP_OWNER Or SE_GROUP_USE_FOR_DENY_ONLY Or SE_GROUP_LOGON_ID Or SE_GROUP_RESOURCE Or SE_GROUP_INTEGRITY Or SE_GROUP_INTEGRITY_ENABLED)
|
---|
1546 |
|
---|
1547 | ' ACL and ACE
|
---|
1548 | Const ACL_REVISION = (2)
|
---|
1549 | Const ACL_REVISION_DS = (4)
|
---|
1550 |
|
---|
1551 | Const ACL_REVISION1 = (1)
|
---|
1552 | Const MIN_ACL_REVISION = ACL_REVISION2
|
---|
1553 | Const ACL_REVISION2 = (2)
|
---|
1554 | Const ACL_REVISION3 = (3)
|
---|
1555 | Const ACL_REVISION4 = (4)
|
---|
1556 | Const MAX_ACL_REVISION = ACL_REVISION4
|
---|
1557 |
|
---|
1558 | Type ACL
|
---|
1559 | AclRevision As Byte
|
---|
1560 | Sbz1 As Byte
|
---|
1561 | AclSize As Word
|
---|
1562 | AceCount As Word
|
---|
1563 | Sbz2 As Word
|
---|
1564 | End Type
|
---|
1565 | TypeDef PACL = ACL
|
---|
1566 |
|
---|
1567 | Type ACE_HEADER
|
---|
1568 | AceType As Byte
|
---|
1569 | AceFlags As Byte
|
---|
1570 | AceSize As Word
|
---|
1571 | End Type
|
---|
1572 | TypeDef PACE_HEADER = *ACE_HEADER
|
---|
1573 |
|
---|
1574 | Const ACCESS_MIN_MS_ACE_TYPE = (&h0)
|
---|
1575 | Const ACCESS_ALLOWED_ACE_TYPE = (&h0)
|
---|
1576 | Const ACCESS_DENIED_ACE_TYPE = (&h1)
|
---|
1577 | Const SYSTEM_AUDIT_ACE_TYPE = (&h2)
|
---|
1578 | Const SYSTEM_ALARM_ACE_TYPE = (&h3)
|
---|
1579 | Const ACCESS_MAX_MS_V2_ACE_TYPE = (&h3)
|
---|
1580 |
|
---|
1581 | Const ACCESS_ALLOWED_COMPOUND_ACE_TYPE = (&h4)
|
---|
1582 | Const ACCESS_MAX_MS_V3_ACE_TYPE = (&h4)
|
---|
1583 |
|
---|
1584 | Const ACCESS_MIN_MS_OBJECT_ACE_TYPE = (&h5)
|
---|
1585 | Const ACCESS_ALLOWED_OBJECT_ACE_TYPE = (&h5)
|
---|
1586 | Const ACCESS_DENIED_OBJECT_ACE_TYPE = (&h6)
|
---|
1587 | Const SYSTEM_AUDIT_OBJECT_ACE_TYPE = (&h7)
|
---|
1588 | Const SYSTEM_ALARM_OBJECT_ACE_TYPE = (&h8)
|
---|
1589 | Const ACCESS_MAX_MS_OBJECT_ACE_TYPE = (&h8)
|
---|
1590 |
|
---|
1591 | Const ACCESS_MAX_MS_V4_ACE_TYPE = (&h8)
|
---|
1592 | Const ACCESS_MAX_MS_ACE_TYPE = (&h8)
|
---|
1593 |
|
---|
1594 | Const ACCESS_ALLOWED_CALLBACK_ACE_TYPE = (&h9)
|
---|
1595 | Const ACCESS_DENIED_CALLBACK_ACE_TYPE = (&hA)
|
---|
1596 | Const ACCESS_ALLOWED_CALLBACK_OBJECT_ACE_TYPE = (&hB)
|
---|
1597 | Const ACCESS_DENIED_CALLBACK_OBJECT_ACE_TYPE = (&hC)
|
---|
1598 | Const SYSTEM_AUDIT_CALLBACK_ACE_TYPE = (&hD)
|
---|
1599 | Const SYSTEM_ALARM_CALLBACK_ACE_TYPE = (&hE)
|
---|
1600 | Const SYSTEM_AUDIT_CALLBACK_OBJECT_ACE_TYPE = (&hF)
|
---|
1601 | Const SYSTEM_ALARM_CALLBACK_OBJECT_ACE_TYPE = (&h10)
|
---|
1602 |
|
---|
1603 | Const SYSTEM_MANDATORY_LABEL_ACE_TYPE = (&h11)
|
---|
1604 | Const ACCESS_MAX_MS_V5_ACE_TYPE = (&h11)
|
---|
1605 |
|
---|
1606 | Const OBJECT_INHERIT_ACE = (&h1)
|
---|
1607 | Const CONTAINER_INHERIT_ACE = (&h2)
|
---|
1608 | Const NO_PROPAGATE_INHERIT_ACE = (&h4)
|
---|
1609 | Const INHERIT_ONLY_ACE = (&h8)
|
---|
1610 | Const INHERITED_ACE = (&h10)
|
---|
1611 | Const VALID_INHERIT_FLAGS = (&h1F)
|
---|
1612 |
|
---|
1613 | Const SUCCESSFUL_ACCESS_ACE_FLAG = (&h40)
|
---|
1614 | Const FAILED_ACCESS_ACE_FLAG = (&h80)
|
---|
1615 |
|
---|
1616 | Type ACCESS_ALLOWED_ACE
|
---|
1617 | Header As ACE_HEADER
|
---|
1618 | Mask As ACCESS_MASK
|
---|
1619 | SidStart As DWord
|
---|
1620 | End Type
|
---|
1621 | TypeDef PACCESS_ALLOWED_ACE = *ACCESS_ALLOWED_ACE
|
---|
1622 |
|
---|
1623 | Type ACCESS_DENIED_ACE
|
---|
1624 | Header As ACE_HEADER
|
---|
1625 | Mask As ACCESS_MASK
|
---|
1626 | SidStart As DWord
|
---|
1627 | End Type
|
---|
1628 | TypeDef PACCESS_DENIED_ACE = *ACCESS_DENIED_ACE
|
---|
1629 |
|
---|
1630 | Type SYSTEM_AUDIT_ACE
|
---|
1631 | Header As ACE_HEADER
|
---|
1632 | Mask As ACCESS_MASK
|
---|
1633 | SidStart As DWord
|
---|
1634 | End Type
|
---|
1635 | TypeDef PSYSTEM_AUDIT_ACE = *SYSTEM_AUDIT_ACE
|
---|
1636 |
|
---|
1637 | Type SYSTEM_ALARM_ACE
|
---|
1638 | Header As ACE_HEADER
|
---|
1639 | Mask As ACCESS_MASK
|
---|
1640 | SidStart As DWord
|
---|
1641 | End Type
|
---|
1642 | TypeDef PSYSTEM_ALARM_ACE = *SYSTEM_ALARM_ACE
|
---|
1643 |
|
---|
1644 | Type SYSTEM_MANDATORY_LABEL_ACE
|
---|
1645 | Header As ACE_HEADER
|
---|
1646 | Mask As ACCESS_MASK
|
---|
1647 | SidStart As DWord
|
---|
1648 | End Type
|
---|
1649 | TypeDef PSYSTEM_MANDATORY_LABEL_ACE = *SYSTEM_MANDATORY_LABEL_ACE
|
---|
1650 |
|
---|
1651 | Const SYSTEM_MANDATORY_LABEL_NO_WRITE_UP = &h1
|
---|
1652 | Const SYSTEM_MANDATORY_LABEL_NO_READ_UP = &h2
|
---|
1653 | Const SYSTEM_MANDATORY_LABEL_NO_EXECUTE_UP = &h4
|
---|
1654 |
|
---|
1655 | Const SYSTEM_MANDATORY_LABEL_VALID_MASK = (SYSTEM_MANDATORY_LABEL_NO_WRITE_UP Or SYSTEM_MANDATORY_LABEL_NO_READ_UP Or SYSTEM_MANDATORY_LABEL_NO_EXECUTE_UP)
|
---|
1656 |
|
---|
1657 | Type ACCESS_ALLOWED_OBJECT_ACE
|
---|
1658 | Header As ACE_HEADER
|
---|
1659 | Mask As ACCESS_MASK
|
---|
1660 | Flags As DWord
|
---|
1661 | ObjectType As GUID
|
---|
1662 | InheritedObjectType As GUID
|
---|
1663 | SidStart As DWord
|
---|
1664 | End Type
|
---|
1665 | TypeDef PACCESS_ALLOWED_OBJECT_ACE = *ACCESS_ALLOWED_OBJECT_ACE
|
---|
1666 |
|
---|
1667 | Type ACCESS_DENIED_OBJECT_ACE
|
---|
1668 | Header As ACE_HEADER
|
---|
1669 | Mask As ACCESS_MASK
|
---|
1670 | Flags As DWord
|
---|
1671 | ObjectType As GUID
|
---|
1672 | InheritedObjectType As GUID
|
---|
1673 | SidStart As DWord
|
---|
1674 | End Type
|
---|
1675 | TypeDef PACCESS_DENIED_OBJECT_ACE = *ACCESS_DENIED_OBJECT_ACE
|
---|
1676 |
|
---|
1677 | Type SYSTEM_AUDIT_OBJECT_ACE
|
---|
1678 | Header As ACE_HEADER
|
---|
1679 | Mask As ACCESS_MASK
|
---|
1680 | Flags As DWord
|
---|
1681 | ObjectType As GUID
|
---|
1682 | InheritedObjectType As GUID
|
---|
1683 | SidStart As DWord
|
---|
1684 | End Type
|
---|
1685 | TypeDef PSYSTEM_AUDIT_OBJECT_ACE = *SYSTEM_AUDIT_OBJECT_ACE
|
---|
1686 |
|
---|
1687 | Type SYSTEM_ALARM_OBJECT_ACE
|
---|
1688 | Header As ACE_HEADER
|
---|
1689 | Mask As ACCESS_MASK
|
---|
1690 | Flags As DWord
|
---|
1691 | ObjectType As GUID
|
---|
1692 | InheritedObjectType As GUID
|
---|
1693 | SidStart As DWord
|
---|
1694 | End Type
|
---|
1695 | TypeDef PSYSTEM_ALARM_OBJECT_ACE = *SYSTEM_ALARM_OBJECT_ACE
|
---|
1696 |
|
---|
1697 | Type ACCESS_ALLOWED_CALLBACK_ACE
|
---|
1698 | Header As ACE_HEADER
|
---|
1699 | Mask As ACCESS_MASK
|
---|
1700 | SidStart As DWord
|
---|
1701 | End Type
|
---|
1702 | TypeDef PACCESS_ALLOWED_CALLBACK_ACE = *ACCESS_ALLOWED_CALLBACK_ACE
|
---|
1703 |
|
---|
1704 | Type ACCESS_DENIED_CALLBACK_ACE
|
---|
1705 | Header As ACE_HEADER
|
---|
1706 | Mask As ACCESS_MASK
|
---|
1707 | SidStart As DWord
|
---|
1708 | End Type
|
---|
1709 | TypeDef PACCESS_DENIED_CALLBACK_ACE = *ACCESS_DENIED_CALLBACK_ACE
|
---|
1710 |
|
---|
1711 | Type SYSTEM_AUDIT_CALLBACK_ACE
|
---|
1712 | Header As ACE_HEADER
|
---|
1713 | Mask As ACCESS_MASK
|
---|
1714 | SidStart As DWord
|
---|
1715 | End Type
|
---|
1716 | TypeDef PSYSTEM_AUDIT_CALLBACK_ACE = *SYSTEM_AUDIT_CALLBACK_ACE
|
---|
1717 |
|
---|
1718 | Type SYSTEM_ALARM_CALLBACK_ACE
|
---|
1719 | Header As ACE_HEADER
|
---|
1720 | Mask As ACCESS_MASK
|
---|
1721 | SidStart As DWord
|
---|
1722 | End Type
|
---|
1723 | TypeDef PSYSTEM_ALARM_CALLBACK_ACE = *SYSTEM_ALARM_CALLBACK_ACE
|
---|
1724 |
|
---|
1725 | Type ACCESS_ALLOWED_CALLBACK_OBJECT_ACE
|
---|
1726 | Header As ACE_HEADER
|
---|
1727 | Mask As ACCESS_MASK
|
---|
1728 | Flags As DWord
|
---|
1729 | ObjectType As GUID
|
---|
1730 | InheritedObjectType As GUID
|
---|
1731 | SidStart As DWord
|
---|
1732 | End Type
|
---|
1733 | TypeDef PACCESS_ALLOWED_CALLBACK_OBJECT_ACE = *ACCESS_ALLOWED_CALLBACK_OBJECT_ACE
|
---|
1734 |
|
---|
1735 | Type ACCESS_DENIED_CALLBACK_OBJECT_ACE
|
---|
1736 | Header As ACE_HEADER
|
---|
1737 | Mask As ACCESS_MASK
|
---|
1738 | Flags As DWord
|
---|
1739 | ObjectType As GUID
|
---|
1740 | InheritedObjectType As GUID
|
---|
1741 | SidStart As DWord
|
---|
1742 | End Type
|
---|
1743 | TypeDef PACCESS_DENIED_CALLBACK_OBJECT_ACE = *ACCESS_DENIED_CALLBACK_OBJECT_ACE
|
---|
1744 |
|
---|
1745 | Type SYSTEM_AUDIT_CALLBACK_OBJECT_ACE
|
---|
1746 | Header As ACE_HEADER
|
---|
1747 | Mask As ACCESS_MASK
|
---|
1748 | Flags As DWord
|
---|
1749 | ObjectType As GUID
|
---|
1750 | InheritedObjectType As GUID
|
---|
1751 | SidStart As DWord
|
---|
1752 | End Type
|
---|
1753 | TypeDef PSYSTEM_AUDIT_CALLBACK_OBJECT_ACE = *SYSTEM_AUDIT_CALLBACK_OBJECT_ACE
|
---|
1754 |
|
---|
1755 | Type SYSTEM_ALARM_CALLBACK_OBJECT_ACE
|
---|
1756 | Header As ACE_HEADER
|
---|
1757 | Mask As ACCESS_MASK
|
---|
1758 | Flags As DWord
|
---|
1759 | ObjectType As GUID
|
---|
1760 | InheritedObjectType As GUID
|
---|
1761 | SidStart As DWord
|
---|
1762 | End Type
|
---|
1763 | TypeDef PSYSTEM_ALARM_CALLBACK_OBJECT_ACE = *SYSTEM_ALARM_CALLBACK_OBJECT_ACE
|
---|
1764 |
|
---|
1765 | Const ACE_OBJECT_TYPE_PRESENT = &h1
|
---|
1766 | Const ACE_INHERITED_OBJECT_TYPE_PRESENT = &h2
|
---|
1767 |
|
---|
1768 | Enum ACL_INFORMATION_CLASS
|
---|
1769 | AclRevisionInformation = 1
|
---|
1770 | AclSizeInformation
|
---|
1771 | End Enum
|
---|
1772 |
|
---|
1773 | Type ACL_REVISION_INFORMATION
|
---|
1774 | AclRevision As DWord
|
---|
1775 | End Type
|
---|
1776 | TypeDef PACL_REVISION_INFORMATION = *ACL_REVISION_INFORMATION
|
---|
1777 |
|
---|
1778 | Type ACL_SIZE_INFORMATION
|
---|
1779 | AceCount As DWord
|
---|
1780 | AclBytesInUse As DWord
|
---|
1781 | AclBytesFree As DWord
|
---|
1782 | End Type
|
---|
1783 | TypeDef PACL_SIZE_INFORMATION = *ACL_SIZE_INFORMATION
|
---|
1784 |
|
---|
1785 | ' SECURITY_DESCRIPTOR
|
---|
1786 | Const SECURITY_DESCRIPTOR_REVISION = (1)
|
---|
1787 | Const SECURITY_DESCRIPTOR_REVISION1 = (1)
|
---|
1788 |
|
---|
1789 | Const SECURITY_DESCRIPTOR_MIN_LENGTH = (SizeOf (SECURITY_DESCRIPTOR))
|
---|
1790 |
|
---|
1791 | TypeDef SECURITY_DESCRIPTOR_CONTROL = Word
|
---|
1792 | TypeDef PSECURITY_DESCRIPTOR_CONTROL = *SECURITY_DESCRIPTOR_CONTROL
|
---|
1793 |
|
---|
1794 | Const SE_OWNER_DEFAULTED = (&h0001)
|
---|
1795 | Const SE_GROUP_DEFAULTED = (&h0002)
|
---|
1796 | Const SE_DACL_PRESENT = (&h0004)
|
---|
1797 | Const SE_DACL_DEFAULTED = (&h0008)
|
---|
1798 | Const SE_SACL_PRESENT = (&h0010)
|
---|
1799 | Const SE_SACL_DEFAULTED = (&h0020)
|
---|
1800 | Const SE_DACL_AUTO_INHERIT_REQ = (&h0100)
|
---|
1801 | Const SE_SACL_AUTO_INHERIT_REQ = (&h0200)
|
---|
1802 | Const SE_DACL_AUTO_INHERITED = (&h0400)
|
---|
1803 | Const SE_SACL_AUTO_INHERITED = (&h0800)
|
---|
1804 | Const SE_DACL_PROTECTED = (&h1000)
|
---|
1805 | Const SE_SACL_PROTECTED = (&h2000)
|
---|
1806 | Const SE_RM_CONTROL_VALID = (&h4000)
|
---|
1807 | Const SE_SELF_RELATIVE = (&h8000)
|
---|
1808 |
|
---|
1809 | Type SECURITY_DESCRIPTOR_RELATIVE
|
---|
1810 | Revision As Byte
|
---|
1811 | Sbz1 As Byte
|
---|
1812 | Control As SECURITY_DESCRIPTOR_CONTROL
|
---|
1813 | Owner As DWord
|
---|
1814 | Group As DWord
|
---|
1815 | Sacl As DWord
|
---|
1816 | Dacl As DWord
|
---|
1817 | End Type
|
---|
1818 | TypeDef PSECURITY_DESCRIPTOR_RELATIVE = *SECURITY_DESCRIPTOR_RELATIVE
|
---|
1819 |
|
---|
1820 | Type SECURITY_DESCRIPTOR
|
---|
1821 | Revision As Byte
|
---|
1822 | Sbz1 As Byte
|
---|
1823 | Control As SECURITY_DESCRIPTOR_CONTROL
|
---|
1824 | Owner As PSID
|
---|
1825 | Group As PSID
|
---|
1826 | Sacl As PACL
|
---|
1827 | Dacl As PACL
|
---|
1828 | End Type
|
---|
1829 | TypeDef PSECURITY_DESCRIPTOR = *SECURITY_DESCRIPTOR
|
---|
1830 |
|
---|
1831 | Type OBJECT_TYPE_LIST
|
---|
1832 | Level As Word
|
---|
1833 | Sbz As Word
|
---|
1834 | ObjectType As *GUID
|
---|
1835 | End Type
|
---|
1836 | TypeDef POBJECT_TYPE_LIST = *OBJECT_TYPE_LIST
|
---|
1837 |
|
---|
1838 | Const ACCESS_OBJECT_GUID = 0
|
---|
1839 | Const ACCESS_PROPERTY_SET_GUID = 1
|
---|
1840 | Const ACCESS_PROPERTY_GUID = 2
|
---|
1841 |
|
---|
1842 | Const ACCESS_MAX_LEVEL = 4
|
---|
1843 |
|
---|
1844 | Const Enum AUDIT_EVENT_TYPE
|
---|
1845 | AuditEventObjectAccess,
|
---|
1846 | AuditEventDirectoryServiceAccess
|
---|
1847 | End Enum
|
---|
1848 | TypeDef PAUDIT_EVENT_TYPE = *AUDIT_EVENT_TYPE
|
---|
1849 |
|
---|
1850 | Const AUDIT_ALLOW_NO_PRIVILEGE = &h1
|
---|
1851 |
|
---|
1852 | 'Const ACCESS_DS_SOURCE_A = "DS"
|
---|
1853 | 'Const ACCESS_DS_SOURCE_W = L"DS"
|
---|
1854 | 'Const ACCESS_DS_OBJECT_TYPE_NAME_A = "Directory Service Object"
|
---|
1855 | 'Const ACCESS_DS_OBJECT_TYPE_NAME_W = L"Directory Service Object"
|
---|
1856 | Const ACCESS_DS_SOURCE = "DS"
|
---|
1857 | Const ACCESS_DS_OBJECT_TYPE_NAME = "Directory Service Object"
|
---|
1858 |
|
---|
1859 | Const SE_PRIVILEGE_ENABLED_BY_DEFAULT = (&h00000001)
|
---|
1860 | Const SE_PRIVILEGE_ENABLED = (&h00000002)
|
---|
1861 | Const SE_PRIVILEGE_REMOVED = (&h00000004)
|
---|
1862 | Const SE_PRIVILEGE_USED_FOR_ACCESS = (&h80000000)
|
---|
1863 |
|
---|
1864 | Const SE_PRIVILEGE_VALID_ATTRIBUTES = (SE_PRIVILEGE_ENABLED_BY_DEFAULT Or SE_PRIVILEGE_ENABLED Or SE_PRIVILEGE_REMOVED Or SE_PRIVILEGE_USED_FOR_ACCESS)
|
---|
1865 |
|
---|
1866 | Const PRIVILEGE_SET_ALL_NECESSARY = (1)
|
---|
1867 |
|
---|
1868 | Type PRIVILEGE_SET
|
---|
1869 | PrivilegeCount As DWord
|
---|
1870 | Control As DWord
|
---|
1871 | Privilege[ELM(ANYSIZE_ARRAY)] As LUID_AND_ATTRIBUTES
|
---|
1872 | End Type
|
---|
1873 | TypeDef PPRIVILEGE_SET = *PRIVILEGE_SET
|
---|
1874 |
|
---|
1875 | ' NT Defined Privileges
|
---|
1876 | Const SE_CREATE_TOKEN_NAME = "SeCreateTokenPrivilege"
|
---|
1877 | Const SE_ASSIGNPRIMARYTOKEN_NAME = "SeAssignPrimaryTokenPrivilege"
|
---|
1878 | Const SE_LOCK_MEMORY_NAME = "SeLockMemoryPrivilege"
|
---|
1879 | Const SE_INCREASE_QUOTA_NAME = "SeIncreaseQuotaPrivilege"
|
---|
1880 | Const SE_UNSOLICITED_INPUT_NAME = "SeUnsolicitedInputPrivilege"
|
---|
1881 | Const SE_MACHINE_ACCOUNT_NAME = "SeMachineAccountPrivilege"
|
---|
1882 | Const SE_TCB_NAME = "SeTcbPrivilege"
|
---|
1883 | Const SE_SECURITY_NAME = "SeSecurityPrivilege"
|
---|
1884 | Const SE_TAKE_OWNERSHIP_NAME = "SeTakeOwnershipPrivilege"
|
---|
1885 | Const SE_LOAD_DRIVER_NAME = "SeLoadDriverPrivilege"
|
---|
1886 | Const SE_SYSTEM_PROFILE_NAME = "SeSystemProfilePrivilege"
|
---|
1887 | Const SE_SYSTEMTIME_NAME = "SeSystemtimePrivilege"
|
---|
1888 | Const SE_PROF_SINGLE_PROCESS_NAME = "SeProfileSingleProcessPrivilege"
|
---|
1889 | Const SE_INC_BASE_PRIORITY_NAME = "SeIncreaseBasePriorityPrivilege"
|
---|
1890 | Const SE_CREATE_PAGEFILE_NAME = "SeCreatePagefilePrivilege"
|
---|
1891 | Const SE_CREATE_PERMANENT_NAME = "SeCreatePermanentPrivilege"
|
---|
1892 | Const SE_BACKUP_NAME = "SeBackupPrivilege"
|
---|
1893 | Const SE_RESTORE_NAME = "SeRestorePrivilege"
|
---|
1894 | Const SE_SHUTDOWN_NAME = "SeShutdownPrivilege"
|
---|
1895 | Const SE_DEBUG_NAME = "SeDebugPrivilege"
|
---|
1896 | Const SE_AUDIT_NAME = "SeAuditPrivilege"
|
---|
1897 | Const SE_SYSTEM_ENVIRONMENT_NAME = "SeSystemEnvironmentPrivilege"
|
---|
1898 | Const SE_CHANGE_NOTIFY_NAME = "SeChangeNotifyPrivilege"
|
---|
1899 | Const SE_REMOTE_SHUTDOWN_NAME = "SeRemoteShutdownPrivilege"
|
---|
1900 | Const SE_UNDOCK_NAME = "SeUndockPrivilege"
|
---|
1901 | Const SE_SYNC_AGENT_NAME = "SeSyncAgentPrivilege"
|
---|
1902 | Const SE_ENABLE_DELEGATION_NAME = "SeEnableDelegationPrivilege"
|
---|
1903 | Const SE_MANAGE_VOLUME_NAME = "SeManageVolumePrivilege"
|
---|
1904 | Const SE_IMPERSONATE_NAME = "SeImpersonatePrivilege"
|
---|
1905 | Const SE_CREATE_GLOBAL_NAME = "SeCreateGlobalPrivilege"
|
---|
1906 | Const SE_TRUSTED_CREDMAN_ACCESS_NAME = "SeTrustedCredManAccessPrivilege"
|
---|
1907 | Const SE_RELABEL_NAME = "SeRelabelPrivilege"
|
---|
1908 | Const SE_INC_WORKING_SET_NAME = "SeIncreaseWorkingSetPrivilege"
|
---|
1909 | Const SE_TIME_ZONE_NAME = "SeTimeZonePrivilege"
|
---|
1910 | Const SE_CREATE_SYMBOLIC_LINK_NAME = "SeCreateSymbolicLinkPrivilege"
|
---|
1911 |
|
---|
1912 | ' Security Quality Of Service
|
---|
1913 | Const Enum SECURITY_IMPERSONATION_LEVEL
|
---|
1914 | SecurityAnonymous
|
---|
1915 | SecurityIdentification
|
---|
1916 | SecurityImpersonation
|
---|
1917 | SecurityDelegation
|
---|
1918 | End Enum
|
---|
1919 | TypeDef PSECURITY_IMPERSONATION_LEVEL = *SECURITY_IMPERSONATION_LEVEL
|
---|
1920 |
|
---|
1921 | Const SECURITY_MAX_IMPERSONATION_LEVEL = SecurityDelegation
|
---|
1922 | Const SECURITY_MIN_IMPERSONATION_LEVEL = SecurityAnonymous
|
---|
1923 | Const DEFAULT_IMPERSONATION_LEVEL = SecurityImpersonation
|
---|
1924 | Const VALID_IMPERSONATION_LEVEL(L) = (((L) >= SECURITY_MIN_IMPERSONATION_LEVEL) And ((L) <= SECURITY_MAX_IMPERSONATION_LEVEL))
|
---|
1925 |
|
---|
1926 | ' Token Object Definitions
|
---|
1927 |
|
---|
1928 | ' Token Specific Access Rights.
|
---|
1929 | Const TOKEN_ASSIGN_PRIMARY = (&h0001)
|
---|
1930 | Const TOKEN_DUPLICATE = (&h0002)
|
---|
1931 | Const TOKEN_IMPERSONATE = (&h0004)
|
---|
1932 | Const TOKEN_QUERY = (&h0008)
|
---|
1933 | Const TOKEN_QUERY_SOURCE = (&h0010)
|
---|
1934 | Const TOKEN_ADJUST_PRIVILEGES = (&h0020)
|
---|
1935 | Const TOKEN_ADJUST_GROUPS = (&h0040)
|
---|
1936 | Const TOKEN_ADJUST_DEFAULT = (&h0080)
|
---|
1937 | Const TOKEN_ADJUST_SESSIONID = (&h0100)
|
---|
1938 |
|
---|
1939 | Const TOKEN_ALL_ACCESS_P = (STANDARD_RIGHTS_REQUIRED Or TOKEN_ASSIGN_PRIMARY Or TOKEN_DUPLICATE Or TOKEN_IMPERSONATE Or TOKEN_QUERY Or TOKEN_QUERY_SOURCE Or TOKEN_ADJUST_PRIVILEGES Or TOKEN_ADJUST_GROUPS Or TOKEN_ADJUST_DEFAULT)
|
---|
1940 | '#if ((defined(_WIN32_WINNT) And (_WIN32_WINNT > &h0400)) Or (!defined(_WIN32_WINNT)))
|
---|
1941 | Const TOKEN_ALL_ACCESS = (TOKEN_ALL_ACCESS_P Or TOKEN_ADJUST_SESSIONID)
|
---|
1942 | '#else
|
---|
1943 | 'Const TOKEN_ALL_ACCESS = (TOKEN_ALL_ACCESS_P)
|
---|
1944 | '#endif
|
---|
1945 | Const TOKEN_READ = (STANDARD_RIGHTS_READ Or TOKEN_QUERY)
|
---|
1946 | Const TOKEN_WRITE = (STANDARD_RIGHTS_WRITE Or TOKEN_ADJUST_PRIVILEGES Or TOKEN_ADJUST_GROUPS Or TOKEN_ADJUST_DEFAULT)
|
---|
1947 | Const TOKEN_EXECUTE = (STANDARD_RIGHTS_EXECUTE)
|
---|
1948 |
|
---|
1949 | ' Token Types
|
---|
1950 | Const Enum TOKEN_TYPE
|
---|
1951 | TokenPrimary = 1
|
---|
1952 | TokenImpersonation
|
---|
1953 | End Enum
|
---|
1954 | TypeDef PTOKEN_TYPE = *TOKEN_TYPE
|
---|
1955 |
|
---|
1956 | Const Enum TOKEN_ELEVATION_TYPE
|
---|
1957 | TokenElevationTypeDefault = 1
|
---|
1958 | TokenElevationTypeFull
|
---|
1959 | TokenElevationTypeLimited
|
---|
1960 | End Enum
|
---|
1961 | TypeDef PTOKEN_ELEVATION_TYPE = TOKEN_ELEVATION_TYPE
|
---|
1962 |
|
---|
1963 | ' Token Information Classes.
|
---|
1964 | Const Enum TOKEN_INFORMATION_CLASS
|
---|
1965 | TokenUser = 1
|
---|
1966 | TokenGroups
|
---|
1967 | TokenPrivileges
|
---|
1968 | TokenOwner
|
---|
1969 | TokenPrimaryGroup
|
---|
1970 | TokenDefaultDacl
|
---|
1971 | TokenSource
|
---|
1972 | TokenType
|
---|
1973 | TokenImpersonationLevel
|
---|
1974 | TokenStatistics
|
---|
1975 | TokenRestrictedSids
|
---|
1976 | TokenSessionId
|
---|
1977 | TokenGroupsAndPrivileges
|
---|
1978 | TokenSessionReference
|
---|
1979 | TokenSandBoxInert
|
---|
1980 | TokenAuditPolicy
|
---|
1981 | TokenOrigin
|
---|
1982 | TokenElevationType
|
---|
1983 | TokenLinkedToken
|
---|
1984 | TokenElevation
|
---|
1985 | TokenHasRestrictions
|
---|
1986 | TokenAccessInformation
|
---|
1987 | TokenVirtualizationAllowed
|
---|
1988 | TokenVirtualizationEnabled
|
---|
1989 | TokenIntegrityLevel
|
---|
1990 | TokenUIAccess
|
---|
1991 | TokenMandatoryPolicy
|
---|
1992 | TokenLogonSid
|
---|
1993 | MaxTokenInfoClass
|
---|
1994 | End Enum
|
---|
1995 | TypeDef PTOKEN_INFORMATION_CLASS = TOKEN_INFORMATION_CLASS
|
---|
1996 |
|
---|
1997 | Type TOKEN_USER
|
---|
1998 | User As SID_AND_ATTRIBUTES
|
---|
1999 | End Type
|
---|
2000 | TypeDef PTOKEN_USER = *TOKEN_USER
|
---|
2001 |
|
---|
2002 | Type TOKEN_GROUPS
|
---|
2003 | GroupCount As DWord
|
---|
2004 | Groups[ELM(ANYSIZE_ARRAY)] As SID_AND_ATTRIBUTES
|
---|
2005 | End Type
|
---|
2006 | TypeDef PTOKEN_GROUPS = *TOKEN_GROUPS
|
---|
2007 |
|
---|
2008 | Type TOKEN_PRIVILEGES
|
---|
2009 | PrivilegeCount As DWord
|
---|
2010 | Privileges[ELM(ANYSIZE_ARRAY)] As LUID_AND_ATTRIBUTES
|
---|
2011 | End Type
|
---|
2012 | TypeDef PTOKEN_PRIVILEGES = *TOKEN_PRIVILEGES
|
---|
2013 |
|
---|
2014 | Type TOKEN_OWNER
|
---|
2015 | Owner As PSID
|
---|
2016 | End Type
|
---|
2017 | TypeDef PTOKEN_OWNER = TOKEN_OWNER
|
---|
2018 |
|
---|
2019 | Type TOKEN_PRIMARY_GROUP
|
---|
2020 | PrimaryGroup As PSID
|
---|
2021 | End Type
|
---|
2022 | TypeDef PTOKEN_PRIMARY_GROUP = TOKEN_PRIMARY_GROUP
|
---|
2023 |
|
---|
2024 | Type TOKEN_DEFAULT_DACL
|
---|
2025 | DefaultDacl As PACL
|
---|
2026 | End Type
|
---|
2027 | TypeDef PTOKEN_DEFAULT_DACL = *TOKEN_DEFAULT_DACL
|
---|
2028 |
|
---|
2029 | Type TOKEN_GROUPS_AND_PRIVILEGES
|
---|
2030 | SidCount As DWord
|
---|
2031 | SidLength As DWord
|
---|
2032 | Sids As PSID_AND_ATTRIBUTES
|
---|
2033 | RestrictedSidCount As DWord
|
---|
2034 | RestrictedSidLength As DWord
|
---|
2035 | RestrictedSids As PSID_AND_ATTRIBUTES
|
---|
2036 | PrivilegeCount As DWord
|
---|
2037 | PrivilegeLength As DWord
|
---|
2038 | Privileges As VoidPtr 'PLUID_AND_ATTRIBUTES
|
---|
2039 | AuthenticationId As LUID
|
---|
2040 | End Type
|
---|
2041 | TypeDef PTOKEN_GROUPS_AND_PRIVILEGES = *TOKEN_GROUPS_AND_PRIVILEGES
|
---|
2042 |
|
---|
2043 | Type TOKEN_LINKED_TOKEN
|
---|
2044 | LinkedToken As HANDLE
|
---|
2045 | End Type
|
---|
2046 | TypeDef PTOKEN_LINKED_TOKEN = *TOKEN_LINKED_TOKEN
|
---|
2047 |
|
---|
2048 | Type TOKEN_ELEVATION
|
---|
2049 | TokenIsElevated As DWord
|
---|
2050 | End Type
|
---|
2051 | TypeDef PTOKEN_ELEVATION = *TOKEN_ELEVATION
|
---|
2052 |
|
---|
2053 | Type TOKEN_MANDATORY_LABEL
|
---|
2054 | Label As SID_AND_ATTRIBUTES
|
---|
2055 | End Type
|
---|
2056 | TypeDef PTOKEN_MANDATORY_LABEL = *TOKEN_MANDATORY_LABEL
|
---|
2057 |
|
---|
2058 | Const TOKEN_MANDATORY_POLICY_OFF = &h0
|
---|
2059 | Const TOKEN_MANDATORY_POLICY_NO_WRITE_UP = &h1
|
---|
2060 | Const TOKEN_MANDATORY_POLICY_NEW_PROCESS_MIN = &h2
|
---|
2061 |
|
---|
2062 | Const TOKEN_MANDATORY_POLICY_VALID_MASK = (TOKEN_MANDATORY_POLICY_NO_WRITE_UP Or TOKEN_MANDATORY_POLICY_NEW_PROCESS_MIN)
|
---|
2063 |
|
---|
2064 | Type TOKEN_MANDATORY_POLICY
|
---|
2065 | Policy As DWord
|
---|
2066 | End Type
|
---|
2067 | TypeDef PTOKEN_MANDATORY_POLICY = *TOKEN_MANDATORY_POLICY
|
---|
2068 |
|
---|
2069 | Type TOKEN_ACCESS_INFORMATION
|
---|
2070 | SidHash As PSID_AND_ATTRIBUTES_HASH
|
---|
2071 | RestrictedSidHash As PSID_AND_ATTRIBUTES_HASH
|
---|
2072 | Privileges As PTOKEN_PRIVILEGES
|
---|
2073 | AuthenticationId As LUID
|
---|
2074 | TokenType As TOKEN_TYPE
|
---|
2075 | ImpersonationLevel As SECURITY_IMPERSONATION_LEVEL
|
---|
2076 | MandatoryPolicy As TOKEN_MANDATORY_POLICY
|
---|
2077 | Flags As DWord
|
---|
2078 | End Type
|
---|
2079 | TypeDef PTOKEN_ACCESS_INFORMATION = *TOKEN_ACCESS_INFORMATION
|
---|
2080 |
|
---|
2081 | Const POLICY_AUDIT_SUBCATEGORY_COUNT = (50)
|
---|
2082 |
|
---|
2083 | Type TOKEN_AUDIT_POLICY
|
---|
2084 | PerUserPolicy[ELM(((POLICY_AUDIT_SUBCATEGORY_COUNT) >> 1) + 1)] As Byte
|
---|
2085 | End Type
|
---|
2086 | TypeDef PTOKEN_AUDIT_POLICY = TOKEN_AUDIT_POLICY
|
---|
2087 |
|
---|
2088 | Const TOKEN_SOURCE_LENGTH = 8
|
---|
2089 |
|
---|
2090 | Type TOKEN_SOURCE
|
---|
2091 | SourceName[ELM(TOKEN_SOURCE_LENGTH)] As CHAR
|
---|
2092 | SourceIdentifier As LUID
|
---|
2093 | End Type
|
---|
2094 | TypeDef PTOKEN_SOURCE = *TOKEN_SOURCE
|
---|
2095 |
|
---|
2096 | Type TOKEN_STATISTICS
|
---|
2097 | TokenId As LUID
|
---|
2098 | AuthenticationId As LUID
|
---|
2099 | ExpirationTime As LARGE_INTEGER
|
---|
2100 | TokenType As TOKEN_TYPE
|
---|
2101 | ImpersonationLevel As SECURITY_IMPERSONATION_LEVEL
|
---|
2102 | DynamicCharged As DWord
|
---|
2103 | DynamicAvailable As DWord
|
---|
2104 | GroupCount As DWord
|
---|
2105 | PrivilegeCount As DWord
|
---|
2106 | ModifiedId As LUID
|
---|
2107 | End Type
|
---|
2108 | TypeDef PTOKEN_STATISTICS = *TOKEN_STATISTICS
|
---|
2109 |
|
---|
2110 | Type TOKEN_CONTROL
|
---|
2111 | TokenId As LUID
|
---|
2112 | AuthenticationId As LUID
|
---|
2113 | ModifiedId As LUID
|
---|
2114 | TokenSource As TOKEN_SOURCE
|
---|
2115 | End Type
|
---|
2116 | TypeDef PTOKEN_CONTROL = *TOKEN_CONTROL
|
---|
2117 |
|
---|
2118 | Type TOKEN_ORIGIN
|
---|
2119 | OriginatingLogonSession As LUID
|
---|
2120 | End Type
|
---|
2121 | TypeDef PTOKEN_ORIGIN = *TOKEN_ORIGIN
|
---|
2122 |
|
---|
2123 | Const Enum MANDATORY_LEVEL
|
---|
2124 | MandatoryLevelUntrusted = 0
|
---|
2125 | MandatoryLevelLow
|
---|
2126 | MandatoryLevelMedium
|
---|
2127 | MandatoryLevelHigh
|
---|
2128 | MandatoryLevelSystem
|
---|
2129 | MandatoryLevelSecureProcess
|
---|
2130 | MandatoryLevelCount
|
---|
2131 | End Enum
|
---|
2132 | TypeDef PMANDATORY_LEVEL = *MANDATORY_LEVEL
|
---|
2133 |
|
---|
2134 | Const SECURITY_DYNAMIC_TRACKING = (TRUE)
|
---|
2135 | Const SECURITY_STATIC_TRACKING = (FALSE)
|
---|
2136 |
|
---|
2137 | TypeDef SECURITY_CONTEXT_TRACKING_MODE = BOOLEAN
|
---|
2138 | TypeDef PSECURITY_CONTEXT_TRACKING_MODE = *BOOLEAN
|
---|
2139 |
|
---|
2140 | Type SECURITY_QUALITY_OF_SERVICE
|
---|
2141 | Length As DWord
|
---|
2142 | ImpersonationLevel As SECURITY_IMPERSONATION_LEVEL
|
---|
2143 | ContextTrackingMode As SECURITY_CONTEXT_TRACKING_MODE
|
---|
2144 | EffectiveOnly As BOOLEAN
|
---|
2145 | End Type
|
---|
2146 | TypeDef PSECURITY_QUALITY_OF_SERVICE = *SECURITY_QUALITY_OF_SERVICE
|
---|
2147 |
|
---|
2148 | Type SE_IMPERSONATION_STATE
|
---|
2149 | Token As PACCESS_TOKEN
|
---|
2150 | CopyOnOpen As BOOLEAN
|
---|
2151 | EffectiveOnly As BOOLEAN
|
---|
2152 | Level As SECURITY_IMPERSONATION_LEVEL
|
---|
2153 | End Type
|
---|
2154 | TypeDef PSE_IMPERSONATION_STATE = *SE_IMPERSONATION_STATE
|
---|
2155 |
|
---|
2156 | Const DISABLE_MAX_PRIVILEGE = &h1
|
---|
2157 | Const SANDBOX_INERT = &h2
|
---|
2158 | Const LUA_TOKEN = &h4
|
---|
2159 | Const WRITE_RESTRICTED = &h8
|
---|
2160 |
|
---|
2161 | TypeDef SECURITY_INFORMATION = DWord
|
---|
2162 | TypeDef PSECURITY_INFORMATION = *DWord
|
---|
2163 |
|
---|
2164 | Const OWNER_SECURITY_INFORMATION = (&h00000001)
|
---|
2165 | Const GROUP_SECURITY_INFORMATION = (&h00000002)
|
---|
2166 | Const DACL_SECURITY_INFORMATION = (&h00000004)
|
---|
2167 | Const SACL_SECURITY_INFORMATION = (&h00000008)
|
---|
2168 | Const LABEL_SECURITY_INFORMATION = (&h00000010)
|
---|
2169 |
|
---|
2170 | Const PROTECTED_DACL_SECURITY_INFORMATION = (&h80000000)
|
---|
2171 | Const PROTECTED_SACL_SECURITY_INFORMATION = (&h40000000)
|
---|
2172 | Const UNPROTECTED_DACL_SECURITY_INFORMATION = (&h20000000)
|
---|
2173 | Const UNPROTECTED_SACL_SECURITY_INFORMATION = (&h10000000)
|
---|
2174 |
|
---|
2175 | Const PROCESS_TERMINATE = (&h0001)
|
---|
2176 | Const PROCESS_CREATE_THREAD = (&h0002)
|
---|
2177 | Const PROCESS_SET_SESSIONID = (&h0004)
|
---|
2178 | Const PROCESS_VM_OPERATION = (&h0008)
|
---|
2179 | Const PROCESS_VM_READ = (&h0010)
|
---|
2180 | Const PROCESS_VM_WRITE = (&h0020)
|
---|
2181 | Const PROCESS_DUP_HANDLE = (&h0040)
|
---|
2182 | Const PROCESS_CREATE_PROCESS = (&h0080)
|
---|
2183 | Const PROCESS_SET_QUOTA = (&h0100)
|
---|
2184 | Const PROCESS_SET_INFORMATION = (&h0200)
|
---|
2185 | Const PROCESS_QUERY_INFORMATION = (&h0400)
|
---|
2186 | Const PROCESS_SUSPEND_RESUME = (&h0800)
|
---|
2187 | Const PROCESS_QUERY_LIMITED_INFORMATION = (&h1000)
|
---|
2188 | '#if (NTDDI_VERSION >= NTDDI_LONGHORN)
|
---|
2189 | 'Const PROCESS_ALL_ACCESS = (STANDARD_RIGHTS_REQUIRED Or SYNCHRONIZE Or &hFFFF)
|
---|
2190 | '#else
|
---|
2191 | Const PROCESS_ALL_ACCESS = (STANDARD_RIGHTS_REQUIRED Or SYNCHRONIZE Or &hFFF)
|
---|
2192 | '#endif
|
---|
2193 |
|
---|
2194 | #ifdef _WIN64
|
---|
2195 | Const MAXIMUM_PROCESSORS = 64
|
---|
2196 | #else
|
---|
2197 | Const MAXIMUM_PROCESSORS = 32
|
---|
2198 | #endif
|
---|
2199 |
|
---|
2200 | Const THREAD_TERMINATE = (&h0001)
|
---|
2201 | Const THREAD_SUSPEND_RESUME = (&h0002)
|
---|
2202 | Const THREAD_GET_CONTEXT = (&h0008)
|
---|
2203 | Const THREAD_SET_CONTEXT = (&h0010)
|
---|
2204 | Const THREAD_QUERY_INFORMATION = (&h0040)
|
---|
2205 | Const THREAD_SET_INFORMATION = (&h0020)
|
---|
2206 | Const THREAD_SET_THREAD_TOKEN = (&h0080)
|
---|
2207 | Const THREAD_IMPERSONATE = (&h0100)
|
---|
2208 | Const THREAD_DIRECT_IMPERSONATION = (&h0200)
|
---|
2209 | Const THREAD_SET_LIMITED_INFORMATION = (&h0400)
|
---|
2210 | Const THREAD_QUERY_LIMITED_INFORMATION = (&h0800)
|
---|
2211 | '#if (NTDDI_VERSION >= NTDDI_LONGHORN)
|
---|
2212 | 'Const THREAD_ALL_ACCESS = (STANDARD_RIGHTS_REQUIRED Or SYNCHRONIZE Or &hFFFF)
|
---|
2213 | '#else
|
---|
2214 | Const THREAD_ALL_ACCESS = (STANDARD_RIGHTS_REQUIRED Or SYNCHRONIZE Or &h3FF)
|
---|
2215 | '#endif
|
---|
2216 | Const JOB_OBJECT_ASSIGN_PROCESS = (&h0001)
|
---|
2217 | Const JOB_OBJECT_SET_ATTRIBUTES = (&h0002)
|
---|
2218 | Const JOB_OBJECT_QUERY = (&h0004)
|
---|
2219 | Const JOB_OBJECT_TERMINATE = (&h0008)
|
---|
2220 | Const JOB_OBJECT_SET_SECURITY_ATTRIBUTES = (&h0010)
|
---|
2221 | Const JOB_OBJECT_ALL_ACCESS = (STANDARD_RIGHTS_REQUIRED Or SYNCHRONIZE Or &h1F)
|
---|
2222 |
|
---|
2223 | Type JOB_SET_ARRAY
|
---|
2224 | JobHandle As HANDLE
|
---|
2225 | MemberLevel As DWord
|
---|
2226 | Flags As DWord
|
---|
2227 | End Type
|
---|
2228 | TypeDef PJOB_SET_ARRAY = *JOB_SET_ARRAY
|
---|
2229 |
|
---|
2230 | Const FLS_MAXIMUM_AVAILABLE = 128
|
---|
2231 | Const TLS_MINIMUM_AVAILABLE = 64
|
---|
2232 |
|
---|
2233 | Type NT_TIB
|
---|
2234 | ExceptionList As VoidPtr '*EXCEPTION_REGISTRATION_RECORD
|
---|
2235 | StackBase As PVOID
|
---|
2236 | StackLimit As PVOID
|
---|
2237 | SubSystemTib As PVOID
|
---|
2238 | ' Union
|
---|
2239 | FiberData As PVOID
|
---|
2240 | ' Version As DWord
|
---|
2241 | ' End Union
|
---|
2242 | PVOID ArbitraryUserPointer As PVOID
|
---|
2243 | Self As *NT_TIB
|
---|
2244 | End Type
|
---|
2245 | TypeDef PNT_TIB = *NT_TIB
|
---|
2246 |
|
---|
2247 | Type NT_TIB32
|
---|
2248 | ExceptionList As DWord
|
---|
2249 | StackBase As DWord
|
---|
2250 | StackLimit As DWord
|
---|
2251 | SubSystemTib As DWord
|
---|
2252 | ' Union
|
---|
2253 | FiberData As DWord
|
---|
2254 | ' Version As DWord
|
---|
2255 | ' End Union
|
---|
2256 | ArbitraryUserPointer As DWord
|
---|
2257 | Self As DWord
|
---|
2258 | End Type
|
---|
2259 | TypeDef PNT_TIB32 = *NT_TIB32
|
---|
2260 |
|
---|
2261 | Type NT_TIB64
|
---|
2262 | ExceptionList As QWord
|
---|
2263 | StackBase As QWord
|
---|
2264 | StackLimit As QWord
|
---|
2265 | SubSystemTib As QWord
|
---|
2266 | ' Union
|
---|
2267 | FiberData As QWord
|
---|
2268 | ' Version As QWord
|
---|
2269 | ' End Union
|
---|
2270 | ArbitraryUserPointer As QWord
|
---|
2271 | Self As QWord
|
---|
2272 | End Type
|
---|
2273 | TypeDef PNT_TIB64 = *NT_TIB64
|
---|
2274 |
|
---|
2275 | Const THREAD_BASE_PRIORITY_LOWRT = 15
|
---|
2276 | Const THREAD_BASE_PRIORITY_MAX = 2
|
---|
2277 | Const THREAD_BASE_PRIORITY_MIN = (-2)
|
---|
2278 | Const THREAD_BASE_PRIORITY_IDLE = (-15)
|
---|
2279 |
|
---|
2280 | Type QUOTA_LIMITS
|
---|
2281 | PagedPoolLimit As SIZE_T
|
---|
2282 | NonPagedPoolLimit As SIZE_T
|
---|
2283 | MinimumWorkingSetSize As SIZE_T
|
---|
2284 | MaximumWorkingSetSize As SIZE_T
|
---|
2285 | PagefileLimit As SIZE_T
|
---|
2286 | TimeLimit As LARGE_INTEGER
|
---|
2287 | End Type
|
---|
2288 | TypeDef PQUOTA_LIMITS = *QUOTA_LIMITS
|
---|
2289 |
|
---|
2290 | Const QUOTA_LIMITS_HARDWS_MIN_ENABLE = &h00000001
|
---|
2291 | Const QUOTA_LIMITS_HARDWS_MIN_DISABLE = &h00000002
|
---|
2292 | Const QUOTA_LIMITS_HARDWS_MAX_ENABLE = &h00000004
|
---|
2293 | Const QUOTA_LIMITS_HARDWS_MAX_DISABLE = &h00000008
|
---|
2294 | Const QUOTA_LIMITS_USE_DEFAULT_LIMITS = &h00000010
|
---|
2295 |
|
---|
2296 | Const PS_RATE_PHASE_BITS = 4
|
---|
2297 | Const PS_RATE_PHASE_MASK = ((1 As DWord << PS_RATE_PHASE_BITS) - 1)
|
---|
2298 |
|
---|
2299 | Const Enum PS_RATE_PHASE
|
---|
2300 | PsRateOneSecond = 0
|
---|
2301 | PsRateTwoSecond
|
---|
2302 | PsRateThreeSecond
|
---|
2303 | PsRateMaxPhase
|
---|
2304 | End Enum
|
---|
2305 |
|
---|
2306 | Type RATE_QUOTA_LIMIT
|
---|
2307 | RateData As DWord
|
---|
2308 | dummy As DWord
|
---|
2309 | ' Type
|
---|
2310 | ' DWORD RatePhase : PS_RATE_PHASE_BITS;
|
---|
2311 | ' DWORD RatePercent : 28;
|
---|
2312 | ' End Type
|
---|
2313 | End Type
|
---|
2314 | TypeDef PRATE_QUOTA_LIMIT = *RATE_QUOTA_LIMIT
|
---|
2315 |
|
---|
2316 | '#if !defined(SORTPP_PASS) && !defined(MIDL_PASS) && !defined(RC_INVOKED) && defined(_WIN64) && !defined(_X86AMD64_)
|
---|
2317 | 'C_ASSERT (sizeof (DWORD) * 8 - PS_RATE_PHASE_BITS == 28);
|
---|
2318 | '#endif
|
---|
2319 |
|
---|
2320 | Type QUOTA_LIMITS_EX
|
---|
2321 | PagedPoolLimit As SIZE_T
|
---|
2322 | NonPagedPoolLimit As SIZE_T
|
---|
2323 | MinimumWorkingSetSize As SIZE_T
|
---|
2324 | MaximumWorkingSetSize As SIZE_T
|
---|
2325 | PagefileLimit As SIZE_T
|
---|
2326 | TimeLimit As LARGE_INTEGER
|
---|
2327 | WorkingSetLimit As SIZE_T
|
---|
2328 | Reserved2 As SIZE_T
|
---|
2329 | Reserved3 As SIZE_T
|
---|
2330 | Reserved4 As SIZE_T
|
---|
2331 | Flags As DWord
|
---|
2332 | CpuRateLimit As RATE_QUOTA_LIMIT
|
---|
2333 | End Type
|
---|
2334 | TypeDef PQUOTA_LIMITS_EX = *QUOTA_LIMITS_EX
|
---|
2335 |
|
---|
2336 | Type IO_COUNTERS
|
---|
2337 | ReadOperationCount As QWord
|
---|
2338 | WriteOperationCount As QWord
|
---|
2339 | OtherOperationCount As QWord
|
---|
2340 | ReadTransferCount As QWord
|
---|
2341 | WriteTransferCount As QWord
|
---|
2342 | OtherTransferCount As QWord
|
---|
2343 | End Type
|
---|
2344 | TypeDef PIO_COUNTERS = IO_COUNTERS
|
---|
2345 |
|
---|
2346 | Type JOBOBJECT_BASIC_ACCOUNTING_INFORMATION
|
---|
2347 | TotalUserTime As LARGE_INTEGER
|
---|
2348 | TotalKernelTime As LARGE_INTEGER
|
---|
2349 | ThisPeriodTotalUserTime As LARGE_INTEGER
|
---|
2350 | ThisPeriodTotalKernelTime As LARGE_INTEGER
|
---|
2351 | TotalPageFaultCount As DWord
|
---|
2352 | TotalProcesses As DWord
|
---|
2353 | ActiveProcesses As DWord
|
---|
2354 | TotalTerminatedProcesses As DWord
|
---|
2355 | End Type
|
---|
2356 | TypeDef PJOBOBJECT_BASIC_ACCOUNTING_INFORMATION = *JOBOBJECT_BASIC_ACCOUNTING_INFORMATION
|
---|
2357 |
|
---|
2358 | Type JOBOBJECT_BASIC_LIMIT_INFORMATION
|
---|
2359 | PerProcessUserTimeLimit As LARGE_INTEGER
|
---|
2360 | PerJobUserTimeLimit As LARGE_INTEGER
|
---|
2361 | LimitFlags As DWord
|
---|
2362 | MinimumWorkingSetSize As SIZE_T
|
---|
2363 | MaximumWorkingSetSize As SIZE_T
|
---|
2364 | ActiveProcessLimit As DWord
|
---|
2365 | Affinity As ULONG_PTR
|
---|
2366 | PriorityClass As DWord
|
---|
2367 | SchedulingClass As DWord
|
---|
2368 | End Type
|
---|
2369 | TypeDef PJOBOBJECT_BASIC_LIMIT_INFORMATION = *JOBOBJECT_BASIC_LIMIT_INFORMATION
|
---|
2370 |
|
---|
2371 | Type JOBOBJECT_EXTENDED_LIMIT_INFORMATION
|
---|
2372 | BasicLimitInformation As JOBOBJECT_BASIC_LIMIT_INFORMATION
|
---|
2373 | IoInfo As IO_COUNTERS
|
---|
2374 | ProcessMemoryLimit As SIZE_T
|
---|
2375 | JobMemoryLimitt As SIZE_T
|
---|
2376 | PeakProcessMemoryUsedt As SIZE_T
|
---|
2377 | PeakJobMemoryUsedt As SIZE_T
|
---|
2378 | End Type
|
---|
2379 | TypeDef PJOBOBJECT_EXTENDED_LIMIT_INFORMATION = *JOBOBJECT_EXTENDED_LIMIT_INFORMATION
|
---|
2380 |
|
---|
2381 | Type JOBOBJECT_BASIC_PROCESS_ID_LIST
|
---|
2382 | NumberOfAssignedProcesses As DWord
|
---|
2383 | NumberOfProcessIdsInList As DWord
|
---|
2384 | ProcessIdList[1] As ULONG_PTR
|
---|
2385 | End Type
|
---|
2386 | TypeDef PJOBOBJECT_BASIC_PROCESS_ID_LIST = *JOBOBJECT_BASIC_PROCESS_ID_LIST
|
---|
2387 |
|
---|
2388 | Type JOBOBJECT_BASIC_UI_RESTRICTIONS
|
---|
2389 | UIRestrictionsClass As DWord
|
---|
2390 | End Type
|
---|
2391 | TypeDef PJOBOBJECT_BASIC_UI_RESTRICTIONS = *JOBOBJECT_BASIC_UI_RESTRICTIONS
|
---|
2392 |
|
---|
2393 | Type JOBOBJECT_SECURITY_LIMIT_INFORMATION
|
---|
2394 | SecurityLimitFlags As DWord
|
---|
2395 | JobToken As HANDLE
|
---|
2396 | SidsToDisable As PTOKEN_GROUPS
|
---|
2397 | PrivilegesToDelete As PTOKEN_PRIVILEGES
|
---|
2398 | RestrictedSids As PTOKEN_GROUPS
|
---|
2399 | End Type
|
---|
2400 | TypeDef PJOBOBJECT_SECURITY_LIMIT_INFORMATION = *JOBOBJECT_SECURITY_LIMIT_INFORMATION
|
---|
2401 |
|
---|
2402 | Type JOBOBJECT_END_OF_JOB_TIME_INFORMATION
|
---|
2403 | EndOfJobTimeAction As DWord
|
---|
2404 | End Type
|
---|
2405 | TypeDef PJOBOBJECT_END_OF_JOB_TIME_INFORMATION = *JOBOBJECT_END_OF_JOB_TIME_INFORMATION
|
---|
2406 |
|
---|
2407 | Type JOBOBJECT_ASSOCIATE_COMPLETION_PORT
|
---|
2408 | CompletionKey As PVOID
|
---|
2409 | CompletionPort As HANDLE
|
---|
2410 | End Type
|
---|
2411 | TypeDef PJOBOBJECT_ASSOCIATE_COMPLETION_PORT = *JOBOBJECT_ASSOCIATE_COMPLETION_PORT
|
---|
2412 |
|
---|
2413 | Type JOBOBJECT_BASIC_AND_IO_ACCOUNTING_INFORMATION
|
---|
2414 | BasicInfo As JOBOBJECT_BASIC_ACCOUNTING_INFORMATION
|
---|
2415 | IoInfo As IO_COUNTERS
|
---|
2416 | End Type
|
---|
2417 | TypeDef PJOBOBJECT_BASIC_AND_IO_ACCOUNTING_INFORMATION = *JOBOBJECT_BASIC_AND_IO_ACCOUNTING_INFORMATION
|
---|
2418 |
|
---|
2419 | Type JOBOBJECT_JOBSET_INFORMATION
|
---|
2420 | MemberLevel As DWord
|
---|
2421 | End Type
|
---|
2422 | TypeDef PJOBOBJECT_JOBSET_INFORMATION = *JOBOBJECT_JOBSET_INFORMATION
|
---|
2423 |
|
---|
2424 | Const JOB_OBJECT_TERMINATE_AT_END_OF_JOB = 0
|
---|
2425 | Const JOB_OBJECT_POST_AT_END_OF_JOB = 1
|
---|
2426 |
|
---|
2427 | ' Completion Port Messages for job objects
|
---|
2428 | Const JOB_OBJECT_MSG_END_OF_JOB_TIME = 1
|
---|
2429 | Const JOB_OBJECT_MSG_END_OF_PROCESS_TIME = 2
|
---|
2430 | Const JOB_OBJECT_MSG_ACTIVE_PROCESS_LIMIT = 3
|
---|
2431 | Const JOB_OBJECT_MSG_ACTIVE_PROCESS_ZERO = 4
|
---|
2432 | Const JOB_OBJECT_MSG_NEW_PROCESS = 6
|
---|
2433 | Const JOB_OBJECT_MSG_EXIT_PROCESS = 7
|
---|
2434 | Const JOB_OBJECT_MSG_ABNORMAL_EXIT_PROCESS = 8
|
---|
2435 | Const JOB_OBJECT_MSG_PROCESS_MEMORY_LIMIT = 9
|
---|
2436 | Const JOB_OBJECT_MSG_JOB_MEMORY_LIMIT = 10
|
---|
2437 |
|
---|
2438 | ' Basic Limits
|
---|
2439 | Const JOB_OBJECT_LIMIT_WORKINGSET = &h00000001
|
---|
2440 | Const JOB_OBJECT_LIMIT_PROCESS_TIME = &h00000002
|
---|
2441 | Const JOB_OBJECT_LIMIT_JOB_TIME = &h00000004
|
---|
2442 | Const JOB_OBJECT_LIMIT_ACTIVE_PROCESS = &h00000008
|
---|
2443 | Const JOB_OBJECT_LIMIT_AFFINITY = &h00000010
|
---|
2444 | Const JOB_OBJECT_LIMIT_PRIORITY_CLASS = &h00000020
|
---|
2445 | Const JOB_OBJECT_LIMIT_PRESERVE_JOB_TIME = &h00000040
|
---|
2446 | Const JOB_OBJECT_LIMIT_SCHEDULING_CLASS = &h00000080
|
---|
2447 |
|
---|
2448 | ' Extended Limits
|
---|
2449 | Const JOB_OBJECT_LIMIT_PROCESS_MEMORY = &h00000100
|
---|
2450 | Const JOB_OBJECT_LIMIT_JOB_MEMORY = &h00000200
|
---|
2451 | Const JOB_OBJECT_LIMIT_DIE_ON_UNHANDLED_EXCEPTION = &h00000400
|
---|
2452 | Const JOB_OBJECT_LIMIT_BREAKAWAY_OK = &h00000800
|
---|
2453 | Const JOB_OBJECT_LIMIT_SILENT_BREAKAWAY_OK = &h00001000
|
---|
2454 | Const JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE = &h00002000
|
---|
2455 |
|
---|
2456 | Const JOB_OBJECT_LIMIT_RESERVED2 = &h00004000
|
---|
2457 | Const JOB_OBJECT_LIMIT_RESERVED3 = &h00008000
|
---|
2458 | Const JOB_OBJECT_LIMIT_RESERVED4 = &h00010000
|
---|
2459 | Const JOB_OBJECT_LIMIT_RESERVED5 = &h00020000
|
---|
2460 | Const JOB_OBJECT_LIMIT_RESERVED6 = &h00040000
|
---|
2461 |
|
---|
2462 |
|
---|
2463 | Const JOB_OBJECT_LIMIT_VALID_FLAGS = &h0007ffff
|
---|
2464 |
|
---|
2465 | Const JOB_OBJECT_BASIC_LIMIT_VALID_FLAGS = &h000000ff
|
---|
2466 | Const JOB_OBJECT_EXTENDED_LIMIT_VALID_FLAGS = &h00003fff
|
---|
2467 | Const JOB_OBJECT_RESERVED_LIMIT_VALID_FLAGS = &h0007ffff
|
---|
2468 |
|
---|
2469 | ' UI restrictions for jobs
|
---|
2470 | Const JOB_OBJECT_UILIMIT_NONE = &h00000000
|
---|
2471 |
|
---|
2472 | Const JOB_OBJECT_UILIMIT_HANDLES = &h00000001
|
---|
2473 | Const JOB_OBJECT_UILIMIT_READCLIPBOARD = &h00000002
|
---|
2474 | Const JOB_OBJECT_UILIMIT_WRITECLIPBOARD = &h00000004
|
---|
2475 | Const JOB_OBJECT_UILIMIT_SYSTEMPARAMETERS = &h00000008
|
---|
2476 | Const JOB_OBJECT_UILIMIT_DISPLAYSETTINGS = &h00000010
|
---|
2477 | Const JOB_OBJECT_UILIMIT_GLOBALATOMS = &h00000020
|
---|
2478 | Const JOB_OBJECT_UILIMIT_DESKTOP = &h00000040
|
---|
2479 | Const JOB_OBJECT_UILIMIT_EXITWINDOWS = &h00000080
|
---|
2480 |
|
---|
2481 | Const JOB_OBJECT_UILIMIT_ALL = &h000000FF
|
---|
2482 |
|
---|
2483 | Const JOB_OBJECT_UI_VALID_FLAGS = &h000000FF
|
---|
2484 |
|
---|
2485 | Const JOB_OBJECT_SECURITY_NO_ADMIN = &h00000001
|
---|
2486 | Const JOB_OBJECT_SECURITY_RESTRICTED_TOKEN = &h00000002
|
---|
2487 | Const JOB_OBJECT_SECURITY_ONLY_TOKEN = &h00000004
|
---|
2488 | Const JOB_OBJECT_SECURITY_FILTER_TOKENS = &h00000008
|
---|
2489 |
|
---|
2490 | Const JOB_OBJECT_SECURITY_VALID_FLAGS = &h0000000f
|
---|
2491 |
|
---|
2492 | Enum JOBOBJECTINFOCLASS
|
---|
2493 | JobObjectBasicAccountingInformation = 1
|
---|
2494 | JobObjectBasicLimitInformation
|
---|
2495 | JobObjectBasicProcessIdList
|
---|
2496 | JobObjectBasicUIRestrictions
|
---|
2497 | JobObjectSecurityLimitInformation
|
---|
2498 | JobObjectEndOfJobTimeInformation
|
---|
2499 | JobObjectAssociateCompletionPortInformation
|
---|
2500 | JobObjectBasicAndIoAccountingInformation
|
---|
2501 | JobObjectExtendedLimitInformation
|
---|
2502 | JobObjectJobSetInformation
|
---|
2503 | MaxJobObjectInfoClass
|
---|
2504 | End Enum
|
---|
2505 |
|
---|
2506 | Const EVENT_MODIFY_STATE = &h0002
|
---|
2507 | Const EVENT_ALL_ACCESS = (STANDARD_RIGHTS_REQUIRED Or SYNCHRONIZE Or &h3)
|
---|
2508 | Const MUTANT_QUERY_STATE = &h0001
|
---|
2509 |
|
---|
2510 | Const MUTANT_ALL_ACCESS = (STANDARD_RIGHTS_REQUIRED Or SYNCHRONIZE Or MUTANT_QUERY_STATE)
|
---|
2511 | Const SEMAPHORE_MODIFY_STATE = &h0002
|
---|
2512 | Const SEMAPHORE_ALL_ACCESS = (STANDARD_RIGHTS_REQUIRED Or SYNCHRONIZE Or &h3)
|
---|
2513 |
|
---|
2514 | ' Timer Specific Access Rights.
|
---|
2515 | Const TIMER_QUERY_STATE = &h0001
|
---|
2516 | Const TIMER_MODIFY_STATE = &h0002
|
---|
2517 |
|
---|
2518 | Const TIMER_ALL_ACCESS = (STANDARD_RIGHTS_REQUIRED Or SYNCHRONIZE Or TIMER_QUERY_STATE Or TIMER_MODIFY_STATE)
|
---|
2519 |
|
---|
2520 | Const TIME_ZONE_ID_UNKNOWN = 0
|
---|
2521 | Const TIME_ZONE_ID_STANDARD = 1
|
---|
2522 | Const TIME_ZONE_ID_DAYLIGHT = 2
|
---|
2523 |
|
---|
2524 | Enum LOGICAL_PROCESSOR_RELATIONSHIP
|
---|
2525 | RelationProcessorCore
|
---|
2526 | RelationNumaNode
|
---|
2527 | RelationCache
|
---|
2528 | RelationProcessorPackage
|
---|
2529 | End Enum
|
---|
2530 |
|
---|
2531 | Const LTP_PC_SMT = 1
|
---|
2532 |
|
---|
2533 | Enum PROCESSOR_CACHE_TYPE
|
---|
2534 | CacheUnified
|
---|
2535 | CacheInstruction
|
---|
2536 | CacheData
|
---|
2537 | CacheTrace
|
---|
2538 | End Enum
|
---|
2539 |
|
---|
2540 | Const CACHE_FULLY_ASSOCIATIVE = &hFF
|
---|
2541 |
|
---|
2542 | Type CACHE_DESCRIPTOR
|
---|
2543 | Level As Byte
|
---|
2544 | Associativity As Byte
|
---|
2545 | LineSize As Word
|
---|
2546 | Size As DWord
|
---|
2547 | Type_ As PROCESSOR_CACHE_TYPE
|
---|
2548 | End Type
|
---|
2549 | TypeDef PCACHE_DESCRIPTOR = *CACHE_DESCRIPTOR
|
---|
2550 |
|
---|
2551 | Type SYSTEM_LOGICAL_PROCESSOR_INFORMATION
|
---|
2552 | ProcessorMask As ULONG_PTR
|
---|
2553 | Relationship As LOGICAL_PROCESSOR_RELATIONSHIP
|
---|
2554 | ' Union
|
---|
2555 | ' struct {
|
---|
2556 | ' Flags As Byte
|
---|
2557 | ' } ProcessorCore;
|
---|
2558 | ' struct {
|
---|
2559 | ' NodeNumber As DWord
|
---|
2560 | ' } NumaNode;
|
---|
2561 | Cache As CACHE_DESCRIPTOR
|
---|
2562 | ' Reserved[ELM(2)] As ULONGLONG
|
---|
2563 | ' End Union
|
---|
2564 | End Type
|
---|
2565 | TypeDef PSYSTEM_LOGICAL_PROCESSOR_INFORMATION = *SYSTEM_LOGICAL_PROCESSOR_INFORMATION
|
---|
2566 |
|
---|
2567 | Const PROCESSOR_INTEL_386 = 386
|
---|
2568 | Const PROCESSOR_INTEL_486 = 486
|
---|
2569 | Const PROCESSOR_INTEL_PENTIUM = 586
|
---|
2570 | Const PROCESSOR_INTEL_IA64 = 2200
|
---|
2571 | Const PROCESSOR_AMD_X8664 = 8664
|
---|
2572 | Const PROCESSOR_MIPS_R4000 = 4000 ' incl R4101 & R3910 for Windows CE
|
---|
2573 | Const PROCESSOR_ALPHA_21064 = 21064
|
---|
2574 | Const PROCESSOR_PPC_601 = 601
|
---|
2575 | Const PROCESSOR_PPC_603 = 603
|
---|
2576 | Const PROCESSOR_PPC_604 = 604
|
---|
2577 | Const PROCESSOR_PPC_620 = 620
|
---|
2578 | Const PROCESSOR_HITACHI_SH3 = 10003 ' Windows CE
|
---|
2579 | Const PROCESSOR_HITACHI_SH3E = 10004 ' Windows CE
|
---|
2580 | Const PROCESSOR_HITACHI_SH4 = 10005 ' Windows CE
|
---|
2581 | Const PROCESSOR_MOTOROLA_821 = 821 ' Windows CE
|
---|
2582 | Const PROCESSOR_SHx_SH3 = 103 ' Windows CE
|
---|
2583 | Const PROCESSOR_SHx_SH4 = 104 ' Windows CE
|
---|
2584 | Const PROCESSOR_STRONGARM = 2577 ' Windows CE - 0xA11
|
---|
2585 | Const PROCESSOR_ARM720 = 1824 ' Windows CE - 0x720
|
---|
2586 | Const PROCESSOR_ARM820 = 2080 ' Windows CE - 0x820
|
---|
2587 | Const PROCESSOR_ARM920 = 2336 ' Windows CE - 0x920
|
---|
2588 | Const PROCESSOR_ARM_7TDMI = 70001 ' Windows CE
|
---|
2589 | Const PROCESSOR_OPTIL = &h494f ' MSIL
|
---|
2590 |
|
---|
2591 | Const PROCESSOR_ARCHITECTURE_INTEL = 0
|
---|
2592 | Const PROCESSOR_ARCHITECTURE_MIPS = 1
|
---|
2593 | Const PROCESSOR_ARCHITECTURE_ALPHA = 2
|
---|
2594 | Const PROCESSOR_ARCHITECTURE_PPC = 3
|
---|
2595 | Const PROCESSOR_ARCHITECTURE_SHX = 4
|
---|
2596 | Const PROCESSOR_ARCHITECTURE_ARM = 5
|
---|
2597 | Const PROCESSOR_ARCHITECTURE_IA64 = 6
|
---|
2598 | Const PROCESSOR_ARCHITECTURE_ALPHA64 = 7
|
---|
2599 | Const PROCESSOR_ARCHITECTURE_MSIL = 8
|
---|
2600 | Const PROCESSOR_ARCHITECTURE_AMD64 = 9
|
---|
2601 | Const PROCESSOR_ARCHITECTURE_IA32_ON_WIN64 = 10
|
---|
2602 |
|
---|
2603 | Const PROCESSOR_ARCHITECTURE_UNKNOWN = &hFFFF
|
---|
2604 |
|
---|
2605 | Const PF_FLOATING_POINT_PRECISION_ERRATA = 0
|
---|
2606 | Const PF_FLOATING_POINT_EMULATED = 1
|
---|
2607 | Const PF_COMPARE_EXCHANGE_DOUBLE = 2
|
---|
2608 | Const PF_MMX_INSTRUCTIONS_AVAILABLE = 3
|
---|
2609 | Const PF_PPC_MOVEMEM_64BIT_OK = 4
|
---|
2610 | Const PF_ALPHA_BYTE_INSTRUCTIONS = 5
|
---|
2611 | Const PF_XMMI_INSTRUCTIONS_AVAILABLE = 6
|
---|
2612 | Const PF_3DNOW_INSTRUCTIONS_AVAILABLE = 7
|
---|
2613 | Const PF_RDTSC_INSTRUCTION_AVAILABLE = 8
|
---|
2614 | Const PF_PAE_ENABLED = 9
|
---|
2615 | Const PF_XMMI64_INSTRUCTIONS_AVAILABLE = 10
|
---|
2616 | Const PF_SSE_DAZ_MODE_AVAILABLE = 11
|
---|
2617 | Const PF_NX_ENABLED = 12
|
---|
2618 | Const PF_SSE3_INSTRUCTIONS_AVAILABLE = 13
|
---|
2619 | Const PF_COMPARE_EXCHANGE128 = 14
|
---|
2620 | Const PF_COMPARE64_EXCHANGE128 = 15
|
---|
2621 | Const PF_CHANNELS_ENABLED = 16
|
---|
2622 |
|
---|
2623 | Type MEMORY_BASIC_INFORMATION
|
---|
2624 | BaseAddress As VoidPtr
|
---|
2625 | AllocationBase As VoidPtr
|
---|
2626 | AllocationProtect As DWord
|
---|
2627 | RegionSize As SIZE_T
|
---|
2628 | State As DWord
|
---|
2629 | Protect As DWord
|
---|
2630 | MBIType As DWord
|
---|
2631 | End Type
|
---|
2632 | TypeDef PMEMORY_BASIC_INFORMATION = *MEMORY_BASIC_INFORMATION
|
---|
2633 |
|
---|
2634 | Type MEMORY_BASIC_INFORMATION32
|
---|
2635 | BaseAddress As DWord
|
---|
2636 | AllocationBase As DWord
|
---|
2637 | AllocationProtect As DWord
|
---|
2638 | RegionSize As DWord
|
---|
2639 | State As DWord
|
---|
2640 | Protect As DWord
|
---|
2641 | Type_ As DWord
|
---|
2642 | End Type
|
---|
2643 | TypeDef PMEMORY_BASIC_INFORMATION32 = *MEMORY_BASIC_INFORMATION32
|
---|
2644 |
|
---|
2645 | Type Align(16) MEMORY_BASIC_INFORMATION64
|
---|
2646 | BaseAddress As QWord
|
---|
2647 | AllocationBase As QWord
|
---|
2648 | AllocationProtect As DWord
|
---|
2649 | __alignment1 As DWord
|
---|
2650 | RegionSize As QWord
|
---|
2651 | State As DWord
|
---|
2652 | Protect As DWord
|
---|
2653 | Type_ As DWord
|
---|
2654 | __alignment2 As DWord
|
---|
2655 | End Type
|
---|
2656 | TypeDef PMEMORY_BASIC_INFORMATION64 = *MEMORY_BASIC_INFORMATION64
|
---|
2657 |
|
---|
2658 | Const SECTION_QUERY = &h0001
|
---|
2659 | Const SECTION_MAP_WRITE = &h0002
|
---|
2660 | Const SECTION_MAP_READ = &h0004
|
---|
2661 | Const SECTION_MAP_EXECUTE = &h0008
|
---|
2662 | Const SECTION_EXTEND_SIZE = &h0010
|
---|
2663 | Const SECTION_MAP_EXECUTE_EXPLICIT = &h0020
|
---|
2664 |
|
---|
2665 | Const SECTION_ALL_ACCESS = (STANDARD_RIGHTS_REQUIRED Or SECTION_QUERY Or SECTION_MAP_WRITE Or SECTION_MAP_READ Or SECTION_MAP_EXECUTE Or SECTION_EXTEND_SIZE)
|
---|
2666 |
|
---|
2667 | Const SESSION_QUERY_ACCESS = &h0001
|
---|
2668 | Const SESSION_MODIFY_ACCESS = &h0002
|
---|
2669 |
|
---|
2670 | Const SESSION_ALL_ACCESS = (STANDARD_RIGHTS_REQUIRED Or SESSION_QUERY_ACCESS Or SESSION_MODIFY_ACCESS)
|
---|
2671 |
|
---|
2672 | Const PAGE_NOACCESS = &h01
|
---|
2673 | Const PAGE_READONLY = &h02
|
---|
2674 | Const PAGE_READWRITE = &h04
|
---|
2675 | Const PAGE_WRITECOPY = &h08
|
---|
2676 | Const PAGE_EXECUTE = &h10
|
---|
2677 | Const PAGE_EXECUTE_READ = &h20
|
---|
2678 | Const PAGE_EXECUTE_READWRITE = &h40
|
---|
2679 | Const PAGE_EXECUTE_WRITECOPY = &h80
|
---|
2680 | Const PAGE_GUARD = &h100
|
---|
2681 | Const PAGE_NOCACHE = &h200
|
---|
2682 | Const PAGE_WRITECOMBINE = &h400
|
---|
2683 | Const MEM_COMMIT = &h1000
|
---|
2684 | Const MEM_RESERVE = &h2000
|
---|
2685 | Const MEM_DECOMMIT = &h4000
|
---|
2686 | Const MEM_RELEASE = &h8000
|
---|
2687 | Const MEM_FREE = &h10000
|
---|
2688 | Const MEM_PRIVATE = &h20000
|
---|
2689 | Const MEM_MAPPED = &h40000
|
---|
2690 | Const MEM_RESET = &h80000
|
---|
2691 | Const MEM_TOP_DOWN = &h100000
|
---|
2692 | Const MEM_WRITE_WATCH = &h200000
|
---|
2693 | Const MEM_PHYSICAL = &h400000
|
---|
2694 | Const MEM_ROTATE = &h800000
|
---|
2695 | Const MEM_LARGE_PAGES = &h20000000
|
---|
2696 | Const MEM_4MB_PAGES = &h80000000
|
---|
2697 | Const SEC_FILE = &h800000
|
---|
2698 | Const SEC_IMAGE = &h1000000
|
---|
2699 | Const SEC_PROTECTED_IMAGE = &h2000000
|
---|
2700 | Const SEC_RESERVE = &h4000000
|
---|
2701 | Const SEC_COMMIT = &h8000000
|
---|
2702 | Const SEC_NOCACHE = &h10000000
|
---|
2703 | Const SEC_WRITECOMBINE = &h40000000
|
---|
2704 | Const SEC_LARGE_PAGES = &h80000000
|
---|
2705 | Const MEM_IMAGE = SEC_IMAGE
|
---|
2706 | Const WRITE_WATCH_FLAG_RESET = &h01
|
---|
2707 |
|
---|
2708 | ' Define access rights to files and directories
|
---|
2709 | Const FILE_READ_DATA = &h0001 ' file & pipe
|
---|
2710 | Const FILE_LIST_DIRECTORY = &h0001 ' directory
|
---|
2711 |
|
---|
2712 | Const FILE_WRITE_DATA = &h0002 ' file & pipe
|
---|
2713 | Const FILE_ADD_FILE = &h0002 ' directory
|
---|
2714 |
|
---|
2715 | Const FILE_APPEND_DATA = &h0004 ' file
|
---|
2716 | Const FILE_ADD_SUBDIRECTORY = &h0004 ' directory
|
---|
2717 | Const FILE_CREATE_PIPE_INSTANCE = &h0004 ' named pipe
|
---|
2718 |
|
---|
2719 |
|
---|
2720 | Const FILE_READ_EA = &h0008 ' file & directory
|
---|
2721 |
|
---|
2722 | Const FILE_WRITE_EA = &h0010 ' file & directory
|
---|
2723 |
|
---|
2724 | Const FILE_EXECUTE = &h0020 ' file
|
---|
2725 | Const FILE_TRAVERSE = &h0020 ' directory
|
---|
2726 |
|
---|
2727 | Const FILE_DELETE_CHILD = &h0040 ' directory
|
---|
2728 |
|
---|
2729 | Const FILE_READ_ATTRIBUTES = &h0080 ' all
|
---|
2730 |
|
---|
2731 | Const FILE_WRITE_ATTRIBUTES = &h0100 ' all
|
---|
2732 |
|
---|
2733 | Const FILE_ALL_ACCESS = (STANDARD_RIGHTS_REQUIRED Or SYNCHRONIZE Or &h1FF)
|
---|
2734 | Const FILE_GENERIC_READ = (STANDARD_RIGHTS_READ Or FILE_READ_DATA Or FILE_READ_ATTRIBUTES Or FILE_READ_EA Or SYNCHRONIZE)
|
---|
2735 | Const FILE_GENERIC_WRITE = (STANDARD_RIGHTS_WRITE Or FILE_WRITE_DATA Or FILE_WRITE_ATTRIBUTES Or FILE_WRITE_EA Or FILE_APPEND_DATA Or SYNCHRONIZE)
|
---|
2736 | Const FILE_GENERIC_EXECUTE = (STANDARD_RIGHTS_EXECUTE Or FILE_READ_ATTRIBUTES Or FILE_EXECUTE Or SYNCHRONIZE)
|
---|
2737 |
|
---|
2738 | Const FILE_SHARE_READ = &h00000001
|
---|
2739 | Const FILE_SHARE_WRITE = &h00000002
|
---|
2740 | Const FILE_SHARE_DELETE = &h00000004
|
---|
2741 | Const FILE_ATTRIBUTE_READONLY = &h00000001
|
---|
2742 | Const FILE_ATTRIBUTE_HIDDEN = &h00000002
|
---|
2743 | Const FILE_ATTRIBUTE_SYSTEM = &h00000004
|
---|
2744 | Const FILE_ATTRIBUTE_DIRECTORY = &h00000010
|
---|
2745 | Const FILE_ATTRIBUTE_ARCHIVE = &h00000020
|
---|
2746 | Const FILE_ATTRIBUTE_DEVICE = &h00000040
|
---|
2747 | Const FILE_ATTRIBUTE_NORMAL = &h00000080
|
---|
2748 | Const FILE_ATTRIBUTE_TEMPORARY = &h00000100
|
---|
2749 | Const FILE_ATTRIBUTE_SPARSE_FILE = &h00000200
|
---|
2750 | Const FILE_ATTRIBUTE_REPARSE_POINT = &h00000400
|
---|
2751 | Const FILE_ATTRIBUTE_COMPRESSED = &h00000800
|
---|
2752 | Const FILE_ATTRIBUTE_OFFLINE = &h00001000
|
---|
2753 | Const FILE_ATTRIBUTE_NOT_CONTENT_INDEXED = &h00002000
|
---|
2754 | Const FILE_ATTRIBUTE_ENCRYPTED = &h00004000
|
---|
2755 | Const FILE_ATTRIBUTE_VIRTUAL = &h00010000
|
---|
2756 | Const FILE_NOTIFY_CHANGE_FILE_NAME = &h00000001
|
---|
2757 | Const FILE_NOTIFY_CHANGE_DIR_NAME = &h00000002
|
---|
2758 | Const FILE_NOTIFY_CHANGE_ATTRIBUTES = &h00000004
|
---|
2759 | Const FILE_NOTIFY_CHANGE_SIZE = &h00000008
|
---|
2760 | Const FILE_NOTIFY_CHANGE_LAST_WRITE = &h00000010
|
---|
2761 | Const FILE_NOTIFY_CHANGE_LAST_ACCESS = &h00000020
|
---|
2762 | Const FILE_NOTIFY_CHANGE_CREATION = &h00000040
|
---|
2763 | Const FILE_NOTIFY_CHANGE_SECURITY = &h00000100
|
---|
2764 | Const FILE_ACTION_ADDED = &h00000001
|
---|
2765 | Const FILE_ACTION_REMOVED = &h00000002
|
---|
2766 | Const FILE_ACTION_MODIFIED = &h00000003
|
---|
2767 | Const FILE_ACTION_RENAMED_OLD_NAME = &h00000004
|
---|
2768 | Const FILE_ACTION_RENAMED_NEW_NAME = &h00000005
|
---|
2769 | Const MAILSLOT_NO_MESSAGE = (-1 As DWord)
|
---|
2770 | Const MAILSLOT_WAIT_FOREVER = (-1 As DWord)
|
---|
2771 | Const FILE_CASE_SENSITIVE_SEARCH = &h00000001
|
---|
2772 | Const FILE_CASE_PRESERVED_NAMES = &h00000002
|
---|
2773 | Const FILE_UNICODE_ON_DISK = &h00000004
|
---|
2774 | Const FILE_PERSISTENT_ACLS = &h00000008
|
---|
2775 | Const FILE_FILE_COMPRESSION = &h00000010
|
---|
2776 | Const FILE_VOLUME_QUOTAS = &h00000020
|
---|
2777 | Const FILE_SUPPORTS_SPARSE_FILES = &h00000040
|
---|
2778 | Const FILE_SUPPORTS_REPARSE_POINTS = &h00000080
|
---|
2779 | Const FILE_SUPPORTS_REMOTE_STORAGE = &h00000100
|
---|
2780 | Const FILE_VOLUME_IS_COMPRESSED = &h00008000
|
---|
2781 | Const FILE_SUPPORTS_OBJECT_IDS = &h00010000
|
---|
2782 | Const FILE_SUPPORTS_ENCRYPTION = &h00020000
|
---|
2783 | Const FILE_NAMED_STREAMS = &h00040000
|
---|
2784 | Const FILE_READ_ONLY_VOLUME = &h00080000
|
---|
2785 | Const FILE_SEQUENTIAL_WRITE_ONCE = &h00100000
|
---|
2786 | Const FILE_SUPPORTS_TRANSACTIONS = &h00200000
|
---|
2787 |
|
---|
2788 | Type FILE_NOTIFY_INFORMATION
|
---|
2789 | NextEntryOffset As DWord
|
---|
2790 | Action As DWord
|
---|
2791 | FileNameLength As DWord
|
---|
2792 | FileName[ELM(1)] As WCHAR
|
---|
2793 | End Type
|
---|
2794 | TypeDef PFILE_NOTIFY_INFORMATION = *FILE_NOTIFY_INFORMATION
|
---|
2795 |
|
---|
2796 | Type /*Union*/ FILE_SEGMENT_ELEMENT
|
---|
2797 | Buffer As PVOID64
|
---|
2798 | ' Alignment As QWord
|
---|
2799 | End Type 'Union
|
---|
2800 | TypeDef PFILE_SEGMENT_ELEMENT = *FILE_SEGMENT_ELEMENT
|
---|
2801 |
|
---|
2802 | Type REPARSE_GUID_DATA_BUFFER
|
---|
2803 | ReparseTag As DWord
|
---|
2804 | ReparseDataLength As Word
|
---|
2805 | Reserved As Word
|
---|
2806 | ReparseGuid As GUID
|
---|
2807 | ' struct {
|
---|
2808 | DataBuffer[ELM(1)] As Byte
|
---|
2809 | ' } GenericReparseBuffer;
|
---|
2810 | End Type
|
---|
2811 | TypeDef PREPARSE_GUID_DATA_BUFFER = *REPARSE_GUID_DATA_BUFFER
|
---|
2812 |
|
---|
2813 | 'Const REPARSE_GUID_DATA_BUFFER_HEADER_SIZE = FIELD_OFFSET(REPARSE_GUID_DATA_BUFFER, GenericReparseBuffer)
|
---|
2814 |
|
---|
2815 | ' Maximum allowed size of the reparse data.
|
---|
2816 | Const MAXIMUM_REPARSE_DATA_BUFFER_SIZE = (16 * 1024)
|
---|
2817 |
|
---|
2818 | ' Predefined reparse tags.
|
---|
2819 | Const IO_REPARSE_TAG_RESERVED_ZERO = 0
|
---|
2820 | Const IO_REPARSE_TAG_RESERVED_ONE = 1
|
---|
2821 |
|
---|
2822 | Const IO_REPARSE_TAG_RESERVED_RANGE = IO_REPARSE_TAG_RESERVED_ONE
|
---|
2823 |
|
---|
2824 |
|
---|
2825 | Const IsReparseTagMicrosoft(_tag) = ((_tag) And &h80000000)
|
---|
2826 | Const IsReparseTagNameSurrogate(_tag) = ((_tag) And &h0000000)
|
---|
2827 |
|
---|
2828 | Const IO_REPARSE_TAG_MOUNT_POINT = &hA0000003
|
---|
2829 | Const IO_REPARSE_TAG_HSM = &hC0000004
|
---|
2830 | Const IO_REPARSE_TAG_SIS = &h80000007
|
---|
2831 | Const IO_REPARSE_TAG_DFS = &h8000000A
|
---|
2832 | Const IO_REPARSE_TAG_SYMLINK = &hA000000C
|
---|
2833 | Const IO_REPARSE_TAG_DFSR = &h80000012
|
---|
2834 |
|
---|
2835 | Const IO_COMPLETION_MODIFY_STATE = &h0002
|
---|
2836 | Const IO_COMPLETION_ALL_ACCESS = (STANDARD_RIGHTS_REQUIRED Or SYNCHRONIZE Or &h3)
|
---|
2837 |
|
---|
2838 | Const DUPLICATE_CLOSE_SOURCE = &h00000001
|
---|
2839 | Const DUPLICATE_SAME_ACCESS = &h00000002
|
---|
2840 | /*
|
---|
2841 | ' Define GUIDs which represent well-known power schemes
|
---|
2842 |
|
---|
2843 | DEFINE_GUID( GUID_MAX_POWER_SAVINGS, 0xA1841308, 0x3541, 0x4FAB, 0xBC, 0x81, 0xF7, 0x15, 0x56, 0xF2, 0x0B, 0x4A );
|
---|
2844 | DEFINE_GUID( GUID_MIN_POWER_SAVINGS, 0x8C5E7FDA, 0xE8BF, 0x4A96, 0x9A, 0x85, 0xA6, 0xE2, 0x3A, 0x8C, 0x63, 0x5C );
|
---|
2845 | DEFINE_GUID( GUID_TYPICAL_POWER_SAVINGS, 0x381B4222, 0xF694, 0x41F0, 0x96, 0x85, 0xFF, 0x5B, 0xB2, 0x60, 0xDF, 0x2E );
|
---|
2846 | DEFINE_GUID( NO_SUBGROUP_GUID, 0xFEA3413E, 0x7E05, 0x4911, 0x9A, 0x71, 0x70, 0x03, 0x31, 0xF1, 0xC2, 0x94 );
|
---|
2847 | DEFINE_GUID( ALL_POWERSCHEMES_GUID, 0x68A1E95E, 0x13EA, 0x41E1, 0x80, 0x11, 0x0C, 0x49, 0x6C, 0xA4, 0x90, 0xB0 );
|
---|
2848 | DEFINE_GUID( GUID_POWERSCHEME_PERSONALITY, 0x245D8541, 0x3943, 0x4422, 0xB0, 0x25, 0x13, 0xA7, 0x84, 0xF6, 0x79, 0xB7 );
|
---|
2849 | DEFINE_GUID( GUID_ACTIVE_POWERSCHEME, 0x31F9F286, 0x5084, 0x42FE, 0xB7, 0x20, 0x2B, 0x02, 0x64, 0x99, 0x37, 0x63 );
|
---|
2850 |
|
---|
2851 | ' Define GUIDs which represent well-known power settings
|
---|
2852 |
|
---|
2853 | ' Video settings
|
---|
2854 |
|
---|
2855 | DEFINE_GUID( GUID_VIDEO_SUBGROUP, 0x7516B95F, 0xF776, 0x4464, 0x8C, 0x53, 0x06, 0x16, 0x7F, 0x40, 0xCC, 0x99 );
|
---|
2856 | DEFINE_GUID( GUID_VIDEO_POWERDOWN_TIMEOUT, 0x3C0BC021, 0xC8A8, 0x4E07, 0xA9, 0x73, 0x6B, 0x14, 0xCB, 0xCB, 0x2B, 0x7E );
|
---|
2857 | DEFINE_GUID( GUID_VIDEO_ADAPTIVE_POWERDOWN, 0x90959D22, 0xD6A1, 0x49B9, 0xAF, 0x93, 0xBC, 0xE8, 0x85, 0xAD, 0x33, 0x5B );
|
---|
2858 | DEFINE_GUID( GUID_MONITOR_POWER_ON, 0x02731015, 0x4510, 0x4526, 0x99, 0xE6, 0xE5, 0xA1, 0x7E, 0xBD, 0x1A, 0xEA );
|
---|
2859 |
|
---|
2860 | ' Harddisk settings
|
---|
2861 | DEFINE_GUID( GUID_DISK_SUBGROUP, 0x0012EE47, 0x9041, 0x4B5D, 0x9B, 0x77, 0x53, 0x5F, 0xBA, 0x8B, 0x14, 0x42 );
|
---|
2862 | DEFINE_GUID( GUID_DISK_POWERDOWN_TIMEOUT, 0x6738E2C4, 0xE8A5, 0x4A42, 0xB1, 0x6A, 0xE0, 0x40, 0xE7, 0x69, 0x75, 0x6E );
|
---|
2863 | DEFINE_GUID( GUID_DISK_ADAPTIVE_POWERDOWN, 0x396A32E1, 0x499A, 0x40B2, 0x91, 0x24, 0xA9, 0x6A, 0xFE, 0x70, 0x76, 0x67 );
|
---|
2864 |
|
---|
2865 | ' System sleep settings
|
---|
2866 | DEFINE_GUID( GUID_SLEEP_SUBGROUP, 0x238C9FA8, 0x0AAD, 0x41ED, 0x83, 0xF4, 0x97, 0xBE, 0x24, 0x2C, 0x8F, 0x20 );
|
---|
2867 | DEFINE_GUID( GUID_SLEEP_IDLE_THRESHOLD, 0x81cd32e0, 0x7833, 0x44f3, 0x87, 0x37, 0x70, 0x81, 0xf3, 0x8d, 0x1f, 0x70 );
|
---|
2868 | DEFINE_GUID( GUID_STANDBY_TIMEOUT, 0x29F6C1DB, 0x86DA, 0x48C5, 0x9F, 0xDB, 0xF2, 0xB6, 0x7B, 0x1F, 0x44, 0xDA );
|
---|
2869 | DEFINE_GUID( GUID_HIBERNATE_TIMEOUT, 0x9D7815A6, 0x7EE4, 0x497E, 0x88, 0x88, 0x51, 0x5A, 0x05, 0xF0, 0x23, 0x64 );
|
---|
2870 | DEFINE_GUID( GUID_HIBERNATE_FASTS4_POLICY, 0x94AC6D29, 0x73CE, 0x41A6, 0x80, 0x9F, 0x63, 0x63, 0xBA, 0x21, 0xB4, 0x7E );
|
---|
2871 | DEFINE_GUID( GUID_CRITICAL_POWER_TRANSITION, 0xB7A27025, 0xE569, 0x46c2, 0xA5, 0x04, 0x2B, 0x96, 0xCA, 0xD2, 0x25, 0xA1);
|
---|
2872 | DEFINE_GUID( GUID_SYSTEM_AWAYMODE, 0x98A7F580, 0x01F7, 0x48AA, 0x9C, 0x0F, 0x44, 0x35, 0x2C, 0x29, 0xE5, 0xC0 );
|
---|
2873 | DEFINE_GUID( GUID_ALLOW_AWAYMODE, 0x25dfa149, 0x5dd1, 0x4736, 0xb5, 0xab, 0xe8, 0xa3, 0x7b, 0x5b, 0x81, 0x87 );
|
---|
2874 | DEFINE_GUID( GUID_ALLOW_STANDBY_STATES, 0xabfc2519, 0x3608, 0x4c2a, 0x94, 0xea, 0x17, 0x1b, 0x0e, 0xd5, 0x46, 0xab );
|
---|
2875 | DEFINE_GUID( GUID_ALLOW_RTC_WAKE, 0xBD3B718A, 0x0680, 0x4D9D, 0x8A, 0xB2, 0xE1, 0xD2, 0xB4, 0xAC, 0x80, 0x6D );
|
---|
2876 |
|
---|
2877 | ' System button actions
|
---|
2878 | DEFINE_GUID( GUID_SYSTEM_BUTTON_SUBGROUP, 0x4F971E89, 0xEEBD, 0x4455, 0xA8, 0xDE, 0x9E, 0x59, 0x04, 0x0E, 0x73, 0x47 );
|
---|
2879 | DEFINE_GUID( GUID_POWERBUTTON_ACTION, 0x7648EFA3, 0xDD9C, 0x4E3E, 0xB5, 0x66, 0x50, 0xF9, 0x29, 0x38, 0x62, 0x80 );
|
---|
2880 | DEFINE_GUID( GUID_POWERBUTTON_ACTION_FLAGS, 0x857E7FAC, 0x034B, 0x4704, 0xAB, 0xB1, 0xBC, 0xA5, 0x4A, 0xA3, 0x14, 0x78 );
|
---|
2881 | DEFINE_GUID( GUID_SLEEPBUTTON_ACTION, 0x96996BC0, 0xAD50, 0x47EC, 0x92, 0x3B, 0x6F, 0x41, 0x87, 0x4D, 0xD9, 0xEB );
|
---|
2882 | DEFINE_GUID( GUID_SLEEPBUTTON_ACTION_FLAGS, 0x2A160AB1, 0xB69D, 0x4743, 0xB7, 0x18, 0xBF, 0x14, 0x41, 0xD5, 0xE4, 0x93 );
|
---|
2883 | DEFINE_GUID( GUID_USERINTERFACEBUTTON_ACTION, 0xA7066653, 0x8D6C, 0x40A8, 0x91, 0x0E, 0xA1, 0xF5, 0x4B, 0x84, 0xC7, 0xE5 );
|
---|
2884 | DEFINE_GUID( GUID_LIDCLOSE_ACTION, 0x5CA83367, 0x6E45, 0x459F, 0xA2, 0x7B, 0x47, 0x6B, 0x1D, 0x01, 0xC9, 0x36 );
|
---|
2885 | DEFINE_GUID( GUID_LIDCLOSE_ACTION_FLAGS, 0x97E969AC, 0x0D6C, 0x4D08, 0x92, 0x7C, 0xD7, 0xBD, 0x7A, 0xD7, 0x85, 0x7B );
|
---|
2886 | DEFINE_GUID( GUID_LIDOPEN_POWERSTATE, 0x99FF10E7, 0x23B1, 0x4C07, 0xA9, 0xD1, 0x5C, 0x32, 0x06, 0xD7, 0x41, 0xB4 );
|
---|
2887 |
|
---|
2888 | ' Battery Discharge Settings
|
---|
2889 | DEFINE_GUID( GUID_BATTERY_SUBGROUP, 0xE73A048D, 0xBF27, 0x4F12, 0x97, 0x31, 0x8B, 0x20, 0x76, 0xE8, 0x89, 0x1F );
|
---|
2890 | ' 4 battery discharge alarm settings.
|
---|
2891 | DEFINE_GUID( GUID_BATTERY_DISCHARGE_ACTION_0, 0x637EA02F, 0xBBCB, 0x4015, 0x8E, 0x2C, 0xA1, 0xC7, 0xB9, 0xC0, 0xB5, 0x46 );
|
---|
2892 | DEFINE_GUID( GUID_BATTERY_DISCHARGE_LEVEL_0, 0x9A66D8D7, 0x4FF7, 0x4EF9, 0xB5, 0xA2, 0x5A, 0x32, 0x6C, 0xA2, 0xA4, 0x69 );
|
---|
2893 | DEFINE_GUID( GUID_BATTERY_DISCHARGE_FLAGS_0, 0x5dbb7c9f, 0x38e9, 0x40d2, 0x97, 0x49, 0x4f, 0x8a, 0x0e, 0x9f, 0x64, 0x0f );
|
---|
2894 |
|
---|
2895 | DEFINE_GUID( GUID_BATTERY_DISCHARGE_ACTION_1, 0xD8742DCB, 0x3E6A, 0x4B3C, 0xB3, 0xFE, 0x37, 0x46, 0x23, 0xCD, 0xCF, 0x06 );
|
---|
2896 | DEFINE_GUID( GUID_BATTERY_DISCHARGE_LEVEL_1, 0x8183BA9A, 0xE910, 0x48DA, 0x87, 0x69, 0x14, 0xAE, 0x6D, 0xC1, 0x17, 0x0A );
|
---|
2897 | DEFINE_GUID( GUID_BATTERY_DISCHARGE_FLAGS_1, 0xbcded951, 0x187b, 0x4d05, 0xbc, 0xcc, 0xf7, 0xe5, 0x19, 0x60, 0xc2, 0x58 );
|
---|
2898 |
|
---|
2899 | DEFINE_GUID( GUID_BATTERY_DISCHARGE_ACTION_2, 0x421CBA38, 0x1A8E, 0x4881, 0xAC, 0x89, 0xE3, 0x3A, 0x8B, 0x04, 0xEC, 0xE4 );
|
---|
2900 | DEFINE_GUID( GUID_BATTERY_DISCHARGE_LEVEL_2, 0x07A07CA2, 0xADAF, 0x40D7, 0xB0, 0x77, 0x53, 0x3A, 0xAD, 0xED, 0x1B, 0xFA );
|
---|
2901 | DEFINE_GUID( GUID_BATTERY_DISCHARGE_FLAGS_2, 0x7fd2f0c4, 0xfeb7, 0x4da3, 0x81, 0x17, 0xe3, 0xfb, 0xed, 0xc4, 0x65, 0x82 );
|
---|
2902 |
|
---|
2903 | DEFINE_GUID( GUID_BATTERY_DISCHARGE_ACTION_3, 0x80472613, 0x9780, 0x455E, 0xB3, 0x08, 0x72, 0xD3, 0x00, 0x3C, 0xF2, 0xF8 );
|
---|
2904 | DEFINE_GUID( GUID_BATTERY_DISCHARGE_LEVEL_3, 0x58AFD5A6, 0xC2DD, 0x47D2, 0x9F, 0xBF, 0xEF, 0x70, 0xCC, 0x5C, 0x59, 0x65 );
|
---|
2905 | DEFINE_GUID( GUID_BATTERY_DISCHARGE_FLAGS_3, 0x73613ccf, 0xdbfa, 0x4279, 0x83, 0x56, 0x49, 0x35, 0xf6, 0xbf, 0x62, 0xf3 );
|
---|
2906 |
|
---|
2907 | ' Processor power settings
|
---|
2908 | DEFINE_GUID( GUID_PROCESSOR_SETTINGS_SUBGROUP, 0x54533251, 0x82BE, 0x4824, 0x96, 0xC1, 0x47, 0xB6, 0x0B, 0x74, 0x0D, 0x00 );
|
---|
2909 | DEFINE_GUID( GUID_PROCESSOR_THROTTLE_POLICY, 0x57027304, 0x4AF6, 0x4104, 0x92, 0x60, 0xE3, 0xD9, 0x52, 0x48, 0xFC, 0x36 );
|
---|
2910 | DEFINE_GUID( GUID_PROCESSOR_THROTTLE_MAXIMUM, 0xBC5038F7, 0x23E0, 0x4960, 0x96, 0xDA, 0x33, 0xAB, 0xAF, 0x59, 0x35, 0xEC );
|
---|
2911 | DEFINE_GUID( GUID_PROCESSOR_THROTTLE_MINIMUM, 0x893DEE8E, 0x2BEF, 0x41E0, 0x89, 0xC6, 0xB5, 0x5D, 0x09, 0x29, 0x96, 0x4C );
|
---|
2912 | DEFINE_GUID( GUID_PROCESSOR_IDLESTATE_POLICY, 0x68f262a7, 0xf621, 0x4069, 0xb9, 0xa5, 0x48, 0x74, 0x16, 0x9b, 0xe2, 0x3c);
|
---|
2913 | DEFINE_GUID( GUID_PROCESSOR_PERFSTATE_POLICY, 0xBBDC3814, 0x18E9, 0x4463, 0x8A, 0x55, 0xD1, 0x97, 0x32, 0x7C, 0x45, 0xC0);
|
---|
2914 | DEFINE_GUID( GUID_SYSTEM_COOLING_POLICY, 0x94D3A615, 0xA899, 0x4AC5, 0xAE, 0x2B, 0xE4, 0xD8, 0xF6, 0x34, 0x36, 0x7F);
|
---|
2915 |
|
---|
2916 | ' Lock Console on Wake
|
---|
2917 | DEFINE_GUID( GUID_LOCK_CONSOLE_ON_WAKE, 0x0E796BDB, 0x100D, 0x47D6, 0xA2, 0xD5, 0xF7, 0xD2, 0xDA, 0xA5, 0x1F, 0x51 );
|
---|
2918 |
|
---|
2919 | ' AC/DC power source
|
---|
2920 | DEFINE_GUID( GUID_ACDC_POWER_SOURCE, 0x5D3E9A59, 0xE9D5, 0x4B00, 0xA6, 0xBD, 0xFF, 0x34, 0xFF, 0x51, 0x65, 0x48 );
|
---|
2921 |
|
---|
2922 | ' Lid state changes
|
---|
2923 | DEFINE_GUID( GUID_LIDSWITCH_STATE_CHANGE, 0xBA3E0F4D, 0xB817, 0x4094, 0xA2, 0xD1, 0xD5, 0x63, 0x79, 0xE6, 0xA0, 0xF3 );
|
---|
2924 |
|
---|
2925 | ' Battery life remaining
|
---|
2926 | DEFINE_GUID( GUID_BATTERY_PERCENTAGE_REMAINING, 0xA7AD8041, 0xB45A, 0x4CAE, 0x87, 0xA3, 0xEE, 0xCB, 0xB4, 0x68, 0xA9, 0xE1 );
|
---|
2927 | DEFINE_GUID( GUID_IDLE_BACKGROUND_TASK, 0x515C31D8, 0xF734, 0x163D, 0xA0, 0xFD, 0x11, 0xA0, 0x8C, 0x91, 0xE8, 0xF1 );
|
---|
2928 | DEFINE_GUID( GUID_BACKGROUND_TASK_NOTIFICATION, 0xCF23F240, 0x2A54, 0x48D8, 0xB1, 0x14, 0xDE, 0x15, 0x18, 0xFF, 0x05, 0x2E );
|
---|
2929 | DEFINE_GUID( GUID_APPLAUNCH_BUTTON, 0x1A689231, 0x7399, 0x4E9A, 0x8F, 0x99, 0xB7, 0x1F, 0x99, 0x9D, 0xB3, 0xFA );
|
---|
2930 | DEFINE_GUID( GUID_PCIEXPRESS_SETTINGS_SUBGROUP, 0x501a4d13, 0x42af,0x4429, 0x9f, 0xd1, 0xa8, 0x21, 0x8c, 0x26, 0x8e, 0x20 );
|
---|
2931 | DEFINE_GUID( GUID_PCIEXPRESS_ASPM_POLICY, 0xee12f906, 0xd277, 0x404b, 0xb6, 0xda, 0xe5, 0xfa, 0x1a, 0x57, 0x6d, 0xf5 );
|
---|
2932 | */
|
---|
2933 | Enum SYSTEM_POWER_STATE
|
---|
2934 | PowerSystemUnspecified = 0
|
---|
2935 | PowerSystemWorking = 1
|
---|
2936 | PowerSystemSleeping1 = 2
|
---|
2937 | PowerSystemSleeping2 = 3
|
---|
2938 | PowerSystemSleeping3 = 4
|
---|
2939 | PowerSystemHibernate = 5
|
---|
2940 | PowerSystemShutdown = 6
|
---|
2941 | PowerSystemMaximum = 7
|
---|
2942 | End Enum
|
---|
2943 | TypeDef PSYSTEM_POWER_STATE = *SYSTEM_POWER_STATE
|
---|
2944 |
|
---|
2945 | Const POWER_SYSTEM_MAXIMUM = 7
|
---|
2946 |
|
---|
2947 | Enum POWER_ACTION
|
---|
2948 | PowerActionNone = 0
|
---|
2949 | PowerActionReserved
|
---|
2950 | PowerActionSleep
|
---|
2951 | PowerActionHibernate
|
---|
2952 | PowerActionShutdown
|
---|
2953 | PowerActionShutdownReset
|
---|
2954 | PowerActionShutdownOff
|
---|
2955 | PowerActionWarmEject
|
---|
2956 | End Enum
|
---|
2957 | TypeDef PPOWER_ACTION = *POWER_ACTION
|
---|
2958 |
|
---|
2959 | Enum DEVICE_POWER_STATE
|
---|
2960 | PowerDeviceUnspecified = 0
|
---|
2961 | PowerDeviceD0
|
---|
2962 | PowerDeviceD1
|
---|
2963 | PowerDeviceD2
|
---|
2964 | PowerDeviceD3
|
---|
2965 | PowerDeviceMaximum
|
---|
2966 | End Enum
|
---|
2967 | TypeDef PDEVICE_POWER_STATE = *DEVICE_POWER_STATE
|
---|
2968 |
|
---|
2969 | Const ES_SYSTEM_REQUIRED = (&h00000001 As DWord)
|
---|
2970 | Const ES_DISPLAY_REQUIRED = (&h00000002 As DWord)
|
---|
2971 | Const ES_USER_PRESENT = (&h00000004 As DWord)
|
---|
2972 | Const ES_AWAYMODE_REQUIRED = (&h00000040 As DWord)
|
---|
2973 | Const ES_CONTINUOUS = (&h80000000 As DWord)
|
---|
2974 |
|
---|
2975 | TypeDef EXECUTION_STATE = DWord
|
---|
2976 |
|
---|
2977 | Enum LATENCY_TIME
|
---|
2978 | LT_DONT_CARE
|
---|
2979 | LT_LOWEST_LATENCY
|
---|
2980 | End Enum
|
---|
2981 |
|
---|
2982 | '#if (NTDDI_VERSION >= NTDDI_WINXP)
|
---|
2983 |
|
---|
2984 | ' Device Power Information
|
---|
2985 | Const PDCAP_D0_SUPPORTED = &h00000001
|
---|
2986 | Const PDCAP_D1_SUPPORTED = &h00000002
|
---|
2987 | Const PDCAP_D2_SUPPORTED = &h00000004
|
---|
2988 | Const PDCAP_D3_SUPPORTED = &h00000008
|
---|
2989 | Const PDCAP_WAKE_FROM_D0_SUPPORTED = &h00000010
|
---|
2990 | Const PDCAP_WAKE_FROM_D1_SUPPORTED = &h00000020
|
---|
2991 | Const PDCAP_WAKE_FROM_D2_SUPPORTED = &h00000040
|
---|
2992 | Const PDCAP_WAKE_FROM_D3_SUPPORTED = &h00000080
|
---|
2993 | Const PDCAP_WARM_EJECT_SUPPORTED = &h00000100
|
---|
2994 |
|
---|
2995 | Type CM_POWER_DATA
|
---|
2996 | PD_Size As DWord
|
---|
2997 | PD_MostRecentPowerState As DEVICE_POWER_STATE
|
---|
2998 | PD_Capabilities As DWord
|
---|
2999 | PD_D1Latency As DWord
|
---|
3000 | PD_D2Latency As DWord
|
---|
3001 | PD_D3Latency As DWord
|
---|
3002 | PD_PowerStateMapping[POWER_SYSTEM_MAXIMUM] As DEVICE_POWER_STATE
|
---|
3003 | PD_DeepestSystemWake As SYSTEM_POWER_STATE
|
---|
3004 | End Type
|
---|
3005 | TypeDef PCM_POWER_DATA = *CM_POWER_DATA
|
---|
3006 |
|
---|
3007 | '#endif // (NTDDI_VERSION >= NTDDI_WINXP)
|
---|
3008 |
|
---|
3009 | Enum POWER_INFORMATION_LEVEL
|
---|
3010 | SystemPowerPolicyAc
|
---|
3011 | SystemPowerPolicyDc
|
---|
3012 | VerifySystemPolicyAc
|
---|
3013 | VerifySystemPolicyDc
|
---|
3014 | SystemPowerCapabilities
|
---|
3015 | SystemBatteryState
|
---|
3016 | SystemPowerStateHandler
|
---|
3017 | ProcessorStateHandler
|
---|
3018 | SystemPowerPolicyCurrent
|
---|
3019 | AdministratorPowerPolicy
|
---|
3020 | SystemReserveHiberFile
|
---|
3021 | ProcessorInformation
|
---|
3022 | SystemPowerInformation
|
---|
3023 | ProcessorStateHandler2
|
---|
3024 | LastWakeTime ' Compare with KeQueryInterruptTime()
|
---|
3025 | LastSleepTime ' Compare with KeQueryInterruptTime()
|
---|
3026 | SystemExecutionState
|
---|
3027 | SystemPowerStateNotifyHandler
|
---|
3028 | ProcessorPowerPolicyAc
|
---|
3029 | ProcessorPowerPolicyDc
|
---|
3030 | VerifyProcessorPowerPolicyAc
|
---|
3031 | VerifyProcessorPowerPolicyDc
|
---|
3032 | ProcessorPowerPolicyCurrent
|
---|
3033 | SystemPowerStateLogging
|
---|
3034 | SystemPowerLoggingEntry
|
---|
3035 | SetPowerSettingValue
|
---|
3036 | NotifyUserPowerSetting
|
---|
3037 | GetPowerTransitionVetoes
|
---|
3038 | SetPowerTransitionVeto
|
---|
3039 | SystemVideoState
|
---|
3040 | TraceApplicationPowerMessage
|
---|
3041 | TraceApplicationPowerMessageEnd
|
---|
3042 | ProcessorPerfStates
|
---|
3043 | ProcessorIdleStates
|
---|
3044 | ProcessorThrottleStates
|
---|
3045 | SystemWakeSource
|
---|
3046 | SystemHiberFileInformation
|
---|
3047 | TraceServicePowerMessage
|
---|
3048 | ProcessorLoad
|
---|
3049 | PowerShutdownNotification
|
---|
3050 | End Enum
|
---|
3051 |
|
---|
3052 | ' Power Transition Vetos
|
---|
3053 | Const PO_TRANSITION_VETO_TYPE_WINDOW = &h00000001
|
---|
3054 | Const PO_TRANSITION_VETO_TYPE_SERVICE = &h00000002
|
---|
3055 | 'Const PO_TRANSITION_VETO_TYPE_DRIVER = &h00000004
|
---|
3056 |
|
---|
3057 | Const PO_TRANSITION_VETO_TYPE_ALL = (PO_TRANSITION_VETO_TYPE_WINDOW Or PO_TRANSITION_VETO_TYPE_SERVICE)
|
---|
3058 |
|
---|
3059 | Type PO_TRANSITION_VETO_REASON
|
---|
3060 | ResourceId As DWord
|
---|
3061 | ModuleNameOffset As DWord
|
---|
3062 | End Type
|
---|
3063 | TypeDef PPO_TRANSITION_VETO_REASON = *PO_TRANSITION_VETO_REASON
|
---|
3064 |
|
---|
3065 | Type PO_TRANSITION_VETO_WINDOW
|
---|
3066 | Handle As HANDLE
|
---|
3067 | End Type
|
---|
3068 | TypeDef PPO_TRANSITION_VETO_WINDOW = *PO_TRANSITION_VETO_WINDOW
|
---|
3069 |
|
---|
3070 | Type PO_TRANSITION_VETO_SERVICE
|
---|
3071 | ServiceNameOffset As DWord
|
---|
3072 | End Type
|
---|
3073 | TypeDef PPO_TRANSITION_VETO_SERVICE = *PO_TRANSITION_VETO_SERVICE
|
---|
3074 |
|
---|
3075 | /*
|
---|
3076 | Type PO_TRANSITION_VETO_DRIVER
|
---|
3077 | InstancePathOffset As DWord
|
---|
3078 | DriverNameOffset As DWord
|
---|
3079 | End Type
|
---|
3080 | TypeDef PPO_TRANSITION_VETO_DRIVER = *PO_TRANSITION_VETO_DRIVER
|
---|
3081 | */
|
---|
3082 |
|
---|
3083 | Type PO_TRANSITION_VETO
|
---|
3084 | Type_ As DWord
|
---|
3085 | Reason As PO_TRANSITION_VETO_REASON
|
---|
3086 | ProcessId As DWord
|
---|
3087 | ' Union
|
---|
3088 | Window_ As PO_TRANSITION_VETO_WINDOW
|
---|
3089 | ' Service As PO_TRANSITION_VETO_SERVICE
|
---|
3090 | ' ' Driver As PO_TRANSITION_VETO_DRIVER
|
---|
3091 | ' End Union
|
---|
3092 | End Type
|
---|
3093 | TypeDef PPO_TRANSITION_VETO = *PO_TRANSITION_VETO
|
---|
3094 |
|
---|
3095 | Type PO_TRANSITION_VETOES
|
---|
3096 | Count As DWord
|
---|
3097 | Vetoes[ELM(ANYSIZE_ARRAY)] As PO_TRANSITION_VETO
|
---|
3098 | End Type
|
---|
3099 | TypeDef PPO_TRANSITION_VETOES = *PO_TRANSITION_VETOES
|
---|
3100 |
|
---|
3101 | Enum SYSTEM_POWER_CONDITION
|
---|
3102 | PoAc
|
---|
3103 | PoDc
|
---|
3104 | PoHot
|
---|
3105 | PoConditionMaximum
|
---|
3106 | End Enum
|
---|
3107 |
|
---|
3108 | Type SET_POWER_SETTING_VALUE
|
---|
3109 | Version As DWord
|
---|
3110 | Guid As GUID
|
---|
3111 | PowerCondition As SYSTEM_POWER_CONDITION
|
---|
3112 | DataLength As DWord
|
---|
3113 | Data[ELM(ANYSIZE_ARRAY)] As Byte
|
---|
3114 | End Type
|
---|
3115 | TypeDef PSET_POWER_SETTING_VALUE = *SET_POWER_SETTING_VALUE
|
---|
3116 |
|
---|
3117 | Const POWER_SETTING_VALUE_VERSION = &h1
|
---|
3118 |
|
---|
3119 | Type NOTIFY_USER_POWER_SETTING
|
---|
3120 | Guid As GUID
|
---|
3121 | End Type
|
---|
3122 | TypeDef PNOTIFY_USER_POWER_SETTING = *NOTIFY_USER_POWER_SETTING
|
---|
3123 |
|
---|
3124 | Type APPLICATIONLAUNCH_SETTING_VALUE
|
---|
3125 | ActivationTime As LARGE_INTEGER
|
---|
3126 | Flags As DWord
|
---|
3127 | ButtonInstanceID As DWord
|
---|
3128 | End Type
|
---|
3129 | TypeDef PAPPLICATIONLAUNCH_SETTING_VALUE = *APPLICATIONLAUNCH_SETTING_VALUE
|
---|
3130 |
|
---|
3131 | Enum POWER_PLATFORM_ROLE
|
---|
3132 | PlatformRoleUnspecified = 0
|
---|
3133 | PlatformRoleDesktop
|
---|
3134 | PlatformRoleMobile
|
---|
3135 | PlatformRoleWorkstation
|
---|
3136 | PlatformRoleEnterpriseServer
|
---|
3137 | PlatformRoleSOHOServer
|
---|
3138 | PlatformRoleAppliancePC
|
---|
3139 | PlatformRolePerformanceServer
|
---|
3140 | PlatformRoleMaximum
|
---|
3141 | End Enum
|
---|
3142 |
|
---|
3143 | Enum PO_WAKE_SOURCE_TYPE
|
---|
3144 | DeviceWakeSourceType
|
---|
3145 | FixedWakeSourceType
|
---|
3146 | End Enum
|
---|
3147 | TypeDef PPO_WAKE_SOURCE_TYPE = *PO_WAKE_SOURCE_TYPE
|
---|
3148 |
|
---|
3149 | Enum PO_FIXED_WAKE_SOURCE_TYPE
|
---|
3150 | FixedWakeSourcePowerButton
|
---|
3151 | FixedWakeSourceSleepButton
|
---|
3152 | FixedWakeSourceRtc
|
---|
3153 | End Enum
|
---|
3154 | TypeDef PPO_FIXED_WAKE_SOURCE_TYPE = *PO_FIXED_WAKE_SOURCE_TYPE
|
---|
3155 |
|
---|
3156 | Type PO_WAKE_SOURCE_HEADER
|
---|
3157 | Type_ As PO_WAKE_SOURCE_TYPE
|
---|
3158 | Size As DWord
|
---|
3159 | End Type
|
---|
3160 | TypeDef PPO_WAKE_SOURCE_HEADER = *PO_WAKE_SOURCE_HEADER
|
---|
3161 |
|
---|
3162 | Type PO_WAKE_SOURCE_DEVICE
|
---|
3163 | Header As PO_WAKE_SOURCE_HEADER
|
---|
3164 | InstancePath[ELM(ANYSIZE_ARRAY)] As WCHAR
|
---|
3165 | End Type
|
---|
3166 | TypeDef PPO_WAKE_SOURCE_DEVICE = *PO_WAKE_SOURCE_DEVICE
|
---|
3167 |
|
---|
3168 | Type PO_WAKE_SOURCE_FIXED
|
---|
3169 | Header As PO_WAKE_SOURCE_HEADER
|
---|
3170 | FixedWakeSourceType As PO_FIXED_WAKE_SOURCE_TYPE
|
---|
3171 | End Type
|
---|
3172 | TypeDef PPO_WAKE_SOURCE_FIXED = *PO_WAKE_SOURCE_FIXED
|
---|
3173 |
|
---|
3174 | Type PO_WAKE_SOURCE_INFO
|
---|
3175 | Count As DWord
|
---|
3176 | Offsets[ELM(ANYSIZE_ARRAY)] As DWord
|
---|
3177 | End Type
|
---|
3178 | TypeDef PPO_WAKE_SOURCE_INFO = *PO_WAKE_SOURCE_INFO
|
---|
3179 |
|
---|
3180 | Type PO_WAKE_SOURCE_HISTORY
|
---|
3181 | Count As DWord
|
---|
3182 | Offsets[ELM(ANYSIZE_ARRAY)] As DWord
|
---|
3183 | End Type
|
---|
3184 | TypeDef PPO_WAKE_SOURCE_HISTORY = *PO_WAKE_SOURCE_HISTORY
|
---|
3185 |
|
---|
3186 | '#if (NTDDI_VERSION >= NTDDI_WINXP) || !defined(_BATCLASS_)
|
---|
3187 | Type BATTERY_REPORTING_SCALE
|
---|
3188 | Granularity As DWord
|
---|
3189 | Capacity As DWord
|
---|
3190 | End Type
|
---|
3191 | TypeDef PBATTERY_REPORTING_SCALE = *BATTERY_REPORTING_SCALE
|
---|
3192 | '#endif
|
---|
3193 |
|
---|
3194 | Type PPM_SIMULATED_PROCESSOR_LOAD
|
---|
3195 | Enabled As BOOLEAN
|
---|
3196 | PercentBusy[ELM(MAXIMUM_PROCESSORS)] As Byte
|
---|
3197 | End Type
|
---|
3198 | TypeDef PPPM_SIMULATED_PROCESSOR_LOAD = *PPM_SIMULATED_PROCESSOR_LOAD
|
---|
3199 |
|
---|
3200 | Type PPM_WMI_LEGACY_PERFSTATE
|
---|
3201 | Frequency As DWord
|
---|
3202 | Flags As DWord
|
---|
3203 | PercentFrequency As DWord
|
---|
3204 | End Type
|
---|
3205 | TypeDef PPPM_WMI_LEGACY_PERFSTATE = *PPM_WMI_LEGACY_PERFSTATE
|
---|
3206 |
|
---|
3207 | Type PPM_WMI_IDLE_STATE
|
---|
3208 | Latency As DWord
|
---|
3209 | Power As DWord
|
---|
3210 | TimeCheck As DWord
|
---|
3211 | PromotePercent As Byte
|
---|
3212 | DemotePercent As Byte
|
---|
3213 | StateType As Byte
|
---|
3214 | Reserved As Byte
|
---|
3215 | StateFlags As DWord
|
---|
3216 | Context As DWord
|
---|
3217 | IdleHandler As DWord
|
---|
3218 | Reserved1 As DWord
|
---|
3219 | End Type
|
---|
3220 | TypeDef PPPM_WMI_IDLE_STATE = *PPM_WMI_IDLE_STATE
|
---|
3221 |
|
---|
3222 | Type PPM_WMI_IDLE_STATES
|
---|
3223 | Type_ As DWord
|
---|
3224 | Count As DWord
|
---|
3225 | TargetState As DWord
|
---|
3226 | OldState As DWord
|
---|
3227 | TargetProcessors As QWord
|
---|
3228 | State[ELM(ANYSIZE_ARRAY)] As PPM_WMI_IDLE_STATE
|
---|
3229 | End Type
|
---|
3230 | TypeDef PPPM_WMI_IDLE_STATES = *PPM_WMI_IDLE_STATES
|
---|
3231 |
|
---|
3232 | Type PPM_WMI_PERF_STATE
|
---|
3233 | Frequency As DWord
|
---|
3234 | Power As DWord
|
---|
3235 | PercentFrequency As Byte
|
---|
3236 | IncreaseLevel As Byte
|
---|
3237 | DecreaseLevel As Byte
|
---|
3238 | Type_ As Byte
|
---|
3239 | IncreaseTime As DWord
|
---|
3240 | DecreaseTime As DWord
|
---|
3241 | Control As QWord
|
---|
3242 | Status As QWord
|
---|
3243 | HitCount As DWord
|
---|
3244 | Reserved1 As DWord
|
---|
3245 | Reserved2 As QWord
|
---|
3246 | Reserved3 As QWord
|
---|
3247 | End Type
|
---|
3248 | TypeDef PPPM_WMI_PERF_STATE = *PPM_WMI_PERF_STATE
|
---|
3249 |
|
---|
3250 | Type PPM_WMI_PERF_STATES
|
---|
3251 | Count As DWord
|
---|
3252 | MaxFrequency As DWord
|
---|
3253 | CurrentState As DWord
|
---|
3254 | MaxPerfState As DWord
|
---|
3255 | MinPerfState As DWord
|
---|
3256 | LowestPerfState As DWord
|
---|
3257 | ThermalConstraint As DWord
|
---|
3258 | BusyAdjThreshold As Byte
|
---|
3259 | PolicyType As Byte
|
---|
3260 | Type_ As Byte
|
---|
3261 | Reserved As Byte
|
---|
3262 | TimerInterval As DWord
|
---|
3263 | TargetProcessors As QWord
|
---|
3264 | PStateHandler As DWord
|
---|
3265 | PStateContext As DWord
|
---|
3266 | TStateHandler As DWord
|
---|
3267 | TStateContext As DWord
|
---|
3268 | FeedbackHandler As DWord
|
---|
3269 | Reserved1 As DWord
|
---|
3270 | Reserved2 As QWord
|
---|
3271 | State[ELM(ANYSIZE_ARRAY)] As PPM_WMI_PERF_STATE
|
---|
3272 | End Type
|
---|
3273 | TypeDef PPPM_WMI_PERF_STATES = *PPM_WMI_PERF_STATES
|
---|
3274 |
|
---|
3275 | Const PROC_IDLE_BUCKET_COUNT = 6
|
---|
3276 |
|
---|
3277 | Type PPM_IDLE_STATE_ACCOUNTING
|
---|
3278 | IdleTransitions As DWord
|
---|
3279 | FailedTransitions As DWord
|
---|
3280 | InvalidBucketIndex As DWord
|
---|
3281 | TotalTime As QWord
|
---|
3282 | IdleTimeBuckets[ELM(PROC_IDLE_BUCKET_COUNT)] As DWord
|
---|
3283 | End Type
|
---|
3284 | TypeDef PPPM_IDLE_STATE_ACCOUNTING = *PPM_IDLE_STATE_ACCOUNTING
|
---|
3285 |
|
---|
3286 | Type PPM_IDLE_ACCOUNTING
|
---|
3287 | StateCount As DWord
|
---|
3288 | TotalTransitions As DWord
|
---|
3289 | ResetCount As DWord
|
---|
3290 | StartTime As QWord
|
---|
3291 | State[ELM(ANYSIZE_ARRAY)] As PPM_IDLE_STATE_ACCOUNTING
|
---|
3292 | End Type
|
---|
3293 | TypeDef PPPM_IDLE_ACCOUNTING = *PPM_IDLE_ACCOUNTING
|
---|
3294 |
|
---|
3295 | Const ACPI_PPM_SOFTWARE_ALL = &hFC
|
---|
3296 | Const ACPI_PPM_SOFTWARE_ANY = &hFD
|
---|
3297 | Const ACPI_PPM_HARDWARE_ALL = &hFE
|
---|
3298 |
|
---|
3299 | Const MS_PPM_SOFTWARE_ALL = &h1
|
---|
3300 |
|
---|
3301 | ' Processor Power Management WMI interface.
|
---|
3302 | /*
|
---|
3303 | // {A5B32DDD-7F39-4abc-B892-900E43B59EBB}
|
---|
3304 | DEFINE_GUID(PPM_PERFSTATE_CHANGE_GUID,
|
---|
3305 | 0xa5b32ddd, 0x7f39, 0x4abc, 0xb8, 0x92, 0x90, 0xe, 0x43, 0xb5, 0x9e, 0xbb);
|
---|
3306 |
|
---|
3307 | // {995e6b7f-d653-497a-b978-36a30c29bf01}
|
---|
3308 | DEFINE_GUID(PPM_PERFSTATE_DOMAIN_CHANGE_GUID,
|
---|
3309 | 0x995e6b7f, 0xd653, 0x497a, 0xb9, 0x78, 0x36, 0xa3, 0xc, 0x29, 0xbf, 0x1);
|
---|
3310 |
|
---|
3311 | // {4838fe4f-f71c-4e51-9ecc-8430a7ac4c6c}
|
---|
3312 | DEFINE_GUID(PPM_IDLESTATE_CHANGE_GUID,
|
---|
3313 | 0x4838fe4f, 0xf71c, 0x4e51, 0x9e, 0xcc, 0x84, 0x30, 0xa7, 0xac, 0x4c, 0x6c);
|
---|
3314 |
|
---|
3315 | // {5708cc20-7d40-4bf4-b4aa-2b01338d0126}
|
---|
3316 | DEFINE_GUID(PPM_PERFSTATES_DATA_GUID,
|
---|
3317 | 0x5708cc20, 0x7d40, 0x4bf4, 0xb4, 0xaa, 0x2b, 0x01, 0x33, 0x8d, 0x01, 0x26);
|
---|
3318 |
|
---|
3319 | // {ba138e10-e250-4ad7-8616-cf1a7ad410e7}
|
---|
3320 | DEFINE_GUID(PPM_IDLESTATES_DATA_GUID,
|
---|
3321 | 0xba138e10, 0xe250, 0x4ad7, 0x86, 0x16, 0xcf, 0x1a, 0x7a, 0xd4, 0x10, 0xe7);
|
---|
3322 |
|
---|
3323 | // {e2a26f78-ae07-4ee0-a30f-ce354f5a94cd}
|
---|
3324 | DEFINE_GUID(PPM_IDLE_ACCOUNTING_GUID,
|
---|
3325 | 0xe2a26f78, 0xae07, 0x4ee0, 0xa3, 0x0f, 0xce, 0x54, 0xf5, 0x5a, 0x94, 0xcd);
|
---|
3326 |
|
---|
3327 | // {a852c2c8-1a4c-423b-8c2c-f30d82931a88}
|
---|
3328 | DEFINE_GUID(PPM_THERMALCONSTRAINT_GUID,
|
---|
3329 | 0xa852c2c8, 0x1a4c, 0x423b, 0x8c, 0x2c, 0xf3, 0x0d, 0x82, 0x93, 0x1a, 0x88);
|
---|
3330 |
|
---|
3331 | // {7fd18652-0cfe-40d2-b0a1-0b066a87759e}
|
---|
3332 | DEFINE_GUID(PPM_PERFMON_PERFSTATE_GUID,
|
---|
3333 | 0x7fd18652, 0xcfe, 0x40d2, 0xb0, 0xa1, 0xb, 0x6, 0x6a, 0x87, 0x75, 0x9e);
|
---|
3334 |
|
---|
3335 | // {48f377b8-6880-4c7b-8bdc-380176c6654d}
|
---|
3336 | DEFINE_GUID(PPM_THERMAL_POLICY_CHANGE_GUID,
|
---|
3337 | 0x48f377b8, 0x6880, 0x4c7b, 0x8b, 0xdc, 0x38, 0x1, 0x76, 0xc6, 0x65, 0x4d);
|
---|
3338 | */
|
---|
3339 | Type PPM_PERFSTATE_EVENT
|
---|
3340 | State As DWord
|
---|
3341 | Status As DWord
|
---|
3342 | Latency As DWord
|
---|
3343 | Speed As DWord
|
---|
3344 | Processor As DWord
|
---|
3345 | End Type
|
---|
3346 | TypeDef PPPM_PERFSTATE_EVENT = *PPM_PERFSTATE_EVENT
|
---|
3347 |
|
---|
3348 | Type PPM_PERFSTATE_DOMAIN_EVENT
|
---|
3349 | State As DWord
|
---|
3350 | Latency As DWord
|
---|
3351 | Speed As DWord
|
---|
3352 | Processors As QWord
|
---|
3353 | End Type
|
---|
3354 | TypeDef PPPM_PERFSTATE_DOMAIN_EVENT = *PPM_PERFSTATE_DOMAIN_EVENT
|
---|
3355 |
|
---|
3356 | Type PPM_IDLESTATE_EVENT
|
---|
3357 | NewState As DWord
|
---|
3358 | OldState As DWord
|
---|
3359 | Processors As QWord
|
---|
3360 | End Type
|
---|
3361 | TypeDef PPPM_IDLESTATE_EVENT = *PPM_IDLESTATE_EVENT
|
---|
3362 |
|
---|
3363 | Type PPM_THERMALCHANGE_EVENT
|
---|
3364 | ThermalConstraint As DWord
|
---|
3365 | Processors As QWord
|
---|
3366 | End Type
|
---|
3367 | TypeDef PPPM_THERMALCHANGE_EVENT = *PPM_THERMALCHANGE_EVENT
|
---|
3368 |
|
---|
3369 | Type PPM_THERMAL_POLICY_EVENT
|
---|
3370 | Mode As Byte
|
---|
3371 | Processors As QWord
|
---|
3372 | End Type
|
---|
3373 | TypeDef PPPM_THERMAL_POLICY_EVENT = *PPM_THERMAL_POLICY_EVENT
|
---|
3374 |
|
---|
3375 | Type POWER_ACTION_POLICY
|
---|
3376 | Action As POWER_ACTION
|
---|
3377 | Flags As DWord
|
---|
3378 | EventCode As DWord
|
---|
3379 | End Type
|
---|
3380 | TypeDef PPOWER_ACTION_POLICY = *POWER_ACTION_POLICY
|
---|
3381 |
|
---|
3382 | ' POWER_ACTION_POLICY->Flags:
|
---|
3383 | Const POWER_ACTION_QUERY_ALLOWED = &h00000001
|
---|
3384 | Const POWER_ACTION_UI_ALLOWED = &h00000002
|
---|
3385 | Const POWER_ACTION_OVERRIDE_APPS = &h00000004
|
---|
3386 | Const POWER_ACTION_LIGHTEST_FIRST = &h10000000
|
---|
3387 | Const POWER_ACTION_LOCK_CONSOLE = &h20000000
|
---|
3388 | Const POWER_ACTION_DISABLE_WAKES = &h40000000
|
---|
3389 | Const POWER_ACTION_CRITICAL = &h80000000
|
---|
3390 |
|
---|
3391 | ' POWER_ACTION_POLICY->EventCode flags
|
---|
3392 | Const POWER_LEVEL_USER_NOTIFY_TEXT = &h00000001
|
---|
3393 | Const POWER_LEVEL_USER_NOTIFY_SOUND = &h00000002
|
---|
3394 | Const POWER_LEVEL_USER_NOTIFY_EXEC = &h00000004
|
---|
3395 | Const POWER_USER_NOTIFY_BUTTON = &h00000008
|
---|
3396 | Const POWER_USER_NOTIFY_SHUTDOWN = &h00000010
|
---|
3397 | Const POWER_FORCE_TRIGGER_RESET = &h80000000
|
---|
3398 |
|
---|
3399 | Const BATTERY_DISCHARGE_FLAGS_EVENTCODE_MASK = &h00000007
|
---|
3400 | Const BATTERY_DISCHARGE_FLAGS_ENABLE = &h80000000
|
---|
3401 |
|
---|
3402 | Type SYSTEM_POWER_LEVEL
|
---|
3403 | Enable As BOOLEAN
|
---|
3404 | Spare[ELM(3)] As Byte
|
---|
3405 | BatteryLevel As DWord
|
---|
3406 | PowerPolicy As POWER_ACTION_POLICY
|
---|
3407 | MinSystemState As POWER_ACTION_POLICY
|
---|
3408 | End Type
|
---|
3409 | TypeDef PSYSTEM_POWER_LEVEL = *SYSTEM_POWER_LEVEL
|
---|
3410 |
|
---|
3411 | Const NUM_DISCHARGE_POLICIES = 4
|
---|
3412 | Const DISCHARGE_POLICY_CRITICAL= 0
|
---|
3413 | Const DISCHARGE_POLICY_LOW = 1
|
---|
3414 |
|
---|
3415 | Type SYSTEM_POWER_POLICY
|
---|
3416 | Revision As DWord
|
---|
3417 |
|
---|
3418 | PowerButton As POWER_ACTION_POLICY
|
---|
3419 | SleepButton As POWER_ACTION_POLICY
|
---|
3420 | LidClose As POWER_ACTION_POLICY
|
---|
3421 | LidOpenWake As SYSTEM_POWER_STATE
|
---|
3422 | Reserved As DWord
|
---|
3423 |
|
---|
3424 | Idle As POWER_ACTION_POLICY
|
---|
3425 | IdleTimeout As DWord
|
---|
3426 | IdleSensitivity As Byte
|
---|
3427 |
|
---|
3428 | DynamicThrottle As Byte
|
---|
3429 | Spare2[ELM(2)] As Byte
|
---|
3430 |
|
---|
3431 | MinSleep As SYSTEM_POWER_STATE
|
---|
3432 | MaxSleep As SYSTEM_POWER_STATE
|
---|
3433 | ReducedLatencySleep As SYSTEM_POWER_STATE
|
---|
3434 | WinLogonFlags As DWord
|
---|
3435 |
|
---|
3436 | Spare3 As DWord
|
---|
3437 |
|
---|
3438 | DozeS4Timeout As DWord
|
---|
3439 |
|
---|
3440 | BroadcastCapacityResolution; As DWord
|
---|
3441 | DischargePolicy[ELM(NUM_DISCHARGE_POLICIES)] As SYSTEM_POWER_LEVEL
|
---|
3442 |
|
---|
3443 | VideoTimeout As DWord
|
---|
3444 | VideoDimDisplay As BOOLEAN
|
---|
3445 | VideoReserved[ELM(3)] As DWord
|
---|
3446 |
|
---|
3447 | SpindownTimeout As DWord
|
---|
3448 |
|
---|
3449 | OptimizeForPower As BOOLEAN
|
---|
3450 | FanThrottleTolerance As Byte
|
---|
3451 | ForcedThrottle As Byte
|
---|
3452 | MinThrottle As Byte
|
---|
3453 | OverThrottled As POWER_ACTION_POLICY
|
---|
3454 | End Type
|
---|
3455 | TypeDef PSYSTEM_POWER_POLICY = *SYSTEM_POWER_POLICY
|
---|
3456 |
|
---|
3457 | ' processor power policy state
|
---|
3458 |
|
---|
3459 | Const PROCESSOR_IDLESTATE_POLICY_COUNT = &h3
|
---|
3460 |
|
---|
3461 | Type PROCESSOR_IDLESTATE_INFO
|
---|
3462 | TimeCheck As DWord
|
---|
3463 | DemotePercent As Byte
|
---|
3464 | PromotePercent As Byte
|
---|
3465 | Spare[ELM(2)] As Byte
|
---|
3466 | End Type
|
---|
3467 | TypeDef PPROCESSOR_IDLESTATE_INFO = *PROCESSOR_IDLESTATE_INFO
|
---|
3468 |
|
---|
3469 | Type PROCESSOR_IDLESTATE_POLICY
|
---|
3470 | Revision As Word
|
---|
3471 | FlagsAsWRORD As Word
|
---|
3472 | ' Union
|
---|
3473 | ' AsWORD As Word
|
---|
3474 | ' struct {
|
---|
3475 | ' WORD AllowScaling : 1;
|
---|
3476 | ' WORD Disabled : 1;
|
---|
3477 | ' WORD Reserved : 14;
|
---|
3478 | ' };
|
---|
3479 | ' } Flags;
|
---|
3480 |
|
---|
3481 | PolicyCount As DWord
|
---|
3482 | Policy[ELM(PROCESSOR_IDLESTATE_POLICY_COUNT)] As PROCESSOR_IDLESTATE_INFO
|
---|
3483 | End Type
|
---|
3484 | TypeDef PPROCESSOR_IDLESTATE_POLICY = *PROCESSOR_IDLESTATE_POLICY
|
---|
3485 |
|
---|
3486 | Const PO_THROTTLE_NONE = 0
|
---|
3487 | Const PO_THROTTLE_CONSTANT = 1
|
---|
3488 | Const PO_THROTTLE_DEGRADE = 2
|
---|
3489 | Const PO_THROTTLE_ADAPTIVE = 3
|
---|
3490 | Const PO_THROTTLE_MAXIMUM = 4
|
---|
3491 |
|
---|
3492 | Type PROCESSOR_POWER_POLICY_INFO
|
---|
3493 | TimeCheck As DWord
|
---|
3494 | DemoteLimit As DWord
|
---|
3495 | PromoteLimit As DWord
|
---|
3496 |
|
---|
3497 | DemotePercent As Byte
|
---|
3498 | PromotePercent As Byte
|
---|
3499 | Spare[ELM(2)] As Byte
|
---|
3500 | Allow As DWord
|
---|
3501 | ' AllowDemotion:1 As DWord
|
---|
3502 | ' AllowPromotion:1 As DWord
|
---|
3503 | ' Reserved:30 As DWord
|
---|
3504 | End Type
|
---|
3505 | TypeDef PPROCESSOR_POWER_POLICY_INFO = *PROCESSOR_POWER_POLICY_INFO
|
---|
3506 |
|
---|
3507 | Type PROCESSOR_POWER_POLICY
|
---|
3508 | Revision As DWord
|
---|
3509 |
|
---|
3510 | DynamicThrottle As Byte
|
---|
3511 | Spare[ELM(3)] As Byte
|
---|
3512 |
|
---|
3513 | DisableCStates/*:1*/ As DWord
|
---|
3514 | ' Reserved:31 As DWord
|
---|
3515 |
|
---|
3516 | PolicyCount As DWord
|
---|
3517 | Policy[ELM(3)] As PROCESSOR_POWER_POLICY_INFO
|
---|
3518 | End Type
|
---|
3519 | TypeDef PPROCESSOR_POWER_POLICY = *PROCESSOR_POWER_POLICY
|
---|
3520 |
|
---|
3521 | ' Processor Perf State Policy.
|
---|
3522 | Const PERFSTATE_POLICY_CHANGE_IDEAL = &h00
|
---|
3523 | Const PERFSTATE_POLICY_CHANGE_SINGLE = &h01
|
---|
3524 | Const PERFSTATE_POLICY_CHANGE_ROCKET = &h02
|
---|
3525 | Const PERFSTATE_POLICY_CHANGE_MAX = PERFSTATE_POLICY_CHANGE_ROCKET
|
---|
3526 |
|
---|
3527 | Type PROCESSOR_PERFSTATE_POLICY 'アラインメント平気か?
|
---|
3528 | Revision As DWord
|
---|
3529 | MaxThrottle As Byte
|
---|
3530 | MinThrottle As Byte
|
---|
3531 | BusyAdjThreshold As Byte
|
---|
3532 | FlagsAsBYTE As Byte '下の共用体メンバの部分
|
---|
3533 | ' Union
|
---|
3534 | ' Spare As Byte
|
---|
3535 | ' Union
|
---|
3536 | ' AsBYTE As Byte
|
---|
3537 | ' Type
|
---|
3538 | ' NoDomainAccounting : 1 As Byte
|
---|
3539 | ' IncreasePolicy: 2 As Byte
|
---|
3540 | ' DecreasePolicy: 2 As Byte
|
---|
3541 | ' Reserved : 3 As Byte
|
---|
3542 | ' End Type
|
---|
3543 | ' } Flags;
|
---|
3544 | ' };
|
---|
3545 | TimeCheck As DWord
|
---|
3546 | IncreaseTime As DWord
|
---|
3547 | DecreaseTime As DWord
|
---|
3548 | IncreasePercent As DWord
|
---|
3549 | DecreasePercent As DWord
|
---|
3550 | End Type
|
---|
3551 | TypeDef PPROCESSOR_PERFSTATE_POLICY = *PROCESSOR_PERFSTATE_POLICY
|
---|
3552 |
|
---|
3553 | Type ADMINISTRATOR_POWER_POLICY
|
---|
3554 | MinSleep As SYSTEM_POWER_STATE
|
---|
3555 | MaxSleep As SYSTEM_POWER_STATE
|
---|
3556 |
|
---|
3557 | MinVideoTimeout As DWord
|
---|
3558 | MaxVideoTimeout As DWord
|
---|
3559 |
|
---|
3560 | MinSpindownTimeout As DWord
|
---|
3561 | MaxSpindownTimeout As DWord
|
---|
3562 | End Type
|
---|
3563 | TypeDef PADMINISTRATOR_POWER_POLICY = *ADMINISTRATOR_POWER_POLICY
|
---|
3564 |
|
---|
3565 | Type SYSTEM_POWER_CAPABILITIES
|
---|
3566 | PowerButtonPresent As BOOLEAN
|
---|
3567 | SleepButtonPresent As BOOLEAN
|
---|
3568 | LidPresent As BOOLEAN
|
---|
3569 | SystemS1 As BOOLEAN
|
---|
3570 | SystemS2 As BOOLEAN
|
---|
3571 | SystemS3 As BOOLEAN
|
---|
3572 | SystemS4 As BOOLEAN
|
---|
3573 | SystemS5 As BOOLEAN
|
---|
3574 | HiberFilePresent As BOOLEAN
|
---|
3575 | FullWake As BOOLEAN
|
---|
3576 | VideoDimPresent As BOOLEAN
|
---|
3577 | ApmPresent As BOOLEAN
|
---|
3578 | UpsPresent As BOOLEAN
|
---|
3579 |
|
---|
3580 | ThermalControl As BOOLEAN
|
---|
3581 | ProcessorThrottle As BOOLEAN
|
---|
3582 | ProcessorMinThrottle As Byte
|
---|
3583 |
|
---|
3584 | '#if (NTDDI_VERSION < NTDDI_WINXP)
|
---|
3585 | ' ProcessorThrottleScale As Byte
|
---|
3586 | ' spare2[ELM(4)] As Byte
|
---|
3587 | '#else
|
---|
3588 | ProcessorMaxThrottle As Byte
|
---|
3589 | FastSystemS4 As BOOLEAN
|
---|
3590 | spare2[(3)] As Byte
|
---|
3591 | '#endif // (NTDDI_VERSION < NTDDI_WINXP)
|
---|
3592 |
|
---|
3593 | DiskSpinDown As BOOLEAN
|
---|
3594 | spare3[ELM(8)] As Byte
|
---|
3595 |
|
---|
3596 | SystemBatteriesPresent As BOOLEAN
|
---|
3597 | BatteriesAreShortTerm As BOOLEAN
|
---|
3598 | BatteryScale[ELM(3)] As BATTERY_REPORTING_SCALE
|
---|
3599 |
|
---|
3600 | AcOnLineWake As SYSTEM_POWER_STATE
|
---|
3601 | SoftLidWake As SYSTEM_POWER_STATE
|
---|
3602 | RtcWake As SYSTEM_POWER_STATE
|
---|
3603 | MinDeviceWakeState As SYSTEM_POWER_STATE
|
---|
3604 | DefaultLowLatencyWake As SYSTEM_POWER_STATE
|
---|
3605 | End Type
|
---|
3606 | TypeDef PSYSTEM_POWER_CAPABILITIES = *SYSTEM_POWER_CAPABILITIES
|
---|
3607 |
|
---|
3608 | Type SYSTEM_BATTERY_STATE
|
---|
3609 | AcOnLine As BOOLEAN
|
---|
3610 | BatteryPresent As BOOLEAN
|
---|
3611 | Charging As BOOLEAN
|
---|
3612 | Discharging As BOOLEAN
|
---|
3613 | Spare1[ELM(4)] As BOOLEAN
|
---|
3614 |
|
---|
3615 | MaxCapacity As DWord
|
---|
3616 | RemainingCapacity As DWord
|
---|
3617 | Rate As DWord
|
---|
3618 | EstimatedTime As DWord
|
---|
3619 |
|
---|
3620 | DefaultAlert1 As DWord
|
---|
3621 | DefaultAlert2 As DWord
|
---|
3622 | End Type
|
---|
3623 | TypeDef PSYSTEM_BATTERY_STATE = *SYSTEM_BATTERY_STATE
|
---|
3624 |
|
---|
3625 | Const IMAGE_DOS_SIGNATURE = &h5A4D ' MZ
|
---|
3626 | Const IMAGE_OS2_SIGNATURE = &h454E ' NE
|
---|
3627 | Const IMAGE_OS2_SIGNATURE_LE = &h454C ' LE
|
---|
3628 | Const IMAGE_VXD_SIGNATURE = &h454C ' LE
|
---|
3629 | Const IMAGE_NT_SIGNATURE = &h00004550 ' PE00
|
---|
3630 |
|
---|
3631 | Type Align(2) IMAGE_DOS_HEADER ' DOS .EXE header
|
---|
3632 | e_magic As Word ' Magic number
|
---|
3633 | e_cblp As Word ' Bytes on last page of file
|
---|
3634 | e_cp As Word ' Pages in file
|
---|
3635 | e_crlc As Word ' Relocations
|
---|
3636 | e_cparhdr As Word ' Size of header in paragraphs
|
---|
3637 | e_minalloc As Word ' Minimum extra paragraphs needed
|
---|
3638 | e_maxalloc As Word ' Maximum extra paragraphs needed
|
---|
3639 | e_ss As Word ' Initial (relative) SS value
|
---|
3640 | e_sp As Word ' Initial SP value
|
---|
3641 | e_csum As Word ' Checksum
|
---|
3642 | e_ip As Word ' Initial IP value
|
---|
3643 | e_cs As Word ' Initial (relative) CS value
|
---|
3644 | e_lfarlc As Word ' File address of relocation table
|
---|
3645 | e_ovno As Word ' Overlay number
|
---|
3646 | e_res[ELM(4)] As Word ' Reserved words
|
---|
3647 | e_oemid As Word ' OEM identifier (for e_oeminfo)
|
---|
3648 | e_oeminfo As Word ' OEM information; e_oemid specific
|
---|
3649 | e_res2[ELM(10)] As Word ' Reserved words
|
---|
3650 | e_lfanew As Long ' File address of new exe header
|
---|
3651 | End Type
|
---|
3652 | TypeDef PIMAGE_DOS_HEADER = *IMAGE_DOS_HEADER
|
---|
3653 |
|
---|
3654 | Type Align(2) IMAGE_OS2_HEADER ' OS/2 .EXE header
|
---|
3655 | ne_magic As Word ' Magic number
|
---|
3656 | ne_ver As CHAR ' Version number
|
---|
3657 | ne_rev As CHAR ' Revision number
|
---|
3658 | ne_enttab As Word ' Offset of Entry Table
|
---|
3659 | ne_cbenttab As Word ' Number of bytes in Entry Table
|
---|
3660 | ne_crc As Long ' Checksum of whole file
|
---|
3661 | ne_flags As Word ' Flag word
|
---|
3662 | ne_autodata As Word ' Automatic data segment number
|
---|
3663 | ne_heap As Word ' Initial heap allocation
|
---|
3664 | ne_stack As Word ' Initial stack allocation
|
---|
3665 | ne_csip As Long ' Initial CS:IP setting
|
---|
3666 | ne_sssp As Long ' Initial SS:SP setting
|
---|
3667 | ne_cseg As Word ' Count of file segments
|
---|
3668 | ne_cmod As Word ' Entries in Module Reference Table
|
---|
3669 | ne_cbnrestab As Word ' Size of non-resident name table
|
---|
3670 | ne_segtab As Word ' Offset of Segment Table
|
---|
3671 | ne_rsrctab As Word ' Offset of Resource Table
|
---|
3672 | ne_restab As Word ' Offset of resident name table
|
---|
3673 | ne_modtab As Word ' Offset of Module Reference Table
|
---|
3674 | ne_imptab As Word ' Offset of Imported Names Table
|
---|
3675 | ne_nrestab As Long ' Offset of Non-resident Names Table
|
---|
3676 | ne_cmovent As Word ' Count of movable entries
|
---|
3677 | ne_align As Word ' Segment alignment shift count
|
---|
3678 | ne_cres As Word ' Count of resource segments
|
---|
3679 | ne_exetyp As Byte ' Target Operating system
|
---|
3680 | ne_flagsothers As Byte ' Other .EXE flags
|
---|
3681 | ne_pretthunks As Word ' offset to return thunks
|
---|
3682 | ne_psegrefbytes As Word ' offset to segment ref. bytes
|
---|
3683 | ne_swaparea As Word ' Minimum code swap area size
|
---|
3684 | ne_expver As Word ' Expected Windows version number
|
---|
3685 | End Type
|
---|
3686 | TypeDef PIMAGE_OS2_HEADER = *IMAGE_OS2_HEADER
|
---|
3687 |
|
---|
3688 | Type Align(2) IMAGE_VXD_HEADER ' Windows VXD header
|
---|
3689 | e32_magic As Word ' Magic number
|
---|
3690 | e32_border As Byte ' The byte ordering for the VXD
|
---|
3691 | e32_worder As Byte ' The word ordering for the VXD
|
---|
3692 | e32_level As DWord ' The EXE format level for now = 0
|
---|
3693 | e32_cpu As Word ' The CPU type
|
---|
3694 | e32_os As Word ' The OS type
|
---|
3695 | e32_ver As DWord ' Module version
|
---|
3696 | e32_mflags As DWord ' Module flags
|
---|
3697 | e32_mpages As DWord ' Module # pages
|
---|
3698 | e32_startobj As DWord ' Object # for instruction pointer
|
---|
3699 | e32_eip As DWord ' Extended instruction pointer
|
---|
3700 | e32_stackobj As DWord ' Object # for stack pointer
|
---|
3701 | e32_esp As DWord ' Extended stack pointer
|
---|
3702 | e32_pagesize As DWord ' VXD page size
|
---|
3703 | e32_lastpagesize As DWord ' Last page size in VXD
|
---|
3704 | e32_fixupsize As DWord ' Fixup section size
|
---|
3705 | e32_fixupsum As DWord ' Fixup section checksum
|
---|
3706 | e32_ldrsize As DWord ' Loader section size
|
---|
3707 | e32_ldrsum As DWord ' Loader section checksum
|
---|
3708 | e32_objtab As DWord ' Object table offset
|
---|
3709 | e32_objcnt As DWord ' Number of objects in module
|
---|
3710 | e32_objmap As DWord ' Object page map offset
|
---|
3711 | e32_itermap As DWord ' Object iterated data map offset
|
---|
3712 | e32_rsrctab As DWord ' Offset of Resource Table
|
---|
3713 | e32_rsrccnt As DWord ' Number of resource entries
|
---|
3714 | e32_restab As DWord ' Offset of resident name table
|
---|
3715 | e32_enttab As DWord ' Offset of Entry Table
|
---|
3716 | e32_dirtab As DWord ' Offset of Module Directive Table
|
---|
3717 | e32_dircnt As DWord ' Number of module directives
|
---|
3718 | e32_fpagetab As DWord ' Offset of Fixup Page Table
|
---|
3719 | e32_frectab As DWord ' Offset of Fixup Record Table
|
---|
3720 | e32_impmod As DWord ' Offset of Import Module Name Table
|
---|
3721 | e32_impmodcnt As DWord ' Number of entries in Import Module Name Table
|
---|
3722 | e32_impproc As DWord ' Offset of Import Procedure Name Table
|
---|
3723 | e32_pagesum As DWord ' Offset of Per-Page Checksum Table
|
---|
3724 | e32_datapage As DWord ' Offset of Enumerated Data Pages
|
---|
3725 | e32_preload As DWord ' Number of preload pages
|
---|
3726 | e32_nrestab As DWord ' Offset of Non-resident Names Table
|
---|
3727 | e32_cbnrestab As DWord ' Size of Non-resident Name Table
|
---|
3728 | e32_nressum As DWord ' Non-resident Name Table Checksum
|
---|
3729 | e32_autodata As DWord ' Object # for automatic data object
|
---|
3730 | e32_debuginfo As DWord ' Offset of the debugging information
|
---|
3731 | e32_debuglen As DWord ' The length of the debugging info. in bytes
|
---|
3732 | e32_instpreload As DWord ' Number of instance pages in preload section of VXD file
|
---|
3733 | e32_instdemand As DWord ' Number of instance pages in demand load section of VXD file
|
---|
3734 | e32_heapsize As DWord ' Size of heap - for 16-bit apps
|
---|
3735 | e32_res3[ELM(12)] As Byte ' Reserved words
|
---|
3736 | e32_winresoff As DWord
|
---|
3737 | e32_winreslen As DWord
|
---|
3738 | e32_devid As Word ' Device ID for VxD
|
---|
3739 | e32_ddkver As Word ' DDK version for VxD
|
---|
3740 | End Type
|
---|
3741 | TypeDef PIMAGE_VXD_HEADER = *IMAGE_VXD_HEADER
|
---|
3742 |
|
---|
3743 | ' File header format.
|
---|
3744 | Type Align(4) IMAGE_FILE_HEADER
|
---|
3745 | Machine As Word
|
---|
3746 | NumberOfSections As Word
|
---|
3747 | TimeDateStamp As DWord
|
---|
3748 | PointerToSymbolTable As DWord
|
---|
3749 | NumberOfSymbols As DWord
|
---|
3750 | SizeOfOptionalHeader As Word
|
---|
3751 | Characteristics As Word
|
---|
3752 | End Type
|
---|
3753 | TypeDef PIMAGE_FILE_HEADER = *IMAGE_FILE_HEADER
|
---|
3754 |
|
---|
3755 | Const IMAGE_SIZEOF_FILE_HEADER = 20
|
---|
3756 |
|
---|
3757 | Const IMAGE_FILE_RELOCS_STRIPPED = &h0001 ' Relocation info stripped from file.
|
---|
3758 | Const IMAGE_FILE_EXECUTABLE_IMAGE = &h0002 ' File is executable (i.e. no unresolved externel references).
|
---|
3759 | Const IMAGE_FILE_LINE_NUMS_STRIPPED = &h0004 ' Line nunbers stripped from file.
|
---|
3760 | Const IMAGE_FILE_LOCAL_SYMS_STRIPPED = &h0008 ' Local symbols stripped from file.
|
---|
3761 | Const IMAGE_FILE_AGGRESIVE_WS_TRIM = &h0010 ' Agressively trim working set
|
---|
3762 | Const IMAGE_FILE_LARGE_ADDRESS_AWARE = &h0020 ' App can handle >2gb addresses
|
---|
3763 | Const IMAGE_FILE_BYTES_REVERSED_LO = &h0080 ' Bytes of machine word are reversed.
|
---|
3764 | Const IMAGE_FILE_32BIT_MACHINE = &h0100 ' 32 bit word machine.
|
---|
3765 | Const IMAGE_FILE_DEBUG_STRIPPED = &h0200 ' Debugging info stripped from file in .DBG file
|
---|
3766 | Const IMAGE_FILE_REMOVABLE_RUN_FROM_SWAP = &h0400 ' If Image is on removable media, copy and run from the swap file.
|
---|
3767 | Const IMAGE_FILE_NET_RUN_FROM_SWAP = &h0800 ' If Image is on Net, copy and run from the swap file.
|
---|
3768 | Const IMAGE_FILE_SYSTEM = &h1000 ' System File.
|
---|
3769 | Const IMAGE_FILE_DLL = &h2000 ' File is a DLL.
|
---|
3770 | Const IMAGE_FILE_UP_SYSTEM_ONLY = &h4000 ' File should only be run on a UP machine
|
---|
3771 | Const IMAGE_FILE_BYTES_REVERSED_HI = &h8000 ' Bytes of machine word are reversed.
|
---|
3772 |
|
---|
3773 | Const IMAGE_FILE_MACHINE_UNKNOWN = 0
|
---|
3774 | Const IMAGE_FILE_MACHINE_I386 = &h014c ' Intel 386.
|
---|
3775 | Const IMAGE_FILE_MACHINE_R3000 = &h0162 ' MIPS little-endian, 0x160 big-endian
|
---|
3776 | Const IMAGE_FILE_MACHINE_R4000 = &h0166 ' MIPS little-endian
|
---|
3777 | Const IMAGE_FILE_MACHINE_R10000 = &h0168 ' MIPS little-endian
|
---|
3778 | Const IMAGE_FILE_MACHINE_WCEMIPSV2 = &h0169 ' MIPS little-endian WCE v2
|
---|
3779 | Const IMAGE_FILE_MACHINE_ALPHA = &h0184 ' Alpha_AXP
|
---|
3780 | Const IMAGE_FILE_MACHINE_SH3 = &h01a2 ' SH3 little-endian
|
---|
3781 | Const IMAGE_FILE_MACHINE_SH3DSP = &h01a3
|
---|
3782 | Const IMAGE_FILE_MACHINE_SH3E = &h01a4 ' SH3E little-endian
|
---|
3783 | Const IMAGE_FILE_MACHINE_SH4 = &h01a6 ' SH4 little-endian
|
---|
3784 | Const IMAGE_FILE_MACHINE_SH5 = &h01a8 ' SH5
|
---|
3785 | Const IMAGE_FILE_MACHINE_ARM = &h01c0 ' ARM Little-Endian
|
---|
3786 | Const IMAGE_FILE_MACHINE_THUMB = &h01c2
|
---|
3787 | Const IMAGE_FILE_MACHINE_AM33 = &h01d3
|
---|
3788 | Const IMAGE_FILE_MACHINE_POWERPC = &h01F0 ' IBM PowerPC Little-Endian
|
---|
3789 | Const IMAGE_FILE_MACHINE_POWERPCFP = &h01f1
|
---|
3790 | Const IMAGE_FILE_MACHINE_IA64 = &h0200 ' Intel 64
|
---|
3791 | Const IMAGE_FILE_MACHINE_MIPS16 = &h0266 ' MIPS
|
---|
3792 | Const IMAGE_FILE_MACHINE_ALPHA64 = &h0284 ' ALPHA64
|
---|
3793 | Const IMAGE_FILE_MACHINE_MIPSFPU = &h0366 ' MIPS
|
---|
3794 | Const IMAGE_FILE_MACHINE_MIPSFPU16 = &h0466 ' MIPS
|
---|
3795 | Const IMAGE_FILE_MACHINE_AXP64 = IMAGE_FILE_MACHINE_ALPHA64
|
---|
3796 | Const IMAGE_FILE_MACHINE_TRICORE = &h0520 ' Infineon
|
---|
3797 | Const IMAGE_FILE_MACHINE_CEF = &h0CEF
|
---|
3798 | Const IMAGE_FILE_MACHINE_EBC = &h0EBC ' EFI Byte Code
|
---|
3799 | Const IMAGE_FILE_MACHINE_AMD64 = &h8664 ' AMD64 (K8)
|
---|
3800 | Const IMAGE_FILE_MACHINE_M32R = &h9041 ' M32R little-endian
|
---|
3801 | Const IMAGE_FILE_MACHINE_CEE = &hC0EE
|
---|
3802 |
|
---|
3803 | ' Directory format.
|
---|
3804 | Type IMAGE_DATA_DIRECTORY
|
---|
3805 | VirtualAddress As DWord
|
---|
3806 | Size As DWord
|
---|
3807 | End Type
|
---|
3808 | TypeDef PIMAGE_DATA_DIRECTORY = *IMAGE_DATA_DIRECTORY
|
---|
3809 |
|
---|
3810 | Const IMAGE_NUMBEROF_DIRECTORY_ENTRIES = 16
|
---|
3811 |
|
---|
3812 | ' Optional header format.
|
---|
3813 | Type IMAGE_OPTIONAL_HEADER32
|
---|
3814 | Magic As Word
|
---|
3815 | MajorLinkerVersion As Byte
|
---|
3816 | MinorLinkerVersion As Byte
|
---|
3817 | SizeOfCode As DWord
|
---|
3818 | SizeOfInitializedData As DWord
|
---|
3819 | SizeOfUninitializedData As DWord
|
---|
3820 | AddressOfEntryPoint As DWord
|
---|
3821 | BaseOfCode As DWord
|
---|
3822 | BaseOfData As DWord
|
---|
3823 |
|
---|
3824 | ImageBase As DWord
|
---|
3825 | SectionAlignment As DWord
|
---|
3826 | FileAlignment As DWord
|
---|
3827 | MajorOperatingSystemVersion As Word
|
---|
3828 | MinorOperatingSystemVersion As Word
|
---|
3829 | MajorImageVersion As Word
|
---|
3830 | MinorImageVersion As Word
|
---|
3831 | MajorSubsystemVersion As Word
|
---|
3832 | MinorSubsystemVersion As Word
|
---|
3833 | Win32VersionValue As Word
|
---|
3834 | SizeOfImage As DWord
|
---|
3835 | SizeOfHeaders As DWord
|
---|
3836 | CheckSum As DWord
|
---|
3837 | Subsystem As Word
|
---|
3838 | DllCharacteristics As Word
|
---|
3839 | SizeOfStackReserve As DWord
|
---|
3840 | SizeOfStackCommit As DWord
|
---|
3841 | SizeOfHeapReserve As DWord
|
---|
3842 | SizeOfHeapCommit As DWord
|
---|
3843 | LoaderFlags As DWord
|
---|
3844 | NumberOfRvaAndSizes As DWord
|
---|
3845 | DataDirectory[ELM(IMAGE_NUMBEROF_DIRECTORY_ENTRIES)] As IMAGE_DATA_DIRECTORY
|
---|
3846 | End Type
|
---|
3847 | TypeDef PIMAGE_OPTIONAL_HEADER32 = *IMAGE_OPTIONAL_HEADER32
|
---|
3848 |
|
---|
3849 | Type IMAGE_ROM_OPTIONAL_HEADER
|
---|
3850 | Magic As Word
|
---|
3851 | MajorLinkerVersion As Byte
|
---|
3852 | MinorLinkerVersion As Byte
|
---|
3853 | SizeOfCode As DWord
|
---|
3854 | SizeOfInitializedData As DWord
|
---|
3855 | SizeOfUninitializedData As DWord
|
---|
3856 | AddressOfEntryPoint As DWord
|
---|
3857 | BaseOfCode As DWord
|
---|
3858 | BaseOfData As DWord
|
---|
3859 | BaseOfBss As DWord
|
---|
3860 | GprMask As DWord
|
---|
3861 | CprMask[ELM(4)] As DWord
|
---|
3862 | GpValue As DWord
|
---|
3863 | End Type
|
---|
3864 | TypeDef PIMAGE_ROM_OPTIONAL_HEADER = *IMAGE_ROM_OPTIONAL_HEADER
|
---|
3865 |
|
---|
3866 | Type IMAGE_OPTIONAL_HEADER64
|
---|
3867 | Magic As Word
|
---|
3868 | MajorLinkerVersion As Byte
|
---|
3869 | MinorLinkerVersion As Byte
|
---|
3870 | SizeOfCode As DWord
|
---|
3871 | SizeOfInitializedData As DWord
|
---|
3872 | SizeOfUninitializedData As DWord
|
---|
3873 | AddressOfEntryPoint As DWord
|
---|
3874 | BaseOfCode As DWord
|
---|
3875 | ImageBase As QWord
|
---|
3876 | SectionAlignment As DWord
|
---|
3877 | FileAlignment As DWord
|
---|
3878 | MajorOperatingSystemVersion As Word
|
---|
3879 | MinorOperatingSystemVersion As Word
|
---|
3880 | MajorImageVersion As Word
|
---|
3881 | MinorImageVersion As Word
|
---|
3882 | MajorSubsystemVersion As Word
|
---|
3883 | MinorSubsystemVersion As Word
|
---|
3884 | Win32VersionValue As DWord
|
---|
3885 | SizeOfImage As DWord
|
---|
3886 | SizeOfHeaders As DWord
|
---|
3887 | CheckSum As DWord
|
---|
3888 | Subsystem As Word
|
---|
3889 | DllCharacteristics As Word
|
---|
3890 | SizeOfStackReserve As QWord
|
---|
3891 | SizeOfStackCommit As QWord
|
---|
3892 | SizeOfHeapReserve As QWord
|
---|
3893 | SizeOfHeapCommit As QWord
|
---|
3894 | LoaderFlags As DWord
|
---|
3895 | NumberOfRvaAndSizes As DWord
|
---|
3896 | DataDirectory[ELM(IMAGE_NUMBEROF_DIRECTORY_ENTRIES)] As IMAGE_DATA_DIRECTORY
|
---|
3897 | End Type
|
---|
3898 | TypeDef PIMAGE_OPTIONAL_HEADER64 = *IMAGE_OPTIONAL_HEADER64
|
---|
3899 |
|
---|
3900 | Const IMAGE_NT_OPTIONAL_HDR32_MAGIC = &h10b
|
---|
3901 | Const IMAGE_NT_OPTIONAL_HDR64_MAGIC = &h20b
|
---|
3902 | Const IMAGE_ROM_OPTIONAL_HDR_MAGIC = &h107
|
---|
3903 |
|
---|
3904 | #ifdef _WIN64
|
---|
3905 | TypeDef IMAGE_OPTIONAL_HEADER = IMAGE_OPTIONAL_HEADER64
|
---|
3906 | TypeDef PIMAGE_OPTIONAL_HEADER = PIMAGE_OPTIONAL_HEADER64
|
---|
3907 | Const IMAGE_NT_OPTIONAL_HDR_MAGIC = IMAGE_NT_OPTIONAL_HDR64_MAGIC
|
---|
3908 | #else
|
---|
3909 | TypeDef IMAGE_OPTIONAL_HEADER = IMAGE_OPTIONAL_HEADER32
|
---|
3910 | TypeDef PIMAGE_OPTIONAL_HEADER = PIMAGE_OPTIONAL_HEADER32
|
---|
3911 | Const IMAGE_NT_OPTIONAL_HDR_MAGIC = IMAGE_NT_OPTIONAL_HDR32_MAGIC
|
---|
3912 | #endif
|
---|
3913 |
|
---|
3914 | Type IMAGE_NT_HEADERS64
|
---|
3915 | Signature As DWord
|
---|
3916 | FileHeader As IMAGE_FILE_HEADER
|
---|
3917 | OptionalHeader As IMAGE_OPTIONAL_HEADER64
|
---|
3918 | End Type
|
---|
3919 | TypeDef PIMAGE_NT_HEADERS64 = *IMAGE_NT_HEADERS64
|
---|
3920 |
|
---|
3921 | Type IMAGE_NT_HEADERS32
|
---|
3922 | Signature As DWord
|
---|
3923 | FileHeader As IMAGE_FILE_HEADER
|
---|
3924 | OptionalHeader As IMAGE_OPTIONAL_HEADER32
|
---|
3925 | End Type
|
---|
3926 | TypeDef PIMAGE_NT_HEADERS32 = *IMAGE_NT_HEADERS32
|
---|
3927 |
|
---|
3928 | Type IMAGE_ROM_HEADERS
|
---|
3929 | FileHeader As IMAGE_FILE_HEADER
|
---|
3930 | OptionalHeader As IMAGE_ROM_OPTIONAL_HEADER
|
---|
3931 | End Type
|
---|
3932 | TypeDef PIMAGE_ROM_HEADERS = *IMAGE_ROM_HEADERS
|
---|
3933 |
|
---|
3934 | #ifdef _WIN64
|
---|
3935 | TypeDef IMAGE_NT_HEADERS = IMAGE_NT_HEADERS64
|
---|
3936 | TypeDef PIMAGE_NT_HEADERS = PIMAGE_NT_HEADERS64
|
---|
3937 | #else
|
---|
3938 | TypeDef IMAGE_NT_HEADERS = IMAGE_NT_HEADERS32
|
---|
3939 | TypeDef PIMAGE_NT_HEADERS = PIMAGE_NT_HEADERS32
|
---|
3940 | #endif
|
---|
3941 | /*
|
---|
3942 | Const IMAGE_FIRST_SECTION( ntheader ) ( \_
|
---|
3943 | ((ntheader) As ULONG_PTR + _
|
---|
3944 | FIELD_OFFSET( IMAGE_NT_HEADERS, OptionalHeader ) + _
|
---|
3945 | ((PIMAGE_NT_HEADERS)(ntheader))->FileHeader.SizeOfOptionalHeader _
|
---|
3946 | ) As PIMAGE_SECTION_HEADER)
|
---|
3947 | */
|
---|
3948 | Const IMAGE_SUBSYSTEM_UNKNOWN = 0 ' Unknown subsystem.
|
---|
3949 | Const IMAGE_SUBSYSTEM_NATIVE = 1 ' Image doesn't require a subsystem.
|
---|
3950 | Const IMAGE_SUBSYSTEM_WINDOWS_GUI = 2 ' Image runs in the Windows GUI subsystem.
|
---|
3951 | Const IMAGE_SUBSYSTEM_WINDOWS_CUI = 3 ' Image runs in the Windows character subsystem.
|
---|
3952 | Const IMAGE_SUBSYSTEM_OS2_CUI = 5 ' image runs in the OS/2 character subsystem.
|
---|
3953 | Const IMAGE_SUBSYSTEM_POSIX_CUI = 7 ' image runs in the Posix character subsystem.
|
---|
3954 | Const IMAGE_SUBSYSTEM_NATIVE_WINDOWS = 8 ' image is a native Win9x driver.
|
---|
3955 | Const IMAGE_SUBSYSTEM_WINDOWS_CE_GUI = 9 ' Image runs in the Windows CE subsystem.
|
---|
3956 | Const IMAGE_SUBSYSTEM_EFI_APPLICATION = 10 '
|
---|
3957 | Const IMAGE_SUBSYSTEM_EFI_BOOT_SERVICE_DRIVER = 11 '
|
---|
3958 | Const IMAGE_SUBSYSTEM_EFI_RUNTIME_DRIVER = 12 '
|
---|
3959 | Const IMAGE_SUBSYSTEM_EFI_ROM = 13
|
---|
3960 | Const IMAGE_SUBSYSTEM_XBOX = 14
|
---|
3961 | Const IMAGE_SUBSYSTEM_WINDOWS_BOOT_APPLICATION = 16
|
---|
3962 |
|
---|
3963 | ' IMAGE_LIBRARY_PROCESS_INIT = &h0001 ' Reserved.
|
---|
3964 | ' IMAGE_LIBRARY_PROCESS_TERM = &h0002 ' Reserved.
|
---|
3965 | ' IMAGE_LIBRARY_THREAD_INIT = &h0004 ' Reserved.
|
---|
3966 | ' IMAGE_LIBRARY_THREAD_TERM = &h0008 ' Reserved.
|
---|
3967 | Const IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE = &h0040 ' DLL can move.
|
---|
3968 | Const IMAGE_DLLCHARACTERISTICS_FORCE_INTEGRITY = &h0080 ' Code Integrity Image
|
---|
3969 | Const IMAGE_DLLCHARACTERISTICS_NX_COMPAT = &h0100 ' Image is NX compatible
|
---|
3970 | Const IMAGE_DLLCHARACTERISTICS_NO_ISOLATION = &h0200 ' Image understands isolation and doesn't want it
|
---|
3971 | Const IMAGE_DLLCHARACTERISTICS_NO_SEH = &h0400 ' Image does not use SEH. No SE handler may reside in this image
|
---|
3972 | Const IMAGE_DLLCHARACTERISTICS_NO_BIND = &h0800 ' Do not bind this image.
|
---|
3973 | ' = &h1000 ' Reserved.
|
---|
3974 | Const IMAGE_DLLCHARACTERISTICS_WDM_DRIVER = &h2000 ' Driver uses WDM model
|
---|
3975 | ' = &h4000 ' Reserved.
|
---|
3976 | Const IMAGE_DLLCHARACTERISTICS_TERMINAL_SERVER_AWARE = &h8000
|
---|
3977 |
|
---|
3978 | Const IMAGE_DIRECTORY_ENTRY_EXPORT = 0 ' Export Directory
|
---|
3979 | Const IMAGE_DIRECTORY_ENTRY_IMPORT = 1 ' Import Directory
|
---|
3980 | Const IMAGE_DIRECTORY_ENTRY_RESOURCE = 2 ' Resource Directory
|
---|
3981 | Const IMAGE_DIRECTORY_ENTRY_EXCEPTION = 3 ' Exception Directory
|
---|
3982 | Const IMAGE_DIRECTORY_ENTRY_SECURITY = 4 ' Security Directory
|
---|
3983 | Const IMAGE_DIRECTORY_ENTRY_BASERELOC = 5 ' Base Relocation Table
|
---|
3984 | Const IMAGE_DIRECTORY_ENTRY_DEBUG = 6 ' Debug Directory
|
---|
3985 | ' IMAGE_DIRECTORY_ENTRY_COPYRIGHT = 7 ' (X86 usage)
|
---|
3986 | Const IMAGE_DIRECTORY_ENTRY_ARCHITECTURE = 7 ' Architecture Specific Data
|
---|
3987 | Const IMAGE_DIRECTORY_ENTRY_GLOBALPTR = 8 ' RVA of GP
|
---|
3988 | Const IMAGE_DIRECTORY_ENTRY_TLS = 9 ' TLS Directory
|
---|
3989 | Const IMAGE_DIRECTORY_ENTRY_LOAD_CONFIG = 10 ' Load Configuration Directory
|
---|
3990 | Const IMAGE_DIRECTORY_ENTRY_BOUND_IMPORT = 11 ' Bound Import Directory in headers
|
---|
3991 | Const IMAGE_DIRECTORY_ENTRY_IAT = 12 ' Import Address Table
|
---|
3992 | Const IMAGE_DIRECTORY_ENTRY_DELAY_IMPORT = 13 ' Delay Load Import Descriptors
|
---|
3993 | Const IMAGE_DIRECTORY_ENTRY_COM_DESCRIPTOR = 14 ' COM Runtime descriptor
|
---|
3994 |
|
---|
3995 | ' Non-COFF Object file header
|
---|
3996 | Type ANON_OBJECT_HEADER
|
---|
3997 | Sig1 As Word ' Must be IMAGE_FILE_MACHINE_UNKNOWN
|
---|
3998 | Sig2 As Word ' Must be 0xffff
|
---|
3999 | Version As Word ' >= 1 (implies the CLSID field is present)
|
---|
4000 | Machine As Word
|
---|
4001 | TimeDateStamp As DWord
|
---|
4002 | ClassID As CLSID ' Used to invoke CoCreateInstance
|
---|
4003 | SizeOfData As DWord ' Size of data that follows the header
|
---|
4004 | End Type
|
---|
4005 |
|
---|
4006 | Type ANON_OBJECT_HEADER_V2
|
---|
4007 | Sig1 As Word ' Must be IMAGE_FILE_MACHINE_UNKNOWN
|
---|
4008 | Sig2 As Word ' Must be 0xffff
|
---|
4009 | Version As Word ' >= 2 (implies the Flags field is present - otherwise V1)
|
---|
4010 | Machine As Word
|
---|
4011 | TimeDateStamp As DWord
|
---|
4012 | ClassID As CLSID ' Used to invoke CoCreateInstance
|
---|
4013 | SizeOfData As DWord ' Size of data that follows the header
|
---|
4014 | Flags As DWord ' 0x1 -> contains metadata
|
---|
4015 | MetaDataSize As DWord ' Size of CLR metadata
|
---|
4016 | MetaDataOffset As DWord ' Offset of CLR metadata
|
---|
4017 | End Type
|
---|
4018 |
|
---|
4019 | Const IMAGE_SIZEOF_SHORT_NAME = 8
|
---|
4020 |
|
---|
4021 | Type IMAGE_SECTION_HEADER
|
---|
4022 | Name[ELM(IMAGE_SIZEOF_SHORT_NAME)] As Byte
|
---|
4023 | 'Union
|
---|
4024 | PhysicalAddress As DWord
|
---|
4025 | ' VirtualSize As DWord
|
---|
4026 | ' } Misc
|
---|
4027 | VirtualAddress As DWord
|
---|
4028 | SizeOfRawData As DWord
|
---|
4029 | PointerToRawData As DWord
|
---|
4030 | PointerToRelocations As DWord
|
---|
4031 | PointerToLinenumbers As DWord
|
---|
4032 | NumberOfRelocations As Word
|
---|
4033 | NumberOfLinenumbers As Word
|
---|
4034 | Characteristics As DWord
|
---|
4035 | End Type
|
---|
4036 | TypeDef PIMAGE_SECTION_HEADER = *IMAGE_SECTION_HEADER
|
---|
4037 |
|
---|
4038 | Const IMAGE_SIZEOF_SECTION_HEADER = 40
|
---|
4039 |
|
---|
4040 | ' Section characteristics.
|
---|
4041 | ' IMAGE_SCN_TYPE_REG = &h00000000 ' Reserved.
|
---|
4042 | ' IMAGE_SCN_TYPE_DSECT = &h00000001 ' Reserved.
|
---|
4043 | ' IMAGE_SCN_TYPE_NOLOAD = &h00000002 ' Reserved.
|
---|
4044 | ' IMAGE_SCN_TYPE_GROUP = &h00000004 ' Reserved.
|
---|
4045 | Const IMAGE_SCN_TYPE_NO_PAD = &h00000008 ' Reserved.
|
---|
4046 | ' IMAGE_SCN_TYPE_COPY = &h00000010 ' Reserved.
|
---|
4047 |
|
---|
4048 | Const IMAGE_SCN_CNT_CODE = &h00000020 ' Section contains code.
|
---|
4049 | Const IMAGE_SCN_CNT_INITIALIZED_DATA = &h00000040 ' Section contains initialized data.
|
---|
4050 | Const IMAGE_SCN_CNT_UNINITIALIZED_DATA = &h00000080 ' Section contains uninitialized data.
|
---|
4051 |
|
---|
4052 | Const IMAGE_SCN_LNK_OTHER = &h00000100 ' Reserved.
|
---|
4053 | Const IMAGE_SCN_LNK_INFO = &h00000200 ' Section contains comments or some other type of information.
|
---|
4054 | ' IMAGE_SCN_TYPE_OVER = &h00000400 ' Reserved.
|
---|
4055 | Const IMAGE_SCN_LNK_REMOVE = &h00000800 ' Section contents will not become part of image.
|
---|
4056 | Const IMAGE_SCN_LNK_COMDAT = &h00001000 ' Section contents comdat.
|
---|
4057 | ' = &h00002000 ' Reserved.
|
---|
4058 | ' IMAGE_SCN_MEM_PROTECTED - Obsolete = &h00004000
|
---|
4059 | Const IMAGE_SCN_NO_DEFER_SPEC_EXC = &h00004000 ' Reset speculative exceptions handling bits in the TLB entries for this section.
|
---|
4060 | Const IMAGE_SCN_GPREL = &h00008000 ' Section content can be accessed relative to GP
|
---|
4061 | Const IMAGE_SCN_MEM_FARDATA = &h00008000
|
---|
4062 | ' IMAGE_SCN_MEM_SYSHEAP - Obsolete = &h00010000
|
---|
4063 | Const IMAGE_SCN_MEM_PURGEABLE = &h00020000
|
---|
4064 | Const IMAGE_SCN_MEM_16BIT = &h00020000
|
---|
4065 | Const IMAGE_SCN_MEM_LOCKED = &h00040000
|
---|
4066 | Const IMAGE_SCN_MEM_PRELOAD = &h00080000
|
---|
4067 |
|
---|
4068 | Const IMAGE_SCN_ALIGN_1BYTES = &h00100000 '
|
---|
4069 | Const IMAGE_SCN_ALIGN_2BYTES = &h00200000 '
|
---|
4070 | Const IMAGE_SCN_ALIGN_4BYTES = &h00300000 '
|
---|
4071 | Const IMAGE_SCN_ALIGN_8BYTES = &h00400000 '
|
---|
4072 | Const IMAGE_SCN_ALIGN_16BYTES = &h00500000 ' Default alignment if no others are specified.
|
---|
4073 | Const IMAGE_SCN_ALIGN_32BYTES = &h00600000 '
|
---|
4074 | Const IMAGE_SCN_ALIGN_64BYTES = &h00700000 '
|
---|
4075 | Const IMAGE_SCN_ALIGN_128BYTES = &h00800000 '
|
---|
4076 | Const IMAGE_SCN_ALIGN_256BYTES = &h00900000 '
|
---|
4077 | Const IMAGE_SCN_ALIGN_512BYTES = &h00A00000 '
|
---|
4078 | Const IMAGE_SCN_ALIGN_1024BYTES = &h00B00000 '
|
---|
4079 | Const IMAGE_SCN_ALIGN_2048BYTES = &h00C00000 '
|
---|
4080 | Const IMAGE_SCN_ALIGN_4096BYTES = &h00D00000 '
|
---|
4081 | Const IMAGE_SCN_ALIGN_8192BYTES = &h00E00000 '
|
---|
4082 | ' Unused = &h00F00000
|
---|
4083 | Const IMAGE_SCN_ALIGN_MASK = &h00F00000
|
---|
4084 |
|
---|
4085 | Const IMAGE_SCN_LNK_NRELOC_OVFL = &h01000000 ' Section contains extended relocations.
|
---|
4086 | Const IMAGE_SCN_MEM_DISCARDABLE = &h02000000 ' Section can be discarded.
|
---|
4087 | Const IMAGE_SCN_MEM_NOT_CACHED = &h04000000 ' Section is not cachable.
|
---|
4088 | Const IMAGE_SCN_MEM_NOT_PAGED = &h08000000 ' Section is not pageable.
|
---|
4089 | Const IMAGE_SCN_MEM_SHARED = &h10000000 ' Section is shareable.
|
---|
4090 | Const IMAGE_SCN_MEM_EXECUTE = &h20000000 ' Section is executable.
|
---|
4091 | Const IMAGE_SCN_MEM_READ = &h40000000 ' Section is readable.
|
---|
4092 | Const IMAGE_SCN_MEM_WRITE = &h80000000 ' Section is writeable.
|
---|
4093 |
|
---|
4094 | ' TLS Chaacteristic Flags
|
---|
4095 | Const IMAGE_SCN_SCALE_INDEX = &h00000001 ' Tls index is scaled
|
---|
4096 |
|
---|
4097 | ' Symbol format.
|
---|
4098 | Type Align(2) IMAGE_SYMBOL
|
---|
4099 | ' Union
|
---|
4100 | ShortName[ELM(8)] As Byte
|
---|
4101 | ' Type
|
---|
4102 | ' Short As DWord
|
---|
4103 | ' Long As DWord
|
---|
4104 | ' } Name
|
---|
4105 | ' LongName[ELM(2)] As DWord ' PBYTE [ELM(2)]
|
---|
4106 | ' } N
|
---|
4107 | Value AS DWord
|
---|
4108 | SectionNumber As Integer
|
---|
4109 | Type_ As Word
|
---|
4110 | StorageClass As Byte
|
---|
4111 | NumberOfAuxSymbols As Byte
|
---|
4112 | End Type
|
---|
4113 | TypeDef PIMAGE_SYMBOL = * /*UNALIGNED*/ IMAGE_SYMBOL
|
---|
4114 |
|
---|
4115 | Const IMAGE_SIZEOF_SYMBOL = 18
|
---|
4116 |
|
---|
4117 | ' Section values.
|
---|
4118 | Const IMAGE_SYM_UNDEFINED = 0 As Integer ' Symbol is undefined or is common.
|
---|
4119 | Const IMAGE_SYM_ABSOLUTE = -1 As Integer ' Symbol is an absolute value.
|
---|
4120 | Const IMAGE_SYM_DEBUG = -2 As Integer ' Symbol is a special debug item.
|
---|
4121 | Const IMAGE_SYM_SECTION_MAX = &hFEFF ' Values 0xFF00-0xFFFF are special
|
---|
4122 |
|
---|
4123 | ' Type (fundamental) values.
|
---|
4124 |
|
---|
4125 | Const IMAGE_SYM_TYPE_NULL = &h0000 ' no type.
|
---|
4126 | Const IMAGE_SYM_TYPE_VOID = &h0001 '
|
---|
4127 | Const IMAGE_SYM_TYPE_CHAR = &h0002 ' type character.
|
---|
4128 | Const IMAGE_SYM_TYPE_SHORT = &h0003 ' type short integer.
|
---|
4129 | Const IMAGE_SYM_TYPE_INT = &h0004 '
|
---|
4130 | Const IMAGE_SYM_TYPE_LONG = &h0005 '
|
---|
4131 | Const IMAGE_SYM_TYPE_FLOAT = &h0006 '
|
---|
4132 | Const IMAGE_SYM_TYPE_DOUBLE = &h0007 '
|
---|
4133 | Const IMAGE_SYM_TYPE_STRUCT = &h0008 '
|
---|
4134 | Const IMAGE_SYM_TYPE_UNION = &h0009 '
|
---|
4135 | Const IMAGE_SYM_TYPE_ENUM = &h000A ' enumeration.
|
---|
4136 | Const IMAGE_SYM_TYPE_MOE = &h000B ' member of enumeration.
|
---|
4137 | Const IMAGE_SYM_TYPE_BYTE = &h000C '
|
---|
4138 | Const IMAGE_SYM_TYPE_WORD = &h000D '
|
---|
4139 | Const IMAGE_SYM_TYPE_UINT = &h000E '
|
---|
4140 | Const IMAGE_SYM_TYPE_DWORD = &h000F '
|
---|
4141 | Const IMAGE_SYM_TYPE_PCODE = &h8000 '
|
---|
4142 |
|
---|
4143 | 'Type (derived) values.
|
---|
4144 |
|
---|
4145 | Const IMAGE_SYM_DTYPE_NULL = 0 ' no derived type.
|
---|
4146 | Const IMAGE_SYM_DTYPE_POINTER = 1 ' pointer.
|
---|
4147 | Const IMAGE_SYM_DTYPE_FUNCTION = 2 ' function.
|
---|
4148 | Const IMAGE_SYM_DTYPE_ARRAY = 3 ' array.
|
---|
4149 |
|
---|
4150 | ' Storage classes.
|
---|
4151 | Const IMAGE_SYM_CLASS_END_OF_FUNCTION = -1 As Byte
|
---|
4152 | Const IMAGE_SYM_CLASS_NULL = &h0000
|
---|
4153 | Const IMAGE_SYM_CLASS_AUTOMATIC = &h0001
|
---|
4154 | Const IMAGE_SYM_CLASS_EXTERNAL = &h0002
|
---|
4155 | Const IMAGE_SYM_CLASS_STATIC = &h0003
|
---|
4156 | Const IMAGE_SYM_CLASS_REGISTER = &h0004
|
---|
4157 | Const IMAGE_SYM_CLASS_EXTERNAL_DEF = &h0005
|
---|
4158 | Const IMAGE_SYM_CLASS_LABEL = &h0006
|
---|
4159 | Const IMAGE_SYM_CLASS_UNDEFINED_LABEL = &h0007
|
---|
4160 | Const IMAGE_SYM_CLASS_MEMBER_OF_STRUCT = &h0008
|
---|
4161 | Const IMAGE_SYM_CLASS_ARGUMENT = &h0009
|
---|
4162 | Const IMAGE_SYM_CLASS_STRUCT_TAG = &h000A
|
---|
4163 | Const IMAGE_SYM_CLASS_MEMBER_OF_UNION = &h000B
|
---|
4164 | Const IMAGE_SYM_CLASS_UNION_TAG = &h000C
|
---|
4165 | Const IMAGE_SYM_CLASS_TYPE_DEFINITION = &h000D
|
---|
4166 | Const IMAGE_SYM_CLASS_UNDEFINED_STATIC = &h000E
|
---|
4167 | Const IMAGE_SYM_CLASS_ENUM_TAG = &h000F
|
---|
4168 | Const IMAGE_SYM_CLASS_MEMBER_OF_ENUM = &h0010
|
---|
4169 | Const IMAGE_SYM_CLASS_REGISTER_PARAM = &h0011
|
---|
4170 | Const IMAGE_SYM_CLASS_BIT_FIELD = &h0012
|
---|
4171 |
|
---|
4172 | Const IMAGE_SYM_CLASS_FAR_EXTERNAL = &h0044
|
---|
4173 |
|
---|
4174 | Const IMAGE_SYM_CLASS_BLOCK = &h0064
|
---|
4175 | Const IMAGE_SYM_CLASS_FUNCTION = &h0065
|
---|
4176 | Const IMAGE_SYM_CLASS_END_OF_STRUCT = &h0066
|
---|
4177 | Const IMAGE_SYM_CLASS_FILE = &h0067
|
---|
4178 | ' new
|
---|
4179 | Const IMAGE_SYM_CLASS_SECTION = &h0068
|
---|
4180 | Const IMAGE_SYM_CLASS_WEAK_EXTERNAL = &h0069
|
---|
4181 |
|
---|
4182 | Const IMAGE_SYM_CLASS_CLR_TOKEN = &h006B
|
---|
4183 |
|
---|
4184 | ' type packing constants
|
---|
4185 | Const N_BTMASK = &h000F
|
---|
4186 | Const N_TMASK = &h0030
|
---|
4187 | Const N_TMASK1 = &h00C0
|
---|
4188 | Const N_TMASK2 = &h00F0
|
---|
4189 | Const N_BTSHFT = 4
|
---|
4190 | Const N_TSHIFT = 2
|
---|
4191 |
|
---|
4192 | Const BTYPE(x) = ((x) And N_BTMASK)
|
---|
4193 |
|
---|
4194 | #ifndef ISPTR
|
---|
4195 | #define ISPTR
|
---|
4196 | Const ISPTR(x) = (((x) And N_TMASK) = (IMAGE_SYM_DTYPE_POINTER << N_BTSHFT))
|
---|
4197 | #endif
|
---|
4198 |
|
---|
4199 | #ifndef ISFCN
|
---|
4200 | #define ISFCN
|
---|
4201 | Const ISFCN(x) = (((x) And N_TMASK) = (IMAGE_SYM_DTYPE_FUNCTION << N_BTSHFT))
|
---|
4202 | #endif
|
---|
4203 |
|
---|
4204 | #ifndef ISARY
|
---|
4205 | #define ISARY
|
---|
4206 | Const ISARY(x) = (((x) And N_TMASK) = (IMAGE_SYM_DTYPE_ARRAY << N_BTSHFT))
|
---|
4207 | #endif
|
---|
4208 |
|
---|
4209 | #ifndef ISTAG
|
---|
4210 | #define ISTAG
|
---|
4211 | Const ISTAG(x) = ((x) = IMAGE_SYM_CLASS_STRUCT_TAG Or (x) = IMAGE_SYM_CLASS_UNION_TAG Or (x) = IMAGE_SYM_CLASS_ENUM_TAG)
|
---|
4212 | #endif
|
---|
4213 |
|
---|
4214 | #ifndef INCREF
|
---|
4215 | #define INCREF
|
---|
4216 | Const INCREF(x) = ((((x) And (Not N_BTMASK)) << N_TSHIFT) Or (IMAGE_SYM_DTYPE_POINTER << N_BTSHFT) Or ((x) And N_BTMASK))
|
---|
4217 | #endif
|
---|
4218 |
|
---|
4219 | #ifndef DECREF
|
---|
4220 | #define DECREF
|
---|
4221 | Const DECREF(x) = ((((x) >> N_TSHIFT) And (Not N_BTMASK)) Or ((x) And N_BTMASK))
|
---|
4222 | #endif
|
---|
4223 |
|
---|
4224 | ' Auxiliary entry format.
|
---|
4225 | Type /*Union*/ Align(2) IMAGE_AUX_SYMBOL
|
---|
4226 | ' Type
|
---|
4227 | ' TagIndex As DWord ' struct, union, or enum tag index
|
---|
4228 | ' Union
|
---|
4229 | ' Type
|
---|
4230 | ' Linenumber As Word ' declaration line number
|
---|
4231 | ' Size As Word ' size of struct, union, or enum
|
---|
4232 | ' } LnSz
|
---|
4233 | ' TotalSize As DWord
|
---|
4234 | ' } Misc
|
---|
4235 | ' Union
|
---|
4236 | ' Type ' if ISFCN, tag, or .bb
|
---|
4237 | ' PointerToLinenumber As DWord
|
---|
4238 | ' PointerToNextFunction As DWord
|
---|
4239 | ' } Function
|
---|
4240 | ' Type ' if ISARY, up to 4 dimen.
|
---|
4241 | ' Dimension[ELM(4)] As Word
|
---|
4242 | ' } Array
|
---|
4243 | ' } FcnAry
|
---|
4244 | ' TvIndex As Word ' tv index
|
---|
4245 | ' } Sym
|
---|
4246 | ' Type
|
---|
4247 | ' Name[ELM(IMAGE_SIZEOF_SYMBOL)] As Byte
|
---|
4248 | ' } File
|
---|
4249 | ' Type
|
---|
4250 | Length As DWord ' section length
|
---|
4251 | NumberOfRelocations As Word ' number of relocation entries
|
---|
4252 | NumberOfLinenumbers As Word ' number of line numbers
|
---|
4253 | CheckSum As DWord ' checksum for communal
|
---|
4254 | Number As Integer ' section number to associate with
|
---|
4255 | Selection As Byte ' communal selection type
|
---|
4256 | ' } Section
|
---|
4257 | End Type 'Union
|
---|
4258 | TypeDef PIMAGE_AUX_SYMBOL = * /*UNALIGNED*/ IMAGE_AUX_SYMBOL
|
---|
4259 |
|
---|
4260 | Enum IMAGE_AUX_SYMBOL_TYPE
|
---|
4261 | IMAGE_AUX_SYMBOL_TYPE_TOKEN_DEF = 1
|
---|
4262 | End Enum
|
---|
4263 |
|
---|
4264 | Type Align(2) IMAGE_AUX_SYMBOL_TOKEN_DEF
|
---|
4265 | bAuxType As Byte
|
---|
4266 | bReserved As Byte
|
---|
4267 | SymbolTableIndex As DWord
|
---|
4268 | rgbReserved[ELM(12)] As Byte
|
---|
4269 | End Type
|
---|
4270 | TypeDef PIMAGE_AUX_SYMBOL_TOKEN_DEF = * /*UNALIGNED*/ IMAGE_AUX_SYMBOL_TOKEN_DEF
|
---|
4271 |
|
---|
4272 | ' Communal selection types.
|
---|
4273 | Const IMAGE_COMDAT_SELECT_NODUPLICATES = 1
|
---|
4274 | Const IMAGE_COMDAT_SELECT_ANY = 2
|
---|
4275 | Const IMAGE_COMDAT_SELECT_SAME_SIZE = 3
|
---|
4276 | Const IMAGE_COMDAT_SELECT_EXACT_MATCH = 4
|
---|
4277 | Const IMAGE_COMDAT_SELECT_ASSOCIATIVE = 5
|
---|
4278 | Const IMAGE_COMDAT_SELECT_LARGEST = 6
|
---|
4279 | Const IMAGE_COMDAT_SELECT_NEWEST = 7
|
---|
4280 |
|
---|
4281 | Const IMAGE_WEAK_EXTERN_SEARCH_NOLIBRARY = 1
|
---|
4282 | Const IMAGE_WEAK_EXTERN_SEARCH_LIBRARY = 2
|
---|
4283 | Const IMAGE_WEAK_EXTERN_SEARCH_ALIAS = 3
|
---|
4284 |
|
---|
4285 | ' Relocation format.
|
---|
4286 | Type Align(2) IMAGE_RELOCATION
|
---|
4287 | ' Union
|
---|
4288 | ' VirtualAddress As DWord
|
---|
4289 | RelocCount As DWord
|
---|
4290 | ' End Union
|
---|
4291 | SymbolTableIndex As DWord
|
---|
4292 | Type_ As Word
|
---|
4293 | End Type
|
---|
4294 | TypeDef PIMAGE_RELOCATION = * /*UNALIGNED*/ IMAGE_RELOCATION
|
---|
4295 |
|
---|
4296 | ' I386 relocation types.
|
---|
4297 | Const IMAGE_REL_I386_ABSOLUTE = &h0000 ' Reference is absolute, no relocation is necessary
|
---|
4298 | Const IMAGE_REL_I386_DIR16 = &h0001 ' Direct 16-bit reference to the symbols virtual address
|
---|
4299 | Const IMAGE_REL_I386_REL16 = &h0002 ' PC-relative 16-bit reference to the symbols virtual address
|
---|
4300 | Const IMAGE_REL_I386_DIR32 = &h0006 ' Direct 32-bit reference to the symbols virtual address
|
---|
4301 | Const IMAGE_REL_I386_DIR32NB = &h0007 ' Direct 32-bit reference to the symbols virtual address, base not included
|
---|
4302 | Const IMAGE_REL_I386_SEG12 = &h0009 ' Direct 16-bit reference to the segment-selector bits of a 32-bit virtual address
|
---|
4303 | Const IMAGE_REL_I386_SECTION = &h000A
|
---|
4304 | Const IMAGE_REL_I386_SECREL = &h000B
|
---|
4305 | Const IMAGE_REL_I386_TOKEN = &h000C ' clr token
|
---|
4306 | Const IMAGE_REL_I386_SECREL7 = &h000D ' 7 bit offset from base of section containing target
|
---|
4307 | Const IMAGE_REL_I386_REL32 = &h0014 ' PC-relative 32-bit reference to the symbols virtual address
|
---|
4308 |
|
---|
4309 | ' MIPS relocation types.
|
---|
4310 | Const IMAGE_REL_MIPS_ABSOLUTE = &h0000 ' Reference is absolute, no relocation is necessary
|
---|
4311 | Const IMAGE_REL_MIPS_REFHALF = &h0001
|
---|
4312 | Const IMAGE_REL_MIPS_REFWORD = &h0002
|
---|
4313 | Const IMAGE_REL_MIPS_JMPADDR = &h0003
|
---|
4314 | Const IMAGE_REL_MIPS_REFHI = &h0004
|
---|
4315 | Const IMAGE_REL_MIPS_REFLO = &h0005
|
---|
4316 | Const IMAGE_REL_MIPS_GPREL = &h0006
|
---|
4317 | Const IMAGE_REL_MIPS_LITERAL = &h0007
|
---|
4318 | Const IMAGE_REL_MIPS_SECTION = &h000A
|
---|
4319 | Const IMAGE_REL_MIPS_SECREL = &h000B
|
---|
4320 | Const IMAGE_REL_MIPS_SECRELLO = &h000C ' Low 16-bit section relative referemce (used for >32k TLS)
|
---|
4321 | Const IMAGE_REL_MIPS_SECRELHI = &h000D ' High 16-bit section relative reference (used for >32k TLS)
|
---|
4322 | Const IMAGE_REL_MIPS_TOKEN = &h000E ' clr token
|
---|
4323 | Const IMAGE_REL_MIPS_JMPADDR16 = &h0010
|
---|
4324 | Const IMAGE_REL_MIPS_REFWORDNB = &h0022
|
---|
4325 | Const IMAGE_REL_MIPS_PAIR = &h0025
|
---|
4326 |
|
---|
4327 | ' Alpha Relocation types.
|
---|
4328 | Const IMAGE_REL_ALPHA_ABSOLUTE = &h0000
|
---|
4329 | Const IMAGE_REL_ALPHA_REFLONG = &h0001
|
---|
4330 | Const IMAGE_REL_ALPHA_REFQUAD = &h0002
|
---|
4331 | Const IMAGE_REL_ALPHA_GPREL32 = &h0003
|
---|
4332 | Const IMAGE_REL_ALPHA_LITERAL = &h0004
|
---|
4333 | Const IMAGE_REL_ALPHA_LITUSE = &h0005
|
---|
4334 | Const IMAGE_REL_ALPHA_GPDISP = &h0006
|
---|
4335 | Const IMAGE_REL_ALPHA_BRADDR = &h0007
|
---|
4336 | Const IMAGE_REL_ALPHA_HINT = &h0008
|
---|
4337 | Const IMAGE_REL_ALPHA_INLINE_REFLONG= &h0009
|
---|
4338 | Const IMAGE_REL_ALPHA_REFHI = &h000A
|
---|
4339 | Const IMAGE_REL_ALPHA_REFLO = &h000B
|
---|
4340 | Const IMAGE_REL_ALPHA_PAIR = &h000C
|
---|
4341 | Const IMAGE_REL_ALPHA_MATCH = &h000D
|
---|
4342 | Const IMAGE_REL_ALPHA_SECTION = &h000E
|
---|
4343 | Const IMAGE_REL_ALPHA_SECREL = &h000F
|
---|
4344 | Const IMAGE_REL_ALPHA_REFLONGNB = &h0010
|
---|
4345 | Const IMAGE_REL_ALPHA_SECRELLO = &h0011 ' Low 16-bit section relative reference
|
---|
4346 | Const IMAGE_REL_ALPHA_SECRELHI = &h0012 ' High 16-bit section relative reference
|
---|
4347 | Const IMAGE_REL_ALPHA_REFQ3 = &h0013 ' High 16 bits of 48 bit reference
|
---|
4348 | Const IMAGE_REL_ALPHA_REFQ2 = &h0014 ' Middle 16 bits of 48 bit reference
|
---|
4349 | Const IMAGE_REL_ALPHA_REFQ1 = &h0015 ' Low 16 bits of 48 bit reference
|
---|
4350 | Const IMAGE_REL_ALPHA_GPRELLO = &h0016 ' Low 16-bit GP relative reference
|
---|
4351 | Const IMAGE_REL_ALPHA_GPRELHI = &h0017 ' High 16-bit GP relative reference
|
---|
4352 |
|
---|
4353 | ' IBM PowerPC relocation types.
|
---|
4354 | Const IMAGE_REL_PPC_ABSOLUTE = &h0000 ' NOP
|
---|
4355 | Const IMAGE_REL_PPC_ADDR64 = &h0001 ' 64-bit address
|
---|
4356 | Const IMAGE_REL_PPC_ADDR32 = &h0002 ' 32-bit address
|
---|
4357 | Const IMAGE_REL_PPC_ADDR24 = &h0003 ' 26-bit address, shifted left 2 (branch absolute)
|
---|
4358 | Const IMAGE_REL_PPC_ADDR16 = &h0004 ' 16-bit address
|
---|
4359 | Const IMAGE_REL_PPC_ADDR14 = &h0005 ' 16-bit address, shifted left 2 (load doubleword)
|
---|
4360 | Const IMAGE_REL_PPC_REL24 = &h0006 ' 26-bit PC-relative offset, shifted left 2 (branch relative)
|
---|
4361 | Const IMAGE_REL_PPC_REL14 = &h0007 ' 16-bit PC-relative offset, shifted left 2 (br cond relative)
|
---|
4362 | Const IMAGE_REL_PPC_TOCREL16 = &h0008 ' 16-bit offset from TOC base
|
---|
4363 | Const IMAGE_REL_PPC_TOCREL14 = &h0009 ' 16-bit offset from TOC base, shifted left 2 (load doubleword)
|
---|
4364 |
|
---|
4365 | Const IMAGE_REL_PPC_ADDR32NB = &h000A ' 32-bit addr w/o image base
|
---|
4366 | Const IMAGE_REL_PPC_SECREL = &h000B ' va of containing section (as in an image sectionhdr)
|
---|
4367 | Const IMAGE_REL_PPC_SECTION = &h000C ' sectionheader number
|
---|
4368 | Const IMAGE_REL_PPC_IFGLUE = &h000D ' substitute TOC restore instruction iff symbol is glue code
|
---|
4369 | Const IMAGE_REL_PPC_IMGLUE = &h000E ' symbol is glue code; virtual address is TOC restore instruction
|
---|
4370 | Const IMAGE_REL_PPC_SECREL16 = &h000F ' va of containing section (limited to 16 bits)
|
---|
4371 | Const IMAGE_REL_PPC_REFHI = &h0010
|
---|
4372 | Const IMAGE_REL_PPC_REFLO = &h0011
|
---|
4373 | Const IMAGE_REL_PPC_PAIR = &h0012
|
---|
4374 | Const IMAGE_REL_PPC_SECRELLO = &h0013 ' Low 16-bit section relative reference (used for >32k TLS)
|
---|
4375 | Const IMAGE_REL_PPC_SECRELHI = &h0014 ' High 16-bit section relative reference (used for >32k TLS)
|
---|
4376 | Const IMAGE_REL_PPC_GPREL = &h0015
|
---|
4377 | Const IMAGE_REL_PPC_TOKEN = &h0016 ' clr token
|
---|
4378 |
|
---|
4379 | Const IMAGE_REL_PPC_TYPEMASK = &h00FF ' mask to isolate above values in IMAGE_RELOCATION.Type
|
---|
4380 |
|
---|
4381 | ' Flag bits in IMAGE_RELOCATION.TYPE
|
---|
4382 |
|
---|
4383 | Const IMAGE_REL_PPC_NEG = &h0100 ' subtract reloc value rather than adding it
|
---|
4384 | Const IMAGE_REL_PPC_BRTAKEN = &h0200 ' fix branch prediction bit to predict branch taken
|
---|
4385 | Const IMAGE_REL_PPC_BRNTAKEN = &h0400 ' fix branch prediction bit to predict branch not taken
|
---|
4386 | Const IMAGE_REL_PPC_TOCDEFN = &h0800 ' toc slot defined in file (or, data in toc)
|
---|
4387 |
|
---|
4388 | ' Hitachi SH3 relocation types.
|
---|
4389 | Const IMAGE_REL_SH3_ABSOLUTE = &h0000 ' No relocation
|
---|
4390 | Const IMAGE_REL_SH3_DIRECT16 = &h0001 ' 16 bit direct
|
---|
4391 | Const IMAGE_REL_SH3_DIRECT32 = &h0002 ' 32 bit direct
|
---|
4392 | Const IMAGE_REL_SH3_DIRECT8 = &h0003 ' 8 bit direct, -128..255
|
---|
4393 | Const IMAGE_REL_SH3_DIRECT8_WORD = &h0004 ' 8 bit direct .W (0 ext.)
|
---|
4394 | Const IMAGE_REL_SH3_DIRECT8_LONG = &h0005 ' 8 bit direct .L (0 ext.)
|
---|
4395 | Const IMAGE_REL_SH3_DIRECT4 = &h0006 ' 4 bit direct (0 ext.)
|
---|
4396 | Const IMAGE_REL_SH3_DIRECT4_WORD = &h0007 ' 4 bit direct .W (0 ext.)
|
---|
4397 | Const IMAGE_REL_SH3_DIRECT4_LONG = &h0008 ' 4 bit direct .L (0 ext.)
|
---|
4398 | Const IMAGE_REL_SH3_PCREL8_WORD = &h0009 ' 8 bit PC relative .W
|
---|
4399 | Const IMAGE_REL_SH3_PCREL8_LONG = &h000A ' 8 bit PC relative .L
|
---|
4400 | Const IMAGE_REL_SH3_PCREL12_WORD = &h000B ' 12 LSB PC relative .W
|
---|
4401 | Const IMAGE_REL_SH3_STARTOF_SECTION = &h000C ' Start of EXE section
|
---|
4402 | Const IMAGE_REL_SH3_SIZEOF_SECTION = &h000D ' Size of EXE section
|
---|
4403 | Const IMAGE_REL_SH3_SECTION = &h000E ' Section table index
|
---|
4404 | Const IMAGE_REL_SH3_SECREL = &h000F ' Offset within section
|
---|
4405 | Const IMAGE_REL_SH3_DIRECT32_NB = &h0010 ' 32 bit direct not based
|
---|
4406 | Const IMAGE_REL_SH3_GPREL4_LONG = &h0011 ' GP-relative addressing
|
---|
4407 | Const IMAGE_REL_SH3_TOKEN = &h0012 ' clr token
|
---|
4408 | Const IMAGE_REL_SHM_PCRELPT = &h0013 ' Offset from current
|
---|
4409 | ' instruction in longwords
|
---|
4410 | ' if not NOMODE, insert the
|
---|
4411 | ' inverse of the low bit at
|
---|
4412 | ' bit 32 to select PTA/PTB
|
---|
4413 | Const IMAGE_REL_SHM_REFLO = &h0014 ' Low bits of 32-bit address
|
---|
4414 | Const IMAGE_REL_SHM_REFHALF = &h0015 ' High bits of 32-bit address
|
---|
4415 | Const IMAGE_REL_SHM_RELLO = &h0016 ' Low bits of relative reference
|
---|
4416 | Const IMAGE_REL_SHM_RELHALF = &h0017 ' High bits of relative reference
|
---|
4417 | Const IMAGE_REL_SHM_PAIR = &h0018 ' offset operand for relocation
|
---|
4418 |
|
---|
4419 | Const IMAGE_REL_SH_NOMODE = &h8000 ' relocation ignores section mode
|
---|
4420 |
|
---|
4421 |
|
---|
4422 | Const IMAGE_REL_ARM_ABSOLUTE = &h0000 ' No relocation required
|
---|
4423 | Const IMAGE_REL_ARM_ADDR32 = &h0001 ' 32 bit address
|
---|
4424 | Const IMAGE_REL_ARM_ADDR32NB = &h0002 ' 32 bit address w/o image base
|
---|
4425 | Const IMAGE_REL_ARM_BRANCH24 = &h0003 ' 24 bit offset << 2 & sign ext.
|
---|
4426 | Const IMAGE_REL_ARM_BRANCH11 = &h0004 ' Thumb: 2 11 bit offsets
|
---|
4427 | Const IMAGE_REL_ARM_TOKEN = &h0005 ' clr token
|
---|
4428 | Const IMAGE_REL_ARM_GPREL12 = &h0006 ' GP-relative addressing (ARM)
|
---|
4429 | Const IMAGE_REL_ARM_GPREL7 = &h0007 ' GP-relative addressing (Thumb)
|
---|
4430 | Const IMAGE_REL_ARM_BLX24 = &h0008
|
---|
4431 | Const IMAGE_REL_ARM_BLX11 = &h0009
|
---|
4432 | Const IMAGE_REL_ARM_SECTION = &h000E ' Section table index
|
---|
4433 | Const IMAGE_REL_ARM_SECREL = &h000F ' Offset within section
|
---|
4434 |
|
---|
4435 | Const IMAGE_REL_AM_ABSOLUTE = &h0000
|
---|
4436 | Const IMAGE_REL_AM_ADDR32 = &h0001
|
---|
4437 | Const IMAGE_REL_AM_ADDR32NB = &h0002
|
---|
4438 | Const IMAGE_REL_AM_CALL32 = &h0003
|
---|
4439 | Const IMAGE_REL_AM_FUNCINFO = &h0004
|
---|
4440 | Const IMAGE_REL_AM_REL32_1 = &h0005
|
---|
4441 | Const IMAGE_REL_AM_REL32_2 = &h0006
|
---|
4442 | Const IMAGE_REL_AM_SECREL = &h0007
|
---|
4443 | Const IMAGE_REL_AM_SECTION = &h0008
|
---|
4444 | Const IMAGE_REL_AM_TOKEN = &h0009
|
---|
4445 |
|
---|
4446 | ' x64 relocations
|
---|
4447 | Const IMAGE_REL_AMD64_ABSOLUTE = &h0000 ' Reference is absolute, no relocation is necessary
|
---|
4448 | Const IMAGE_REL_AMD64_ADDR64 = &h0001 ' 64-bit address (VA).
|
---|
4449 | Const IMAGE_REL_AMD64_ADDR32 = &h0002 ' 32-bit address (VA).
|
---|
4450 | Const IMAGE_REL_AMD64_ADDR32NB = &h0003 ' 32-bit address w/o image base (RVA).
|
---|
4451 | Const IMAGE_REL_AMD64_REL32 = &h0004 ' 32-bit relative address from byte following reloc
|
---|
4452 | Const IMAGE_REL_AMD64_REL32_1 = &h0005 ' 32-bit relative address from byte distance 1 from reloc
|
---|
4453 | Const IMAGE_REL_AMD64_REL32_2 = &h0006 ' 32-bit relative address from byte distance 2 from reloc
|
---|
4454 | Const IMAGE_REL_AMD64_REL32_3 = &h0007 ' 32-bit relative address from byte distance 3 from reloc
|
---|
4455 | Const IMAGE_REL_AMD64_REL32_4 = &h0008 ' 32-bit relative address from byte distance 4 from reloc
|
---|
4456 | Const IMAGE_REL_AMD64_REL32_5 = &h0009 ' 32-bit relative address from byte distance 5 from reloc
|
---|
4457 | Const IMAGE_REL_AMD64_SECTION = &h000A ' Section index
|
---|
4458 | Const IMAGE_REL_AMD64_SECREL = &h000B ' 32 bit offset from base of section containing target
|
---|
4459 | Const IMAGE_REL_AMD64_SECREL7 = &h000C ' 7 bit unsigned offset from base of section containing target
|
---|
4460 | Const IMAGE_REL_AMD64_TOKEN = &h000D ' 32 bit metadata token
|
---|
4461 | Const IMAGE_REL_AMD64_SREL32 = &h000E ' 32 bit signed span-dependent value emitted into object
|
---|
4462 | Const IMAGE_REL_AMD64_PAIR = &h000F
|
---|
4463 | Const IMAGE_REL_AMD64_SSPAN32 = &h0010 ' 32 bit signed span-dependent value applied at link time
|
---|
4464 |
|
---|
4465 | ' IA64 relocation types.
|
---|
4466 |
|
---|
4467 | Const IMAGE_REL_IA64_ABSOLUTE = &h0000
|
---|
4468 | Const IMAGE_REL_IA64_IMM14 = &h0001
|
---|
4469 | Const IMAGE_REL_IA64_IMM22 = &h0002
|
---|
4470 | Const IMAGE_REL_IA64_IMM64 = &h0003
|
---|
4471 | Const IMAGE_REL_IA64_DIR32 = &h0004
|
---|
4472 | Const IMAGE_REL_IA64_DIR64 = &h0005
|
---|
4473 | Const IMAGE_REL_IA64_PCREL21B = &h0006
|
---|
4474 | Const IMAGE_REL_IA64_PCREL21M = &h0007
|
---|
4475 | Const IMAGE_REL_IA64_PCREL21F = &h0008
|
---|
4476 | Const IMAGE_REL_IA64_GPREL22 = &h0009
|
---|
4477 | Const IMAGE_REL_IA64_LTOFF22 = &h000A
|
---|
4478 | Const IMAGE_REL_IA64_SECTION = &h000B
|
---|
4479 | Const IMAGE_REL_IA64_SECREL22 = &h000C
|
---|
4480 | Const IMAGE_REL_IA64_SECREL64I = &h000D
|
---|
4481 | Const IMAGE_REL_IA64_SECREL32 = &h000E
|
---|
4482 | '
|
---|
4483 | Const IMAGE_REL_IA64_DIR32NB = &h0010
|
---|
4484 | Const IMAGE_REL_IA64_SREL14 = &h0011
|
---|
4485 | Const IMAGE_REL_IA64_SREL22 = &h0012
|
---|
4486 | Const IMAGE_REL_IA64_SREL32 = &h0013
|
---|
4487 | Const IMAGE_REL_IA64_UREL32 = &h0014
|
---|
4488 | Const IMAGE_REL_IA64_PCREL60X = &h0015 ' This is always a BRL and never converted
|
---|
4489 | Const IMAGE_REL_IA64_PCREL60B = &h0016 ' If possible, convert to MBB bundle with NOP.B in slot 1
|
---|
4490 | Const IMAGE_REL_IA64_PCREL60F = &h0017 ' If possible, convert to MFB bundle with NOP.F in slot 1
|
---|
4491 | Const IMAGE_REL_IA64_PCREL60I = &h0018 ' If possible, convert to MIB bundle with NOP.I in slot 1
|
---|
4492 | Const IMAGE_REL_IA64_PCREL60M = &h0019 ' If possible, convert to MMB bundle with NOP.M in slot 1
|
---|
4493 | Const IMAGE_REL_IA64_IMMGPREL64 = &h001A
|
---|
4494 | Const IMAGE_REL_IA64_TOKEN = &h001B ' clr token
|
---|
4495 | Const IMAGE_REL_IA64_GPREL32 = &h001C
|
---|
4496 | Const IMAGE_REL_IA64_ADDEND = &h001F
|
---|
4497 |
|
---|
4498 | ' CEF relocation types.
|
---|
4499 | Const IMAGE_REL_CEF_ABSOLUTE = &h0000 ' Reference is absolute, no relocation is necessary
|
---|
4500 | Const IMAGE_REL_CEF_ADDR32 = &h0001 ' 32-bit address (VA).
|
---|
4501 | Const IMAGE_REL_CEF_ADDR64 = &h0002 ' 64-bit address (VA).
|
---|
4502 | Const IMAGE_REL_CEF_ADDR32NB = &h0003 ' 32-bit address w/o image base (RVA).
|
---|
4503 | Const IMAGE_REL_CEF_SECTION = &h0004 ' Section index
|
---|
4504 | Const IMAGE_REL_CEF_SECREL = &h0005 ' 32 bit offset from base of section containing target
|
---|
4505 | Const IMAGE_REL_CEF_TOKEN = &h0006 ' 32 bit metadata token
|
---|
4506 |
|
---|
4507 | ' clr relocation types.
|
---|
4508 | Const IMAGE_REL_CEE_ABSOLUTE = &h0000 ' Reference is absolute, no relocation is necessary
|
---|
4509 | Const IMAGE_REL_CEE_ADDR32 = &h0001 ' 32-bit address (VA).
|
---|
4510 | Const IMAGE_REL_CEE_ADDR64 = &h0002 ' 64-bit address (VA).
|
---|
4511 | Const IMAGE_REL_CEE_ADDR32NB = &h0003 ' 32-bit address w/o image base (RVA).
|
---|
4512 | Const IMAGE_REL_CEE_SECTION = &h0004 ' Section index
|
---|
4513 | Const IMAGE_REL_CEE_SECREL = &h0005 ' 32 bit offset from base of section containing target
|
---|
4514 | Const IMAGE_REL_CEE_TOKEN = &h0006 ' 32 bit metadata token
|
---|
4515 |
|
---|
4516 |
|
---|
4517 | Const IMAGE_REL_M32R_ABSOLUTE = &h0000 ' No relocation required
|
---|
4518 | Const IMAGE_REL_M32R_ADDR32 = &h0001 ' 32 bit address
|
---|
4519 | Const IMAGE_REL_M32R_ADDR32NB = &h0002 ' 32 bit address w/o image base
|
---|
4520 | Const IMAGE_REL_M32R_ADDR24 = &h0003 ' 24 bit address
|
---|
4521 | Const IMAGE_REL_M32R_GPREL16 = &h0004 ' GP relative addressing
|
---|
4522 | Const IMAGE_REL_M32R_PCREL24 = &h0005 ' 24 bit offset << 2 & sign ext.
|
---|
4523 | Const IMAGE_REL_M32R_PCREL16 = &h0006 ' 16 bit offset << 2 & sign ext.
|
---|
4524 | Const IMAGE_REL_M32R_PCREL8 = &h0007 ' 8 bit offset << 2 & sign ext.
|
---|
4525 | Const IMAGE_REL_M32R_REFHALF = &h0008 ' 16 MSBs
|
---|
4526 | Const IMAGE_REL_M32R_REFHI = &h0009 ' 16 MSBs; adj for LSB sign ext.
|
---|
4527 | Const IMAGE_REL_M32R_REFLO = &h000A ' 16 LSBs
|
---|
4528 | Const IMAGE_REL_M32R_PAIR = &h000B ' Link HI and LO
|
---|
4529 | Const IMAGE_REL_M32R_SECTION = &h000C ' Section table index
|
---|
4530 | Const IMAGE_REL_M32R_SECREL32 = &h000D ' 32 bit section relative reference
|
---|
4531 | Const IMAGE_REL_M32R_TOKEN = &h000E ' clr token
|
---|
4532 |
|
---|
4533 | Const IMAGE_REL_EBC_ABSOLUTE = &h0000 ' No relocation required
|
---|
4534 | Const IMAGE_REL_EBC_ADDR32NB = &h0001 ' 32 bit address w/o image base
|
---|
4535 | Const IMAGE_REL_EBC_REL32 = &h0002 ' 32-bit relative address from byte following reloc
|
---|
4536 | Const IMAGE_REL_EBC_SECTION = &h0003 ' Section table index
|
---|
4537 | Const IMAGE_REL_EBC_SECREL = &h0004 ' Offset within section
|
---|
4538 |
|
---|
4539 | 'Const EXT_IMM64(Value, Address, Size, InstPos, ValPos) /* Intel-IA64-Filler * / \
|
---|
4540 | ' Value |= (((ULONGLONG)((*(Address) >> InstPos) & (((ULONGLONG)1 << Size) - 1))) << ValPos) // Intel-IA64-Filler
|
---|
4541 |
|
---|
4542 | 'Const INS_IMM64(Value, Address, Size, InstPos, ValPos) /* Intel-IA64-Filler * /\
|
---|
4543 | ' *(PDWORD)Address = (*(PDWORD)Address & ~(((1 << Size) - 1) << InstPos)) | /* Intel-IA64-Filler * /\
|
---|
4544 | ' ((DWORD)((((ULONGLONG)Value >> ValPos) & (((ULONGLONG)1 << Size) - 1))) << InstPos) // Intel-IA64-Filler
|
---|
4545 |
|
---|
4546 | Const EMARCH_ENC_I17_IMM7B_INST_WORD_X = 3 ' Intel-IA64-Filler
|
---|
4547 | Const EMARCH_ENC_I17_IMM7B_SIZE_X = 7 ' Intel-IA64-Filler
|
---|
4548 | Const EMARCH_ENC_I17_IMM7B_INST_WORD_POS_X = 4 ' Intel-IA64-Filler
|
---|
4549 | Const EMARCH_ENC_I17_IMM7B_VAL_POS_X = 0 ' Intel-IA64-Filler
|
---|
4550 |
|
---|
4551 | Const EMARCH_ENC_I17_IMM9D_INST_WORD_X = 3 ' Intel-IA64-Filler
|
---|
4552 | Const EMARCH_ENC_I17_IMM9D_SIZE_X = 9 ' Intel-IA64-Filler
|
---|
4553 | Const EMARCH_ENC_I17_IMM9D_INST_WORD_POS_X = 18 ' Intel-IA64-Filler
|
---|
4554 | Const EMARCH_ENC_I17_IMM9D_VAL_POS_X = 7 ' Intel-IA64-Filler
|
---|
4555 |
|
---|
4556 | Const EMARCH_ENC_I17_IMM5C_INST_WORD_X = 3 ' Intel-IA64-Filler
|
---|
4557 | Const EMARCH_ENC_I17_IMM5C_SIZE_X = 5 ' Intel-IA64-Filler
|
---|
4558 | Const EMARCH_ENC_I17_IMM5C_INST_WORD_POS_X = 13 ' Intel-IA64-Filler
|
---|
4559 | Const EMARCH_ENC_I17_IMM5C_VAL_POS_X = 16 ' Intel-IA64-Filler
|
---|
4560 |
|
---|
4561 | Const EMARCH_ENC_I17_IC_INST_WORD_X = 3 ' Intel-IA64-Filler
|
---|
4562 | Const EMARCH_ENC_I17_IC_SIZE_X = 1 ' Intel-IA64-Filler
|
---|
4563 | Const EMARCH_ENC_I17_IC_INST_WORD_POS_X = 12 ' Intel-IA64-Filler
|
---|
4564 | Const EMARCH_ENC_I17_IC_VAL_POS_X = 21 ' Intel-IA64-Filler
|
---|
4565 |
|
---|
4566 | Const EMARCH_ENC_I17_IMM41a_INST_WORD_X = 1 ' Intel-IA64-Filler
|
---|
4567 | Const EMARCH_ENC_I17_IMM41a_SIZE_X = 10 ' Intel-IA64-Filler
|
---|
4568 | Const EMARCH_ENC_I17_IMM41a_INST_WORD_POS_X = 14 ' Intel-IA64-Filler
|
---|
4569 | Const EMARCH_ENC_I17_IMM41a_VAL_POS_X = 22 ' Intel-IA64-Filler
|
---|
4570 |
|
---|
4571 | Const EMARCH_ENC_I17_IMM41b_INST_WORD_X = 1 ' Intel-IA64-Filler
|
---|
4572 | Const EMARCH_ENC_I17_IMM41b_SIZE_X = 8 ' Intel-IA64-Filler
|
---|
4573 | Const EMARCH_ENC_I17_IMM41b_INST_WORD_POS_X = 24 ' Intel-IA64-Filler
|
---|
4574 | Const EMARCH_ENC_I17_IMM41b_VAL_POS_X = 32 ' Intel-IA64-Filler
|
---|
4575 |
|
---|
4576 | Const EMARCH_ENC_I17_IMM41c_INST_WORD_X = 2 ' Intel-IA64-Filler
|
---|
4577 | Const EMARCH_ENC_I17_IMM41c_SIZE_X = 23 ' Intel-IA64-Filler
|
---|
4578 | Const EMARCH_ENC_I17_IMM41c_INST_WORD_POS_X = 0 ' Intel-IA64-Filler
|
---|
4579 | Const EMARCH_ENC_I17_IMM41c_VAL_POS_X = 40 ' Intel-IA64-Filler
|
---|
4580 |
|
---|
4581 | Const EMARCH_ENC_I17_SIGN_INST_WORD_X = 3 ' Intel-IA64-Filler
|
---|
4582 | Const EMARCH_ENC_I17_SIGN_SIZE_X = 1 ' Intel-IA64-Filler
|
---|
4583 | Const EMARCH_ENC_I17_SIGN_INST_WORD_POS_X = 27 ' Intel-IA64-Filler
|
---|
4584 | Const EMARCH_ENC_I17_SIGN_VAL_POS_X = 63 ' Intel-IA64-Filler
|
---|
4585 |
|
---|
4586 | Const X3_OPCODE_INST_WORD_X = 3 ' Intel-IA64-Filler
|
---|
4587 | Const X3_OPCODE_SIZE_X = 4 ' Intel-IA64-Filler
|
---|
4588 | Const X3_OPCODE_INST_WORD_POS_X = 28 ' Intel-IA64-Filler
|
---|
4589 | Const X3_OPCODE_SIGN_VAL_POS_X = 0 ' Intel-IA64-Filler
|
---|
4590 |
|
---|
4591 | Const X3_I_INST_WORD_X = 3 ' Intel-IA64-Filler
|
---|
4592 | Const X3_I_SIZE_X = 1 ' Intel-IA64-Filler
|
---|
4593 | Const X3_I_INST_WORD_POS_X = 27 ' Intel-IA64-Filler
|
---|
4594 | Const X3_I_SIGN_VAL_POS_X = 59 ' Intel-IA64-Filler
|
---|
4595 |
|
---|
4596 | Const X3_D_WH_INST_WORD_X = 3 ' Intel-IA64-Filler
|
---|
4597 | Const X3_D_WH_SIZE_X = 3 ' Intel-IA64-Filler
|
---|
4598 | Const X3_D_WH_INST_WORD_POS_X = 24 ' Intel-IA64-Filler
|
---|
4599 | Const X3_D_WH_SIGN_VAL_POS_X = 0 ' Intel-IA64-Filler
|
---|
4600 |
|
---|
4601 | Const X3_IMM20_INST_WORD_X = 3 ' Intel-IA64-Filler
|
---|
4602 | Const X3_IMM20_SIZE_X = 20 ' Intel-IA64-Filler
|
---|
4603 | Const X3_IMM20_INST_WORD_POS_X = 4 ' Intel-IA64-Filler
|
---|
4604 | Const X3_IMM20_SIGN_VAL_POS_X = 0 ' Intel-IA64-Filler
|
---|
4605 |
|
---|
4606 | Const X3_IMM39_1_INST_WORD_X = 2 ' Intel-IA64-Filler
|
---|
4607 | Const X3_IMM39_1_SIZE_X = 23 ' Intel-IA64-Filler
|
---|
4608 | Const X3_IMM39_1_INST_WORD_POS_X = 0 ' Intel-IA64-Filler
|
---|
4609 | Const X3_IMM39_1_SIGN_VAL_POS_X = 36 ' Intel-IA64-Filler
|
---|
4610 |
|
---|
4611 | Const X3_IMM39_2_INST_WORD_X = 1 ' Intel-IA64-Filler
|
---|
4612 | Const X3_IMM39_2_SIZE_X = 16 ' Intel-IA64-Filler
|
---|
4613 | Const X3_IMM39_2_INST_WORD_POS_X = 16 ' Intel-IA64-Filler
|
---|
4614 | Const X3_IMM39_2_SIGN_VAL_POS_X = 20 ' Intel-IA64-Filler
|
---|
4615 |
|
---|
4616 | Const X3_P_INST_WORD_X = 3 ' Intel-IA64-Filler
|
---|
4617 | Const X3_P_SIZE_X = 4 ' Intel-IA64-Filler
|
---|
4618 | Const X3_P_INST_WORD_POS_X = 0 ' Intel-IA64-Filler
|
---|
4619 | Const X3_P_SIGN_VAL_POS_X = 0 ' Intel-IA64-Filler
|
---|
4620 |
|
---|
4621 | Const X3_TMPLT_INST_WORD_X = 0 ' Intel-IA64-Filler
|
---|
4622 | Const X3_TMPLT_SIZE_X = 4 ' Intel-IA64-Filler
|
---|
4623 | Const X3_TMPLT_INST_WORD_POS_X = 0 ' Intel-IA64-Filler
|
---|
4624 | Const X3_TMPLT_SIGN_VAL_POS_X = 0 ' Intel-IA64-Filler
|
---|
4625 |
|
---|
4626 | Const X3_BTYPE_QP_INST_WORD_X = 2 ' Intel-IA64-Filler
|
---|
4627 | Const X3_BTYPE_QP_SIZE_X = 9 ' Intel-IA64-Filler
|
---|
4628 | Const X3_BTYPE_QP_INST_WORD_POS_X = 23 ' Intel-IA64-Filler
|
---|
4629 | Const X3_BTYPE_QP_INST_VAL_POS_X = 0 ' Intel-IA64-Filler
|
---|
4630 |
|
---|
4631 | Const X3_EMPTY_INST_WORD_X = 1 ' Intel-IA64-Filler
|
---|
4632 | Const X3_EMPTY_SIZE_X = 2 ' Intel-IA64-Filler
|
---|
4633 | Const X3_EMPTY_INST_WORD_POS_X = 14 ' Intel-IA64-Filler
|
---|
4634 | Const X3_EMPTY_INST_VAL_POS_X = 0 ' Intel-IA64-Filler
|
---|
4635 |
|
---|
4636 | ' Line number format.
|
---|
4637 | Type Align(2) IMAGE_LINENUMBER
|
---|
4638 | ' Union
|
---|
4639 | SymbolTableIndex As DWord
|
---|
4640 | ' VirtualAddress As DWord
|
---|
4641 | ' End Union
|
---|
4642 | Linenumber As Word
|
---|
4643 | End Type
|
---|
4644 | TypeDef PIMAGE_LINENUMBER = * /*UNALIGNED*/ IMAGE_LINENUMBER
|
---|
4645 |
|
---|
4646 | ' Based relocation format.
|
---|
4647 | Type IMAGE_BASE_RELOCATION
|
---|
4648 | VirtualAddress As DWord
|
---|
4649 | SizeOfBlock As DWord
|
---|
4650 | ' TypeOffset[ELM(1)] As Word
|
---|
4651 | End Type
|
---|
4652 | TypeDef PIMAGE_BASE_RELOCATION = * /*UNALIGNED*/ IMAGE_BASE_RELOCATION
|
---|
4653 |
|
---|
4654 | ' Based relocation types.
|
---|
4655 | Const IMAGE_REL_BASED_ABSOLUTE = 0
|
---|
4656 | Const IMAGE_REL_BASED_HIGH = 1
|
---|
4657 | Const IMAGE_REL_BASED_LOW = 2
|
---|
4658 | Const IMAGE_REL_BASED_HIGHLOW = 3
|
---|
4659 | Const IMAGE_REL_BASED_HIGHADJ = 4
|
---|
4660 | Const IMAGE_REL_BASED_MIPS_JMPADDR = 5
|
---|
4661 | Const IMAGE_REL_BASED_MIPS_JMPADDR16 = 9
|
---|
4662 | Const IMAGE_REL_BASED_IA64_IMM64 = 9
|
---|
4663 | Const IMAGE_REL_BASED_DIR64 = 10
|
---|
4664 |
|
---|
4665 | ' Archive format.
|
---|
4666 | Const IMAGE_ARCHIVE_START_SIZE = 8
|
---|
4667 | Const IMAGE_ARCHIVE_START = Ex"!<arch>\n"
|
---|
4668 | Const IMAGE_ARCHIVE_END = Ex"`\n"
|
---|
4669 | Const IMAGE_ARCHIVE_PAD = Ex"\n"
|
---|
4670 | Const IMAGE_ARCHIVE_LINKER_MEMBER = Ex"/ "
|
---|
4671 | Const IMAGE_ARCHIVE_LONGNAMES_MEMBER = Ex"// "
|
---|
4672 |
|
---|
4673 | Type IMAGE_ARCHIVE_MEMBER_HEADER
|
---|
4674 | Name[ELM(16)] As Byte
|
---|
4675 | Date[ELM(12)] As Byte
|
---|
4676 | UserID[ELM(6)] As Byte
|
---|
4677 | GroupID[ELM(6)] As Byte
|
---|
4678 | Mode[ELM(8)] As Byte
|
---|
4679 | Size[ELM(10)] As Byte
|
---|
4680 | EndHeader[ELM(2)] As Byte
|
---|
4681 | End Type
|
---|
4682 | TypeDef PIMAGE_ARCHIVE_MEMBER_HEADER = *IMAGE_ARCHIVE_MEMBER_HEADER
|
---|
4683 |
|
---|
4684 | Const IMAGE_SIZEOF_ARCHIVE_MEMBER_HDR = 60
|
---|
4685 |
|
---|
4686 | ' DLL support.
|
---|
4687 |
|
---|
4688 | ' Export Format
|
---|
4689 | Type IMAGE_EXPORT_DIRECTORY
|
---|
4690 | Characteristics As DWord
|
---|
4691 | TimeDateStamp As DWord
|
---|
4692 | MajorVersion As DWord
|
---|
4693 | MinorVersion As DWord
|
---|
4694 | Name As Word
|
---|
4695 | Base As Word
|
---|
4696 | NumberOfFunctions As DWord
|
---|
4697 | NumberOfNames As DWord
|
---|
4698 | AddressOfFunctions As DWord
|
---|
4699 | AddressOfNames As DWord
|
---|
4700 | AddressOfNameOrdinals As DWord
|
---|
4701 | End Type
|
---|
4702 | TypeDef PIMAGE_EXPORT_DIRECTORY = *IMAGE_EXPORT_DIRECTORY
|
---|
4703 |
|
---|
4704 | ' Import Format
|
---|
4705 | Type IMAGE_IMPORT_BY_NAME
|
---|
4706 | Hint As Word
|
---|
4707 | Name[ELM(1)] As Byte
|
---|
4708 | End Type
|
---|
4709 | TypeDef PIMAGE_IMPORT_BY_NAME = *IMAGE_IMPORT_BY_NAME
|
---|
4710 |
|
---|
4711 | Type Align(8) IMAGE_THUNK_DATA64
|
---|
4712 | ' Union
|
---|
4713 | ForwarderString As QWord 'PBYTE
|
---|
4714 | ' Function_ As QWord 'PDWORD
|
---|
4715 | ' Ordinal As QWord
|
---|
4716 | ' AddressOfData As QWord 'PIMAGE_IMPORT_BY_NAME
|
---|
4717 | ' } u1
|
---|
4718 | End Type
|
---|
4719 | TypeDef PIMAGE_THUNK_DATA64 = *IMAGE_THUNK_DATA64
|
---|
4720 |
|
---|
4721 | Type IMAGE_THUNK_DATA32
|
---|
4722 | ' Union
|
---|
4723 | ForwarderString As DWORD 'PBYTE
|
---|
4724 | ' Function_ As DWORD 'PDWORD
|
---|
4725 | ' Ordinal As DWORD
|
---|
4726 | ' AddressOfData As DWORD 'PIMAGE_IMPORT_BY_NAME
|
---|
4727 | ' } u1
|
---|
4728 | End Type
|
---|
4729 | TypeDef PIMAGE_THUNK_DATA32 = *IMAGE_THUNK_DATA32
|
---|
4730 |
|
---|
4731 | Const IMAGE_ORDINAL_FLAG64 = &h8000000000000000
|
---|
4732 | Const IMAGE_ORDINAL_FLAG32 = &h80000000
|
---|
4733 | Const IMAGE_ORDINAL64(Ordinal) = (Ordinal And &hffff)
|
---|
4734 | Const IMAGE_ORDINAL32(Ordinal) = (Ordinal And &hffff)
|
---|
4735 | Const IMAGE_SNAP_BY_ORDINAL64(Ordinal) = ((Ordinal And IMAGE_ORDINAL_FLAG64) <> 0)
|
---|
4736 | Const IMAGE_SNAP_BY_ORDINAL32(Ordinal) = ((Ordinal And IMAGE_ORDINAL_FLAG32) <> 0)
|
---|
4737 |
|
---|
4738 | ' Thread Local Storage
|
---|
4739 | TypeDef PIMAGE_TLS_CALLBACK = *Sub(DllHandle As PVOID, Reason As DWord, Reserved As PVOID)
|
---|
4740 |
|
---|
4741 | Type IMAGE_TLS_DIRECTORY64
|
---|
4742 | StartAddressOfRawData As QWord
|
---|
4743 | EndAddressOfRawData As QWord
|
---|
4744 | AddressOfIndex As QWord 'PDWORD
|
---|
4745 | AddressOfCallBacks As QWord 'PIMAGE_TLS_CALLBACK *
|
---|
4746 | SizeOfZeroFill As DWord
|
---|
4747 | Characteristics As DWord
|
---|
4748 | End Type
|
---|
4749 | TypeDef PIMAGE_TLS_DIRECTORY64 = *IMAGE_TLS_DIRECTORY64
|
---|
4750 |
|
---|
4751 | Type IMAGE_TLS_DIRECTORY32
|
---|
4752 | StartAddressOfRawData As DWord
|
---|
4753 | EndAddressOfRawData As DWord
|
---|
4754 | AddressOfIndex As DWord 'PDWORD
|
---|
4755 | AddressOfCallBacks As DWord 'PIMAGE_TLS_CALLBACK *
|
---|
4756 | SizeOfZeroFill As DWord
|
---|
4757 | Characteristics As DWord
|
---|
4758 | End Type
|
---|
4759 | TypeDef PIMAGE_TLS_DIRECTORY32 = *IMAGE_TLS_DIRECTORY32
|
---|
4760 |
|
---|
4761 | #ifdef _WIN64
|
---|
4762 | Const IMAGE_ORDINAL_FLAG = IMAGE_ORDINAL_FLAG64
|
---|
4763 | Const IMAGE_ORDINAL(Ordinal) = IMAGE_ORDINAL64(Ordinal)
|
---|
4764 | TypeDef IMAGE_THUNK_DATA = IMAGE_THUNK_DATA64
|
---|
4765 | TypeDef PIMAGE_THUNK_DATA = PIMAGE_THUNK_DATA64
|
---|
4766 | Const IMAGE_SNAP_BY_ORDINAL(Ordinal) = IMAGE_SNAP_BY_ORDINAL64(Ordinal)
|
---|
4767 | TypeDef IMAGE_TLS_DIRECTORY = IMAGE_TLS_DIRECTORY64
|
---|
4768 | TypeDef PIMAGE_TLS_DIRECTORY = PIMAGE_TLS_DIRECTORY64
|
---|
4769 | #else
|
---|
4770 | Const IMAGE_ORDINAL_FLAG = IMAGE_ORDINAL_FLAG32
|
---|
4771 | Const IMAGE_ORDINAL(Ordinal) = IMAGE_ORDINAL32(Ordinal)
|
---|
4772 | TypeDef IMAGE_THUNK_DATA = IMAGE_THUNK_DATA32
|
---|
4773 | TypeDef PIMAGE_THUNK_DATA = PIMAGE_THUNK_DATA32
|
---|
4774 | Const IMAGE_SNAP_BY_ORDINAL(Ordinal) = IMAGE_SNAP_BY_ORDINAL32(Ordinal)
|
---|
4775 | TypeDef IMAGE_TLS_DIRECTORY = IMAGE_TLS_DIRECTORY32
|
---|
4776 | TypeDef PIMAGE_TLS_DIRECTORY = PIMAGE_TLS_DIRECTORY32
|
---|
4777 | #endif
|
---|
4778 |
|
---|
4779 | Type IMAGE_IMPORT_DESCRIPTOR
|
---|
4780 | ' Union
|
---|
4781 | Characteristics As DWord
|
---|
4782 | ' OriginalFirstThunk As DWord
|
---|
4783 | ' End Union
|
---|
4784 | TimeDateStamp As DWord
|
---|
4785 | ForwarderChain As DWord
|
---|
4786 | Name As DWord
|
---|
4787 | FirstThunk As DWord
|
---|
4788 | End Type
|
---|
4789 | TypeDef PIMAGE_IMPORT_DESCRIPTOR = * /*UNALIGNED*/ IMAGE_IMPORT_DESCRIPTOR
|
---|
4790 |
|
---|
4791 | ' New format import descriptors pointed to by DataDirectory[ IMAGE_DIRECTORY_ENTRY_BOUND_IMPORT ]
|
---|
4792 | Type IMAGE_BOUND_IMPORT_DESCRIPTOR
|
---|
4793 | TimeDateStamp As DWord
|
---|
4794 | OffsetModuleName As Word
|
---|
4795 | NumberOfModuleForwarderRefs As Word
|
---|
4796 | End Type
|
---|
4797 | TypeDef PIMAGE_BOUND_IMPORT_DESCRIPTOR = IMAGE_BOUND_IMPORT_DESCRIPTOR
|
---|
4798 |
|
---|
4799 | Type IMAGE_BOUND_FORWARDER_REF
|
---|
4800 | TimeDateStamp As DWord
|
---|
4801 | OffsetModuleName As Word
|
---|
4802 | Reserved As Word
|
---|
4803 | End Type
|
---|
4804 | TypeDef PIMAGE_BOUND_FORWARDER_REF = *IMAGE_BOUND_FORWARDER_REF
|
---|
4805 |
|
---|
4806 | ' Resource Format.
|
---|
4807 | Type IMAGE_RESOURCE_DIRECTORY
|
---|
4808 | Characteristics As DWord
|
---|
4809 | TimeDateStamp As DWord
|
---|
4810 | MajorVersion As Word
|
---|
4811 | MinorVersion As Word
|
---|
4812 | NumberOfNamedEntries As Word
|
---|
4813 | NumberOfIdEntries As Word
|
---|
4814 | End Type
|
---|
4815 | TypeDef PIMAGE_RESOURCE_DIRECTORY = *IMAGE_RESOURCE_DIRECTORY
|
---|
4816 |
|
---|
4817 | Const IMAGE_RESOURCE_NAME_IS_STRING = &h80000000
|
---|
4818 | Const IMAGE_RESOURCE_DATA_IS_DIRECTORY = &h80000000
|
---|
4819 |
|
---|
4820 | Type IMAGE_RESOURCE_DIRECTORY_ENTRY
|
---|
4821 | ' Union
|
---|
4822 | ' Type
|
---|
4823 | ' NameOffset : 31 As DWord
|
---|
4824 | ' NameIsString : As DWord
|
---|
4825 | ' End Type
|
---|
4826 | Name As DWord
|
---|
4827 | ' Id As DWord
|
---|
4828 | ' End Union
|
---|
4829 | ' Union
|
---|
4830 | OffsetToData As DWord
|
---|
4831 | ' Type
|
---|
4832 | ' OffsetToDirectory : 31 As DWord
|
---|
4833 | ' DataIsDirectory : 1 As DWord
|
---|
4834 | ' End Type
|
---|
4835 | ' End Union
|
---|
4836 | End Type
|
---|
4837 | TypeDef PIMAGE_RESOURCE_DIRECTORY_ENTRY = *IMAGE_RESOURCE_DIRECTORY_ENTRY
|
---|
4838 |
|
---|
4839 | Type IMAGE_RESOURCE_DIRECTORY_STRING
|
---|
4840 | Length As Word
|
---|
4841 | NameString[ELM(1)] As CHAR
|
---|
4842 | End Type
|
---|
4843 | TypeDef PIMAGE_RESOURCE_DIRECTORY_STRING = *IMAGE_RESOURCE_DIRECTORY_STRING
|
---|
4844 |
|
---|
4845 | Type IMAGE_RESOURCE_DIR_STRING_U
|
---|
4846 | Length As Word
|
---|
4847 | NameString[ELM(1)] As WCHAR
|
---|
4848 | End Type
|
---|
4849 | TypeDef PIMAGE_RESOURCE_DIR_STRING_U = *IMAGE_RESOURCE_DIR_STRING_U
|
---|
4850 |
|
---|
4851 | Type IMAGE_RESOURCE_DATA_ENTRY
|
---|
4852 | OffsetToData As DWord
|
---|
4853 | Size As DWord
|
---|
4854 | CodePage As DWord
|
---|
4855 | Reserved As DWord
|
---|
4856 | End Type
|
---|
4857 | TypeDef PIMAGE_RESOURCE_DATA_ENTRY = *IMAGE_RESOURCE_DATA_ENTRY
|
---|
4858 |
|
---|
4859 | ' Load Configuration Directory Entry
|
---|
4860 |
|
---|
4861 | Type IMAGE_LOAD_CONFIG_DIRECTORY32
|
---|
4862 | Size As DWord
|
---|
4863 | TimeDateStamp As DWord
|
---|
4864 | MajorVersion As Word
|
---|
4865 | MinorVersion As Word
|
---|
4866 | GlobalFlagsClear As DWord
|
---|
4867 | GlobalFlagsSet As DWord
|
---|
4868 | CriticalSectionDefaultTimeout As DWord
|
---|
4869 | DeCommitFreeBlockThreshold As DWord
|
---|
4870 | DeCommitTotalFreeThreshold As DWord
|
---|
4871 | LockPrefixTable As DWord
|
---|
4872 | MaximumAllocationSize As DWord
|
---|
4873 | VirtualMemoryThreshold As DWord
|
---|
4874 | ProcessHeapFlags As DWord
|
---|
4875 | ProcessAffinityMask As DWord
|
---|
4876 | CSDVersion As Word
|
---|
4877 | Reserved1 As Word
|
---|
4878 | EditList As DWord
|
---|
4879 | SecurityCookie As DWord
|
---|
4880 | SEHandlerTable As DWord
|
---|
4881 | SEHandlerCount As DWord
|
---|
4882 | End Type
|
---|
4883 | TypeDef PIMAGE_LOAD_CONFIG_DIRECTORY32 = *IMAGE_LOAD_CONFIG_DIRECTORY32
|
---|
4884 |
|
---|
4885 | Type IMAGE_LOAD_CONFIG_DIRECTORY64
|
---|
4886 | Size As DWord
|
---|
4887 | TimeDateStamp As DWord
|
---|
4888 | MajorVersion As Word
|
---|
4889 | MinorVersion As Word
|
---|
4890 | GlobalFlagsClear As DWord
|
---|
4891 | GlobalFlagsSet As DWord
|
---|
4892 | CriticalSectionDefaultTimeout As DWord
|
---|
4893 | DeCommitFreeBlockThreshold As QWord
|
---|
4894 | DeCommitTotalFreeThreshold As QWord
|
---|
4895 | LockPrefixTable As QWord
|
---|
4896 | MaximumAllocationSize As QWord
|
---|
4897 | VirtualMemoryThreshold As QWord
|
---|
4898 | ProcessAffinityMask As QWord
|
---|
4899 | ProcessHeapFlags As DWord
|
---|
4900 | CSDVersion As Word
|
---|
4901 | Reserved1 As Word
|
---|
4902 | EditList As QWord
|
---|
4903 | SecurityCookie As QWord
|
---|
4904 | SEHandlerTable As QWord
|
---|
4905 | SEHandlerCount As QWord
|
---|
4906 | End Type
|
---|
4907 | TypeDef PIMAGE_LOAD_CONFIG_DIRECTORY64 = *IMAGE_LOAD_CONFIG_DIRECTORY64
|
---|
4908 |
|
---|
4909 | #ifdef _WIN64
|
---|
4910 | TypeDef IMAGE_LOAD_CONFIG_DIRECTORY = IMAGE_LOAD_CONFIG_DIRECTORY64
|
---|
4911 | TypeDef PIMAGE_LOAD_CONFIG_DIRECTORY = PIMAGE_LOAD_CONFIG_DIRECTORY64
|
---|
4912 | #else
|
---|
4913 | TypeDef IMAGE_LOAD_CONFIG_DIRECTORY = IMAGE_LOAD_CONFIG_DIRECTORY32
|
---|
4914 | TypeDef PIMAGE_LOAD_CONFIG_DIRECTORY = PIMAGE_LOAD_CONFIG_DIRECTORY32
|
---|
4915 | #endif
|
---|
4916 |
|
---|
4917 | ' WIN CE Exception table format
|
---|
4918 |
|
---|
4919 | ' Function table entry format
|
---|
4920 |
|
---|
4921 | Type IMAGE_CE_RUNTIME_FUNCTION_ENTRY
|
---|
4922 | FuncStart As DWord
|
---|
4923 | dummy As DWord
|
---|
4924 | ' PrologLen : 8 As DWord
|
---|
4925 | ' FuncLen : 22 As DWord
|
---|
4926 | ' ThirtyTwoBit : 1 As DWord
|
---|
4927 | ' ExceptionFlag : 1 As DWord
|
---|
4928 | End Type
|
---|
4929 | TypeDef PIMAGE_CE_RUNTIME_FUNCTION_ENTRY = *IMAGE_CE_RUNTIME_FUNCTION_ENTRY
|
---|
4930 |
|
---|
4931 | Type IMAGE_ALPHA64_RUNTIME_FUNCTION_ENTRY
|
---|
4932 | BeginAddress As QWord
|
---|
4933 | EndAddress As QWord
|
---|
4934 | ExceptionHandler As QWord
|
---|
4935 | HandlerData As QWord
|
---|
4936 | PrologEndAddress As QWord
|
---|
4937 | End Type
|
---|
4938 | TypeDef PIMAGE_ALPHA64_RUNTIME_FUNCTION_ENTRY = *IMAGE_ALPHA64_RUNTIME_FUNCTION_ENTRY
|
---|
4939 |
|
---|
4940 | Type IMAGE_ALPHA_RUNTIME_FUNCTION_ENTRY
|
---|
4941 | BeginAddress As DWord
|
---|
4942 | EndAddress As DWord
|
---|
4943 | ExceptionHandler As DWord
|
---|
4944 | HandlerData As DWord
|
---|
4945 | PrologEndAddress As DWord
|
---|
4946 | End Type
|
---|
4947 | TypeDef PIMAGE_ALPHA_RUNTIME_FUNCTION_ENTRY = *IMAGE_ALPHA_RUNTIME_FUNCTION_ENTRY
|
---|
4948 |
|
---|
4949 | Type _IMAGE_RUNTIME_FUNCTION_ENTRY
|
---|
4950 | BeginAddress As DWord
|
---|
4951 | EndAddress As DWord
|
---|
4952 | UnwindInfoAddress As DWord
|
---|
4953 | End Type
|
---|
4954 | TypeDef _PIMAGE_RUNTIME_FUNCTION_ENTRY = *_IMAGE_RUNTIME_FUNCTION_ENTRY
|
---|
4955 |
|
---|
4956 | TypeDef IMAGE_IA64_RUNTIME_FUNCTION_ENTRY = _IMAGE_RUNTIME_FUNCTION_ENTRY
|
---|
4957 | TypeDef PIMAGE_IA64_RUNTIME_FUNCTION_ENTRY = _PIMAGE_RUNTIME_FUNCTION_ENTRY
|
---|
4958 |
|
---|
4959 | TypeDef IMAGE_RUNTIME_FUNCTION_ENTRY = _IMAGE_RUNTIME_FUNCTION_ENTRY
|
---|
4960 | TypeDef PIMAGE_RUNTIME_FUNCTION_ENTRY = _PIMAGE_RUNTIME_FUNCTION_ENTRY
|
---|
4961 |
|
---|
4962 | ' Debug Format
|
---|
4963 | Type IMAGE_DEBUG_DIRECTORY
|
---|
4964 | Characteristics As DWord
|
---|
4965 | TimeDateStamp As DWord
|
---|
4966 | MajorVersion As Word
|
---|
4967 | MinorVersion As Word
|
---|
4968 | Type_ As DWord
|
---|
4969 | SizeOfData As DWord
|
---|
4970 | AddressOfRawData As DWord
|
---|
4971 | PointerToRawData As DWord
|
---|
4972 | End Type
|
---|
4973 | TypeDef PIMAGE_DEBUG_DIRECTORY = *IMAGE_DEBUG_DIRECTORY
|
---|
4974 |
|
---|
4975 | Const IMAGE_DEBUG_TYPE_UNKNOWN = 0
|
---|
4976 | Const IMAGE_DEBUG_TYPE_COFF = 1
|
---|
4977 | Const IMAGE_DEBUG_TYPE_CODEVIEW = 2
|
---|
4978 | Const IMAGE_DEBUG_TYPE_FPO = 3
|
---|
4979 | Const IMAGE_DEBUG_TYPE_MISC = 4
|
---|
4980 | Const IMAGE_DEBUG_TYPE_EXCEPTION = 5
|
---|
4981 | Const IMAGE_DEBUG_TYPE_FIXUP = 6
|
---|
4982 | Const IMAGE_DEBUG_TYPE_OMAP_TO_SRC = 7
|
---|
4983 | Const IMAGE_DEBUG_TYPE_OMAP_FROM_SRC = 8
|
---|
4984 | Const IMAGE_DEBUG_TYPE_BORLAND = 9
|
---|
4985 | Const IMAGE_DEBUG_TYPE_RESERVED10 = 10
|
---|
4986 | Const IMAGE_DEBUG_TYPE_CLSID = 11
|
---|
4987 |
|
---|
4988 | Type IMAGE_COFF_SYMBOLS_HEADER
|
---|
4989 | NumberOfSymbols As DWord
|
---|
4990 | LvaToFirstSymbol As DWord
|
---|
4991 | NumberOfLinenumbers As DWord
|
---|
4992 | LvaToFirstLinenumber As DWord
|
---|
4993 | RvaToFirstByteOfCode As DWord
|
---|
4994 | RvaToLastByteOfCode As DWord
|
---|
4995 | RvaToFirstByteOfData As DWord
|
---|
4996 | RvaToLastByteOfData As DWord
|
---|
4997 | End Type
|
---|
4998 | TypeDef PIMAGE_COFF_SYMBOLS_HEADER = *IMAGE_COFF_SYMBOLS_HEADER
|
---|
4999 |
|
---|
5000 | Const FRAME_FPO = 0
|
---|
5001 | Const FRAME_TRAP = 1
|
---|
5002 | Const FRAME_TSS = 2
|
---|
5003 | Const FRAME_NONFPO = 3
|
---|
5004 |
|
---|
5005 | Type FPO_DATA
|
---|
5006 | ulOffStart As DWord
|
---|
5007 | cbProcSize As DWord
|
---|
5008 | cdwLocals As DWord
|
---|
5009 | cdwParams As Word
|
---|
5010 | dummy As Word
|
---|
5011 | ' cbProlog : 8 As Word
|
---|
5012 | ' cbRegs : 3 As Word
|
---|
5013 | ' fHasSEH : 1 As Word
|
---|
5014 | ' fUseBP : 1 As Word
|
---|
5015 | ' reserved : 1 As Word
|
---|
5016 | ' cbFrame : 2 As Word
|
---|
5017 | End Type
|
---|
5018 | TypeDef PFPO_DATA = *FPO_DATA
|
---|
5019 | Const SIZEOF_RFPO_DATA = 16
|
---|
5020 |
|
---|
5021 | Const IMAGE_DEBUG_MISC_EXENAME = 1
|
---|
5022 |
|
---|
5023 | Type IMAGE_DEBUG_MISC
|
---|
5024 | DataType As DWord
|
---|
5025 | Length As DWord
|
---|
5026 | Unicode As BOOLEAN
|
---|
5027 | Reserved[ELM(3)] As Byte
|
---|
5028 | Data[ELM(1)] As Byte
|
---|
5029 | End Type
|
---|
5030 | TypeDef PIMAGE_DEBUG_MISC = *IMAGE_DEBUG_MISC
|
---|
5031 |
|
---|
5032 | Type IMAGE_FUNCTION_ENTRY
|
---|
5033 | StartingAddress As DWord
|
---|
5034 | EndingAddress As DWord
|
---|
5035 | EndOfPrologue As DWord
|
---|
5036 | End Type
|
---|
5037 | TypeDef PIMAGE_FUNCTION_ENTRY = *IMAGE_FUNCTION_ENTRY
|
---|
5038 |
|
---|
5039 | Type IMAGE_FUNCTION_ENTRY64
|
---|
5040 | StartingAddress As QWord
|
---|
5041 | EndingAddress As QWord
|
---|
5042 | ' Union
|
---|
5043 | EndOfPrologue As QWord
|
---|
5044 | ' UnwindInfoAddress As QWord
|
---|
5045 | 'End Union
|
---|
5046 | End Type
|
---|
5047 | TypeDef PIMAGE_FUNCTION_ENTRY64 = *IMAGE_FUNCTION_ENTRY64
|
---|
5048 |
|
---|
5049 | Type IMAGE_SEPARATE_DEBUG_HEADER
|
---|
5050 | Signature As Word
|
---|
5051 | Flags As Word
|
---|
5052 | Machine As Word
|
---|
5053 | Characteristics As Word
|
---|
5054 | TimeDateStamp As DWord
|
---|
5055 | CheckSum As DWord
|
---|
5056 | ImageBase As DWord
|
---|
5057 | SizeOfImage As DWord
|
---|
5058 | NumberOfSections As DWord
|
---|
5059 | ExportedNamesSize As DWord
|
---|
5060 | DebugDirectorySize As DWord
|
---|
5061 | SectionAlignment As DWord
|
---|
5062 | Reserved[ELM(2)] As DWord
|
---|
5063 | End Type
|
---|
5064 | TypeDef PIMAGE_SEPARATE_DEBUG_HEADER = *IMAGE_SEPARATE_DEBUG_HEADER
|
---|
5065 |
|
---|
5066 | Type NON_PAGED_DEBUG_INFO
|
---|
5067 | Signature As Word
|
---|
5068 | Flags As Word
|
---|
5069 | Size As DWord
|
---|
5070 | Machine As Word
|
---|
5071 | Characteristics As Word
|
---|
5072 | TimeDateStamp As DWord
|
---|
5073 | CheckSum As DWord
|
---|
5074 | SizeOfImage As DWord
|
---|
5075 | ImageBase As QWord
|
---|
5076 | End Type
|
---|
5077 | TypeDef PNON_PAGED_DEBUG_INFO = *NON_PAGED_DEBUG_INFO
|
---|
5078 |
|
---|
5079 | Const IMAGE_SEPARATE_DEBUG_SIGNATURE = &h4449 'DI
|
---|
5080 | Const NON_PAGED_DEBUG_SIGNATURE = &h4E49 ' NI
|
---|
5081 |
|
---|
5082 | Const IMAGE_SEPARATE_DEBUG_FLAGS_MASK = &h8000
|
---|
5083 | Const IMAGE_SEPARATE_DEBUG_MISMATCH = &h8000
|
---|
5084 |
|
---|
5085 | Type IMAGE_ARCHITECTURE_HEADER
|
---|
5086 | AmaskValue As Byte
|
---|
5087 | ' AmaskValue: 1 As DWord
|
---|
5088 | ' : 7 As Long
|
---|
5089 | AmaskShift As Byte
|
---|
5090 | ' AmaskShift: 8 As DWord
|
---|
5091 | dummy As Word
|
---|
5092 | ' : 16 As Long
|
---|
5093 | FirstEntryRVA As DWord
|
---|
5094 | End Type
|
---|
5095 | TypeDef PIMAGE_ARCHITECTURE_HEADER = *IMAGE_ARCHITECTURE_HEADER
|
---|
5096 |
|
---|
5097 | Type IMAGE_ARCHITECTURE_ENTRY
|
---|
5098 | FixupInstRVA As DWord
|
---|
5099 | NewInst As DWord
|
---|
5100 | End Type
|
---|
5101 | TypeDef PIMAGE_ARCHITECTURE_ENTRY = *IMAGE_ARCHITECTURE_ENTRY
|
---|
5102 |
|
---|
5103 | Const IMPORT_OBJECT_HDR_SIG2 = &hffff
|
---|
5104 |
|
---|
5105 | Type IMPORT_OBJECT_HEADER
|
---|
5106 | Sig1 As Word
|
---|
5107 | Sig2 As Word
|
---|
5108 | Version As Word
|
---|
5109 | Machine As Word
|
---|
5110 | TimeDateStamp As DWord
|
---|
5111 | SizeOfData As DWord
|
---|
5112 |
|
---|
5113 | ' Union
|
---|
5114 | Ordinal As Word
|
---|
5115 | ' Hint As Word
|
---|
5116 | ' End Union
|
---|
5117 |
|
---|
5118 | Reserved As Word
|
---|
5119 | ' Type : 2 As Word
|
---|
5120 | ' NameType : 3 As Word
|
---|
5121 | ' Reserved : 11 As Word
|
---|
5122 | End Type
|
---|
5123 |
|
---|
5124 | Enum IMPORT_OBJECT_TYPE
|
---|
5125 | IMPORT_OBJECT_CODE = 0
|
---|
5126 | IMPORT_OBJECT_DATA = 1
|
---|
5127 | IMPORT_OBJECT_CONST = 2
|
---|
5128 | End Enum
|
---|
5129 |
|
---|
5130 | Enum IMPORT_OBJECT_NAME_TYPE
|
---|
5131 | IMPORT_OBJECT_ORDINAL = 0
|
---|
5132 | IMPORT_OBJECT_NAME = 1
|
---|
5133 | IMPORT_OBJECT_NAME_NO_PREFIX = 2
|
---|
5134 | IMPORT_OBJECT_NAME_UNDECORATE = 3
|
---|
5135 | End Enum
|
---|
5136 |
|
---|
5137 | #ifndef __IMAGE_COR20_HEADER_DEFINED__
|
---|
5138 | #define __IMAGE_COR20_HEADER_DEFINED__
|
---|
5139 |
|
---|
5140 | Enum ReplacesCorHdrNumericDefines
|
---|
5141 | ' COM+ Header entry point flags.
|
---|
5142 | COMIMAGE_FLAGS_ILONLY = &h00000001
|
---|
5143 | COMIMAGE_FLAGS_32BITREQUIRED = &h00000002
|
---|
5144 | COMIMAGE_FLAGS_IL_LIBRARY = &h00000004
|
---|
5145 | COMIMAGE_FLAGS_STRONGNAMESIGNED = &h00000008
|
---|
5146 | COMIMAGE_FLAGS_TRACKDEBUGDATA = &h00010000
|
---|
5147 | ' Version flags for image.
|
---|
5148 | COR_VERSION_MAJOR_V2 = 2
|
---|
5149 | COR_VERSION_MAJOR = COR_VERSION_MAJOR_V2
|
---|
5150 | COR_VERSION_MINOR = 0
|
---|
5151 | COR_DELETED_NAME_LENGTH = 8
|
---|
5152 | COR_VTABLEGAP_NAME_LENGTH = 8
|
---|
5153 | ' Maximum size of a NativeType descriptor.
|
---|
5154 | NATIVE_TYPE_MAX_CB = 1
|
---|
5155 | COR_ILMETHOD_SECT_SMALL_MAX_DATASIZE= &hFF
|
---|
5156 | ' Consts for the MIH FLAGS
|
---|
5157 | IMAGE_COR_MIH_METHODRVA = &h01
|
---|
5158 | IMAGE_COR_MIH_EHRVA = &h02
|
---|
5159 | IMAGE_COR_MIH_BASICBLOCK = &h08
|
---|
5160 | ' V-table constants
|
---|
5161 | COR_VTABLE_32BIT = &h01 ' V-table slots are 32-bits in size.
|
---|
5162 | COR_VTABLE_64BIT = &h02 ' V-table slots are 64-bits in size.
|
---|
5163 | COR_VTABLE_FROM_UNMANAGED = &h04 ' If set, transition from unmanaged.
|
---|
5164 | COR_VTABLE_FROM_UNMANAGED_RETAIN_APPDOMAIN = &h08 ' If set, transition from unmanaged with keeping the current appdomain.
|
---|
5165 | COR_VTABLE_CALL_MOST_DERIVED = &h10 ' Call most derived method described by
|
---|
5166 | ' EATJ constants
|
---|
5167 | IMAGE_COR_EATJ_THUNK_SIZE = 32 ' Size of a jump thunk reserved range.
|
---|
5168 | ' Max name lengths
|
---|
5169 | '@todo: Change to unlimited name lengths.
|
---|
5170 | MAX_CLASS_NAME = 1024
|
---|
5171 | MAX_PACKAGE_NAME = 1024
|
---|
5172 | End Enum
|
---|
5173 |
|
---|
5174 | ' CLR 2.0 header structure.
|
---|
5175 | Type IMAGE_COR20_HEADER
|
---|
5176 | ' Header versioning
|
---|
5177 | cb As DWord
|
---|
5178 | MajorRuntimeVersion As Word
|
---|
5179 | MinorRuntimeVersion As Word
|
---|
5180 | ' Symbol table and startup information
|
---|
5181 | MetaData As IMAGE_DATA_DIRECTORY
|
---|
5182 | Flags As DWord
|
---|
5183 | EntryPointToken As DWord
|
---|
5184 | ' Binding information
|
---|
5185 | Resources As IMAGE_DATA_DIRECTORY
|
---|
5186 | StrongNameSignature As IMAGE_DATA_DIRECTORY
|
---|
5187 | ' Regular fixup and binding information
|
---|
5188 | CodeManagerTable As IMAGE_DATA_DIRECTORY
|
---|
5189 | VTableFixups As IMAGE_DATA_DIRECTORY
|
---|
5190 | ExportAddressTableJumps As IMAGE_DATA_DIRECTORY
|
---|
5191 | ' Precompiled image info (internal use only - set to zero)
|
---|
5192 | ManagedNativeHeader As IMAGE_DATA_DIRECTORY
|
---|
5193 | End Type
|
---|
5194 | TypeDef PIMAGE_COR20_HEADER = *IMAGE_COR20_HEADER
|
---|
5195 |
|
---|
5196 | #endif
|
---|
5197 |
|
---|
5198 | ' for move macros
|
---|
5199 | '#include <string.h>
|
---|
5200 |
|
---|
5201 | #ifndef _SLIST_HEADER_
|
---|
5202 | #define _SLIST_HEADER_
|
---|
5203 |
|
---|
5204 | #ifdef _WIN64
|
---|
5205 | Type Align(16) SLIST_ENTRY
|
---|
5206 | Next_ As *SLIST_ENTRY
|
---|
5207 | End Type
|
---|
5208 | TypeDef PSLIST_ENTRY = *SLIST_ENTRY
|
---|
5209 | #else
|
---|
5210 | TypeDef SLIST_ENTRY = SINGLE_LIST_ENTRY
|
---|
5211 | 'TypeDef _SLIST_ENTRY = _SINGLE_LIST_ENTRY
|
---|
5212 | TypeDef PSLIST_ENTRY = PSINGLE_LIST_ENTRY
|
---|
5213 | #endif
|
---|
5214 |
|
---|
5215 | #ifdef _WIN64
|
---|
5216 |
|
---|
5217 | Type /*Union*/ Align(16) SLIST_HEADER
|
---|
5218 | ' Type ' original struct
|
---|
5219 | Alignment As QWord
|
---|
5220 | Region As QWord
|
---|
5221 | ' End Type
|
---|
5222 | ' Type ' 8-byte header
|
---|
5223 | ' Depth:16 As QWord
|
---|
5224 | ' Sequence:9 As QWord
|
---|
5225 | ' NextEntry:39 As QWord
|
---|
5226 | ' HeaderType:1 As QWord ' 0: 8-byte As QWord 1: 16-byte
|
---|
5227 | ' Init:1 As QWord ' 0: uninitialized As QWord 1: initialized
|
---|
5228 | ' Reserved:59 As QWord
|
---|
5229 | ' Region:3 As QWord
|
---|
5230 | ' } Header8
|
---|
5231 | ' Type ' 16-byte header
|
---|
5232 | ' Depth:16 As QWord
|
---|
5233 | ' Sequence:48 As QWord
|
---|
5234 | ' HeaderType:1 As QWord ' 0: 8-byte As QWord 1: 16-byte
|
---|
5235 | ' Init:1 As QWord ' 0: uninitialized As QWord 1: initialized
|
---|
5236 | ' Reserved:2 As QWord
|
---|
5237 | ' NextEntry:60 As QWord ' last 4 bits are always 0's
|
---|
5238 | ' } Header16
|
---|
5239 | End Type 'Union
|
---|
5240 | TypeDef PSLIST_HEADER = *SLIST_HEADER
|
---|
5241 |
|
---|
5242 | #else
|
---|
5243 |
|
---|
5244 | Type /*Union*/ SLIST_HEADER
|
---|
5245 | ' Alignment As QWord
|
---|
5246 | ' Type
|
---|
5247 | Next_ As SLIST_ENTRY
|
---|
5248 | Depth As Word
|
---|
5249 | Sequence As Word
|
---|
5250 | ' End Type
|
---|
5251 | End Type 'Union
|
---|
5252 | TypeDef PSLIST_HEADER = *SLIST_HEADER
|
---|
5253 |
|
---|
5254 | #endif
|
---|
5255 |
|
---|
5256 | #endif
|
---|
5257 |
|
---|
5258 | Declare Sub RtlInitializeSListHead Lib "kernel32" (/*IN*/ ByRef ListHead As SLIST_HEADER)
|
---|
5259 | Declare Function RtlFirstEntrySList Lib "kernel32" (/*IN*/ ByRef ListHead As /*Const*/ SLIST_HEADER) As PSLIST_ENTRY
|
---|
5260 | Declare Function RtlInterlockedPopEntrySList Lib "kernel32" (/*IN*/ ByRef ListHead As SLIST_HEADER) As PSLIST_ENTRY
|
---|
5261 | Declare Function RtlInterlockedPushEntrySList Lib "kernel32" (/*IN*/ ByRef ListHead As SLIST_HEADER, /*IN*/ ListEntry As PSLIST_ENTRY) As PSLIST_ENTRY
|
---|
5262 | Declare Function RtlInterlockedFlushSList Lib "kernel32" (/*IN*/ ByRef ListHead As SLIST_HEADER) As PSLIST_ENTRY
|
---|
5263 | Declare Function RtlQueryDepthSList Lib "kernel32" (/*IN*/ ByRef ListHead As SLIST_HEADER) As Word
|
---|
5264 |
|
---|
5265 | #ifndef _RTL_RUN_ONCE_DEF
|
---|
5266 | #define _RTL_RUN_ONCE_DEF
|
---|
5267 |
|
---|
5268 | 'Const RTL_RUN_ONCE_INIT {0} 'Static initializer
|
---|
5269 |
|
---|
5270 | Const RTL_RUN_ONCE_CHECK_ONLY = &h00000001
|
---|
5271 | Const RTL_RUN_ONCE_ASYNC = &h00000002
|
---|
5272 | Const RTL_RUN_ONCE_INIT_FAILED = &h00000004
|
---|
5273 |
|
---|
5274 | Const RTL_RUN_ONCE_CTX_RESERVED_BITS = 2
|
---|
5275 |
|
---|
5276 | Type /*Union*/ RTL_RUN_ONCE
|
---|
5277 | Ptr As VoidPtr
|
---|
5278 | End Type 'Union
|
---|
5279 | TypeDef PRTL_RUN_ONCE = *RTL_RUN_ONCE
|
---|
5280 |
|
---|
5281 | TypeDef PRTL_RUN_ONCE_INIT_FN = *Function(ByRef RunOnce As RTL_RUN_ONCE, Parameter As VoidPtr, ByRef Context As VoidPtr) As DWord'LOGICAL
|
---|
5282 | #endif
|
---|
5283 |
|
---|
5284 | Declare Sub RtlRunOnceInitialize Lib "kernel32" (ByRef RunOnce As RTL_RUN_ONCE)
|
---|
5285 | Declare Function RtlRunOnceExecuteOnce Lib "kernel32" (ByRef RunOnce As RTL_RUN_ONCE, InitFn As PRTL_RUN_ONCE_INIT_FN, Parameter As PVOID, ByRef Context As PVOID) As DWord
|
---|
5286 | Declare Function RtlRunOnceBeginInitialize Lib "kernel32" (ByRef RunOnce As RTL_RUN_ONCE, Flags As DWord, ByRef Context As PVOID) As DWord
|
---|
5287 | Declare Function RtlRunOnceComplete Lib "kernel32" (ByRef RunOnce As RTL_RUN_ONCE, Flags As DWord, Context As PVOID) As DWord
|
---|
5288 |
|
---|
5289 | Const HEAP_NO_SERIALIZE = &h00000001
|
---|
5290 | Const HEAP_GROWABLE = &h00000002
|
---|
5291 | Const HEAP_GENERATE_EXCEPTIONS = &h00000004
|
---|
5292 | Const HEAP_ZERO_MEMORY = &h00000008
|
---|
5293 | Const HEAP_REALLOC_IN_PLACE_ONLY = &h00000010
|
---|
5294 | Const HEAP_TAIL_CHECKING_ENABLED = &h00000020
|
---|
5295 | Const HEAP_FREE_CHECKING_ENABLED = &h00000040
|
---|
5296 | Const HEAP_DISABLE_COALESCE_ON_FREE = &h00000080
|
---|
5297 | Const HEAP_CREATE_ALIGN_16 = &h00010000
|
---|
5298 | Const HEAP_CREATE_ENABLE_TRACING = &h00020000
|
---|
5299 | Const HEAP_CREATE_ENABLE_EXECUTE = &h00040000
|
---|
5300 | Const HEAP_MAXIMUM_TAG = &h0FFF
|
---|
5301 | Const HEAP_PSEUDO_TAG_FLAG = &h8000
|
---|
5302 | Const HEAP_TAG_SHIFT = 18
|
---|
5303 |
|
---|
5304 | Const HEAP_MAKE_TAG_FLAGS (TagBase /*As DWord*/, Tag /*As DWord*/) /*As DWord*/ = (((TagBase) + ((Tag) << HEAP_TAG_SHIFT)) As DWord)
|
---|
5305 |
|
---|
5306 | '#if (NTDDI_VERSION > NTDDI_WINXP)
|
---|
5307 | 'Declare Function RtlCaptureStackBackTrace Lib "kernel32" (FramesToSkip As DWord, FramesToCapture A sDWord, ByRef BackTrace As PVOID, BackTraceHash As *DWord) As Word
|
---|
5308 | '#endif
|
---|
5309 |
|
---|
5310 | '#if (NTDDI_VERSION > NTDDI_WIN2K)
|
---|
5311 | 'Declare Sub RtlCaptureContext Lib "kernel32" (ByRef ContextRecord As CONTEXT)
|
---|
5312 | '#endif
|
---|
5313 |
|
---|
5314 | Const IS_TEXT_UNICODE_ASCII16 = &h0001
|
---|
5315 | Const IS_TEXT_UNICODE_REVERSE_ASCII16 = &h0010
|
---|
5316 |
|
---|
5317 | Const IS_TEXT_UNICODE_STATISTICS = &h0002
|
---|
5318 | Const IS_TEXT_UNICODE_REVERSE_STATISTICS = &h0020
|
---|
5319 |
|
---|
5320 | Const IS_TEXT_UNICODE_CONTROLS = &h0004
|
---|
5321 | Const IS_TEXT_UNICODE_REVERSE_CONTROLS = &h0040
|
---|
5322 |
|
---|
5323 | Const IS_TEXT_UNICODE_SIGNATURE = &h0008
|
---|
5324 | Const IS_TEXT_UNICODE_REVERSE_SIGNATURE = &h0080
|
---|
5325 |
|
---|
5326 | Const IS_TEXT_UNICODE_ILLEGAL_CHARS = &h0100
|
---|
5327 | Const IS_TEXT_UNICODE_ODD_LENGTH = &h0200
|
---|
5328 | Const IS_TEXT_UNICODE_DBCS_LEADBYTE = &h0400
|
---|
5329 | Const IS_TEXT_UNICODE_NULL_BYTES = &h1000
|
---|
5330 |
|
---|
5331 | Const IS_TEXT_UNICODE_UNICODE_MASK = &h000F
|
---|
5332 | Const IS_TEXT_UNICODE_REVERSE_MASK = &h00F0
|
---|
5333 | Const IS_TEXT_UNICODE_NOT_UNICODE_MASK = &h0F00
|
---|
5334 | Const IS_TEXT_UNICODE_NOT_ASCII_MASK = &hF000
|
---|
5335 |
|
---|
5336 | Const COMPRESSION_FORMAT_NONE = &h0000
|
---|
5337 | Const COMPRESSION_FORMAT_DEFAULT = &h0001
|
---|
5338 | Const COMPRESSION_FORMAT_LZNT1 = &h0002
|
---|
5339 | Const COMPRESSION_ENGINE_STANDARD = &h0000
|
---|
5340 | Const COMPRESSION_ENGINE_MAXIMUM = &h0100
|
---|
5341 | Const COMPRESSION_ENGINE_HIBER = &h0200
|
---|
5342 |
|
---|
5343 | '#if _DBG_MEMCPY_INLINE_ && !defined(MIDL_PASS) && !defined(_MEMCPY_INLINE_) && !defined(_CRTBLD)
|
---|
5344 | '#define _MEMCPY_INLINE_
|
---|
5345 | /*
|
---|
5346 | FORCEINLINE
|
---|
5347 | PVOID
|
---|
5348 | __cdecl
|
---|
5349 | memcpy_inline (
|
---|
5350 | void *dst,
|
---|
5351 | const void *src,
|
---|
5352 | size_t size
|
---|
5353 | )
|
---|
5354 | {
|
---|
5355 | if (((char *)dst > (char *)src) &&
|
---|
5356 | ((char *)dst < ((char *)src + size))) {
|
---|
5357 | __debugbreak();
|
---|
5358 | }
|
---|
5359 | return memcpy(dst, src, size);
|
---|
5360 | }
|
---|
5361 | Const memcpy memcpy_inline
|
---|
5362 | */
|
---|
5363 | '#endif
|
---|
5364 |
|
---|
5365 | '#if (NTDDI_VERSION >= NTDDI_WIN2K)
|
---|
5366 | 'Declare Function RtlCompareMemory Lib "kernel32" (Source1 As VoidPtr, Source2 As VoidPtr, Length As SIZE_T) As SIZE_T
|
---|
5367 | '#endif
|
---|
5368 | /*
|
---|
5369 | Const RtlEqualMemory(Destination,Source,Length) (!memcmp((Destination),(Source),(Length)))
|
---|
5370 | Const RtlMoveMemory(Destination,Source,Length) memmove((Destination),(Source),(Length))
|
---|
5371 | Const RtlCopyMemory(Destination,Source,Length) memcpy((Destination),(Source),(Length))
|
---|
5372 | Const RtlFillMemory(Destination,Length,Fill) memset((Destination),(Fill),(Length))
|
---|
5373 | Const RtlZeroMemory(Destination,Length) memset((Destination),0,(Length))
|
---|
5374 | */
|
---|
5375 | Function RtlSecureZeroMemory(ptr As VoidPtr, cnt As SIZE_T) As VoidPtr
|
---|
5376 | Dim vptr = ptr As * /*Volatile*/ Byte
|
---|
5377 | #ifdef _WIN64
|
---|
5378 | FillMemory(vptr, cnt, 0)
|
---|
5379 | #else
|
---|
5380 |
|
---|
5381 | While (cnt > 0)
|
---|
5382 | vptr = 0
|
---|
5383 | vptr++
|
---|
5384 | cnt--
|
---|
5385 | Wend
|
---|
5386 | #endif
|
---|
5387 | RtlSecureZeroMemory = ptr
|
---|
5388 | End Function
|
---|
5389 |
|
---|
5390 | Const SEF_DACL_AUTO_INHERIT = &h01
|
---|
5391 | Const SEF_SACL_AUTO_INHERIT = &h02
|
---|
5392 | Const SEF_DEFAULT_DESCRIPTOR_FOR_OBJECT = &h04
|
---|
5393 | Const SEF_AVOID_PRIVILEGE_CHECK = &h08
|
---|
5394 | Const SEF_AVOID_OWNER_CHECK = &h10
|
---|
5395 | Const SEF_DEFAULT_OWNER_FROM_PARENT = &h20
|
---|
5396 | Const SEF_DEFAULT_GROUP_FROM_PARENT = &h40
|
---|
5397 | Const SEF_MACL_NO_WRITE_UP = &h100
|
---|
5398 | Const SEF_MACL_NO_READ_UP = &h200
|
---|
5399 | Const SEF_MACL_NO_EXECUTE_UP = &h400
|
---|
5400 | Const SEF_AVOID_OWNER_RESTRICTION = &h1000
|
---|
5401 |
|
---|
5402 | Const SEF_MACL_VALID_FLAGS = (SEF_MACL_NO_WRITE_UP OR SEF_MACL_NO_READ_UP Or SEF_MACL_NO_EXECUTE_UP)
|
---|
5403 |
|
---|
5404 | Type MESSAGE_RESOURCE_ENTRY
|
---|
5405 | Length As Word
|
---|
5406 | Flags As Word
|
---|
5407 | Text[ELM(1)] As Byte
|
---|
5408 | End Type
|
---|
5409 | TypeDef PMESSAGE_RESOURCE_ENTRY = *MESSAGE_RESOURCE_ENTRY
|
---|
5410 |
|
---|
5411 | Const MESSAGE_RESOURCE_UNICODE = &h0001
|
---|
5412 |
|
---|
5413 | Type MESSAGE_RESOURCE_BLOCK
|
---|
5414 | LowId As DWord
|
---|
5415 | HighId As DWord
|
---|
5416 | OffsetToEntries As DWord
|
---|
5417 | End Type
|
---|
5418 | TypeDef PMESSAGE_RESOURCE_BLOCK = *MESSAGE_RESOURCE_BLOCK
|
---|
5419 |
|
---|
5420 | Type MESSAGE_RESOURCE_DATA
|
---|
5421 | NumberOfBlocks As DWord
|
---|
5422 | Blocks[ELM(1)] As MESSAGE_RESOURCE_BLOCK
|
---|
5423 | End Type
|
---|
5424 | TypeDef PMESSAGE_RESOURCE_DATA = *MESSAGE_RESOURCE_DATA
|
---|
5425 |
|
---|
5426 | Type OSVERSIONINFOA
|
---|
5427 | dwOSVersionInfoSize As DWord
|
---|
5428 | dwMajorVersion As DWord
|
---|
5429 | dwMinorVersion As DWord
|
---|
5430 | dwBuildNumber As DWord
|
---|
5431 | dwPlatformId As DWord
|
---|
5432 | szCSDVersion[ELM(128)] As CHAR
|
---|
5433 | End Type
|
---|
5434 | TypeDef POSVERSIONINFOA = *OSVERSIONINFOA
|
---|
5435 | TypeDef LPOSVERSIONINFOA = *OSVERSIONINFOA
|
---|
5436 | Type OSVERSIONINFOW
|
---|
5437 | dwOSVersionInfoSize As DWord
|
---|
5438 | dwMajorVersion As DWord
|
---|
5439 | dwMinorVersion As DWord
|
---|
5440 | dwBuildNumber As DWord
|
---|
5441 | dwPlatformId As DWord
|
---|
5442 | szCSDVersion[ELM(128)] As WCHAR
|
---|
5443 | End Type
|
---|
5444 | TypeDef POSVERSIONINFOW = *OSVERSIONINFOW
|
---|
5445 | TypeDef LPOSVERSIONINFOW = *OSVERSIONINFOW
|
---|
5446 | TypeDef RTL_OSVERSIONINFOW = OSVERSIONINFOW
|
---|
5447 | TypeDef PRTL_OSVERSIONINFOW = *OSVERSIONINFOW
|
---|
5448 | #ifdef UNICODE
|
---|
5449 | TypeDef OSVERSIONINFO = OSVERSIONINFOW
|
---|
5450 | TypeDef POSVERSIONINFO = POSVERSIONINFOW
|
---|
5451 | TypeDef LPOSVERSIONINFO = LPOSVERSIONINFOW
|
---|
5452 | #else
|
---|
5453 | TypeDef OSVERSIONINFO = OSVERSIONINFOA
|
---|
5454 | TypeDef POSVERSIONINFO = POSVERSIONINFOA
|
---|
5455 | TypeDef LPOSVERSIONINFO = LPOSVERSIONINFOA
|
---|
5456 | #endif
|
---|
5457 | Type OSVERSIONINFOEXA
|
---|
5458 | dwOSVersionInfoSize As DWord
|
---|
5459 | dwMajorVersion As DWord
|
---|
5460 | dwMinorVersion As DWord
|
---|
5461 | dwBuildNumber As DWord
|
---|
5462 | dwPlatformId As DWord
|
---|
5463 | szCSDVersion[ELM(128)] As CHAR
|
---|
5464 | wServicePackMajor As Word
|
---|
5465 | wServicePackMinor As Word
|
---|
5466 | wSuiteMask As Word
|
---|
5467 | wProductType As Byte
|
---|
5468 | wReserved As Byte
|
---|
5469 | End Type
|
---|
5470 | TypeDef POSVERSIONINFOEXA = *OSVERSIONINFOEXA
|
---|
5471 | TypeDef LPOSVERSIONINFOEXA = *OSVERSIONINFOEXA
|
---|
5472 | Type OSVERSIONINFOEXW
|
---|
5473 | dwOSVersionInfoSize As DWord
|
---|
5474 | dwMajorVersion As DWord
|
---|
5475 | dwMinorVersion As DWord
|
---|
5476 | dwBuildNumber As DWord
|
---|
5477 | dwPlatformId As DWord
|
---|
5478 | szCSDVersion[ELM(128)] As WCHAR
|
---|
5479 | wServicePackMajor As Word
|
---|
5480 | wServicePackMinor As Word
|
---|
5481 | wSuiteMask As Word
|
---|
5482 | wProductType As Byte
|
---|
5483 | wReserved As Byte
|
---|
5484 | End Type
|
---|
5485 | TypeDef POSVERSIONINFOEXW = *OSVERSIONINFOEXW
|
---|
5486 | TypeDef LPOSVERSIONINFOEXW = *OSVERSIONINFOEXW
|
---|
5487 | TypeDef RTL_OSVERSIONINFOEXW = OSVERSIONINFOEXW
|
---|
5488 | TypeDef PRTL_OSVERSIONINFOEXW = *OSVERSIONINFOEXW
|
---|
5489 | #ifdef UNICODE
|
---|
5490 | TypeDef OSVERSIONINFOEX = OSVERSIONINFOEXW
|
---|
5491 | TypeDef POSVERSIONINFOEX = POSVERSIONINFOEXW
|
---|
5492 | TypeDef LPOSVERSIONINFOEX = LPOSVERSIONINFOEXW
|
---|
5493 | #else
|
---|
5494 | TypeDef OSVERSIONINFOEX = OSVERSIONINFOEXA
|
---|
5495 | TypeDef POSVERSIONINFOEX = POSVERSIONINFOEXA
|
---|
5496 | TypeDef LPOSVERSIONINFOEX = LPOSVERSIONINFOEXA
|
---|
5497 | #endif
|
---|
5498 |
|
---|
5499 | ' RtlVerifyVersionInfo() conditions
|
---|
5500 | Const VER_EQUAL = 1
|
---|
5501 | Const VER_GREATER = 2
|
---|
5502 | Const VER_GREATER_EQUAL = 3
|
---|
5503 | Const VER_LESS = 4
|
---|
5504 | Const VER_LESS_EQUAL = 5
|
---|
5505 | Const VER_AND = 6
|
---|
5506 | Const VER_OR = 7
|
---|
5507 |
|
---|
5508 | Const VER_CONDITION_MASK = 7
|
---|
5509 | Const VER_NUM_BITS_PER_CONDITION_MASK = 3
|
---|
5510 |
|
---|
5511 | ' RtlVerifyVersionInfo() type mask bits
|
---|
5512 | Const VER_MINORVERSION = 0000001
|
---|
5513 | Const VER_MAJORVERSION = 0000002
|
---|
5514 | Const VER_BUILDNUMBER = 0000004
|
---|
5515 | Const VER_PLATFORMID = 0000008
|
---|
5516 | Const VER_SERVICEPACKMINOR = 0000010
|
---|
5517 | Const VER_SERVICEPACKMAJOR = 0000020
|
---|
5518 | Const VER_SUITENAME = 0000040
|
---|
5519 | Const VER_PRODUCT_TYPE = 0000080
|
---|
5520 |
|
---|
5521 | ' RtlVerifyVersionInfo() os product type values
|
---|
5522 | Const VER_NT_WORKSTATION = 0000001
|
---|
5523 | Const VER_NT_DOMAIN_CONTROLLER = 0000002
|
---|
5524 | Const VER_NT_SERVER = 0000003
|
---|
5525 |
|
---|
5526 | ' dwPlatformId defines:
|
---|
5527 | Const VER_PLATFORM_WIN32s = 0
|
---|
5528 | Const VER_PLATFORM_WIN32_WINDOWS = 1
|
---|
5529 | Const VER_PLATFORM_WIN32_NT = 2
|
---|
5530 | Const VER_PLATFORM_WIN32_CE = 3
|
---|
5531 |
|
---|
5532 | ' VerifyVersionInfo() macro to set the condition mask
|
---|
5533 | ' VER_SET_CONDITION
|
---|
5534 |
|
---|
5535 | '#if (NTDDI_VERSION >= NTDDI_WIN2K)
|
---|
5536 | 'Declare Function VerSetConditionMask Lib "kernel32" (ConditionMask As QWord, TypeMask As DWord, Condition As Byte) As QWord
|
---|
5537 | '#endif
|
---|
5538 |
|
---|
5539 | '#if (NTDDI_VERSION >= NTDDI_LONGHORN)
|
---|
5540 | 'Declare Function RtlGetProductInfo Lib "kernel32" (OSMajorVersion As DWord, OSMinorVersion As DWord, SpMajorVersion As DWord, SpMinorVersion As DWord, ByRef ReturnedProductType As DWord) As BOOLEAN
|
---|
5541 | '#endif
|
---|
5542 |
|
---|
5543 | Type RTL_CRITICAL_SECTION_DEBUG
|
---|
5544 | Type_ As Word
|
---|
5545 | CreatorBackTraceIndex As Word
|
---|
5546 | CriticalSection As VoidPtr '!*RTL_CRITICAL_SECTION
|
---|
5547 | ProcessLocksList As LIST_ENTRY
|
---|
5548 | EntryCount As DWord
|
---|
5549 | ContentionCount As DWord
|
---|
5550 | Flags As DWord
|
---|
5551 | CreatorBackTraceIndexHigh As Word
|
---|
5552 | SpareWORD As Word
|
---|
5553 | End Type
|
---|
5554 | TypeDef PRTL_CRITICAL_SECTION_DEBUG = *RTL_CRITICAL_SECTION_DEBUG
|
---|
5555 | TypeDef RTL_RESOURCE_DEBUG = RTL_CRITICAL_SECTION_DEBUG
|
---|
5556 | TypeDef PRTL_RESOURCE_DEBUG = *RTL_RESOURCE_DEBUG
|
---|
5557 |
|
---|
5558 | Const RTL_CRITSECT_TYPE = 0
|
---|
5559 | Const RTL_RESOURCE_TYPE = 1
|
---|
5560 |
|
---|
5561 | Const RTL_CRITICAL_SECTION_FLAG_NO_DEBUG_INFO = &h01000000
|
---|
5562 | Const RTL_CRITICAL_SECTION_FLAG_DYNAMIC_SPIN = &h02000000
|
---|
5563 | Const RTL_CRITICAL_SECTION_FLAG_STATIC_INIT = &h04000000
|
---|
5564 | Const RTL_CRITICAL_SECTION_ALL_FLAG_BITS = &hFF000000
|
---|
5565 | Const RTL_CRITICAL_SECTION_FLAG_RESERVED = (RTL_CRITICAL_SECTION_ALL_FLAG_BITS And (Not (RTL_CRITICAL_SECTION_FLAG_NO_DEBUG_INFO Or RTL_CRITICAL_SECTION_FLAG_DYNAMIC_SPIN Or RTL_CRITICAL_SECTION_FLAG_STATIC_INIT)))
|
---|
5566 |
|
---|
5567 | Const RTL_CRITICAL_SECTION_DEBUG_FLAG_STATIC_INIT = &h00000001
|
---|
5568 |
|
---|
5569 | Type Align(8) RTL_CRITICAL_SECTION
|
---|
5570 | DebugInfo As PRTL_CRITICAL_SECTION_DEBUG
|
---|
5571 | LockCount As Long
|
---|
5572 | RecursionCount As Long
|
---|
5573 | OwningThread As HANDLE
|
---|
5574 | LockSemaphore As HANDLE
|
---|
5575 | SpinCount As ULONG_PTR
|
---|
5576 | End Type
|
---|
5577 | TypeDef PRTL_CRITICAL_SECTION = *RTL_CRITICAL_SECTION
|
---|
5578 |
|
---|
5579 | Type RTL_SRWLOCK
|
---|
5580 | Ptr As VoidPtr
|
---|
5581 | End Type
|
---|
5582 | TypeDef PRTL_SRWLOCK = *RTL_SRWLOCK
|
---|
5583 | 'Const RTL_SRWLOCK_INIT {0}
|
---|
5584 | Type RTL_CONDITION_VARIABLE
|
---|
5585 | Ptr As VoidPtr
|
---|
5586 | End Type
|
---|
5587 | TypeDef PRTL_CONDITION_VARIABLE = *RTL_CONDITION_VARIABLE
|
---|
5588 | 'Const RTL_CONDITION_VARIABLE_INIT {0}
|
---|
5589 | Const RTL_CONDITION_VARIABLE_LOCKMODE_SHARED = &h1
|
---|
5590 | TypeDef PVECTORED_EXCEPTION_HANDLER = *Function(ByRef ExceptionInfo As EXCEPTION_POINTERS) As Long
|
---|
5591 |
|
---|
5592 | Enum HEAP_INFORMATION_CLASS
|
---|
5593 | HeapCompatibilityInformation
|
---|
5594 | HeapEnableTerminationOnCorruption
|
---|
5595 | End Enum
|
---|
5596 |
|
---|
5597 | Const WT_EXECUTEDEFAULT = &h00000000
|
---|
5598 | Const WT_EXECUTEINIOTHREAD = &h00000001
|
---|
5599 | Const WT_EXECUTEINUITHREAD = &h00000002
|
---|
5600 | Const WT_EXECUTEINWAITTHREAD = &h00000004
|
---|
5601 | Const WT_EXECUTEONLYONCE = &h00000008
|
---|
5602 | Const WT_EXECUTEINTIMERTHREAD = &h00000020
|
---|
5603 | Const WT_EXECUTELONGFUNCTION = &h00000010
|
---|
5604 | Const WT_EXECUTEINPERSISTENTIOTHREAD = &h00000040
|
---|
5605 | Const WT_EXECUTEINPERSISTENTTHREAD = &h00000080
|
---|
5606 | Const WT_TRANSFER_IMPERSONATION = &h00000100
|
---|
5607 | 'Const WT_SET_MAX_THREADPOOL_THREADS(Flags, Limit) ((Flags) Or= (Limit)<<16)
|
---|
5608 | TypeDef WAITORTIMERCALLBACKFUNC = *Sub(p As VoidPtr, b As Boolean)
|
---|
5609 | TypeDef WORKERCALLBACKFUNC = *Sub(p As VoidPtr)
|
---|
5610 | TypeDef APC_CALLBACK_FUNCTION = *Sub(dw AS DWord, p1 As VoidPtr, p2 As VoidPtr)
|
---|
5611 | TypeDef PFLS_CALLBACK_FUNCTION = *Sub(lpFlsData As VoidPtr)
|
---|
5612 | Const WT_EXECUTEINLONGTHREAD = &h00000010
|
---|
5613 | Const WT_EXECUTEDELETEWAIT = &h00000008
|
---|
5614 |
|
---|
5615 | Enum ACTIVATION_CONTEXT_INFO_CLASS
|
---|
5616 | ActivationContextBasicInformation = 1
|
---|
5617 | ActivationContextDetailedInformation = 2
|
---|
5618 | AssemblyDetailedInformationInActivationContext = 3
|
---|
5619 | FileInformationInAssemblyOfAssemblyInActivationContext = 4
|
---|
5620 | RunlevelInformationInActivationContext = 5
|
---|
5621 | MaxActivationContextInfoClass
|
---|
5622 | ' compatibility with old names
|
---|
5623 | AssemblyDetailedInformationInActivationContxt = 3
|
---|
5624 | FileInformationInAssemblyOfAssemblyInActivationContxt = 4
|
---|
5625 | End Enum
|
---|
5626 |
|
---|
5627 | TypeDef ACTIVATIONCONTEXTINFOCLASS = ACTIVATION_CONTEXT_INFO_CLASS
|
---|
5628 |
|
---|
5629 | Type ACTIVATION_CONTEXT_QUERY_INDEX
|
---|
5630 | ulAssemblyIndex As DWord
|
---|
5631 | ulFileIndexInAssembly; As DWord
|
---|
5632 | End Type
|
---|
5633 | TypeDef PACTIVATION_CONTEXT_QUERY_INDEX = *ACTIVATION_CONTEXT_QUERY_INDEX
|
---|
5634 |
|
---|
5635 | TypeDef PCACTIVATION_CONTEXT_QUERY_INDEX = * /*Const*/ ACTIVATION_CONTEXT_QUERY_INDEX
|
---|
5636 |
|
---|
5637 | Const ACTIVATION_CONTEXT_PATH_TYPE_NONE = 1
|
---|
5638 | Const ACTIVATION_CONTEXT_PATH_TYPE_WIN32_FILE = 2
|
---|
5639 | Const ACTIVATION_CONTEXT_PATH_TYPE_URL = 3
|
---|
5640 | Const ACTIVATION_CONTEXT_PATH_TYPE_ASSEMBLYREF = 4
|
---|
5641 |
|
---|
5642 | Type ASSEMBLY_FILE_DETAILED_INFORMATION
|
---|
5643 | ulFlags As DWord
|
---|
5644 | ulFilenameLength As PCWSTR
|
---|
5645 | ulPathLength As PCWSTR
|
---|
5646 | lpFileName As PCWSTR
|
---|
5647 | lpFilePath As PCWSTR
|
---|
5648 | End Type
|
---|
5649 | TypeDef PASSEMBLY_FILE_DETAILED_INFORMATION = *ASSEMBLY_FILE_DETAILED_INFORMATION
|
---|
5650 | TypeDef PCASSEMBLY_FILE_DETAILED_INFORMATION = * /*Const*/ ASSEMBLY_FILE_DETAILED_INFORMATION
|
---|
5651 |
|
---|
5652 | ' compatibility with old names
|
---|
5653 | TypeDef _ASSEMBLY_DLL_REDIRECTION_DETAILED_INFORMATION = ASSEMBLY_FILE_DETAILED_INFORMATION
|
---|
5654 | TypeDef ASSEMBLY_DLL_REDIRECTION_DETAILED_INFORMATION = ASSEMBLY_FILE_DETAILED_INFORMATION
|
---|
5655 | TypeDef PASSEMBLY_DLL_REDIRECTION_DETAILED_INFORMATION = PASSEMBLY_FILE_DETAILED_INFORMATION
|
---|
5656 | TypeDef PCASSEMBLY_DLL_REDIRECTION_DETAILED_INFORMATION = PCASSEMBLY_FILE_DETAILED_INFORMATION
|
---|
5657 |
|
---|
5658 | Type ACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATION
|
---|
5659 | ulFlags As DWord
|
---|
5660 | ulEncodedAssemblyIdentityLength As DWord
|
---|
5661 | ulManifestPathType As DWord
|
---|
5662 | liManifestLastWriteTime As LARGE_INTEGER
|
---|
5663 | ulPolicyPathType As DWord
|
---|
5664 | ulPolicyPathLength As DWord
|
---|
5665 | liPolicyLastWriteTime As LARGE_INTEGER
|
---|
5666 | ulMetadataSatelliteRosterIndex As DWord
|
---|
5667 | ulManifestVersionMajor As DWord
|
---|
5668 | ulManifestVersionMinor As DWord
|
---|
5669 | ulPolicyVersionMajor As DWord
|
---|
5670 | ulPolicyVersionMinor As DWord
|
---|
5671 | ulAssemblyDirectoryNameLength As DWord
|
---|
5672 | lpAssemblyEncodedAssemblyIdentity As PCWSTR
|
---|
5673 | lpAssemblyManifestPath As PCWSTR
|
---|
5674 | lpAssemblyPolicyPath As PCWSTR
|
---|
5675 | lpAssemblyDirectoryName As PCWSTR
|
---|
5676 | ulFileCount As DWord
|
---|
5677 | End Type
|
---|
5678 | TypeDef PACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATION = *ACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATION
|
---|
5679 | TypeDef PCACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATION = * /*Const*/ ACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATION
|
---|
5680 |
|
---|
5681 | Enum ACTCTX_REQUESTED_RUN_LEVEL
|
---|
5682 | ACTCTX_RUN_LEVEL_UNSPECIFIED = 0
|
---|
5683 | ACTCTX_RUN_LEVEL_AS_INVOKER
|
---|
5684 | ACTCTX_RUN_LEVEL_HIGHEST_AVAILABLE
|
---|
5685 | ACTCTX_RUN_LEVEL_REQUIRE_ADMIN
|
---|
5686 | ACTCTX_RUN_LEVEL_NUMBERS
|
---|
5687 | End Enum
|
---|
5688 |
|
---|
5689 | Type ACTIVATION_CONTEXT_RUN_LEVEL_INFORMATION
|
---|
5690 | ulFlags As DWord
|
---|
5691 | RunLevel As ACTCTX_REQUESTED_RUN_LEVEL
|
---|
5692 | UiAccess As DWord
|
---|
5693 | End Type
|
---|
5694 | TypeDef PACTIVATION_CONTEXT_RUN_LEVEL_INFORMATION = ACTIVATION_CONTEXT_RUN_LEVEL_INFORMATION
|
---|
5695 | TypeDef PCACTIVATION_CONTEXT_RUN_LEVEL_INFORMATION = * /*Const*/ACTIVATION_CONTEXT_RUN_LEVEL_INFORMATION
|
---|
5696 |
|
---|
5697 | Type ACTIVATION_CONTEXT_DETAILED_INFORMATION
|
---|
5698 | dwFlags As DWord
|
---|
5699 | ulFormatVersion As DWord
|
---|
5700 | ulAssemblyCount As DWord
|
---|
5701 | ulRootManifestPathType As DWord
|
---|
5702 | ulRootManifestPathChars As DWord
|
---|
5703 | ulRootConfigurationPathType As DWord
|
---|
5704 | ulRootConfigurationPathChars As DWord
|
---|
5705 | ulAppDirPathType As DWord
|
---|
5706 | ulAppDirPathChars As DWord
|
---|
5707 | lpRootManifestPath As PCWSTR
|
---|
5708 | lpRootConfigurationPath As PCWSTR
|
---|
5709 | lpAppDirPath As PCWSTR
|
---|
5710 | End Type
|
---|
5711 | TypeDef PACTIVATION_CONTEXT_DETAILED_INFORMATION = *ACTIVATION_CONTEXT_DETAILED_INFORMATION
|
---|
5712 | TypeDef PCACTIVATION_CONTEXT_DETAILED_INFORMATION = * /*Const*/ ACTIVATION_CONTEXT_DETAILED_INFORMATION
|
---|
5713 |
|
---|
5714 | Const DLL_PROCESS_ATTACH = 1
|
---|
5715 | Const DLL_THREAD_ATTACH = 2
|
---|
5716 | Const DLL_THREAD_DETACH = 3
|
---|
5717 | Const DLL_PROCESS_DETACH = 0
|
---|
5718 |
|
---|
5719 | Const EVENTLOG_SEQUENTIAL_READ = &h0001
|
---|
5720 | Const EVENTLOG_SEEK_READ = &h0002
|
---|
5721 | Const EVENTLOG_FORWARDS_READ = &h0004
|
---|
5722 | Const EVENTLOG_BACKWARDS_READ = &h0008
|
---|
5723 |
|
---|
5724 | Const EVENTLOG_SUCCESS = &h0000
|
---|
5725 | Const EVENTLOG_ERROR_TYPE = &h0001
|
---|
5726 | Const EVENTLOG_WARNING_TYPE = &h0002
|
---|
5727 | Const EVENTLOG_INFORMATION_TYPE = &h0004
|
---|
5728 | Const EVENTLOG_AUDIT_SUCCESS = &h0008
|
---|
5729 | Const EVENTLOG_AUDIT_FAILURE = &h0010
|
---|
5730 |
|
---|
5731 | Const EVENTLOG_START_PAIRED_EVENT = &h0001
|
---|
5732 | Const EVENTLOG_END_PAIRED_EVENT = &h0002
|
---|
5733 | Const EVENTLOG_END_ALL_PAIRED_EVENTS = &h0004
|
---|
5734 | Const EVENTLOG_PAIRED_EVENT_ACTIVE = &h0008
|
---|
5735 | Const EVENTLOG_PAIRED_EVENT_INACTIVE = &h0010
|
---|
5736 |
|
---|
5737 | Type EVENTLOGRECORD
|
---|
5738 | Length As DWord
|
---|
5739 | Reserved As DWord
|
---|
5740 | RecordNumber As DWord
|
---|
5741 | TimeGenerated As DWord
|
---|
5742 | TimeWritten As DWord
|
---|
5743 | EventID As DWord
|
---|
5744 | EventType As Word
|
---|
5745 | NumStrings As Word
|
---|
5746 | EventCategory As Word
|
---|
5747 | ReservedFlags As Word
|
---|
5748 | ClosingRecordNumber As DWord
|
---|
5749 | StringOffset As DWord
|
---|
5750 | UserSidLength As DWord
|
---|
5751 | UserSidOffset As DWord
|
---|
5752 | DataLength As DWord
|
---|
5753 | DataOffset As DWord
|
---|
5754 | ' Then follow:
|
---|
5755 | ' WCHAR SourceName[]
|
---|
5756 | ' WCHAR Computername[]
|
---|
5757 | ' SID UserSid
|
---|
5758 | ' WCHAR Strings[]
|
---|
5759 | ' BYTE Data[]
|
---|
5760 | ' CHAR Pad[]
|
---|
5761 | ' DWORD Length;
|
---|
5762 | End Type
|
---|
5763 | TypeDef PEVENTLOGRECORD = *EVENTLOGRECORD
|
---|
5764 |
|
---|
5765 | Const MAXLOGICALLOGNAMESIZE = 256
|
---|
5766 |
|
---|
5767 | Type EVENTSFORLOGFILE
|
---|
5768 | ulSize As DWord
|
---|
5769 | szLogicalLogFile[ELM(MAXLOGICALLOGNAMESIZE)] As WCHAR
|
---|
5770 | ulNumRecords As DWord
|
---|
5771 | pEventLogRecords[ELM(ANYSIZE_ARRAY)] As EVENTLOGRECORD 'pEventLogRecords[] As EVENTLOGRECORD
|
---|
5772 | End Type
|
---|
5773 | TypeDef PEVENTSFORLOGFILE = *EVENTSFORLOGFILE
|
---|
5774 |
|
---|
5775 | Type PACKEDEVENTINFO
|
---|
5776 | ulSize As DWord
|
---|
5777 | ulNumEventsForLogFile As DWord
|
---|
5778 | ulOffsets[ELM(ANYSIZE_ARRAY)] As DWord 'ulOffsets[] As DWord
|
---|
5779 | End Type
|
---|
5780 | TypeDef PPACKEDEVENTINFO = *PACKEDEVENTINFO
|
---|
5781 |
|
---|
5782 | Const KEY_QUERY_VALUE = &h0001
|
---|
5783 | Const KEY_SET_VALUE = &h0002
|
---|
5784 | Const KEY_CREATE_SUB_KEY = &h0004
|
---|
5785 | Const KEY_ENUMERATE_SUB_KEYS = &h0008
|
---|
5786 | Const KEY_NOTIFY = &h0010
|
---|
5787 | Const KEY_CREATE_LINK = &h0020
|
---|
5788 | Const KEY_WOW64_32KEY = &h0200
|
---|
5789 | Const KEY_WOW64_64KEY = &h0100
|
---|
5790 | Const KEY_WOW64_RES = &h0300
|
---|
5791 | Const KEY_READ = ((STANDARD_RIGHTS_READ Or KEY_QUERY_VALUE Or KEY_ENUMERATE_SUB_KEYS Or KEY_NOTIFY) And (Not SYNCHRONIZE))
|
---|
5792 | Const KEY_WRITE = ((STANDARD_RIGHTS_WRITE Or KEY_SET_VALUE Or KEY_CREATE_SUB_KEY) And (Not SYNCHRONIZE))
|
---|
5793 | Const KEY_EXECUTE = ((KEY_READ) And (Not SYNCHRONIZE))
|
---|
5794 | Const KEY_ALL_ACCESS = ((STANDARD_RIGHTS_ALL Or KEY_QUERY_VALUE Or KEY_SET_VALUE Or KEY_CREATE_SUB_KEY Or KEY_ENUMERATE_SUB_KEYS Or KEY_NOTIFY Or KEY_CREATE_LINK) And (Not SYNCHRONIZE))
|
---|
5795 | Const REG_OPTION_RESERVED = &h00000000
|
---|
5796 | Const REG_OPTION_NON_VOLATILE = &h00000000
|
---|
5797 | Const REG_OPTION_VOLATILE = &h00000001
|
---|
5798 | Const REG_OPTION_CREATE_LINK = &h00000002
|
---|
5799 | Const REG_OPTION_BACKUP_RESTORE = &h00000004
|
---|
5800 | Const REG_OPTION_OPEN_LINK = &h00000008
|
---|
5801 | Const REG_LEGAL_OPTION = (REG_OPTION_RESERVED Or REG_OPTION_NON_VOLATILE Or REG_OPTION_VOLATILE Or REG_OPTION_CREATE_LINK Or REG_OPTION_BACKUP_RESTORE Or REG_OPTION_OPEN_LINK)
|
---|
5802 | Const REG_CREATED_NEW_KEY = &h00000001
|
---|
5803 | Const REG_OPENED_EXISTING_KEY = &h00000002
|
---|
5804 |
|
---|
5805 | Const REG_STANDARD_FORMAT = 1
|
---|
5806 | Const REG_LATEST_FORMAT = 2
|
---|
5807 | Const REG_NO_COMPRESSION = 4
|
---|
5808 |
|
---|
5809 | Const REG_WHOLE_HIVE_VOLATILE = &h00000001
|
---|
5810 | Const REG_REFRESH_HIVE = &h00000002
|
---|
5811 | Const REG_NO_LAZY_FLUSH = &h00000004
|
---|
5812 | Const REG_FORCE_RESTORE = &h00000008
|
---|
5813 | Const REG_APP_HIVE = &h00000010
|
---|
5814 | Const REG_PROCESS_PRIVATE = &h00000020
|
---|
5815 | Const REG_START_JOURNAL = &h00000040
|
---|
5816 | Const REG_HIVE_EXACT_FILE_GROWTH = &h00000080
|
---|
5817 | Const REG_HIVE_NO_RM = &h00000100
|
---|
5818 | Const REG_HIVE_SINGLE_LOG = &h00000200
|
---|
5819 |
|
---|
5820 | Const REG_FORCE_UNLOAD = 1
|
---|
5821 |
|
---|
5822 | Const REG_NOTIFY_CHANGE_NAME = &h00000001
|
---|
5823 | Const REG_NOTIFY_CHANGE_ATTRIBUTES = &h00000002
|
---|
5824 | Const REG_NOTIFY_CHANGE_LAST_SET = &h00000004
|
---|
5825 | Const REG_NOTIFY_CHANGE_SECURITY = &h00000008
|
---|
5826 |
|
---|
5827 | Const REG_LEGAL_CHANGE_FILTER = (REG_NOTIFY_CHANGE_NAME Or REG_NOTIFY_CHANGE_ATTRIBUTES Or REG_NOTIFY_CHANGE_LAST_SET Or REG_NOTIFY_CHANGE_SECURITY)
|
---|
5828 |
|
---|
5829 | Const REG_NONE = 0
|
---|
5830 | Const REG_SZ = 1
|
---|
5831 | Const REG_EXPAND_SZ = 2
|
---|
5832 |
|
---|
5833 | Const REG_BINARY = 3
|
---|
5834 | Const REG_DWORD = 4
|
---|
5835 | Const REG_DWORD_LITTLE_ENDIAN = 4
|
---|
5836 | Const REG_DWORD_BIG_ENDIAN = 5
|
---|
5837 | Const REG_LINK = 6
|
---|
5838 | Const REG_MULTI_SZ = 7
|
---|
5839 | Const REG_RESOURCE_LIST = 8
|
---|
5840 | Const REG_FULL_RESOURCE_DESCRIPTOR = 9
|
---|
5841 | Const REG_RESOURCE_REQUIREMENTS_LIST = 10
|
---|
5842 | Const REG_QWORD = 11
|
---|
5843 | Const REG_QWORD_LITTLE_ENDIAN = 11
|
---|
5844 |
|
---|
5845 | Const SERVICE_KERNEL_DRIVER = &h00000001
|
---|
5846 | Const SERVICE_FILE_SYSTEM_DRIVER = &h00000002
|
---|
5847 | Const SERVICE_ADAPTER = &h00000004
|
---|
5848 | Const SERVICE_RECOGNIZER_DRIVER = &h00000008
|
---|
5849 |
|
---|
5850 | Const SERVICE_DRIVER = (SERVICE_KERNEL_DRIVER Or SERVICE_FILE_SYSTEM_DRIVER Or SERVICE_RECOGNIZER_DRIVER)
|
---|
5851 |
|
---|
5852 | Const SERVICE_WIN32_OWN_PROCESS = &h00000010
|
---|
5853 | Const SERVICE_WIN32_SHARE_PROCESS = &h00000020
|
---|
5854 | Const SERVICE_WIN32 = (SERVICE_WIN32_OWN_PROCESS Or SERVICE_WIN32_SHARE_PROCESS)
|
---|
5855 |
|
---|
5856 | Const SERVICE_INTERACTIVE_PROCESS = &h00000100
|
---|
5857 |
|
---|
5858 | Const SERVICE_TYPE_ALL = (SERVICE_WIN32 Or SERVICE_ADAPTER Or SERVICE_DRIVER Or SERVICE_INTERACTIVE_PROCESS)
|
---|
5859 |
|
---|
5860 | Const SERVICE_BOOT_START = &h00000000
|
---|
5861 | Const SERVICE_SYSTEM_START = &h00000001
|
---|
5862 | Const SERVICE_AUTO_START = &h00000002
|
---|
5863 | Const SERVICE_DEMAND_START = &h00000003
|
---|
5864 | Const SERVICE_DISABLED = &h00000004
|
---|
5865 |
|
---|
5866 | Const SERVICE_ERROR_IGNORE = &h00000000
|
---|
5867 | Const SERVICE_ERROR_NORMAL = &h00000001
|
---|
5868 | Const SERVICE_ERROR_SEVERE = &h00000002
|
---|
5869 | Const SERVICE_ERROR_CRITICAL = &h00000003
|
---|
5870 |
|
---|
5871 | Enum _SERVICE_NODE_TYPE
|
---|
5872 | DriverType = SERVICE_KERNEL_DRIVER
|
---|
5873 | FileSystemType = SERVICE_FILE_SYSTEM_DRIVER
|
---|
5874 | Win32ServiceOwnProcess = SERVICE_WIN32_OWN_PROCESS
|
---|
5875 | Win32ServiceShareProcess = SERVICE_WIN32_SHARE_PROCESS
|
---|
5876 | AdapterType = SERVICE_ADAPTER
|
---|
5877 | RecognizerType = SERVICE_RECOGNIZER_DRIVER
|
---|
5878 | End Enum
|
---|
5879 |
|
---|
5880 | Enum SERVICE_LOAD_TYPE
|
---|
5881 | BootLoad = SERVICE_BOOT_START
|
---|
5882 | SystemLoad = SERVICE_SYSTEM_START
|
---|
5883 | AutoLoad = SERVICE_AUTO_START
|
---|
5884 | DemandLoad = SERVICE_DEMAND_START
|
---|
5885 | DisableLoad = SERVICE_DISABLED
|
---|
5886 | End Enum
|
---|
5887 |
|
---|
5888 | Enum SERVICE_ERROR_TYPE
|
---|
5889 | IgnoreError = SERVICE_ERROR_IGNORE
|
---|
5890 | NormalError = SERVICE_ERROR_NORMAL
|
---|
5891 | SevereError = SERVICE_ERROR_SEVERE
|
---|
5892 | CriticalError = SERVICE_ERROR_CRITICAL
|
---|
5893 | End Enum
|
---|
5894 |
|
---|
5895 | Const TAPE_ERASE_SHORT = 0
|
---|
5896 | Const TAPE_ERASE_LONG = 1
|
---|
5897 |
|
---|
5898 | Type TAPE_ERASE
|
---|
5899 | Type_ As DWord
|
---|
5900 | Immediate As BOOLEAN
|
---|
5901 | End Type
|
---|
5902 | TypeDef PTAPE_ERASE = *TAPE_ERASE
|
---|
5903 |
|
---|
5904 | Const TAPE_LOAD = 0
|
---|
5905 | Const TAPE_UNLOAD = 1
|
---|
5906 | Const TAPE_TENSION = 2
|
---|
5907 | Const TAPE_LOCK = 3
|
---|
5908 | Const TAPE_UNLOCK = 4
|
---|
5909 | Const TAPE_FORMAT = 5
|
---|
5910 |
|
---|
5911 | Type TAPE_PREPARE
|
---|
5912 | Operation As DWord
|
---|
5913 | Immediate As BOOLEAN
|
---|
5914 | End Type
|
---|
5915 | TypeDef PTAPE_PREPARE = *TAPE_PREPARE
|
---|
5916 |
|
---|
5917 | Const TAPE_SETMARKS = 0
|
---|
5918 | Const TAPE_FILEMARKS = 1
|
---|
5919 | Const TAPE_SHORT_FILEMARKS = 2
|
---|
5920 | Const TAPE_LONG_FILEMARKS = 3
|
---|
5921 |
|
---|
5922 | Type TAPE_WRITE_MARKS
|
---|
5923 | Type_ As DWord
|
---|
5924 | Count As DWord
|
---|
5925 | Immediate As BOOLEAN
|
---|
5926 | End Type
|
---|
5927 | TypeDef PTAPE_WRITE_MARKS = *TAPE_WRITE_MARKS
|
---|
5928 |
|
---|
5929 | Const TAPE_ABSOLUTE_POSITION = 0
|
---|
5930 | Const TAPE_LOGICAL_POSITION = 1
|
---|
5931 | Const TAPE_PSEUDO_LOGICAL_POSITION = 2
|
---|
5932 |
|
---|
5933 | Type TAPE_GET_POSITION
|
---|
5934 | Type_ As DWord
|
---|
5935 | Partition As DWord
|
---|
5936 | Offset As LARGE_INTEGER
|
---|
5937 | End Type
|
---|
5938 | TypeDef PTAPE_GET_POSITION = *TAPE_GET_POSITION
|
---|
5939 |
|
---|
5940 | Const TAPE_REWIND = 0
|
---|
5941 | Const TAPE_ABSOLUTE_BLOCK = 1
|
---|
5942 | Const TAPE_LOGICAL_BLOCK = 2
|
---|
5943 | Const TAPE_PSEUDO_LOGICAL_BLOCK = 3
|
---|
5944 | Const TAPE_SPACE_END_OF_DATA = 4
|
---|
5945 | Const TAPE_SPACE_RELATIVE_BLOCKS = 5
|
---|
5946 | Const TAPE_SPACE_FILEMARKS = 6
|
---|
5947 | Const TAPE_SPACE_SEQUENTIAL_FMKS = 7
|
---|
5948 | Const TAPE_SPACE_SETMARKS = 8
|
---|
5949 | Const TAPE_SPACE_SEQUENTIAL_SMKS = 9
|
---|
5950 |
|
---|
5951 | Type TAPE_SET_POSITION
|
---|
5952 | Method As DWord
|
---|
5953 | Partition As DWord
|
---|
5954 | Offset As LARGE_INTEGER
|
---|
5955 | Immediate As BOOLEAN
|
---|
5956 | End Type
|
---|
5957 | TypeDef PTAPE_SET_POSITION = *TAPE_SET_POSITION
|
---|
5958 |
|
---|
5959 | Const TAPE_DRIVE_FIXED = &h00000001
|
---|
5960 | Const TAPE_DRIVE_SELECT = &h00000002
|
---|
5961 | Const TAPE_DRIVE_INITIATOR = &h00000004
|
---|
5962 |
|
---|
5963 | Const TAPE_DRIVE_ERASE_SHORT = &h00000010
|
---|
5964 | Const TAPE_DRIVE_ERASE_LONG = &h00000020
|
---|
5965 | Const TAPE_DRIVE_ERASE_BOP_ONLY = &h00000040
|
---|
5966 | Const TAPE_DRIVE_ERASE_IMMEDIATE = &h00000080
|
---|
5967 |
|
---|
5968 | Const TAPE_DRIVE_TAPE_CAPACITY = &h00000100
|
---|
5969 | Const TAPE_DRIVE_TAPE_REMAINING = &h00000200
|
---|
5970 | Const TAPE_DRIVE_FIXED_BLOCK = &h00000400
|
---|
5971 | Const TAPE_DRIVE_VARIABLE_BLOCK = &h00000800
|
---|
5972 |
|
---|
5973 | Const TAPE_DRIVE_WRITE_PROTECT = &h00001000
|
---|
5974 | Const TAPE_DRIVE_EOT_WZ_SIZE = &h00002000
|
---|
5975 |
|
---|
5976 | Const TAPE_DRIVE_ECC = &h00010000
|
---|
5977 | Const TAPE_DRIVE_COMPRESSION = &h00020000
|
---|
5978 | Const TAPE_DRIVE_PADDING = &h00040000
|
---|
5979 | Const TAPE_DRIVE_REPORT_SMKS = &h00080000
|
---|
5980 |
|
---|
5981 | Const TAPE_DRIVE_GET_ABSOLUTE_BLK = &h00100000
|
---|
5982 | Const TAPE_DRIVE_GET_LOGICAL_BLK = &h00200000
|
---|
5983 | Const TAPE_DRIVE_SET_EOT_WZ_SIZE = &h00400000
|
---|
5984 |
|
---|
5985 | Const TAPE_DRIVE_EJECT_MEDIA = &h01000000
|
---|
5986 | Const TAPE_DRIVE_CLEAN_REQUESTS = &h02000000
|
---|
5987 | Const TAPE_DRIVE_SET_CMP_BOP_ONLY = &h04000000
|
---|
5988 |
|
---|
5989 | Const TAPE_DRIVE_RESERVED_BIT = &h80000000
|
---|
5990 |
|
---|
5991 | Const TAPE_DRIVE_LOAD_UNLOAD = &h80000001
|
---|
5992 | Const TAPE_DRIVE_TENSION = &h80000002
|
---|
5993 | Const TAPE_DRIVE_LOCK_UNLOCK = &h80000004
|
---|
5994 | Const TAPE_DRIVE_REWIND_IMMEDIATE = &h80000008
|
---|
5995 |
|
---|
5996 | Const TAPE_DRIVE_SET_BLOCK_SIZE = &h80000010
|
---|
5997 | Const TAPE_DRIVE_LOAD_UNLD_IMMED = &h80000020
|
---|
5998 | Const TAPE_DRIVE_TENSION_IMMED = &h80000040
|
---|
5999 | Const TAPE_DRIVE_LOCK_UNLK_IMMED = &h80000080
|
---|
6000 |
|
---|
6001 | Const TAPE_DRIVE_SET_ECC = &h80000100
|
---|
6002 | Const TAPE_DRIVE_SET_COMPRESSION = &h80000200
|
---|
6003 | Const TAPE_DRIVE_SET_PADDING = &h80000400
|
---|
6004 | Const TAPE_DRIVE_SET_REPORT_SMKS = &h80000800
|
---|
6005 |
|
---|
6006 | Const TAPE_DRIVE_ABSOLUTE_BLK = &h80001000
|
---|
6007 | Const TAPE_DRIVE_ABS_BLK_IMMED = &h80002000
|
---|
6008 | Const TAPE_DRIVE_LOGICAL_BLK = &h80004000
|
---|
6009 | Const TAPE_DRIVE_LOG_BLK_IMMED = &h80008000
|
---|
6010 |
|
---|
6011 | Const TAPE_DRIVE_END_OF_DATA = &h80010000
|
---|
6012 | Const TAPE_DRIVE_RELATIVE_BLKS = &h80020000
|
---|
6013 | Const TAPE_DRIVE_FILEMARKS = &h80040000
|
---|
6014 | Const TAPE_DRIVE_SEQUENTIAL_FMKS = &h80080000
|
---|
6015 |
|
---|
6016 | Const TAPE_DRIVE_SETMARKS = &h80100000
|
---|
6017 | Const TAPE_DRIVE_SEQUENTIAL_SMKS = &h80200000
|
---|
6018 | Const TAPE_DRIVE_REVERSE_POSITION = &h80400000
|
---|
6019 | Const TAPE_DRIVE_SPACE_IMMEDIATE = &h80800000
|
---|
6020 |
|
---|
6021 | Const TAPE_DRIVE_WRITE_SETMARKS = &h81000000
|
---|
6022 | Const TAPE_DRIVE_WRITE_FILEMARKS = &h82000000
|
---|
6023 | Const TAPE_DRIVE_WRITE_SHORT_FMKS = &h84000000
|
---|
6024 | Const TAPE_DRIVE_WRITE_LONG_FMKS = &h88000000
|
---|
6025 |
|
---|
6026 | Const TAPE_DRIVE_WRITE_MARK_IMMED = &h90000000
|
---|
6027 | Const TAPE_DRIVE_FORMAT = &hA0000000
|
---|
6028 | Const TAPE_DRIVE_FORMAT_IMMEDIATE = &hC0000000
|
---|
6029 | Const TAPE_DRIVE_HIGH_FEATURES = &h80000000
|
---|
6030 |
|
---|
6031 | Type TAPE_GET_DRIVE_PARAMETERS
|
---|
6032 | ECC As BOOLEAN
|
---|
6033 | Compression As BOOLEAN
|
---|
6034 | DataPadding As BOOLEAN
|
---|
6035 | ReportSetmarks As BOOLEAN
|
---|
6036 | DefaultBlockSize As DWord
|
---|
6037 | MaximumBlockSize As DWord
|
---|
6038 | MinimumBlockSize As DWord
|
---|
6039 | MaximumPartitionCount As DWord
|
---|
6040 | FeaturesLow As DWord
|
---|
6041 | FeaturesHigh As DWord
|
---|
6042 | EOTWarningZoneSize As DWord
|
---|
6043 | End Type
|
---|
6044 | TypeDef PTAPE_GET_DRIVE_PARAMETERS = *TAPE_GET_DRIVE_PARAMETERS
|
---|
6045 |
|
---|
6046 | Type TAPE_SET_DRIVE_PARAMETERS
|
---|
6047 | ECC As BOOLEAN
|
---|
6048 | Compression As BOOLEAN
|
---|
6049 | DataPadding As BOOLEAN
|
---|
6050 | ReportSetmarks As BOOLEAN
|
---|
6051 | EOTWarningZoneSize As DWord
|
---|
6052 | End Type
|
---|
6053 | TypeDef PTAPE_SET_DRIVE_PARAMETERS = *TAPE_SET_DRIVE_PARAMETERS
|
---|
6054 |
|
---|
6055 | Type TAPE_GET_MEDIA_PARAMETERS
|
---|
6056 | Capacity As LARGE_INTEGER
|
---|
6057 | Remaining As LARGE_INTEGER
|
---|
6058 | BlockSize As DWord
|
---|
6059 | PartitionCount As DWord
|
---|
6060 | WriteProtected As BOOLEAN
|
---|
6061 | End Type
|
---|
6062 | TypeDef PTAPE_GET_MEDIA_PARAMETERS = *TAPE_GET_MEDIA_PARAMETERS
|
---|
6063 |
|
---|
6064 | Type TAPE_SET_MEDIA_PARAMETERS
|
---|
6065 | BlockSize As DWord
|
---|
6066 | End Type
|
---|
6067 | TypeDef PTAPE_SET_MEDIA_PARAMETERS = *TAPE_SET_MEDIA_PARAMETERS
|
---|
6068 |
|
---|
6069 | Const TAPE_FIXED_PARTITIONS = 0
|
---|
6070 | Const TAPE_SELECT_PARTITIONS = 1
|
---|
6071 | Const TAPE_INITIATOR_PARTITIONS = 2
|
---|
6072 |
|
---|
6073 | Type TAPE_CREATE_PARTITION
|
---|
6074 | Method As DWord
|
---|
6075 | Count As DWord
|
---|
6076 | Size As DWord
|
---|
6077 | End Type
|
---|
6078 | TypeDef PTAPE_CREATE_PARTITION = *TAPE_CREATE_PARTITION
|
---|
6079 |
|
---|
6080 | Const TAPE_QUERY_DRIVE_PARAMETERS = 0
|
---|
6081 | Const TAPE_QUERY_MEDIA_CAPACITY = 1
|
---|
6082 | Const TAPE_CHECK_FOR_DRIVE_PROBLEM = 2
|
---|
6083 | Const TAPE_QUERY_IO_ERROR_DATA = 3
|
---|
6084 | Const TAPE_QUERY_DEVICE_ERROR_DATA = 4
|
---|
6085 |
|
---|
6086 | Type TAPE_WMI_OPERATIONS
|
---|
6087 | Method As DWord
|
---|
6088 | DataBufferSize As DWord
|
---|
6089 | DataBuffer As VoidPtr
|
---|
6090 | End Type
|
---|
6091 | TypeDef PTAPE_WMI_OPERATIONS = *TAPE_WMI_OPERATIONS
|
---|
6092 |
|
---|
6093 | Enum TAPE_DRIVE_PROBLEM_TYPE
|
---|
6094 | TapeDriveProblemNone
|
---|
6095 | TapeDriveReadWriteWarning
|
---|
6096 | TapeDriveReadWriteError
|
---|
6097 | TapeDriveReadWarning
|
---|
6098 | TapeDriveWriteWarning
|
---|
6099 | TapeDriveReadError
|
---|
6100 | TapeDriveWriteError
|
---|
6101 | TapeDriveHardwareError
|
---|
6102 | TapeDriveUnsupportedMedia
|
---|
6103 | TapeDriveScsiConnectionError
|
---|
6104 | TapeDriveTimetoClean
|
---|
6105 | TapeDriveCleanDriveNow
|
---|
6106 | TapeDriveMediaLifeExpired
|
---|
6107 | TapeDriveSnappedTape
|
---|
6108 | End Enum
|
---|
6109 |
|
---|
6110 | #ifndef _NTTMAPI_
|
---|
6111 | #define _NTTMAPI_
|
---|
6112 |
|
---|
6113 | '#include <ktmtypes.ab>
|
---|
6114 |
|
---|
6115 | ' Types for Nt level TM calls
|
---|
6116 | Const TRANSACTIONMANAGER_QUERY_INFORMATION = &h0001
|
---|
6117 | Const TRANSACTIONMANAGER_SET_INFORMATION = &h0002
|
---|
6118 | Const TRANSACTIONMANAGER_RECOVER = &h0004
|
---|
6119 | Const TRANSACTIONMANAGER_RENAME = &h0008
|
---|
6120 | Const TRANSACTIONMANAGER_CREATE_RM = &h0010
|
---|
6121 | Const TRANSACTIONMANAGER_BIND_TRANSACTION = &h0020
|
---|
6122 | Const TRANSACTIONMANAGER_GENERIC_READ = (STANDARD_RIGHTS_READ Or TRANSACTIONMANAGER_QUERY_INFORMATION)
|
---|
6123 | Const TRANSACTIONMANAGER_GENERIC_WRITE = (STANDARD_RIGHTS_WRITE Or TRANSACTIONMANAGER_SET_INFORMATION Or TRANSACTIONMANAGER_RECOVER Or TRANSACTIONMANAGER_RENAME Or TRANSACTIONMANAGER_CREATE_RM)
|
---|
6124 | Const TRANSACTIONMANAGER_GENERIC_EXECUTE = (STANDARD_RIGHTS_EXECUTE)
|
---|
6125 | Const TRANSACTIONMANAGER_ALL_ACCESS = (STANDARD_RIGHTS_REQUIRED Or TRANSACTIONMANAGER_GENERIC_READ Or TRANSACTIONMANAGER_GENERIC_WRITE Or TRANSACTIONMANAGER_GENERIC_EXECUTE Or TRANSACTIONMANAGER_BIND_TRANSACTION)
|
---|
6126 |
|
---|
6127 | Const TRANSACTION_QUERY_INFORMATION = &h0001
|
---|
6128 | Const TRANSACTION_SET_INFORMATION = &h0002
|
---|
6129 | Const TRANSACTION_ENLIST = &h0004
|
---|
6130 | Const TRANSACTION_COMMIT = &h0008
|
---|
6131 | Const TRANSACTION_ROLLBACK = &h0010
|
---|
6132 | Const TRANSACTION_PROPAGATE = &h0020
|
---|
6133 | Const TRANSACTION_SAVEPOINT = &h0040
|
---|
6134 | Const TRANSACTION_MARSHALL = ( TRANSACTION_QUERY_INFORMATION )
|
---|
6135 | Const TRANSACTION_GENERIC_READ = (STANDARD_RIGHTS_READ Or TRANSACTION_QUERY_INFORMATION Or SYNCHRONIZE)
|
---|
6136 | Const TRANSACTION_GENERIC_WRITE = (STANDARD_RIGHTS_WRITE Or TRANSACTION_SET_INFORMATION Or TRANSACTION_COMMIT Or TRANSACTION_ENLIST Or TRANSACTION_ROLLBACK Or TRANSACTION_PROPAGATE Or TRANSACTION_SAVEPOINT Or SYNCHRONIZE)
|
---|
6137 | Const TRANSACTION_GENERIC_EXECUTE = (STANDARD_RIGHTS_EXECUTE Or TRANSACTION_COMMIT Or TRANSACTION_ROLLBACK Or SYNCHRONIZE)
|
---|
6138 | Const TRANSACTION_ALL_ACCESS = (STANDARD_RIGHTS_REQUIRED Or TRANSACTION_GENERIC_READ Or TRANSACTION_GENERIC_WRITE Or TRANSACTION_GENERIC_EXECUTE)
|
---|
6139 | Const TRANSACTION_RESOURCE_MANAGER_RIGHTS = (TRANSACTION_GENERIC_READ Or STANDARD_RIGHTS_WRITE Or TRANSACTION_SET_INFORMATION Or TRANSACTION_ENLIST Or TRANSACTION_ROLLBACK Or TRANSACTION_PROPAGATE Or SYNCHRONIZE)
|
---|
6140 |
|
---|
6141 | Const RESOURCEMANAGER_QUERY_INFORMATION = &h0001
|
---|
6142 | Const RESOURCEMANAGER_SET_INFORMATION = &h0002
|
---|
6143 | Const RESOURCEMANAGER_RECOVER = &h0004
|
---|
6144 | Const RESOURCEMANAGER_ENLIST = &h0008
|
---|
6145 | Const RESOURCEMANAGER_GET_NOTIFICATION = &h0010
|
---|
6146 | Const RESOURCEMANAGER_REGISTER_PROTOCOL = &h0020
|
---|
6147 | Const RESOURCEMANAGER_COMPLETE_PROPAGATION = &h0040
|
---|
6148 | Const RESOURCEMANAGER_GENERIC_READ = (STANDARD_RIGHTS_READ Or RESOURCEMANAGER_QUERY_INFORMATION Or SYNCHRONIZE)
|
---|
6149 | Const RESOURCEMANAGER_GENERIC_WRITE = (STANDARD_RIGHTS_WRITE Or RESOURCEMANAGER_SET_INFORMATION Or RESOURCEMANAGER_RECOVER Or RESOURCEMANAGER_ENLIST Or RESOURCEMANAGER_GET_NOTIFICATION Or RESOURCEMANAGER_REGISTER_PROTOCOL Or RESOURCEMANAGER_COMPLETE_PROPAGATION Or SYNCHRONIZE)
|
---|
6150 | Const RESOURCEMANAGER_GENERIC_EXECUTE = (STANDARD_RIGHTS_EXECUTE Or RESOURCEMANAGER_RECOVER Or RESOURCEMANAGER_ENLIST Or RESOURCEMANAGER_GET_NOTIFICATION Or RESOURCEMANAGER_COMPLETE_PROPAGATION Or SYNCHRONIZE)
|
---|
6151 | Const RESOURCEMANAGER_ALL_ACCESS = (STANDARD_RIGHTS_REQUIRED Or RESOURCEMANAGER_GENERIC_READ Or RESOURCEMANAGER_GENERIC_WRITE Or RESOURCEMANAGER_GENERIC_EXECUTE)
|
---|
6152 |
|
---|
6153 |
|
---|
6154 | Const ENLISTMENT_QUERY_INFORMATION = &h0001
|
---|
6155 | Const ENLISTMENT_SET_INFORMATION = &h0002
|
---|
6156 | Const ENLISTMENT_RECOVER = &h0004
|
---|
6157 | Const ENLISTMENT_SUBORDINATE_RIGHTS = &h0008
|
---|
6158 | Const ENLISTMENT_SUPERIOR_RIGHTS = &h0010
|
---|
6159 | Const ENLISTMENT_GENERIC_READ = (STANDARD_RIGHTS_READ Or ENLISTMENT_QUERY_INFORMATION)
|
---|
6160 | Const ENLISTMENT_GENERIC_WRITE = (STANDARD_RIGHTS_WRITE Or ENLISTMENT_SET_INFORMATION Or ENLISTMENT_RECOVER Or ENLISTMENT_SUBORDINATE_RIGHTS Or ENLISTMENT_SUPERIOR_RIGHTS)
|
---|
6161 | Const ENLISTMENT_GENERIC_EXECUTE = (STANDARD_RIGHTS_EXECUTE Or ENLISTMENT_RECOVER Or ENLISTMENT_SUBORDINATE_RIGHTS Or ENLISTMENT_SUPERIOR_RIGHTS)
|
---|
6162 | Const ENLISTMENT_ALL_ACCESS = (STANDARD_RIGHTS_REQUIRED Or ENLISTMENT_GENERIC_READ Or ENLISTMENT_GENERIC_WRITE Or ENLISTMENT_GENERIC_EXECUTE)
|
---|
6163 |
|
---|
6164 | ' Transaction outcomes.
|
---|
6165 |
|
---|
6166 | Enum TRANSACTION_OUTCOME
|
---|
6167 | TransactionOutcomeUndetermined = 1
|
---|
6168 | TransactionOutcomeCommitted
|
---|
6169 | TransactionOutcomeAborted
|
---|
6170 | End Enum
|
---|
6171 |
|
---|
6172 |
|
---|
6173 | Enum TRANSACTION_STATE
|
---|
6174 | TransactionStateNormal = 1
|
---|
6175 | TransactionStateIndoubt
|
---|
6176 | TransactionStateCommittedNotify
|
---|
6177 | End Enum
|
---|
6178 |
|
---|
6179 | Type TRANSACTION_BASIC_INFORMATION
|
---|
6180 | TransactionId As GUID
|
---|
6181 | State As DWord
|
---|
6182 | Outcome As DWord
|
---|
6183 | End Type
|
---|
6184 | TypeDef PTRANSACTION_BASIC_INFORMATION = *TRANSACTION_BASIC_INFORMATION
|
---|
6185 |
|
---|
6186 | Type TRANSACTIONMANAGER_BASIC_INFORMATION
|
---|
6187 | TmIdentity As GUID
|
---|
6188 | VirtualClock As LARGE_INTEGER
|
---|
6189 | End Type
|
---|
6190 | TypeDef PTRANSACTIONMANAGER_BASIC_INFORMATION = *TRANSACTIONMANAGER_BASIC_INFORMATION
|
---|
6191 |
|
---|
6192 | Type TRANSACTIONMANAGER_LOG_INFORMATION
|
---|
6193 | LogIdentity As GUID
|
---|
6194 | End Type
|
---|
6195 | TypeDef PTRANSACTIONMANAGER_LOG_INFORMATION = *TRANSACTIONMANAGER_LOG_INFORMATION
|
---|
6196 |
|
---|
6197 | Type TRANSACTIONMANAGER_LOGPATH_INFORMATION
|
---|
6198 | LogPathLength As DWord
|
---|
6199 | /*__field_ecount(LogPathLength)*/ LogPath[ELM(1)] As WCHAR 'Variable size
|
---|
6200 | ' Data[ELM(1)] 'Variable size data not declared
|
---|
6201 | End Type
|
---|
6202 | TypeDef PTRANSACTIONMANAGER_LOGPATH_INFORMATION = *TRANSACTIONMANAGER_LOGPATH_INFORMATION
|
---|
6203 |
|
---|
6204 | Type TRANSACTION_PROPERTIES_INFORMATION
|
---|
6205 | IsolationLevel As DWord
|
---|
6206 | IsolationFlags As DWord
|
---|
6207 | Timeout As LARGE_INTEGER
|
---|
6208 | Outcome As DWord
|
---|
6209 | DescriptionLength As DWord
|
---|
6210 | Description[ELM(1)] As WCHAR 'Variable size
|
---|
6211 | ' Data[ELM(1)] 'Variable size data not declared
|
---|
6212 | End Type
|
---|
6213 | TypeDef PTRANSACTION_PROPERTIES_INFORMATION = *TRANSACTION_PROPERTIES_INFORMATION
|
---|
6214 |
|
---|
6215 | Type TRANSACTION_BIND_INFORMATION
|
---|
6216 | TmHandle As HANDLE
|
---|
6217 | End Type
|
---|
6218 | TypeDef PTRANSACTION_BIND_INFORMATION = *TRANSACTION_BIND_INFORMATION
|
---|
6219 |
|
---|
6220 | Type TRANSACTION_ENLISTMENT_PAIR
|
---|
6221 | EnlistmentId As GUID
|
---|
6222 | ResourceManagerId As GUID
|
---|
6223 | End Type
|
---|
6224 | TypeDef PTRANSACTION_ENLISTMENT_PAIR = *TRANSACTION_ENLISTMENT_PAIR
|
---|
6225 |
|
---|
6226 | Type TRANSACTION_ENLISTMENTS_INFORMATION
|
---|
6227 | NumberOfEnlistments As DWord
|
---|
6228 | EnlistmentPair[ELM(1)] As TRANSACTION_ENLISTMENT_PAIR 'Variable size
|
---|
6229 | End Type
|
---|
6230 | TypeDef PTRANSACTION_ENLISTMENTS_INFORMATION = *TRANSACTION_ENLISTMENTS_INFORMATION
|
---|
6231 |
|
---|
6232 | Type TRANSACTION_FULL_INFORMATION
|
---|
6233 | NameLength As DWord
|
---|
6234 | End Type
|
---|
6235 | TypeDef PTRANSACTION_FULL_INFORMATION = *TRANSACTION_FULL_INFORMATION
|
---|
6236 |
|
---|
6237 | Type RESOURCEMANAGER_BASIC_INFORMATION
|
---|
6238 | ResourceManagerId As GUID
|
---|
6239 | DescriptionLength As DWord
|
---|
6240 | Description[ELM(1)] As WCHAR 'Variable size
|
---|
6241 | End Type
|
---|
6242 | TypeDef PRESOURCEMANAGER_BASIC_INFORMATION = *RESOURCEMANAGER_BASIC_INFORMATION
|
---|
6243 |
|
---|
6244 | Type RESOURCEMANAGER_COMPLETION_INFORMATION
|
---|
6245 | IoCompletionPortHandle As HANDLE
|
---|
6246 | CompletionKey As ULONG_PTR
|
---|
6247 | End Type
|
---|
6248 | TypeDef PRESOURCEMANAGER_COMPLETION_INFORMATION = *RESOURCEMANAGER_COMPLETION_INFORMATION
|
---|
6249 |
|
---|
6250 | Type TRANSACTION_NAME_INFORMATION
|
---|
6251 | NameLength As DWord
|
---|
6252 | Name[ELM(1)] As WCHAR 'Variable length string
|
---|
6253 | End Type
|
---|
6254 | TypeDef PTRANSACTION_NAME_INFORMATION = *TRANSACTION_NAME_INFORMATION
|
---|
6255 |
|
---|
6256 | Enum TRANSACTION_INFORMATION_CLASS
|
---|
6257 | TransactionBasicInformation
|
---|
6258 | TransactionPropertiesInformation
|
---|
6259 | TransactionEnlistmentInformation
|
---|
6260 | TransactionFullInformation
|
---|
6261 | TransactionBindInformation
|
---|
6262 | ' TransactionNameInformation
|
---|
6263 | End Enum
|
---|
6264 |
|
---|
6265 | Enum TRANSACTIONMANAGER_INFORMATION_CLASS
|
---|
6266 | TransactionManagerBasicInformation
|
---|
6267 | TransactionManagerLogInformation
|
---|
6268 | TransactionManagerLogPathInformation
|
---|
6269 | TransactionManagerOnlineProbeInformation
|
---|
6270 | End Enum
|
---|
6271 |
|
---|
6272 | Enum RESOURCEMANAGER_INFORMATION_CLASS
|
---|
6273 | ResourceManagerBasicInformation
|
---|
6274 | ResourceManagerCompletionInformation
|
---|
6275 | ResourceManagerFullInformation
|
---|
6276 | ResourceManagerNameInformation
|
---|
6277 | End Enum
|
---|
6278 |
|
---|
6279 | Type ENLISTMENT_BASIC_INFORMATION
|
---|
6280 | EnlistmentId As GUID
|
---|
6281 | TransactionId As GUID
|
---|
6282 | ResourceManagerId As GUID
|
---|
6283 | End Type
|
---|
6284 | TypeDef PENLISTMENT_BASIC_INFORMATION = *ENLISTMENT_BASIC_INFORMATION
|
---|
6285 |
|
---|
6286 | Enum ENLISTMENT_INFORMATION_CLASS
|
---|
6287 | EnlistmentBasicInformation
|
---|
6288 | EnlistmentRecoveryInformation
|
---|
6289 | EnlistmentFullInformation
|
---|
6290 | EnlistmentNameInformation
|
---|
6291 | End Enum
|
---|
6292 |
|
---|
6293 | Type TRANSACTION_LIST_ENTRY
|
---|
6294 | ' UOW As UOW
|
---|
6295 | End Type
|
---|
6296 |
|
---|
6297 | TypeDef PTRANSACTION_LIST_ENTRY = *TRANSACTION_LIST_ENTRY
|
---|
6298 |
|
---|
6299 | Type TRANSACTION_LIST_INFORMATION
|
---|
6300 | NumberOfTransactions As DWord
|
---|
6301 | TransactionInformation[ELM(1)] As TRANSACTION_LIST_ENTRY
|
---|
6302 | End Type
|
---|
6303 | TypeDef PTRANSACTION_LIST_INFORMATION = *TRANSACTION_LIST_INFORMATION
|
---|
6304 |
|
---|
6305 | ' Types of objects known to the kernel transaction manager.
|
---|
6306 | Enum KTMOBJECT_TYPE
|
---|
6307 | KTMOBJECT_TRANSACTION
|
---|
6308 | KTMOBJECT_TRANSACTION_MANAGER
|
---|
6309 | KTMOBJECT_RESOURCE_MANAGER
|
---|
6310 | KTMOBJECT_ENLISTMENT
|
---|
6311 | KTMOBJECT_INVALID
|
---|
6312 | End Enum
|
---|
6313 | TypeDef PKTMOBJECT_TYPE = *KTMOBJECT_TYPE
|
---|
6314 |
|
---|
6315 | ' KTMOBJECT_CURSOR
|
---|
6316 | Type KTMOBJECT_CURSOR
|
---|
6317 | LastQuery As GUID
|
---|
6318 | ObjectIdCount As DWord
|
---|
6319 | ObjectIds[ELM(1)] As GUID
|
---|
6320 | End Type
|
---|
6321 | TypeDef PKTMOBJECT_CURSOR = *KTMOBJECT_CURSOR
|
---|
6322 |
|
---|
6323 | #endif
|
---|
6324 |
|
---|
6325 | TypeDef TP_VERSION = DWord
|
---|
6326 | TypeDef PTP_VERSION = *TP_VERSION
|
---|
6327 |
|
---|
6328 | TypeDef PTP_CALLBACK_INSTANCE = VoidPtr
|
---|
6329 | 'typedef struct _TP_CALLBACK_INSTANCE TP_CALLBACK_INSTANCE, *PTP_CALLBACK_INSTANCE;
|
---|
6330 |
|
---|
6331 | TypeDef PTP_SIMPLE_CALLBACK = *Sub(Instance As PTP_CALLBACK_INSTANCE, Context As VoidPtr)
|
---|
6332 | TypeDef PTP_POOL = VoidPtr
|
---|
6333 | 'typedef struct _TP_POOL TP_POOL, *PTP_POOL;
|
---|
6334 | TypeDef PTP_CLEANUP_GROUP = VoidPtr
|
---|
6335 | 'typedef struct _TP_CLEANUP_GROUP TP_CLEANUP_GROUP, *PTP_CLEANUP_GROUP;
|
---|
6336 | TypeDef PTP_CLEANUP_GROUP_CANCEL_CALLBACK = *Sub(ObjectContext As VoidPtr, CleanupContext As VoidPtr)
|
---|
6337 |
|
---|
6338 | TypeDef PACTIVATION_CONTEXT = VoidPtr
|
---|
6339 |
|
---|
6340 | Type TP_CALLBACK_ENVIRON
|
---|
6341 | Version As TP_VERSION
|
---|
6342 | Pool As PTP_POOL
|
---|
6343 | CleanupGroup As PTP_CLEANUP_GROUP
|
---|
6344 | CleanupGroupCancelCallback As PTP_CLEANUP_GROUP_CANCEL_CALLBACK
|
---|
6345 | RaceDll As VoidPtr
|
---|
6346 | ActivationContext As PACTIVATION_CONTEXT
|
---|
6347 | FinalizationCallback As PTP_SIMPLE_CALLBACK
|
---|
6348 | ' Union
|
---|
6349 | Flags As DWord
|
---|
6350 | ' Type
|
---|
6351 | ' LongFunction : 1 As DWord
|
---|
6352 | ' Private_ : 31 As DWord
|
---|
6353 | ' } s;
|
---|
6354 | ' End Union
|
---|
6355 | End Type
|
---|
6356 | TypeDef PTP_CALLBACK_ENVIRON = *TP_CALLBACK_ENVIRON
|
---|
6357 |
|
---|
6358 | Sub /*FORCEINLINE*/ TpInitializeCallbackEnviron(ByRef CallbackEnviron As TP_CALLBACK_ENVIRON)
|
---|
6359 | With CallbackEnviron
|
---|
6360 | .Version = 1
|
---|
6361 | .Pool = NULL
|
---|
6362 | .CleanupGroup = NULL
|
---|
6363 | .CleanupGroupCancelCallback = NULL
|
---|
6364 | .RaceDll = NULL
|
---|
6365 | .ActivationContext = NULL
|
---|
6366 | .FinalizationCallback = NULL
|
---|
6367 | .Flags = 0
|
---|
6368 | End With
|
---|
6369 | End Sub
|
---|
6370 |
|
---|
6371 | Sub /*FORCEINLINE*/ TpSetCallbackThreadpool(ByRef CallbackEnviron As TP_CALLBACK_ENVIRON, Pool As PTP_POOL)
|
---|
6372 | CallbackEnviron.Pool = Pool
|
---|
6373 | End Sub
|
---|
6374 |
|
---|
6375 | Sub /*FORCEINLINE*/ TpSetCallbackCleanupGroup(ByRef CallbackEnviron As TP_CALLBACK_ENVIRON, CleanupGroup As PTP_CLEANUP_GROUP, CleanupGroupCancelCallback As PTP_CLEANUP_GROUP_CANCEL_CALLBACK)
|
---|
6376 | CallbackEnviron.CleanupGroup = CleanupGroup
|
---|
6377 | CallbackEnviron.CleanupGroupCancelCallback = CleanupGroupCancelCallback
|
---|
6378 | End Sub
|
---|
6379 |
|
---|
6380 | Sub /*FORCEINLINE*/ TpSetCallbackActivationContext(ByRef CallbackEnviron As TP_CALLBACK_ENVIRON, ActivationContext As PACTIVATION_CONTEXT)
|
---|
6381 | CallbackEnviron.ActivationContext = ActivationContext
|
---|
6382 | End Sub
|
---|
6383 |
|
---|
6384 | Sub /*FORCEINLINE*/ TpSetCallbackNoActivationContext(ByRef CallbackEnviron As TP_CALLBACK_ENVIRON)
|
---|
6385 | CallbackEnviron.ActivationContext = (-1 As LONG_PTR) As PACTIVATION_CONTEXT
|
---|
6386 | End Sub
|
---|
6387 |
|
---|
6388 | Sub /*FORCEINLINE*/ TpSetCallbackLongFunction(ByRef CallbackEnviron As TP_CALLBACK_ENVIRON)
|
---|
6389 | CallbackEnviron.Flags = 1 'u.s.LongFunction = 1
|
---|
6390 | End Sub
|
---|
6391 |
|
---|
6392 | Sub /*FORCEINLINE*/ TpSetCallbackRaceWithDll(ByRef CallbackEnviron As TP_CALLBACK_ENVIRON, DllHandle As VoidPtr)
|
---|
6393 | CallbackEnviron.RaceDll = DllHandle
|
---|
6394 | End Sub
|
---|
6395 |
|
---|
6396 | Sub /*FORCEINLINE*/ TpSetCallbackFinalizationCallback(ByRef CallbackEnviron As TP_CALLBACK_ENVIRON, FinalizationCallback As PTP_SIMPLE_CALLBACK)
|
---|
6397 | CallbackEnviron.FinalizationCallback = FinalizationCallback
|
---|
6398 | End Sub
|
---|
6399 |
|
---|
6400 | Sub /*FORCEINLINE*/ TpDestroyCallbackEnviron(ByRef CallbackEnviron As TP_CALLBACK_ENVIRON)
|
---|
6401 | ' UNREFERENCED_PARAMETER(CallbackEnviron)
|
---|
6402 | End Sub
|
---|
6403 |
|
---|
6404 | TypeDef PTP_WORK = VoidPtr
|
---|
6405 | 'typedef struct _TP_WORK TP_WORK, *PTP_WORK;
|
---|
6406 |
|
---|
6407 | TypeDef PTP_WORK_CALLBACK = *Sub(Instance As PTP_CALLBACK_INSTANCE, Context As VoidPtr, Work As PTP_WORK)
|
---|
6408 |
|
---|
6409 | TypeDef PTP_TIMER = *VoidPtr
|
---|
6410 | 'typedef struct _TP_TIMER TP_TIMER, *PTP_TIMER;
|
---|
6411 |
|
---|
6412 | TypeDef PTP_TIMER_CALLBACK = *Sub(Instance As PTP_CALLBACK_INSTANCE, Context As VoidPtr, Timer As PTP_TIMER)
|
---|
6413 |
|
---|
6414 | TypeDef TP_WAIT_RESULT = DWord
|
---|
6415 |
|
---|
6416 | TypeDef PTP_WAIT = VoidPtr
|
---|
6417 | 'typedef struct _TP_WAIT TP_WAIT, *PTP_WAIT;
|
---|
6418 |
|
---|
6419 | TypeDef PTP_WAIT_CALLBACK = *Sub(Instance As PTP_CALLBACK_INSTANCE, Context As VoidPtr, Wait As PTP_WAIT, WaitResult As TP_WAIT_RESULT)
|
---|
6420 |
|
---|
6421 | TypeDef PTP_IO = VoidPtr
|
---|
6422 | 'typedef struct _TP_IO TP_IO, *PTP_IO;
|
---|
6423 |
|
---|
6424 | 'NtCurrentTeb()
|
---|
6425 | 'GetCurrentFiber()
|
---|
6426 | 'GetFiberData ()
|
---|
6427 |
|
---|
6428 | '#if (_WIN32_WINNT > 0x0500) Or (_WIN32_FUSION >= 0x0100) Or ISOLATION_AWARE_ENABLED
|
---|
6429 | Const ACTIVATION_CONTEXT_SECTION_ASSEMBLY_INFORMATION = 1
|
---|
6430 | Const ACTIVATION_CONTEXT_SECTION_DLL_REDIRECTION = 2
|
---|
6431 | Const ACTIVATION_CONTEXT_SECTION_WINDOW_CLASS_REDIRECTION = 3
|
---|
6432 | Const ACTIVATION_CONTEXT_SECTION_COM_SERVER_REDIRECTION = 4
|
---|
6433 | Const ACTIVATION_CONTEXT_SECTION_COM_INTERFACE_REDIRECTION = 5
|
---|
6434 | Const ACTIVATION_CONTEXT_SECTION_COM_TYPE_LIBRARY_REDIRECTION = 6
|
---|
6435 | Const ACTIVATION_CONTEXT_SECTION_COM_PROGID_REDIRECTION = 7
|
---|
6436 | Const ACTIVATION_CONTEXT_SECTION_GLOBAL_OBJECT_RENAME_TABLE = 8
|
---|
6437 | Const ACTIVATION_CONTEXT_SECTION_CLR_SURROGATES = 9
|
---|
6438 | Const ACTIVATION_CONTEXT_SECTION_APPLICATION_SETTINGS = 10
|
---|
6439 | '#endif // winnt_only
|
---|
6440 |
|
---|
6441 | #endif
|
---|