1 | ' api_system.sbp - System API
|
---|
2 |
|
---|
3 | #ifndef _INC_SYSTEM
|
---|
4 | #define _INC_SYSTEM
|
---|
5 |
|
---|
6 |
|
---|
7 | '-------------------
|
---|
8 | ' default constants
|
---|
9 | Const NULL = 0
|
---|
10 | Const TRUE = 1
|
---|
11 | Const FALSE = 0
|
---|
12 |
|
---|
13 | Const _System_TRUE = -1
|
---|
14 | Const _System_FALSE = 0
|
---|
15 |
|
---|
16 | Const MAX_PATH = 260
|
---|
17 | Const INVALID_HANDLE_VALUE = -1 As HANDLE
|
---|
18 | Const INVALID_SET_FILE_POINTER = &HFFFFFFFF
|
---|
19 |
|
---|
20 | Const SYNCHRONIZE = &H00100000
|
---|
21 | Const STANDARD_RIGHTS_REQUIRED = &H000F0000
|
---|
22 |
|
---|
23 | Const MAXIMUM_WAIT_OBJECTS = 64
|
---|
24 |
|
---|
25 | '-----------------
|
---|
26 | ' data structs
|
---|
27 | Type LARGE_INTEGER
|
---|
28 | LowPart As DWord
|
---|
29 | HighPart As Long
|
---|
30 | End Type
|
---|
31 | Type ULARGE_INTEGER
|
---|
32 | LowPart As DWord
|
---|
33 | HighPart As DWord
|
---|
34 | End Type
|
---|
35 |
|
---|
36 |
|
---|
37 | 'Globally Unique Identifier 128 bit(16 byte)
|
---|
38 | Type GUID
|
---|
39 | Data1 As DWord
|
---|
40 | Data2 As Word
|
---|
41 | Data3 As Word
|
---|
42 | Data4[7] As Byte
|
---|
43 | End Type
|
---|
44 |
|
---|
45 | ' File structure
|
---|
46 | Type SECURITY_ATTRIBUTES
|
---|
47 | nLength As DWord
|
---|
48 | lpSecurityDescriptor As VoidPtr
|
---|
49 | bInheritHandle As BOOL
|
---|
50 | End Type
|
---|
51 |
|
---|
52 | Type OVERLAPPED
|
---|
53 | Internal As ULONG_PTR
|
---|
54 | InternalHigh As ULONG_PTR
|
---|
55 | Offset As DWord
|
---|
56 | OffsetHigh As DWord
|
---|
57 | hEvent As HANDLE
|
---|
58 | End Type
|
---|
59 |
|
---|
60 | Type FILETIME
|
---|
61 | dwLowDateTime As DWord
|
---|
62 | dwHighDateTime As DWord
|
---|
63 | End Type
|
---|
64 |
|
---|
65 | ' System time
|
---|
66 | Type SYSTEMTIME
|
---|
67 | wYear As Word
|
---|
68 | wMonth As Word
|
---|
69 | wDayOfWeek As Word
|
---|
70 | wDay As Word
|
---|
71 | wHour As Word
|
---|
72 | wMinute As Word
|
---|
73 | wSecond As Word
|
---|
74 | wMilliseconds As Word
|
---|
75 | End Type
|
---|
76 |
|
---|
77 | #ifdef _WIN64
|
---|
78 | Const CONTEXT_AMD64 = &h100000
|
---|
79 |
|
---|
80 | Const CONTEXT_CONTROL = (CONTEXT_AMD64 Or &h1)
|
---|
81 | Const CONTEXT_INTEGER = (CONTEXT_AMD64 Or &h2)
|
---|
82 | Const CONTEXT_SEGMENTS = (CONTEXT_AMD64 Or &h4)
|
---|
83 | Const CONTEXT_FLOATING_POINT = (CONTEXT_AMD64 Or &h8)
|
---|
84 | Const CONTEXT_DEBUG_REGISTERS = (CONTEXT_AMD64 Or &h10)
|
---|
85 |
|
---|
86 | Const CONTEXT_FULL = (CONTEXT_CONTROL Or CONTEXT_INTEGER Or CONTEXT_FLOATING_POINT)
|
---|
87 |
|
---|
88 | Const CONTEXT_ALL = (CONTEXT_CONTROL Or CONTEXT_INTEGER Or CONTEXT_SEGMENTS Or CONTEXT_FLOATING_POINT Or CONTEXT_DEBUG_REGISTERS)
|
---|
89 |
|
---|
90 | Type Align(16) M128
|
---|
91 | Low As QWord
|
---|
92 | High As Int64
|
---|
93 | End Type
|
---|
94 |
|
---|
95 | Type LEGACY_SAVE_AREA 'Winnt.h
|
---|
96 | ControlWord As Word
|
---|
97 | Reserved0 As Word
|
---|
98 | StatusWord As Word
|
---|
99 | Reserved1 As Word
|
---|
100 | TagWord As Word
|
---|
101 | Reserved2 As Word
|
---|
102 | ErrorOffset As DWord
|
---|
103 | ErrorSelector As Word
|
---|
104 | ErrorOpcode As Word
|
---|
105 | DataOffset As DWord
|
---|
106 | DataSelector As Word
|
---|
107 | Reserved3 As Word
|
---|
108 | FloatRegisters[ELM(8 * 10)] As Byte
|
---|
109 | End Type
|
---|
110 |
|
---|
111 | Type Align(16) CONTEXT 'Winnt.h
|
---|
112 | 'Register parameter home addresses.
|
---|
113 | P1Home As QWord
|
---|
114 | P2Home As QWord
|
---|
115 | P3Home As QWord
|
---|
116 | P4Home As QWord
|
---|
117 | P5Home As QWord
|
---|
118 | P6Home As QWord
|
---|
119 | 'Control flags.
|
---|
120 | ContextFlags As DWord
|
---|
121 | MxCsr As DWord
|
---|
122 | 'Segment Registers and processor flags.
|
---|
123 | SegCs As Word
|
---|
124 | SegDs As Word
|
---|
125 | SegEs As Word
|
---|
126 | SegFs As Word
|
---|
127 | SegGs As Word
|
---|
128 | SegSs As Word
|
---|
129 | EFlags As DWord
|
---|
130 | 'Debug registers
|
---|
131 | Dr0 As QWord
|
---|
132 | Dr1 As QWord
|
---|
133 | Dr2 As QWord
|
---|
134 | Dr3 As QWord
|
---|
135 | Dr6 As QWord
|
---|
136 | Dr7 As QWord
|
---|
137 | 'Integer registers.
|
---|
138 | Rax As QWord
|
---|
139 | Rcx As QWord
|
---|
140 | Rdx As QWord
|
---|
141 | Rbx As QWord
|
---|
142 | Rsp As QWord
|
---|
143 | Rbp As QWord
|
---|
144 | Rsi As QWord
|
---|
145 | Rdi As QWord
|
---|
146 | R8 As QWord
|
---|
147 | R9 As QWord
|
---|
148 | R10 As QWord
|
---|
149 | R11 As QWord
|
---|
150 | R12 As QWord
|
---|
151 | R13 As QWord
|
---|
152 | R14 As QWord
|
---|
153 | R15 As QWord
|
---|
154 | 'Program counter.
|
---|
155 | Rip As QWord
|
---|
156 | 'MMX/floating point state.
|
---|
157 | Header[ELM(2)] As M128
|
---|
158 | Legacy[ELM(8)] As M128
|
---|
159 | Xmm0 As M128
|
---|
160 | Xmm1 As M128
|
---|
161 | Xmm2 As M128
|
---|
162 | Xmm3 As M128
|
---|
163 | Xmm4 As M128
|
---|
164 | Xmm5 As M128
|
---|
165 | Xmm6 As M128
|
---|
166 | Xmm7 As M128
|
---|
167 | Xmm8 As M128
|
---|
168 | Xmm9 As M128
|
---|
169 | Xmm10 As M128
|
---|
170 | Xmm11 As M128
|
---|
171 | Xmm12 As M128
|
---|
172 | Xmm13 As M128
|
---|
173 | Xmm14 As M128
|
---|
174 | Xmm15 As M128
|
---|
175 | Reserve[ELM(96)] As Byte
|
---|
176 | 'Vector registers
|
---|
177 | VectorRegisters[ELM(26)] As M128
|
---|
178 | VectorControl As QWord
|
---|
179 | 'Special debug control registers.
|
---|
180 | DebugControl As QWord
|
---|
181 | LastBranchToRip As QWord
|
---|
182 | LastBranchFromRip As QWord
|
---|
183 | LastExceptionToRip As QWord
|
---|
184 | LastExceptionFromRip As QWord
|
---|
185 | End Type
|
---|
186 |
|
---|
187 | #else
|
---|
188 |
|
---|
189 | Const SIZE_OF_80387_REGISTERS = 80
|
---|
190 | Const MAXIMUM_SUPPORTED_EXTENSION = 512
|
---|
191 |
|
---|
192 | Type FLOATING_SAVE_AREA
|
---|
193 | ControlWord As DWord
|
---|
194 | StatusWord As DWord
|
---|
195 | TagWord As DWord
|
---|
196 | ErrorOffset As DWord
|
---|
197 | ErrorSelector As DWord
|
---|
198 | DataOffset As DWord
|
---|
199 | DataSelector As DWord
|
---|
200 | RegisterArea[ELM(SIZE_OF_80387_REGISTERS)] As Byte
|
---|
201 | Cr0NpxState As DWord
|
---|
202 | End Type
|
---|
203 |
|
---|
204 | Const CONTEXT_i386 = &h00010000
|
---|
205 | Const CONTEXT_i486 = &h00010000
|
---|
206 |
|
---|
207 | Const CONTEXT_CONTROL = (CONTEXT_i386 Or &h00000001) 'SS:SP, CS:IP, FLAGS, BP
|
---|
208 | Const CONTEXT_INTEGER = (CONTEXT_i386 Or &h00000002) 'AX, BX, CX, DX, SI, DI
|
---|
209 | Const CONTEXT_SEGMENTS = (CONTEXT_i386 Or &h00000004) 'DS, ES, FS, GS
|
---|
210 | Const CONTEXT_FLOATING_POINT = (CONTEXT_i386 Or &h00000008) '387 state
|
---|
211 | Const CONTEXT_DEBUG_REGISTERS = (CONTEXT_i386 Or &h00000010) 'DB 0-3,6,7
|
---|
212 | Const CONTEXT_EXTENDED_REGISTERS = (CONTEXT_i386 Or &h0000002) 'cpu specific extensions
|
---|
213 |
|
---|
214 | Const CONTEXT_FULL = (CONTEXT_CONTROL Or CONTEXT_INTEGER Or CONTEXT_SEGMENTS)
|
---|
215 |
|
---|
216 | Const CONTEXT_ALL = (CONTEXT_CONTROL Or CONTEXT_INTEGER Or CONTEXT_SEGMENTS Or CONTEXT_FLOATING_POINT Or CONTEXT_DEBUG_REGISTERS Or CONTEXT_EXTENDED_REGISTERS)
|
---|
217 |
|
---|
218 | Type CONTEXT
|
---|
219 | ContextFlags As DWord
|
---|
220 |
|
---|
221 | Dr0 As DWord
|
---|
222 | Dr1 As DWord
|
---|
223 | Dr2 As DWord
|
---|
224 | Dr3 As DWord
|
---|
225 | Dr6 As DWord
|
---|
226 | Dr7 As DWord
|
---|
227 |
|
---|
228 | FloatSave As FLOATING_SAVE_AREA
|
---|
229 |
|
---|
230 | SegGs As DWord
|
---|
231 | SegFs As DWord
|
---|
232 | SegEs As DWord
|
---|
233 | SegDs As DWord
|
---|
234 |
|
---|
235 | Edi As DWord
|
---|
236 | Esi As DWord
|
---|
237 | Ebx As DWord
|
---|
238 | Edx As DWord
|
---|
239 | Ecx As DWord
|
---|
240 | Eax As DWord
|
---|
241 |
|
---|
242 | Ebp As DWord
|
---|
243 | Eip As DWord
|
---|
244 | SegCs As DWord
|
---|
245 | EFlags As DWord
|
---|
246 | Esp As DWord
|
---|
247 | SegSs As DWord
|
---|
248 |
|
---|
249 | ExtendedRegisters[ELM(MAXIMUM_SUPPORTED_EXTENSION)] As Byte
|
---|
250 | End Type
|
---|
251 |
|
---|
252 | #endif
|
---|
253 |
|
---|
254 | ' Global Memory Flags
|
---|
255 | Const GMEM_FIXED = &H0000
|
---|
256 | Const GMEM_MOVEABLE = &H0002
|
---|
257 | Const GMEM_NOCOMPACT = &H0010
|
---|
258 | Const GMEM_NODISCARD = &H0020
|
---|
259 | Const GMEM_ZEROINIT = &H0040
|
---|
260 | Const GMEM_MODIFY = &H0080
|
---|
261 | Const GMEM_DISCARDABLE = &H0100
|
---|
262 | Const GMEM_NOT_BANKED = &H1000
|
---|
263 | Const GMEM_SHARE = &H2000
|
---|
264 | Const GMEM_DDESHARE = &H2000
|
---|
265 | Const GMEM_INVALID_HANDLE = &H8000
|
---|
266 | Const GHND = GMEM_MOVEABLE or GMEM_ZEROINIT
|
---|
267 | Const GPTR = GMEM_FIXED or GMEM_ZEROINIT
|
---|
268 | Const GMEM_DISCARDED = &H4000
|
---|
269 |
|
---|
270 |
|
---|
271 | ' Heap
|
---|
272 | Const HEAP_NO_SERIALIZE = &H00000001
|
---|
273 | Const HEAP_GROWABLE = &H00000002
|
---|
274 | Const HEAP_GENERATE_EXCEPTIONS = &H00000004
|
---|
275 | Const HEAP_ZERO_MEMORY = &H00000008
|
---|
276 | Const HEAP_REALLOC_IN_PLACE_ONLY = &H00000010
|
---|
277 |
|
---|
278 |
|
---|
279 | ' Locale
|
---|
280 | Const LOCALE_SYSTEM_DEFAULT = &H400 'Standard Systemsprache
|
---|
281 | Const LOCALE_USER_DEFAULT = &H800 'Standard Benutzersprache
|
---|
282 |
|
---|
283 |
|
---|
284 | ' Locale flag
|
---|
285 | Const LOCALE_NOUSEROVERRIDE = &H80000000
|
---|
286 |
|
---|
287 |
|
---|
288 | 'Critical Section
|
---|
289 | Type CRITICAL_SECTION
|
---|
290 | DebugInfo As VoidPtr
|
---|
291 | LockCount As Long
|
---|
292 | RecursionCount As Long
|
---|
293 | OwningThread As HANDLE
|
---|
294 | LockSemaphore As HANDLE
|
---|
295 | SpinCount As ULONG_PTR
|
---|
296 | End Type
|
---|
297 |
|
---|
298 |
|
---|
299 | 'DllMain
|
---|
300 | Const DLL_PROCESS_ATTACH = 1
|
---|
301 | Const DLL_THREAD_ATTACH = 2
|
---|
302 | Const DLL_THREAD_DETACH = 3
|
---|
303 | Const DLL_PROCESS_DETACH = 0
|
---|
304 |
|
---|
305 | 'Event
|
---|
306 | Const EVENT_MODIFY_STATE = &H0002
|
---|
307 | Const EVENT_ALL_ACCESS = (STANDARD_RIGHTS_REQUIRED Or SYNCHRONIZE Or &H3)
|
---|
308 |
|
---|
309 | 'Mutex
|
---|
310 | Const MUTANT_QUERY_STATE = &H0001
|
---|
311 | Const MUTANT_ALL_ACCESS = (STANDARD_RIGHTS_REQUIRED Or SYNCHRONIZE Or MUTANT_QUERY_STATE)
|
---|
312 | Const MUTEX_ALL_ACCESS = MUTANT_ALL_ACCESS
|
---|
313 |
|
---|
314 | 'Semaphore
|
---|
315 | Const SEMAPHORE_MODIFY_STATE = &H0002
|
---|
316 | Const SEMAPHORE_ALL_ACCESS = (STANDARD_RIGHTS_REQUIRED Or SYNCHRONIZE Or &H3)
|
---|
317 |
|
---|
318 | 'Timer
|
---|
319 | Const TIMER_QUERY_STATE = &H0001
|
---|
320 | Const TIMER_MODIFY_STATE = &H0002
|
---|
321 | Const TIMER_ALL_ACCESS = (STANDARD_RIGHTS_REQUIRED Or SYNCHRONIZE Or TIMER_QUERY_STATE Or TIMER_MODIFY_STATE)
|
---|
322 |
|
---|
323 | '----------------------
|
---|
324 | ' Kernel Operation API
|
---|
325 | Declare Function InterlockedIncrement Lib "kernel32" (ByRef lpAddend As Long) As Long
|
---|
326 | Declare Function InterlockedDecrement Lib "kernel32" (ByRef lpAddend As Long) As Long
|
---|
327 | Declare Function InterlockedExchange Lib "kernel32" (ByRef Target As Long, Value As Long) As Long
|
---|
328 | Declare Function InterlockedCompareExchange Lib "kernel32" (ByRef Destination As Long, Exchange As Long, Comperand As Long) As Long
|
---|
329 | Declare Function InterlockedExchangeAdd Lib "kernel32" (ByRef Addend As Long, Value As Long) As Long
|
---|
330 | #ifdef _WIN64
|
---|
331 | Declare Function InterlockedCompareExchangePointer Lib "kernel32" (ByRef Destination As VoidPtr, Exchange As VoidPtr, Comperand As VoidPtr) As VoidPtr
|
---|
332 | Declare Function InterlockedExchangePointer Lib "kernel32" (ByRef Target As VoidPtr, Value As VoidPtr) As VoidPtr
|
---|
333 | #else
|
---|
334 | Declare Function InterlockedCompareExchangePointer Lib "kernel32" Alias "InterlockedCompareExchange" (ByRef Destination As VoidPtr, Exchange As VoidPtr, Comperand As VoidPtr) As VoidPtr
|
---|
335 | Declare Function InterlockedExchangePointer Lib "kernel32" Alias "InterlockedExchange" (ByRef Target As VoidPtr, Value As VoidPtr) As VoidPtr
|
---|
336 | #endif
|
---|
337 |
|
---|
338 |
|
---|
339 | Declare Function Beep Lib "kernel32" (dwFreq As DWord, dwDuration As DWord) As BOOL
|
---|
340 | Declare Function CloseHandle Lib "kernel32" (hObject As HANDLE) As BOOL
|
---|
341 |
|
---|
342 | Declare Function CompareFileTime Lib "kernel32" (ByRef FileTime1 As FILETIME, ByRef FileTime2 As FILETIME) As Long
|
---|
343 |
|
---|
344 | Const NORM_IGNORECASE = &H00000001
|
---|
345 | Const NORM_IGNORENONSPACE = &H00000002
|
---|
346 | Const NORM_IGNORESYMBOLS = &H00000004
|
---|
347 | Const SORT_STRINGSORT = &H00001000
|
---|
348 | Const NORM_IGNOREKANATYPE = &H00010000
|
---|
349 | Const NORM_IGNOREWIDTH = &H00020000
|
---|
350 | Const CSTR_LESS_THAN = 1
|
---|
351 | Const CSTR_EQUAL = 2
|
---|
352 | Const CSTR_GREATER_THAN = 3
|
---|
353 | Declare Function CompareString Lib "kernel32" Alias "CompareStringA" (Locale As LCID, dwCmpFlags As DWord, pString1 As PCSTR, cchCount1 As Long, pString2 As PCSTR, cchCount2 As Long) As Long
|
---|
354 |
|
---|
355 | Declare Function CopyFile Lib "kernel32" Alias "CopyFileA" (lpExistingFileName As LPCSTR, lpNewFileName As LPCSTR, bFailIfExists As BOOL) As BOOL
|
---|
356 | Declare Function CreateDirectory Lib "kernel32" Alias "CreateDirectoryA" (lpPathName As LPCSTR, lpSecurityAttributes As *SECURITY_ATTRIBUTES) As BOOL
|
---|
357 | Declare Function CreateEvent Lib "kernel32" Alias "CreateEventA" (pEventAttributes As *SECURITY_ATTRIBUTES, bManualReset As BOOL, bInitialState As BOOL, pName As PCSTR) As HANDLE
|
---|
358 | Declare Function CreateMutex Lib "kernel32" Alias "CreateMutexA" (lpMutexAttributes As *SECURITY_ATTRIBUTES, bInitialOwner As BOOL, lpName As PCSTR) As HANDLE
|
---|
359 | Declare Function CreateSemaphore Lib "kernel32" Alias "CreateSemaphoreA" (lpSemaphoreAttributes As *SECURITY_ATTRIBUTES, lInitialCount As Long, lMaximumCount As Long, lpName As LPSTR) As HANDLE
|
---|
360 |
|
---|
361 | TypeDef PTIMERAPCROUTINE = *Sub(lpArgToCompletionRoutine As VoidPtr, dwTimerLowValue As DWord, dwTimerHighValue As DWord)
|
---|
362 | Declare Function CreateWaitableTimer Lib "kernel32" Alias "CreateWaitableTimerA" (lpTimerAttributes As *SECURITY_ATTRIBUTES, bManualReset As BOOL, lpTimerName As LPSTR) As HANDLE
|
---|
363 | Declare Function OpenWaitableTimer Lib "kernel32" Alias "OpenWaitableTimerA" (dwDesiredAccess As DWord, bInheritHandle As BOOL, lpTimerName As LPSTR) As HANDLE
|
---|
364 | Declare Function SetWaitableTimer Lib "kernel32" (hTimer As HANDLE, lpDueTime As *LARGE_INTEGER, lPeriod As Long, pfnCompletionRoutine As PTIMERAPCROUTINE, lpArgToCompletionRoutine As VoidPtr, fResume As BOOL) As BOOL
|
---|
365 | Declare Function CancelWaitableTimer Lib "kernel32" (hTimer As HANDLE) As BOOL
|
---|
366 |
|
---|
367 | Const GENERIC_READ = &H80000000
|
---|
368 | Const GENERIC_WRITE = &H40000000
|
---|
369 | Const FILE_SHARE_READ = &H00000001
|
---|
370 | Const FILE_SHARE_WRITE = &H00000002
|
---|
371 | Const FILE_SHARE_DELETE = &H00000004
|
---|
372 | Const CREATE_NEW = 1
|
---|
373 | Const CREATE_ALWAYS = 2
|
---|
374 | Const OPEN_EXISTING = 3
|
---|
375 | Const OPEN_ALWAYS = 4
|
---|
376 | Const TRUNCATE_EXISTING = 5
|
---|
377 | Const FILE_ATTRIBUTE_READONLY = &H00000001
|
---|
378 | Const FILE_ATTRIBUTE_HIDDEN = &H00000002
|
---|
379 | Const FILE_ATTRIBUTE_SYSTEM = &H00000004
|
---|
380 | Const FILE_ATTRIBUTE_DIRECTORY = &H00000010
|
---|
381 | Const FILE_ATTRIBUTE_ARCHIVE = &H00000020
|
---|
382 | Const FILE_ATTRIBUTE_ENCRYPTED = &H00000040
|
---|
383 | Const FILE_ATTRIBUTE_NORMAL = &H00000080
|
---|
384 | Const FILE_ATTRIBUTE_TEMPORARY = &H00000100
|
---|
385 | Const FILE_ATTRIBUTE_SPARSE_FILE = &H00000200
|
---|
386 | Const FILE_ATTRIBUTE_REPARSE_POINT = &H00000400
|
---|
387 | Const FILE_ATTRIBUTE_COMPRESSED = &H00000800
|
---|
388 | Const FILE_ATTRIBUTE_OFFLINE = &H00001000
|
---|
389 | Const FILE_FLAG_WRITE_THROUGH = &H80000000
|
---|
390 | Const FILE_FLAG_OVERLAPPED = &H40000000
|
---|
391 | Const FILE_FLAG_NO_BUFFERING = &H20000000
|
---|
392 | Const FILE_FLAG_RANDOM_ACCESS = &H10000000
|
---|
393 | Const FILE_FLAG_SEQUENTIAL_SCAN = &H08000000
|
---|
394 | Const FILE_FLAG_DELETE_ON_CLOSE = &H04000000
|
---|
395 | Const FILE_FLAG_BACKUP_SEMANTICS = &H02000000
|
---|
396 | Const FILE_FLAG_POSIX_SEMANTICS = &H01000000
|
---|
397 | Const FILE_FLAG_OPEN_REPARSE_POINT = &H00200000
|
---|
398 | Const FILE_FLAG_OPEN_NO_RECALL = &H00100000
|
---|
399 | Declare Function CreateFile Lib "kernel32" Alias "CreateFileA" (lpFileName As *Byte, dwDesiredAccess As DWord, dwShareMode As DWord, ByRef lpSecurityAttributes As SECURITY_ATTRIBUTES, dwCreationDisposition As DWord, dwFlagsAndAttributes As DWord, hTemplateFile As HANDLE) As HANDLE
|
---|
400 |
|
---|
401 | Const SECTION_QUERY = &H0001
|
---|
402 | Const SECTION_MAP_WRITE = &H0002
|
---|
403 | Const SECTION_MAP_READ = &H0004
|
---|
404 | Const SECTION_MAP_EXECUTE = &H0008
|
---|
405 | Const SECTION_EXTEND_SIZE = &H0010
|
---|
406 | 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)
|
---|
407 |
|
---|
408 | Const FILE_MAP_COPY = SECTION_QUERY
|
---|
409 | Const FILE_MAP_WRITE = SECTION_MAP_WRITE
|
---|
410 | Const FILE_MAP_READ = SECTION_MAP_READ
|
---|
411 | Const FILE_MAP_ALL_ACCESS = SECTION_ALL_ACCESS
|
---|
412 | Declare Function CreateFileMapping Lib "kernel32" Alias "CreateFileMappingA" (hFile As HANDLE, lpFileMappingAttributes As *SECURITY_ATTRIBUTES, flProtect As DWord, dwMaximumSizeHigh As DWord, dwMaximumSizeLow As DWord, lpName As LPSTR) As HANDLE
|
---|
413 | Declare Function OpenFileMapping Lib "kernel32" Alias "OpenFileMappingA" (dwDesiredAccess As DWord, bInheritHandle As BOOL, lpName As LPSTR) As HANDLE
|
---|
414 | Declare Function MapViewOfFile Lib "kernel32" (hFileMappingObject As HANDLE, dwDesiredAccess As DWord, dwFileOffsetHigh As DWord, dwFileOffsetLow As DWord, dwNumberOfBytesToMap As DWord) As VoidPtr
|
---|
415 | Declare Function MapViewOfFileEx Lib "kernel32" (hFileMappingObject As HANDLE, dwDesiredAccess As DWord, dwFileOffsetHigh As DWord, dwFileOffsetLow As DWord, dwNumberOfBytesToMap As DWord, lpBaseAddress As VoidPtr) As VoidPtr
|
---|
416 | Declare Function FlushViewOfFile Lib "kernel32" (lpBaseAddress As VoidPtr, dwNumberOfBytesToFlush As DWord) As BOOL
|
---|
417 | Declare Function UnmapViewOfFile Lib "kernel32" (lpBaseAddress As VoidPtr) As BOOL
|
---|
418 |
|
---|
419 | Const MAILSLOT_WAIT_FOREVER = &HFFFFFFFF
|
---|
420 | Declare Function CreateMailslot Lib "kernel32" Alias "CreateMailslotA" (lpName As *Byte, nMaxMessageSize As DWord, lReadTimeout As DWord, ByRef lpSecurityAttributes As SECURITY_ATTRIBUTES) As HANDLE
|
---|
421 |
|
---|
422 | Const DEBUG_PROCESS = &H00000001
|
---|
423 | Const DEBUG_ONLY_THIS_PROCESS = &H00000002
|
---|
424 | Const CREATE_SUSPENDED = &H00000004
|
---|
425 | Const DETACHED_PROCESS = &H00000008
|
---|
426 | Const CREATE_NEW_CONSOLE = &H00000010
|
---|
427 | Const NORMAL_PRIORITY_CLASS = &H00000020
|
---|
428 | Const IDLE_PRIORITY_CLASS = &H00000040
|
---|
429 | Const HIGH_PRIORITY_CLASS = &H00000080
|
---|
430 | Const REALTIME_PRIORITY_CLASS = &H00000100
|
---|
431 | Const CREATE_NEW_PROCESS_GROUP = &H00000200
|
---|
432 | Const CREATE_UNICODE_ENVIRONMENT = &H00000400
|
---|
433 | Const CREATE_SEPARATE_WOW_VDM = &H00000800
|
---|
434 | Const CREATE_SHARED_WOW_VDM = &H00001000
|
---|
435 | Const CREATE_FORCEDOS = &H00002000
|
---|
436 | Const CREATE_DEFAULT_ERROR_MODE = &H04000000
|
---|
437 | Const CREATE_NO_WINDOW = &H08000000
|
---|
438 | Const PROFILE_USER = &H10000000
|
---|
439 | Const PROFILE_KERNEL = &H20000000
|
---|
440 | Const PROFILE_SERVER = &H40000000
|
---|
441 |
|
---|
442 | Const STARTF_USESHOWWINDOW = &H00000001
|
---|
443 | Const STARTF_USESIZE = &H00000002
|
---|
444 | Const STARTF_USEPOSITION = &H00000004
|
---|
445 | Const STARTF_USECOUNTCHARS = &H00000008
|
---|
446 | Const STARTF_USEFILLATTRIBUTE = &H00000010
|
---|
447 | Const STARTF_RUNFULLSCREEN = &H00000020
|
---|
448 | Const STARTF_FORCEONFEEDBACK = &H00000040
|
---|
449 | Const STARTF_FORCEOFFFEEDBACK = &H00000080
|
---|
450 | Const STARTF_USESTDHANDLES = &H00000100
|
---|
451 | Const STARTF_USEHOTKEY = &H00000200
|
---|
452 | Type STARTUPINFO
|
---|
453 | cb As DWord
|
---|
454 | lpReserved As *Byte
|
---|
455 | lpDesktop As *Byte
|
---|
456 | lpTitle As *Byte
|
---|
457 | dwX As DWord
|
---|
458 | dwY As DWord
|
---|
459 | dwXSize As DWord
|
---|
460 | dwYSize As DWord
|
---|
461 | dwXCountChars As DWord
|
---|
462 | dwYCountChars As DWord
|
---|
463 | dwFillAttribute As DWord
|
---|
464 | dwFlags As DWord
|
---|
465 | wShowWindow As Word
|
---|
466 | cbReserved2 As Word
|
---|
467 | lpReserved2 As *Byte
|
---|
468 | hStdInput As HANDLE
|
---|
469 | hStdOutput As HANDLE
|
---|
470 | hStdError As HANDLE
|
---|
471 | End Type
|
---|
472 | Type PROCESS_INFORMATION
|
---|
473 | hProcess As HANDLE
|
---|
474 | hThread As HANDLE
|
---|
475 | dwProcessId As DWord
|
---|
476 | dwThreadId As DWord
|
---|
477 | End Type
|
---|
478 | Declare Function CreateProcess Lib "kernel32" Alias "CreateProcessA" (lpApplicationName As BytePtr, lpCommandLine As BytePtr, ByRef lpProcessAttributes As SECURITY_ATTRIBUTES, ByRef lpThreadAttributes As SECURITY_ATTRIBUTES, bInheritHandles As BOOL, dwCreationFlags As DWord, lpEnvironment As VoidPtr, lpCurrentDirectory As BytePtr, ByRef lpStartupInfo As STARTUPINFO, ByRef lpProcessInformation As PROCESS_INFORMATION) As BOOL
|
---|
479 |
|
---|
480 | TypeDef LPTHREAD_START_ROUTINE = *Function(lpThreadParameter As VoidPtr) As DWord
|
---|
481 | Declare Function CreateThread Lib "kernel32" Alias "CreateThread" (lpThreadAttributes As *SECURITY_ATTRIBUTES, dwStackSize As DWord, lpStartAddress As LPTHREAD_START_ROUTINE, lpParameter As VoidPtr, dwCreationFlags As DWord, ByRef lpThreadId As DWord) As HANDLE
|
---|
482 |
|
---|
483 | Declare Sub DebugBreak Lib "kernel32" ()
|
---|
484 | Declare Sub DeleteCriticalSection Lib "kernel32" (ByRef lpCriticalSection As CRITICAL_SECTION)
|
---|
485 | Declare Function DeleteFile Lib "kernel32" Alias "DeleteFileA" (pFileName As PCSTR) As BOOL
|
---|
486 | Declare Function DeviceIoControl Lib "Kernel32" (
|
---|
487 | hDevice As HANDLE,
|
---|
488 | dwIoControlCode As DWord,
|
---|
489 | pInBuffer As VoidPtr,
|
---|
490 | nInBufferSize As DWord,
|
---|
491 | pOutBuffer As VoidPtr,
|
---|
492 | nOutBufferSize As DWord,
|
---|
493 | pBytesReturned As DWordPtr,
|
---|
494 | pOverlapped As *OVERLAPPED
|
---|
495 | ) As Long
|
---|
496 | Declare Function DisableThreadLibraryCalls Lib "kernel32" (hLibModule As HINSTANCE) As BOOL
|
---|
497 | Declare Function DosDateTimeToFileTime Lib "kernel32" (wFatDate As Word, wFatTime As Word, ByRef lpFileTime As FILETIME) As BOOL
|
---|
498 |
|
---|
499 | Const DUPLICATE_CLOSE_SOURCE = 1
|
---|
500 | Const DUPLICATE_SAME_ACCESS = 2
|
---|
501 | Declare Function DuplicateHandle Lib "kernel32" (hSourceProcessHandle As HANDLE, hSourceHandle As HANDLE, hTargetProcessHandle As HANDLE, ByRef TargetHandle As HANDLE, dwDesiredAccess As DWord, bInheritHandle As BOOL, dwOptions As DWord) As BOOL
|
---|
502 |
|
---|
503 | Declare Sub EnterCriticalSection Lib "kernel32" (ByRef lpCriticalSection As CRITICAL_SECTION)
|
---|
504 | Declare Sub ExitProcess Lib "kernel32" (dwExitCode As DWord)
|
---|
505 | Declare Sub ExitThread Lib "kernel32" (dwExitCode As DWord)
|
---|
506 | Declare Sub FatalAppExit Lib "kernel32" Alias "FatalAppExitA" (Action As DWord, pMessageText As PCSTR)
|
---|
507 | Declare Function FileTimeToDosDateTime Lib "kernel32" (ByRef lpFileTime As FILETIME, ByRef lpFatDate As Word, ByRef lpFatTime As Word) As BOOL
|
---|
508 | Declare Function FileTimeToLocalFileTime Lib "kernel32" (ByRef lpFileTime As FILETIME, ByRef lpLocalFileTime As FILETIME) As BOOL
|
---|
509 | Declare Function FileTimeToSystemTime Lib "kernel32" (ByRef lpFileTime As FILETIME, ByRef lpSystemTime As SYSTEMTIME) As BOOL
|
---|
510 | Declare Sub FillMemory Lib "kernel32" Alias "RtlFillMemory" (pDest As VoidPtr, stLength As SIZE_T, c As Byte)
|
---|
511 | Declare Function FindClose Lib "kernel32" (hFindFile As HANDLE) As BOOL
|
---|
512 | Declare Function FindCloseChangeNotification Lib "kernel32" (hChangeHandle As HANDLE) As BOOL
|
---|
513 | Declare Function FindFirstChangeNotification Lib "kernel32" Alias "FindFirstChangeNotificationA" (
|
---|
514 | pPathName As PCSTR,
|
---|
515 | bWatchSubtree As BOOL,
|
---|
516 | dwNotifyFilter As DWord
|
---|
517 | ) As HANDLE
|
---|
518 |
|
---|
519 | Type WIN32_FIND_DATA
|
---|
520 | dwFileAttributes As DWord
|
---|
521 | ftCreationTime As FILETIME
|
---|
522 | ftLastAccessTime As FILETIME
|
---|
523 | ftLastWriteTime As FILETIME
|
---|
524 | nFileSizeHigh As DWord
|
---|
525 | nFileSizeLow As DWord
|
---|
526 | dwReserved0 As DWord
|
---|
527 | dwReserved1 As DWord
|
---|
528 | cFileName[ELM(MAX_PATH)] As Byte
|
---|
529 | cAlternateFileName[13] As Byte
|
---|
530 | End Type
|
---|
531 | TypeDef LPWIN32_FIND_DATA = *WIN32_FIND_DATA
|
---|
532 | Declare Function FindFirstFile Lib "kernel32" Alias "FindFirstFileA" (lpFileName As BytePtr, ByRef lpFindFildData As WIN32_FIND_DATA) As HANDLE
|
---|
533 | Declare Function FindNextChangeNotification Lib "kernel32" (hChangeHandle As HANDLE) As BOOL
|
---|
534 | Declare Function FindNextFile Lib "kernel32" Alias "FindNextFileA" (hFindFile As HANDLE, ByRef lpFindFildData As WIN32_FIND_DATA) As BOOL
|
---|
535 | Declare Function FlushFileBuffers Lib "kernel32" (hFile As HANDLE) As BOOL
|
---|
536 | Declare Function FlushInstructionCache Lib "kernel32"(hProcess As HANDLE, pBaseAddress As VoidPtr, Size As SIZE_T) As BOOL
|
---|
537 |
|
---|
538 | Const FORMAT_MESSAGE_ALLOCATE_BUFFER = &H00000100
|
---|
539 | Const FORMAT_MESSAGE_IGNORE_INSERTS = &H00000200
|
---|
540 | Const FORMAT_MESSAGE_FROM_STRING = &H00000400
|
---|
541 | Const FORMAT_MESSAGE_FROM_HMODULE = &H00000800
|
---|
542 | Const FORMAT_MESSAGE_FROM_SYSTEM = &H00001000
|
---|
543 | Const FORMAT_MESSAGE_ARGUMENT_ARRAY = &H00002000
|
---|
544 | Declare Function FormatMessage Lib "kernel32" Alias "FormatMessageA" (dwFlags As DWord, lpSource As VoidPtr, dwMessageId As DWord, dwLanguageId As DWord, lpBuffer As BytePtr, nSize As DWord, Arguments As DWordPtr) As DWord
|
---|
545 | Declare Function FreeEnvironmentStrings Lib "kernel32" Alias "FreeEnvironmentStringsA" (pszEnvironmentBlock As PCSTR) As BOOL
|
---|
546 | Declare Function FreeLibrary Lib "kernel32" (hLibModule As HINSTANCE) As BOOL
|
---|
547 | Declare Sub FreeLibraryAndExitThread Lib "kernel32" (hModule As HANDLE, dwExitCode As DWord)
|
---|
548 | Declare Function GetCommandLine Lib "kernel32" Alias "GetCommandLineA" () As BytePtr
|
---|
549 | Declare Function GetCompressedFileSize Lib "kernel32" Alias "GetCompressedFileSizeA" (lpFileName As BytePtr, ByRef lpFileSizeHigh As DWord) As DWord
|
---|
550 |
|
---|
551 | Const MAX_COMPUTERNAME_LENGTH=15
|
---|
552 | Declare Function GetComputerName Lib "kernel32" Alias "GetComputerNameA" (lpBuffer As BytePtr, ByRef nSize As Long) As Long
|
---|
553 |
|
---|
554 | Declare Function GetCurrentDirectory Lib "kernel32" Alias "GetCurrentDirectoryA" (nBufferLength As DWord, lpBuffer As BytePtr) As DWord
|
---|
555 | Declare Function GetCurrentProcess Lib "kernel32" () As HANDLE
|
---|
556 | Declare Function GetCurrentProcessId Lib "kernel32" () As DWord
|
---|
557 | Declare Function GetCurrentThread Lib "kernel32" () As HANDLE
|
---|
558 | Declare Function GetCurrentThreadId Lib "kernel32" () As DWord
|
---|
559 |
|
---|
560 | Const DATE_SHORTDATE = &H00000001
|
---|
561 | Const DATE_LONGDATE = &H00000002
|
---|
562 | Const DATE_USE_ALT_CALENDAR = &H00000004
|
---|
563 | Declare Function GetDateFormat Lib "kernel32" Alias "GetDateFormatA" (Locale As LCID, dwFlags As DWord, ByRef lpDate As SYSTEMTIME, lpFormat As BytePtr, lpDateStr As BytePtr, cchDate As Long) As Long
|
---|
564 |
|
---|
565 | Declare Function GetDiskFreeSpace Lib "kernel32" Alias "GetDiskFreeSpaceA" (lpRootPathName As BytePtr, lpSectorsPerCluster As *DWord, lpBytesPerSector As *DWord, lpNumberOfFreeClusters As *DWord, lpTotalNumberOfClusters As *DWord) As BOOL
|
---|
566 | Declare Function GetDiskFreeSpaceEx Lib "kernel32" Alias "GetDiskFreeSpaceExA" (lpDirectoryName As BytePtr, ByRef lpFreeBytesAvailableToCaller As ULARGE_INTEGER, ByRef lpTotalNumberOfBytes As ULARGE_INTEGER, ByRef lpTotalNumberOfFreeBytes As ULARGE_INTEGER) As BOOL
|
---|
567 |
|
---|
568 | Const DRIVE_UNKNOWN = 0
|
---|
569 | Const DRIVE_NO_ROOT_DIR = 1
|
---|
570 | Const DRIVE_REMOVABLE = 2
|
---|
571 | Const DRIVE_FIXED = 3
|
---|
572 | Const DRIVE_REMOTE = 4
|
---|
573 | Const DRIVE_CDROM = 5
|
---|
574 | Const DRIVE_RAMDISK = 6
|
---|
575 | Declare Function GetVolumeInformation Lib "kernel32" Alias "GetVolumeInformationA" (lpRootPathName As LPCSTR, lpVolumeNameBuffer As LPSTR, nVolumeNameSize As DWord, lpVolumeSerialNumber As *Word, lpMaximumComponentLength As *Word, lpFileSystemFlags As *Word, lpFileSystemNameBuffer As LPSTR, nFileSystemNameSize As DWord) As BOOL
|
---|
576 | Declare Function GetDriveType Lib "kernel32" Alias "GetDriveTypeA" (lpRootPathName As BytePtr) As DWord
|
---|
577 |
|
---|
578 | Declare Function GetEnvironmentVariable Lib "kernel32" Alias "GetEnvironmentVariableA" (lpName As BytePtr, lpBuffer As BytePtr, nSize As DWord) As DWord
|
---|
579 | Declare Function GetEnvironmentStrings Lib "kernel32" Alias "GetEnvironmentStringsA" () As VoidPtr
|
---|
580 | Const STILL_ACTIVE = &H00000103
|
---|
581 | Declare Function GetExitCodeProcess Lib "kernel32" (hProcess As HANDLE, ByRef lpExitCode As DWord) As BOOL
|
---|
582 | Declare Function GetExitCodeThread Lib "kernel32" (hThread As HANDLE, ByRef lpExitCode As DWord) As BOOL
|
---|
583 |
|
---|
584 | Declare Function GetFileAttributes Lib "kernel32" Alias "GetFileAttributesA" (lpFileName As BytePtr) As DWord
|
---|
585 | Type BY_HANDLE_FILE_INFORMATION
|
---|
586 | dwFileAttributes As DWord
|
---|
587 | ftCreationTime As FILETIME
|
---|
588 | ftLastAccessTime As FILETIME
|
---|
589 | ftLastWriteTime As FILETIME
|
---|
590 | dwVolumeSerialNumber As DWord
|
---|
591 | nFileSizeHigh As DWord
|
---|
592 | nFileSizeLow As DWord
|
---|
593 | nNumberOfLinks As DWord
|
---|
594 | nFileIndexHigh As DWord
|
---|
595 | nFileIndexLow As DWord
|
---|
596 | End Type
|
---|
597 | Declare Function GetFileInformationByHandle Lib "kernel32" (
|
---|
598 | ByVal hFile As HANDLE,
|
---|
599 | ByRef FileInformation As BY_HANDLE_FILE_INFORMATION
|
---|
600 | ) As BOOL
|
---|
601 | Declare Function GetFileSize Lib "kernel32" (hFile As HANDLE, pFileSizeHigh As *DWord) As DWord
|
---|
602 | Declare Function GetFileTime Lib "kernel32" (hFile As HANDLE, ByRef lpCreationTime As FILETIME, ByRef lpLastAccessTime As FILETIME, ByRef lpLastWriteTime As FILETIME) As BOOL
|
---|
603 |
|
---|
604 | Const FILE_TYPE_UNKNOWN = &H0000
|
---|
605 | Const FILE_TYPE_DISK = &H0001
|
---|
606 | Const FILE_TYPE_CHAR = &H0002
|
---|
607 | Const FILE_TYPE_PIPE = &H0003
|
---|
608 | Const FILE_TYPE_REMOTE = &H8000
|
---|
609 | Declare Function GetFileType Lib "kernel32" (hFile As HANDLE) As DWord
|
---|
610 |
|
---|
611 | Declare Function GetFullPathName Lib "kernel32" Alias "GetFullPathNameA" (lpFileName As PCSTR, nBufferLength As DWord, pBuffer As PSTR, lpFilePart As *DWord) As DWord
|
---|
612 | Declare Function GetLastError Lib "kernel32" () As DWord
|
---|
613 | Declare Sub GetLocalTime Lib "kernel32" (ByRef lpSystemTime As SYSTEMTIME)
|
---|
614 | Declare Function GetLogicalDrives Lib "kernel32" () As DWord
|
---|
615 | Declare Function GetLogicalDriveStrings Lib "kernel32" Alias "GetLogicalDriveStringsA" (nBufferLength As DWord, pBuffer As PSTR) As DWord
|
---|
616 | Declare Function GetModuleFileName Lib "kernel32" Alias "GetModuleFileNameA" (hModule As HINSTANCE, lpFileName As BytePtr, nSize As DWord) As DWord
|
---|
617 | Declare Function GetModuleHandle Lib "kernel32" Alias "GetModuleHandleA" (lpModuleName As BytePtr) As HINSTANCE
|
---|
618 | Declare Function GetOverlappedResult Lib "kernel32" (
|
---|
619 | hFile As HANDLE,
|
---|
620 | pOverlapped As *OVERLAPPED,
|
---|
621 | pNumberOfBytesTransferred AS *DWord,
|
---|
622 | bWait As BOOL
|
---|
623 | ) As BOOL
|
---|
624 | Declare Function GetPriorityClass Lib "kernel32" (hProcess As HANDLE) As DWord
|
---|
625 | Declare Function GetProcAddress Lib "kernel32" (hModule As HINSTANCE, pProcName As PCSTR) As DWord
|
---|
626 | Declare Function GetProcessAffinityMask Lib "kernel32" (
|
---|
627 | hProcess As HANDLE,
|
---|
628 | ByRef ProcessAffinityMask As ULONG_PTR,
|
---|
629 | ByRef SystemAffinityMask As ULONG_PTR
|
---|
630 | ) As BOOL
|
---|
631 | Declare Function GetProcessHeap Lib "kernel32" () As HANDLE
|
---|
632 | Declare Function GetShortPathName Lib "kernel32" Alias "GetShortPathNameA" (
|
---|
633 | pszLongPath As PCSTR,
|
---|
634 | pszShortPath As PSTR,
|
---|
635 | cchBuffer As DWord
|
---|
636 | ) As DWord
|
---|
637 |
|
---|
638 | Declare Sub GetStartupInfo Lib "kernel32" Alias "GetStartupInfoA" (ByRef StartupInfo As STARTUPINFO)
|
---|
639 |
|
---|
640 | Const STD_INPUT_HANDLE = -10
|
---|
641 | Const STD_OUTPUT_HANDLE = -11
|
---|
642 | Const STD_ERROR_HANDLE = -12
|
---|
643 | Declare Function GetStdHandle Lib "kernel32" (nStdHandle As DWord) As HANDLE
|
---|
644 |
|
---|
645 | Declare Function GetSystemDirectory Lib "kernel32" Alias "GetSystemDirectoryA" (pBuffer As PSTR, uSize As DWord) As DWord
|
---|
646 |
|
---|
647 | Type SYSTEM_INFO
|
---|
648 | dwOemId As DWord
|
---|
649 | dwPageSize As DWord
|
---|
650 | lpMinimumApplicationAddress As VoidPtr
|
---|
651 | lpMaximumApplicationAddress As VoidPtr
|
---|
652 | dwActiveProcessorMask As ULONG_PTR
|
---|
653 | dwNumberOfProcessors As DWord
|
---|
654 | dwProcessorType As DWord
|
---|
655 | dwAllocationGranularity As DWord
|
---|
656 | wProcessorLevel As Word
|
---|
657 | wProcessorRevision As Word
|
---|
658 | End Type
|
---|
659 | Declare Sub GetSystemInfo Lib "kernel32" (ByRef SystemInfo As SYSTEM_INFO)
|
---|
660 |
|
---|
661 | Declare Sub GetSystemTime Lib "kernel32" (ByRef SystemTime As SYSTEMTIME)
|
---|
662 | Declare Sub GetSystemTimeAsFileTime Lib "kernel32" (ByRef SystemTimeAsFileTime As FILETIME)
|
---|
663 |
|
---|
664 | Declare Function GetTempFileName Lib "kernel32" Alias "GetTempFileNameA" (
|
---|
665 | pPathName As PCSTR,
|
---|
666 | pPrefixString As PCSTR,
|
---|
667 | uUnique As DWord,
|
---|
668 | pTempFileName As PSTR
|
---|
669 | ) As DWord
|
---|
670 | Declare Function GetTempPath Lib "kernel32" Alias "GetTempPathA" (nBufferLength As DWord, lpBuffer As PSTR) As DWord
|
---|
671 | Declare Function GetThreadContext Lib "kernel32" (hThread As HANDLE, ByRef Context As CONTEXT) As BOOL
|
---|
672 |
|
---|
673 | Const THREAD_BASE_PRIORITY_LOWRT = 15
|
---|
674 | Const THREAD_BASE_PRIORITY_MAX = 2
|
---|
675 | Const THREAD_BASE_PRIORITY_MIN = -2
|
---|
676 | Const THREAD_BASE_PRIORITY_IDLE = -15
|
---|
677 | Const THREAD_PRIORITY_LOWEST = THREAD_BASE_PRIORITY_MIN
|
---|
678 | Const THREAD_PRIORITY_BELOW_NORMAL = THREAD_PRIORITY_LOWEST+1
|
---|
679 | Const THREAD_PRIORITY_NORMAL = 0
|
---|
680 | Const THREAD_PRIORITY_HIGHEST = THREAD_BASE_PRIORITY_MAX
|
---|
681 | Const THREAD_PRIORITY_ABOVE_NORMAL = THREAD_PRIORITY_HIGHEST-1
|
---|
682 | Const THREAD_PRIORITY_ERROR_RETURN = LONG_MAX
|
---|
683 | Const THREAD_PRIORITY_TIME_CRITICAL = THREAD_BASE_PRIORITY_LOWRT
|
---|
684 | Const THREAD_PRIORITY_IDLE = THREAD_BASE_PRIORITY_IDLE
|
---|
685 | Declare Function GetThreadPriority Lib "kernel32" (hThread As HANDLE) As Long
|
---|
686 | Declare Function GetThreadPriorityBoost Lib "kernel32" (
|
---|
687 | hThread As HANDLE,
|
---|
688 | ByRef pDisablePriorityBoost As BOOL) As BOOL
|
---|
689 | Declare Function GetTickCount Lib "kernel32" () As DWord
|
---|
690 |
|
---|
691 | Const TIME_NOMINUTESORSECONDS = &H00000001
|
---|
692 | Const TIME_NOSECONDS = &H00000002
|
---|
693 | Const TIME_NOTIMEMARKER = &H00000004
|
---|
694 | Const TIME_FORCE24HOURFORMAT = &H00000008
|
---|
695 | Declare Function GetTimeFormat Lib "kernel32" Alias "GetTimeFormatA" (Locale As LCID, dwFlags As DWord, ByRef Time As SYSTEMTIME, lpFormat As BytePtr, lpTimeStr As BytePtr, cchTime As DWord) As BOOL
|
---|
696 |
|
---|
697 | Declare Function GetUserDefaultLCID Lib "kernel32" () As LCID
|
---|
698 | Declare Function GetUserName Lib "advapi32" Alias "GetUserNameA" (pBuffer As PSTR, ByRef nSize As DWord) As BOOL
|
---|
699 |
|
---|
700 | Const VER_PLATFORM_WIN32s = 0
|
---|
701 | Const VER_PLATFORM_WIN32_WINDOWS = 1
|
---|
702 | Const VER_PLATFORM_WIN32_NT = 2
|
---|
703 | Type OSVERSIONINFO
|
---|
704 | dwOSVersionInfoSize As DWord
|
---|
705 | dwMajorVersion As DWord
|
---|
706 | dwMinorVersion As DWord
|
---|
707 | dwBuildNumber As DWord
|
---|
708 | dwPlatformId As DWord
|
---|
709 | szCSDVersion[127] As Byte
|
---|
710 | End Type
|
---|
711 | Declare Function GetVersionEx Lib "kernel32" Alias "GetVersionExA" (ByRef VersionInformation As OSVERSIONINFO) As BOOL
|
---|
712 |
|
---|
713 | Declare Function GetWindowsDirectory Lib "kernel32" Alias "GetWindowsDirectoryA" (pBuffer As PSTR, uSize As DWord) As DWord
|
---|
714 | Declare Function GlobalAlloc Lib "kernel32" (uFlags As DWord, dwBytes As SIZE_T) As HGLOBAL
|
---|
715 | Declare Function GlobalFrags Lib "kernel32" (hMem As HGLOBAL) As DWord
|
---|
716 | Declare Function GlobalFree Lib "kernel32" (hMem As HGLOBAL) As HGLOBAL
|
---|
717 | Declare Function GlobalHandle Lib "kernel32" (pMem As VoidPtr) As HGLOBAL
|
---|
718 | Declare Function GlobalLock Lib "kernel32" (hMem As HGLOBAL) As VoidPtr
|
---|
719 |
|
---|
720 | Type MEMORYSTATUS
|
---|
721 | dwLength As DWord
|
---|
722 | dwMemoryLoad As DWord
|
---|
723 | dwTotalPhys As SIZE_T
|
---|
724 | dwAvailPhys As SIZE_T
|
---|
725 | dwTotalPageFile As SIZE_T
|
---|
726 | dwAvailPageFile As SIZE_T
|
---|
727 | dwTotalVirtual As SIZE_T
|
---|
728 | dwAvailVirtual As SIZE_T
|
---|
729 | End Type
|
---|
730 | Declare Sub GlobalMemoryStatus Lib "kernel32" (ByRef lpMemStatus As MEMORYSTATUS)
|
---|
731 |
|
---|
732 | Declare Function GlobalReAlloc Lib "kernel32" (hMem As HGLOBAL, dwBytes As SIZE_T, uFlags As DWord) As HGLOBAL
|
---|
733 | Declare Function GlobalSize Lib "kernel32" (hMem As HGLOBAL) As SIZE_T
|
---|
734 | Declare Function GlobalUnlock Lib "kernel32" (hMem As HGLOBAL) As BOOL
|
---|
735 | Declare Function HeapAlloc Lib "kernel32" (hHeap As HANDLE, dwFlags As DWord, dwBytes As SIZE_T) As VoidPtr
|
---|
736 | Declare Function HeapCreate Lib "kernel32" (flOptions As DWord, dwInitialSize As SIZE_T, dwMaximumSize As SIZE_T) As HANDLE
|
---|
737 | Declare Function HeapDestroy Lib "kernel32" (hHeap As HANDLE) As Long
|
---|
738 | Declare Function HeapFree Lib "kernel32" (hHeap As HANDLE, dwFlags As DWord, lpMem As VoidPtr) As Long
|
---|
739 | Declare Function HeapReAlloc Lib "kernel32" (hHeap As HANDLE, dwFlags As DWord, lpMem As VoidPtr, dwBytes As SIZE_T) As VoidPtr
|
---|
740 | Declare Function HeapSize Lib "kernel32" (hHeap As HANDLE, dwFlags As DWord, lpMem As VoidPtr) As SIZE_T
|
---|
741 | Declare Sub InitializeCriticalSection Lib "kernel32" (ByRef CriticalSection As CRITICAL_SECTION)
|
---|
742 | Declare Function IsBadReadPtr Lib "kernel32" (lp As VoidPtr, ucb As ULONG_PTR) As BOOL
|
---|
743 | Declare Function IsBadWritePtr Lib "kernel32" (lp As VoidPtr, ucb As ULONG_PTR) As BOOL
|
---|
744 | Declare Function IsDBCSLeadByte Lib "kernel32" (TestChar As Byte) As BOOL
|
---|
745 |
|
---|
746 | #ifdef _WIN64
|
---|
747 | Declare Function IsWow64Process Lib "kernel32" (hProcess As HANDLE, ByRef bWow64Process As BOOL) As BOOL
|
---|
748 | #endif
|
---|
749 |
|
---|
750 | Const LCMAP_LOWERCASE = &H00000100 ' lower case letters
|
---|
751 | Const LCMAP_UPPERCASE = &H00000200 ' upper case letters
|
---|
752 | Const LCMAP_SORTKEY = &H00000400 ' WC sort key (normalize)
|
---|
753 | Const LCMAP_BYTEREV = &H00000800 ' byte reversal
|
---|
754 | Const LCMAP_HIRAGANA = &H00100000 ' map katakana to hiragana
|
---|
755 | Const LCMAP_KATAKANA = &H00200000 ' map hiragana to katakana
|
---|
756 | Const LCMAP_HALFWIDTH = &H00400000 ' map double byte to single byte
|
---|
757 | Const LCMAP_FULLWIDTH = &H00800000 ' map single byte to double byte
|
---|
758 | Const LCMAP_LINGUISTIC_CASING = &H01000000 ' use linguistic rules for casing
|
---|
759 | Const LCMAP_SIMPLIFIED_CHINESE = &H02000000 ' map traditional chinese to simplified chinese
|
---|
760 | Const LCMAP_TRADITIONAL_CHINESE = &H04000000 ' map simplified chinese to traditional chinese
|
---|
761 | Declare Function LCMapString Lib "kernel32" Alias "LCMapStringA" (Locale As LCID, dwMapFlags As DWord, lpSrcStr As LPCSTR, cchSrc As Long, lpDestStr As LPSTR, cchDest As Long) As Long
|
---|
762 |
|
---|
763 | Declare Sub LeaveCriticalSection Lib "kernel32" (ByRef lpCriticalSection As CRITICAL_SECTION)
|
---|
764 | Declare Function LocalAlloc Lib "kernel32" (uFlags As DWord, uBytes As SIZE_T) As HLOCAL
|
---|
765 | Declare Function LocalFileTimeToFileTime Lib "kernel32" (ByRef lpLocalFileTime As FILETIME, ByRef lpFileTime As FILETIME) As BOOL
|
---|
766 | Declare Function LocalFree Lib "kernel32" (hMem As HLOCAL) As HLOCAL
|
---|
767 | Declare Function LocalHandle Lib "kernel32" (pMem As VoidPtr) As HLOCAL
|
---|
768 | Declare Function LocalLock Lib "kernel32" (hMem As HLOCAL) As VoidPtr
|
---|
769 | Declare Function LocalReAlloc Lib "kernel32" (hMem As HLOCAL, dwBytes As SIZE_T, uFlags As DWord) As HLOCAL
|
---|
770 | Declare Function LocalSize Lib "kernel32" (hMem As HLOCAL) As SIZE_T
|
---|
771 | Declare Function LocalUnlock Lib "kernel32" (hMem As HLOCAL) As BOOL
|
---|
772 | Declare Function LockFile Lib "kernel32" (hFile As DWord, dwFileOffsetLow As DWord, dwFileOffsetHigh As DWord, nNumberOfBytesToLockLow As DWord, nNumberOfBytesToLockHigh As DWord) As BOOL
|
---|
773 | Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA" (pLibFileName As PCSTR) As HINSTANCE
|
---|
774 |
|
---|
775 | Const DONT_RESOLVE_DLL_REFERENCES = &h00000001
|
---|
776 | Const LOAD_LIBRARY_AS_DATAFILE = &h00000002
|
---|
777 | Const LOAD_WITH_ALTERED_SEARCH_PATH = &h00000008
|
---|
778 | Const LOAD_IGNORE_CODE_AUTHZ_LEVEL = &h00000010
|
---|
779 | Declare Function LoadLibraryEx Lib "kernel32" Alias "LoadLibraryExA" (pLibFileName As PCSTR, hFile As HANDLE, dwFlags As DWord) As HINSTANCE
|
---|
780 |
|
---|
781 | Declare Function lstrcat Lib "kernel32" Alias "lstrcatA" (pString1 As PSTR, pString2 As PCSTR) As PSTR
|
---|
782 | Declare Function lstrcmp Lib "kernel32" Alias "lstrcmpA" (pString1 As PCSTR, pString2 As PCSTR) As Long
|
---|
783 | Declare Function lstrcmpi Lib "kernel32" Alias "lstrcmpiA" (pString1 As PCSTR, pString2 As PCSTR) As Long
|
---|
784 | Declare Function lstrcpy Lib "kernel32" Alias "lstrcpyA" (pString1 As PSTR, pString2 As PCSTR) As PSTR
|
---|
785 | Declare Function lstrlenA Lib "kernel32" (pString As PCSTR) As Long
|
---|
786 | Declare Function lstrlenW Lib "kernel32" (pString As PCWSTR) As Long
|
---|
787 | #ifdef UNICODE
|
---|
788 | Declare Function lstrlen Lib "kernel32" Alias "lstrlenW" (lpString As PCTSTR) As Long
|
---|
789 | #else
|
---|
790 | Declare Function lstrlen Lib "kernel32" Alias "lstrlenA" (lpString As PCTSTR) As Long
|
---|
791 | #endif
|
---|
792 | Declare Sub memcpy Lib "kernel32" Alias "RtlMoveMemory" (pDest As VoidPtr, pSrc As VoidPtr, length As SIZE_T)
|
---|
793 | Declare Function MoveFile Lib "kernel32" Alias "MoveFileA" (lpExistingFileName As BytePtr, lpNewFileName As BytePtr) As BOOL
|
---|
794 | Declare Sub MoveMemory Lib "kernel32" Alias "RtlMoveMemory" (pDest As VoidPtr, pSrc As VoidPtr, length As SIZE_T)
|
---|
795 |
|
---|
796 | Declare Function MulDiv Lib "kernel32" (
|
---|
797 | nNumber As Long,
|
---|
798 | nNumerator As Long,
|
---|
799 | nDenominator As Long
|
---|
800 | ) As Long
|
---|
801 |
|
---|
802 | Const CP_ACP = 0 'default to ANSI code page
|
---|
803 | Const CP_OEMCP = 1 'default to OEM code page
|
---|
804 | Const CP_MACCP = 2 'default to MAC code page
|
---|
805 | Const CP_THREAD_ACP = 3 'current thread's ANSI code page
|
---|
806 | Const CP_SYMBOL = 42 'SYMBOL translations
|
---|
807 | Const CP_UTF7 = 65000 'UTF-7 translation
|
---|
808 | Const CP_UTF8 = 65001 'UTF-8 translation
|
---|
809 |
|
---|
810 | Declare Function MultiByteToWideChar Lib "kernel32" (CodePage As DWord, dwFlags As DWord, pMultiByteStr As PCSTR, cchMultiByte As Long, pWideCharStr As PWSTR, cchWideChar As Long) As Long
|
---|
811 |
|
---|
812 | Declare Function OpenEvent Lib "kernel32" Alias "OpenEventA" (dwDesiredAccess As DWord, bInheritHandle As BOOL, pName As PCSTR) As HANDLE
|
---|
813 | Declare Function OpenMutex Lib "kernel32" Alias "OpenMutexA" (dwDesiredAccess As DWord, bInheritHandle As BOOL, lpName As LPSTR) As HANDLE
|
---|
814 | Declare Function OpenSemaphore Lib "kernel32" Alias "OpenSemaphoreA" (dwDesiredAccess As DWord, bInheritHandle As BOOL, lpName As LPSTR) As HANDLE
|
---|
815 |
|
---|
816 | Const PROCESS_TERMINATE = &H0001
|
---|
817 | Const PROCESS_CREATE_THREAD = &H0002
|
---|
818 | Const PROCESS_SET_SESSIONID = &H0004
|
---|
819 | Const PROCESS_VM_OPERATION = &H0008
|
---|
820 | Const PROCESS_VM_READ = &H0010
|
---|
821 | Const PROCESS_VM_WRITE = &H0020
|
---|
822 | Const PROCESS_DUP_HANDLE = &H0040
|
---|
823 | Const PROCESS_CREATE_PROCESS = &H0080
|
---|
824 | Const PROCESS_SET_QUOTA = &H0100
|
---|
825 | Const PROCESS_SET_INFORMATION = &H0200
|
---|
826 | Const PROCESS_QUERY_INFORMATION = &H0400
|
---|
827 | Const PROCESS_ALL_ACCESS = STANDARD_RIGHTS_REQUIRED or SYNCHRONIZE or &HFFF
|
---|
828 | Declare Function OpenProcess Lib "kernel32" (dwDesiredAccess As DWord, bInheritHandle As Long, dwProcessId As DWord) As HANDLE
|
---|
829 |
|
---|
830 | Declare Sub OutputDebugStringA Lib "kernel32" (pOutputString As PCSTR)
|
---|
831 | Declare Sub OutputDebugStringW Lib "kernel32" (pOutputString As PCWSTR)
|
---|
832 | #ifdef UNICODE
|
---|
833 | Declare Sub OutputDebugString Lib "kernel32" Alias "OutputDebugStringW" (pOutputString As PCTSTR)
|
---|
834 | #else
|
---|
835 | Declare Sub OutputDebugString Lib "kernel32" Alias "OutputDebugStringA" (pOutputString As PCTSTR)
|
---|
836 | #endif
|
---|
837 | Declare Function PulseEvent Lib "kernel32" (hEvent As HANDLE) As BOOL
|
---|
838 | Declare Sub RaiseException Lib "kernel32" (
|
---|
839 | dwExceptionCode As DWord,
|
---|
840 | dwExceptionFlags As DWord,
|
---|
841 | NumberOfArguments As DWord,
|
---|
842 | pArguments As *ULONG_PTR)
|
---|
843 | Declare Function ReadFile Lib "kernel32" (hFile As HANDLE, lpBuffer As VoidPtr, nNumberOfBytesToRead As DWord, lpNumberOfBytesRead As DWordPtr, ByRef lpOverlapped As OVERLAPPED) As BOOL
|
---|
844 | Declare Function ReleaseMutex Lib "kernel32" (hMutex As HANDLE) As BOOL
|
---|
845 | Declare Function ReleaseSemaphore Lib "kernel32" (hSemaphore As HANDLE, lReleaseCount As Long, ByRef lpPreviousCount As Long) As BOOL
|
---|
846 | Declare Function RemoveDirectory Lib "kernel32" Alias "RemoveDirectoryA" (lpPathName As BytePtr) As BOOL
|
---|
847 | Declare Function ResetEvent Lib "kernel32" (hEvent As HANDLE) As BOOL
|
---|
848 | Declare Function ResumeThread Lib "kernel32" (hThread As HANDLE) As DWord
|
---|
849 | Declare Function SetComputerName Lib "kernel32" Alias "SetComputerNameA" (lpComputerName As BytePtr) As BOOL
|
---|
850 | Declare Function SetCurrentDirectory Lib "kernel32" Alias "SetCurrentDirectoryA" (lpPathName As BytePtr) As BOOL
|
---|
851 | Declare Function SearchPath Lib "kernel32" Alias "SearchPathA" (pPath As PCSTR, pFileName As PCSTR, pExtension As PCSTR, BufferLength As DWord, pBuffer As PSTR, ByRef pFilePart As PSTR) As DWord
|
---|
852 | Declare Function SetEndOfFile Lib "kernel32" (hFile As HANDLE) As BOOL
|
---|
853 | Declare Function SetEnvironmentVariable Lib "kernel32" Alias "SetEnvironmentVariableA" (lpName As BytePtr, lpValue As BytePtr) As BOOL
|
---|
854 |
|
---|
855 | Const SEM_FAILCRITICALERRORS = &h0001
|
---|
856 | Const SEM_NOGPFAULTERRORBOX = &h0002
|
---|
857 | Const SEM_NOALIGNMENTFAULTEXCEPT = &h0004
|
---|
858 | Const SEM_NOOPENFILEERRORBOX = &h8000
|
---|
859 | Declare Function SetErrorMode Lib "kernel32" (uMode As DWord) As DWord
|
---|
860 | Declare Function SetEvent Lib "kernel32" (hEvent As HANDLE) As BOOL
|
---|
861 | Declare Function SetFileAttributes Lib "kernel32" Alias "SetFileAttributesA" (lpFileName As BytePtr, dwFileAttributes As DWord) As BOOL
|
---|
862 |
|
---|
863 | Const FILE_BEGIN = 0
|
---|
864 | Const FILE_CURRENT = 1
|
---|
865 | Const FILE_END = 2
|
---|
866 | Declare Function SetFilePointer Lib "kernel32" (hFile As HANDLE, lDistanceToMove As Long, lpDistanceToMoveHigh As DWordPtr, dwMoveMethod As DWord) As DWord
|
---|
867 |
|
---|
868 | Declare Function SetFileTime Lib "kernel32" (hFile As HANDLE, ByRef lpCreationTime As FILETIME, ByRef lpLastAccessTime As FILETIME, ByRef lpLastWriteTime As FILETIME) As BOOL
|
---|
869 | Declare Function SetLastError Lib "kernel32" (dwErrCode As DWord)
|
---|
870 | Declare Function SetLastErrorEx Lib "kernel32" (dwErrCode As DWord, dwType As DWord)
|
---|
871 | Declare Function SetLocalTime Lib "kernel32" (ByRef lpSystemTime As SYSTEMTIME) As BOOL
|
---|
872 | Declare Function SetPriorityClass Lib "kernel32" (hProcess As HANDLE, dwPriorityClass As DWord) As BOOL
|
---|
873 | Declare Function SetThreadContext Lib "kernel32" (hThread As HANDLE, ByRef Context As CONTEXT) As BOOL
|
---|
874 | Declare Function SetThreadPriority Lib "kernel32" (hThread As HANDLE, nPriority As Long) As BOOL
|
---|
875 | Declare Function SetThreadPriorityBoost Lib "kernel32" (
|
---|
876 | hThread As HANDLE,
|
---|
877 | DisablePriorityBoost As BOOL
|
---|
878 | ) As BOOL
|
---|
879 |
|
---|
880 | Const EXCEPTION_MAXIMUM_PARAMETERS = ELM(15)
|
---|
881 |
|
---|
882 | Type EXCEPTION_RECORD
|
---|
883 | ExceptionCode As DWord
|
---|
884 | ExceptionFlags As DWord
|
---|
885 | ExceptionRecord As *EXCEPTION_RECORD
|
---|
886 | ExceptionAddress As VoidPtr
|
---|
887 | NumberParameters As DWord
|
---|
888 | ExceptionInformation[EXCEPTION_MAXIMUM_PARAMETERS] As ULONG_PTR
|
---|
889 | End Type
|
---|
890 |
|
---|
891 | Type EXCEPTION_POINTERS
|
---|
892 | ExceptionRecord As *EXCEPTION_RECORD
|
---|
893 | ContextRecord As *CONTEXT
|
---|
894 | End Type
|
---|
895 |
|
---|
896 | TypeDef PTOP_LEVEL_EXCEPTION_FILTER = *Function(ByRef ExceptionInfo As EXCEPTION_POINTERS) As Long
|
---|
897 |
|
---|
898 | Declare Function SetUnhandledExceptionFilter Lib "kernel32" (pTopLevelExceptionFilter As PTOP_LEVEL_EXCEPTION_FILTER) As PTOP_LEVEL_EXCEPTION_FILTER
|
---|
899 |
|
---|
900 | Const INFINITE = &HFFFFFFFF
|
---|
901 | Declare Sub Sleep Lib "kernel32" (dwMilliseconds As DWord)
|
---|
902 | Declare Function SleepEx Lib "kernel32" (dwMilliseconds As DWord, bAlertable As BOOL) As DWord
|
---|
903 |
|
---|
904 | Declare Function SuspendThread Lib "kernel32" (hThread As HANDLE) As DWord
|
---|
905 | Declare Function SystemTimeToFileTime Lib "kernel32" (ByRef lpSystemTime As SYSTEMTIME, ByRef lpFileTime As FILETIME) As BOOL
|
---|
906 | Declare Function TerminateProcess Lib "kernel32" (hProcess As HANDLE, dwExitCode As DWord) As BOOL
|
---|
907 | Declare Function TerminateThread Lib "kernel32" (hThread As HANDLE, dwExitCode As DWord) As BOOL
|
---|
908 | Declare Function TlsAlloc Lib "kernel32" () As DWord
|
---|
909 | Declare Function TlsFree Lib "kernel32" (dwTlsIndex As DWord) As BOOL
|
---|
910 | Declare Function TlsGetValue Lib "kernel32" (dwTlsIndex As DWord) As VoidPtr
|
---|
911 | Declare Function TlsSetValue Lib "kernel32" (dwTlsIndex As DWord, pTlsValue As VoidPtr) As BOOL
|
---|
912 | Declare Function UnlockFile Lib "kernel32" (hFile As HANDLE, dwFileOffsetLow As DWord, dwFileOffsetHigh As DWord, nNumberOfBytesToUnlockLow As DWord, nNumberOfBytesToUnlockHigh As DWord) As BOOL
|
---|
913 | Declare Function UnhandledExceptionFilter Lib "kernel32" (ByRef ExceptionInfo As EXCEPTION_POINTERS) As Long
|
---|
914 |
|
---|
915 | Const PAGE_NOACCESS = &H01
|
---|
916 | Const PAGE_READONLY = &H02
|
---|
917 | Const PAGE_READWRITE = &H04
|
---|
918 | Const PAGE_WRITECOPY = &H08
|
---|
919 | Const PAGE_EXECUTE = &H10
|
---|
920 | Const PAGE_EXECUTE_READ = &H20
|
---|
921 | Const PAGE_EXECUTE_READWRITE = &H40
|
---|
922 | Const PAGE_EXECUTE_WRITECOPY = &H80
|
---|
923 | Const PAGE_GUARD = &H100
|
---|
924 | Const PAGE_NOCACHE = &H200
|
---|
925 | Const PAGE_WRITECOMBINE = &H400
|
---|
926 | Const MEM_COMMIT = &H1000
|
---|
927 | Const MEM_RESERVE = &H2000
|
---|
928 | Const MEM_DECOMMIT = &H4000
|
---|
929 | Const MEM_RELEASE = &H8000
|
---|
930 | Const MEM_FREE = &H10000
|
---|
931 | Const MEM_PRIVATE = &H20000
|
---|
932 | Const MEM_MAPPED = &H40000
|
---|
933 | Const MEM_RESET = &H80000
|
---|
934 | Const MEM_TOP_DOWN = &H100000
|
---|
935 | Const MEM_4MB_PAGES = &H80000000
|
---|
936 | Declare Function VirtualAlloc Lib "kernel32" (lpAddress As VoidPtr, dwSize As SIZE_T, flAllocationType As DWord, flProtect As DWord) As VoidPtr
|
---|
937 | Declare Function VirtualFree Lib "kernel32" (lpAddress As VoidPtr, dwSize As SIZE_T, dwFreeType As DWord) As BOOL
|
---|
938 | Declare Function VirtualLock Lib "kernel32" (lpAddress As VoidPtr, dwSize As SIZE_T) As BOOL
|
---|
939 | Declare Function VirtualProtect Lib "kernel32" (
|
---|
940 | pAddress As VoidPtr,
|
---|
941 | Size As SIZE_T,
|
---|
942 | flNewProtect As DWord,
|
---|
943 | ByRef flOldProtect As DWord
|
---|
944 | ) As BOOL
|
---|
945 | Declare Function VirtualProtectEx Lib "kernel32" (
|
---|
946 | hProcess As HANDLE,
|
---|
947 | pAddress As VoidPtr,
|
---|
948 | Size As SIZE_T,
|
---|
949 | flNewProtect As DWord,
|
---|
950 | ByRef flOldProtect As DWord
|
---|
951 | ) As BOOL
|
---|
952 | Type MEMORY_BASIC_INFORMATION
|
---|
953 | BaseAddress As VoidPtr
|
---|
954 | AllocationBase As VoidPtr
|
---|
955 | AllocationProtect As DWord
|
---|
956 | RegionSize As SIZE_T
|
---|
957 | State As DWord
|
---|
958 | Protect As DWord
|
---|
959 | MBIType As DWord
|
---|
960 | End Type
|
---|
961 | Declare Function VirtualQuery Lib "kernel32" (
|
---|
962 | pAddress As VoidPtr,
|
---|
963 | ByRef mbi As MEMORY_BASIC_INFORMATION,
|
---|
964 | Length As SIZE_T
|
---|
965 | ) As SIZE_T
|
---|
966 | Declare Function VirtualQueryEx Lib "kernel32" (
|
---|
967 | hProcess As HANDLE,
|
---|
968 | pAddress As VoidPtr,
|
---|
969 | ByRef mbi As MEMORY_BASIC_INFORMATION,
|
---|
970 | Length As SIZE_T
|
---|
971 | ) As SIZE_T
|
---|
972 | Declare Function VirtualUnlock Lib "kernel32" (lpAddress As VoidPtr, dwSize As SIZE_T) As BOOL
|
---|
973 | Declare Function WaitForMultipleObjects Lib "kernel32" (nCount As DWord, pHandles As *HANDLE, fWaitAll As BOOL, dwMilliseconds As DWord) As DWord
|
---|
974 | Declare Function WaitForMultipleObjectsEx Lib "kernel32" (nCount As DWord, pHandles As *HANDLE, fWaitAll As BOOL, dwMilliseconds As DWord, bAlertable As BOOL) As DWord
|
---|
975 | Declare Function WaitForSingleObject Lib "kernel32" (hHandle As HANDLE, dwMilliseconds As DWord) As DWord
|
---|
976 | Declare Function WaitForSingleObjectEx Lib "kernel32" (hHandle As HANDLE, dwMilliseconds As DWord, bAlertable As BOOL) As DWord
|
---|
977 |
|
---|
978 | Const WC_COMPOSITECHECK = &H00000200
|
---|
979 | Const WC_DISCARDNS = &H00000010
|
---|
980 | Const WC_SEPCHARS = &H00000020
|
---|
981 | Const WC_DEFAULTCHAR = &H00000040
|
---|
982 | Const WC_NO_BEST_FIT_CHARS = &H00000400
|
---|
983 | Declare Function WideCharToMultiByte Lib "Kernel32" (
|
---|
984 | CodePage As DWord,
|
---|
985 | dwFlags As DWord,
|
---|
986 | pWideCharStr As PCWSTR,
|
---|
987 | cchWideChar As Long,
|
---|
988 | pMultiByteStr As PSTR,
|
---|
989 | cbMultiByte As Long,
|
---|
990 | pDefaultChar As PCSTR,
|
---|
991 | pUsedDefaultChar As *BOOL
|
---|
992 | ) As Long
|
---|
993 |
|
---|
994 | Declare Function WriteFile Lib "kernel32" (hFile As HANDLE, lpBuffer As VoidPtr, nNumberOfBytesToWrite As DWord, lpNumberOfBytesWritten As DWordPtr, ByRef lpOverlapped As OVERLAPPED) As BOOL
|
---|
995 | Declare Sub ZeroMemory Lib "kernel32" Alias "RtlZeroMemory" (Destination As VoidPtr, dwLength As DWord)
|
---|
996 |
|
---|
997 | Const MAKELCID(lgid, srtid) = ((((srtid As Word) As DWord)<<16) or ((lgid As Word) As DWord))
|
---|
998 | Const MAKELANGID(p, s) = (((s As Word) << 10) or (p As Word))
|
---|
999 | Const PRIMARYLANGID(lgid) = ((lgid As Word) and &H3ff)
|
---|
1000 | Const SUBLANGID(lgid) = ((lgid As Word) >> 10)
|
---|
1001 |
|
---|
1002 |
|
---|
1003 | '
|
---|
1004 | ' Primary language IDs.
|
---|
1005 | '
|
---|
1006 |
|
---|
1007 | Const LANG_NEUTRAL = &H00
|
---|
1008 | Const LANG_INVARIANT = &H7f
|
---|
1009 |
|
---|
1010 | Const LANG_AFRIKAANS = &H36
|
---|
1011 | Const LANG_ALBANIAN = &H1c
|
---|
1012 | Const LANG_ARABIC = &H01
|
---|
1013 | Const LANG_ARMENIAN = &H2b
|
---|
1014 | Const LANG_ASSAMESE = &H4d
|
---|
1015 | Const LANG_AZERI = &H2c
|
---|
1016 | Const LANG_BASQUE = &H2d
|
---|
1017 | Const LANG_BELARUSIAN = &H23
|
---|
1018 | Const LANG_BENGALI = &H45
|
---|
1019 | Const LANG_BULGARIAN = &H02
|
---|
1020 | Const LANG_CATALAN = &H03
|
---|
1021 | Const LANG_CHINESE = &H04
|
---|
1022 | Const LANG_CROATIAN = &H1a
|
---|
1023 | Const LANG_CZECH = &H05
|
---|
1024 | Const LANG_DANISH = &H06
|
---|
1025 | Const LANG_DIVEHI = &H65
|
---|
1026 | Const LANG_DUTCH = &H13
|
---|
1027 | Const LANG_ENGLISH = &H09
|
---|
1028 | Const LANG_ESTONIAN = &H25
|
---|
1029 | Const LANG_FAEROESE = &H38
|
---|
1030 | Const LANG_FARSI = &H29
|
---|
1031 | Const LANG_FINNISH = &H0b
|
---|
1032 | Const LANG_FRENCH = &H0c
|
---|
1033 | Const LANG_GALICIAN = &H56
|
---|
1034 | Const LANG_GEORGIAN = &H37
|
---|
1035 | Const LANG_GERMAN = &H07
|
---|
1036 | Const LANG_GREEK = &H08
|
---|
1037 | Const LANG_GUJARATI = &H47
|
---|
1038 | Const LANG_HEBREW = &H0d
|
---|
1039 | Const LANG_HINDI = &H39
|
---|
1040 | Const LANG_HUNGARIAN = &H0e
|
---|
1041 | Const LANG_ICELANDIC = &H0f
|
---|
1042 | Const LANG_INDONESIAN = &H21
|
---|
1043 | Const LANG_ITALIAN = &H10
|
---|
1044 | Const LANG_JAPANESE = &H11
|
---|
1045 | Const LANG_KANNADA = &H4b
|
---|
1046 | Const LANG_KASHMIRI = &H60
|
---|
1047 | Const LANG_KAZAK = &H3f
|
---|
1048 | Const LANG_KONKANI = &H57
|
---|
1049 | Const LANG_KOREAN = &H12
|
---|
1050 | Const LANG_KYRGYZ = &H40
|
---|
1051 | Const LANG_LATVIAN = &H26
|
---|
1052 | Const LANG_LITHUANIAN = &H27
|
---|
1053 | Const LANG_MACEDONIAN = &H2f ' the Former Yugoslav Republic of Macedonia
|
---|
1054 | Const LANG_MALAY = &H3e
|
---|
1055 | Const LANG_MALAYALAM = &H4c
|
---|
1056 | Const LANG_MANIPURI = &H58
|
---|
1057 | Const LANG_MARATHI = &H4e
|
---|
1058 | Const LANG_MONGOLIAN = &H50
|
---|
1059 | Const LANG_NEPALI = &H61
|
---|
1060 | Const LANG_NORWEGIAN = &H14
|
---|
1061 | Const LANG_ORIYA = &H48
|
---|
1062 | Const LANG_POLISH = &H15
|
---|
1063 | Const LANG_PORTUGUESE = &H16
|
---|
1064 | Const LANG_PUNJABI = &H46
|
---|
1065 | Const LANG_ROMANIAN = &H18
|
---|
1066 | Const LANG_RUSSIAN = &H19
|
---|
1067 | Const LANG_SANSKRIT = &H4f
|
---|
1068 | Const LANG_SERBIAN = &H1a
|
---|
1069 | Const LANG_SINDHI = &H59
|
---|
1070 | Const LANG_SLOVAK = &H1b
|
---|
1071 | Const LANG_SLOVENIAN = &H24
|
---|
1072 | Const LANG_SPANISH = &H0a
|
---|
1073 | Const LANG_SWAHILI = &H41
|
---|
1074 | Const LANG_SWEDISH = &H1d
|
---|
1075 | Const LANG_SYRIAC = &H5a
|
---|
1076 | Const LANG_TAMIL = &H49
|
---|
1077 | Const LANG_TATAR = &H44
|
---|
1078 | Const LANG_TELUGU = &H4a
|
---|
1079 | Const LANG_THAI = &H1e
|
---|
1080 | Const LANG_TURKISH = &H1f
|
---|
1081 | Const LANG_UKRAINIAN = &H22
|
---|
1082 | Const LANG_URDU = &H20
|
---|
1083 | Const LANG_UZBEK = &H43
|
---|
1084 | Const LANG_VIETNAMESE = &H2a
|
---|
1085 |
|
---|
1086 | '
|
---|
1087 | ' Sublanguage IDs.
|
---|
1088 | '
|
---|
1089 | ' The name immediately following SUBLANG_ dictates which primary
|
---|
1090 | ' language ID that sublanguage ID can be combined with to form a
|
---|
1091 | ' valid language ID.
|
---|
1092 | '
|
---|
1093 |
|
---|
1094 | Const SUBLANG_NEUTRAL = &H00 ' language neutral
|
---|
1095 | Const SUBLANG_DEFAULT = &H01 ' user default
|
---|
1096 | Const SUBLANG_SYS_DEFAULT = &H02 ' system default
|
---|
1097 |
|
---|
1098 | Const SUBLANG_ARABIC_SAUDI_ARABIA = &H01 ' Arabic (Saudi Arabia)
|
---|
1099 | Const SUBLANG_ARABIC_IRAQ = &H02 ' Arabic (Iraq)
|
---|
1100 | Const SUBLANG_ARABIC_EGYPT = &H03 ' Arabic (Egypt)
|
---|
1101 | Const SUBLANG_ARABIC_LIBYA = &H04 ' Arabic (Libya)
|
---|
1102 | Const SUBLANG_ARABIC_ALGERIA = &H05 ' Arabic (Algeria)
|
---|
1103 | Const SUBLANG_ARABIC_MOROCCO = &H06 ' Arabic (Morocco)
|
---|
1104 | Const SUBLANG_ARABIC_TUNISIA = &H07 ' Arabic (Tunisia)
|
---|
1105 | Const SUBLANG_ARABIC_OMAN = &H08 ' Arabic (Oman)
|
---|
1106 | Const SUBLANG_ARABIC_YEMEN = &H09 ' Arabic (Yemen)
|
---|
1107 | Const SUBLANG_ARABIC_SYRIA = &H0a ' Arabic (Syria)
|
---|
1108 | Const SUBLANG_ARABIC_JORDAN = &H0b ' Arabic (Jordan)
|
---|
1109 | Const SUBLANG_ARABIC_LEBANON = &H0c ' Arabic (Lebanon)
|
---|
1110 | Const SUBLANG_ARABIC_KUWAIT = &H0d ' Arabic (Kuwait)
|
---|
1111 | Const SUBLANG_ARABIC_UAE = &H0e ' Arabic (U.A.E)
|
---|
1112 | Const SUBLANG_ARABIC_BAHRAIN = &H0f ' Arabic (Bahrain)
|
---|
1113 | Const SUBLANG_ARABIC_QATAR = &H10 ' Arabic (Qatar)
|
---|
1114 | Const SUBLANG_AZERI_LATIN = &H01 ' Azeri (Latin)
|
---|
1115 | Const SUBLANG_AZERI_CYRILLIC = &H02 ' Azeri (Cyrillic)
|
---|
1116 | Const SUBLANG_CHINESE_TRADITIONAL = &H01 ' Chinese (Taiwan)
|
---|
1117 | Const SUBLANG_CHINESE_SIMPLIFIED = &H02 ' Chinese (PR China)
|
---|
1118 | Const SUBLANG_CHINESE_HONGKONG = &H03 ' Chinese (Hong Kong S.A.R., P.R.C.)
|
---|
1119 | Const SUBLANG_CHINESE_SINGAPORE = &H04 ' Chinese (Singapore)
|
---|
1120 | Const SUBLANG_CHINESE_MACAU = &H05 ' Chinese (Macau S.A.R.)
|
---|
1121 | Const SUBLANG_DUTCH = &H01 ' Dutch
|
---|
1122 | Const SUBLANG_DUTCH_BELGIAN = &H02 ' Dutch (Belgian)
|
---|
1123 | Const SUBLANG_ENGLISH_US = &H01 ' English (USA)
|
---|
1124 | Const SUBLANG_ENGLISH_UK = &H02 ' English (UK)
|
---|
1125 | Const SUBLANG_ENGLISH_AUS = &H03 ' English (Australian)
|
---|
1126 | Const SUBLANG_ENGLISH_CAN = &H04 ' English (Canadian)
|
---|
1127 | Const SUBLANG_ENGLISH_NZ = &H05 ' English (New Zealand)
|
---|
1128 | Const SUBLANG_ENGLISH_EIRE = &H06 ' English (Irish)
|
---|
1129 | Const SUBLANG_ENGLISH_SOUTH_AFRICA = &H07 ' English (South Africa)
|
---|
1130 | Const SUBLANG_ENGLISH_JAMAICA = &H08 ' English (Jamaica)
|
---|
1131 | Const SUBLANG_ENGLISH_CARIBBEAN = &H09 ' English (Caribbean)
|
---|
1132 | Const SUBLANG_ENGLISH_BELIZE = &H0a ' English (Belize)
|
---|
1133 | Const SUBLANG_ENGLISH_TRINIDAD = &H0b ' English (Trinidad)
|
---|
1134 | Const SUBLANG_ENGLISH_ZIMBABWE = &H0c ' English (Zimbabwe)
|
---|
1135 | Const SUBLANG_ENGLISH_PHILIPPINES = &H0d ' English (Philippines)
|
---|
1136 | Const SUBLANG_FRENCH = &H01 ' French
|
---|
1137 | Const SUBLANG_FRENCH_BELGIAN = &H02 ' French (Belgian)
|
---|
1138 | Const SUBLANG_FRENCH_CANADIAN = &H03 ' French (Canadian)
|
---|
1139 | Const SUBLANG_FRENCH_SWISS = &H04 ' French (Swiss)
|
---|
1140 | Const SUBLANG_FRENCH_LUXEMBOURG = &H05 ' French (Luxembourg)
|
---|
1141 | Const SUBLANG_FRENCH_MONACO = &H06 ' French (Monaco)
|
---|
1142 | Const SUBLANG_GERMAN = &H01 ' German
|
---|
1143 | Const SUBLANG_GERMAN_SWISS = &H02 ' German (Swiss)
|
---|
1144 | Const SUBLANG_GERMAN_AUSTRIAN = &H03 ' German (Austrian)
|
---|
1145 | Const SUBLANG_GERMAN_LUXEMBOURG = &H04 ' German (Luxembourg)
|
---|
1146 | Const SUBLANG_GERMAN_LIECHTENSTEIN = &H05 ' German (Liechtenstein)
|
---|
1147 | Const SUBLANG_ITALIAN = &H01 ' Italian
|
---|
1148 | Const SUBLANG_ITALIAN_SWISS = &H02 ' Italian (Swiss)
|
---|
1149 | Const SUBLANG_KASHMIRI_SASIA = &H02 ' Kashmiri (South Asia)
|
---|
1150 | Const SUBLANG_KOREAN = &H01 ' Korean (Extended Wansung)
|
---|
1151 | Const SUBLANG_LITHUANIAN = &H01 ' Lithuanian
|
---|
1152 | Const SUBLANG_MALAY_MALAYSIA = &H01 ' Malay (Malaysia)
|
---|
1153 | Const SUBLANG_MALAY_BRUNEI_DARUSSALAM = &H02 ' Malay (Brunei Darussalam)
|
---|
1154 | Const SUBLANG_NEPALI_INDIA = &H02 ' Nepali (India)
|
---|
1155 | Const SUBLANG_NORWEGIAN_BOKMAL = &H01 ' Norwegian (Bokmal)
|
---|
1156 | Const SUBLANG_NORWEGIAN_NYNORSK = &H02 ' Norwegian (Nynorsk)
|
---|
1157 | Const SUBLANG_PORTUGUESE = &H02 ' Portuguese
|
---|
1158 | Const SUBLANG_PORTUGUESE_BRAZILIAN = &H01 ' Portuguese (Brazilian)
|
---|
1159 | Const SUBLANG_SERBIAN_LATIN = &H02 ' Serbian (Latin)
|
---|
1160 | Const SUBLANG_SERBIAN_CYRILLIC = &H03 ' Serbian (Cyrillic)
|
---|
1161 | Const SUBLANG_SPANISH = &H01 ' Spanish (Castilian)
|
---|
1162 | Const SUBLANG_SPANISH_MEXICAN = &H02 ' Spanish (Mexican)
|
---|
1163 | Const SUBLANG_SPANISH_MODERN = &H03 ' Spanish (Spain)
|
---|
1164 | Const SUBLANG_SPANISH_GUATEMALA = &H04 ' Spanish (Guatemala)
|
---|
1165 | Const SUBLANG_SPANISH_COSTA_RICA = &H05 ' Spanish (Costa Rica)
|
---|
1166 | Const SUBLANG_SPANISH_PANAMA = &H06 ' Spanish (Panama)
|
---|
1167 | Const SUBLANG_SPANISH_DOMINICAN_REPUBLIC = &H07 ' Spanish (Dominican Republic)
|
---|
1168 | Const SUBLANG_SPANISH_VENEZUELA = &H08 ' Spanish (Venezuela)
|
---|
1169 | Const SUBLANG_SPANISH_COLOMBIA = &H09 ' Spanish (Colombia)
|
---|
1170 | Const SUBLANG_SPANISH_PERU = &H0a ' Spanish (Peru)
|
---|
1171 | Const SUBLANG_SPANISH_ARGENTINA = &H0b ' Spanish (Argentina)
|
---|
1172 | Const SUBLANG_SPANISH_ECUADOR = &H0c ' Spanish (Ecuador)
|
---|
1173 | Const SUBLANG_SPANISH_CHILE = &H0d ' Spanish (Chile)
|
---|
1174 | Const SUBLANG_SPANISH_URUGUAY = &H0e ' Spanish (Uruguay)
|
---|
1175 | Const SUBLANG_SPANISH_PARAGUAY = &H0f ' Spanish (Paraguay)
|
---|
1176 | Const SUBLANG_SPANISH_BOLIVIA = &H10 ' Spanish (Bolivia)
|
---|
1177 | Const SUBLANG_SPANISH_EL_SALVADOR = &H11 ' Spanish (El Salvador)
|
---|
1178 | Const SUBLANG_SPANISH_HONDURAS = &H12 ' Spanish (Honduras)
|
---|
1179 | Const SUBLANG_SPANISH_NICARAGUA = &H13 ' Spanish (Nicaragua)
|
---|
1180 | Const SUBLANG_SPANISH_PUERTO_RICO = &H14 ' Spanish (Puerto Rico)
|
---|
1181 | Const SUBLANG_SWEDISH = &H01 ' Swedish
|
---|
1182 | Const SUBLANG_SWEDISH_FINLAND = &H02 ' Swedish (Finland)
|
---|
1183 | Const SUBLANG_URDU_PAKISTAN = &H01 ' Urdu (Pakistan)
|
---|
1184 | Const SUBLANG_URDU_INDIA = &H02 ' Urdu (India)
|
---|
1185 | Const SUBLANG_UZBEK_LATIN = &H01 ' Uzbek (Latin)
|
---|
1186 | Const SUBLANG_UZBEK_CYRILLIC = &H02 ' Uzbek (Cyrillic)
|
---|
1187 |
|
---|
1188 |
|
---|
1189 | Const LANG_SYSTEM_DEFAULT = (MAKELANGID(LANG_NEUTRAL, SUBLANG_SYS_DEFAULT))
|
---|
1190 | Const LANG_USER_DEFAULT = (MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT))
|
---|
1191 |
|
---|
1192 |
|
---|
1193 | '
|
---|
1194 | ' Sorting IDs.
|
---|
1195 | '
|
---|
1196 |
|
---|
1197 | Const SORT_DEFAULT = &H0 ' sorting default
|
---|
1198 |
|
---|
1199 | Const SORT_JAPANESE_XJIS = &H0 ' Japanese XJIS order
|
---|
1200 | Const SORT_JAPANESE_UNICODE = &H1 ' Japanese Unicode order
|
---|
1201 |
|
---|
1202 | Const SORT_CHINESE_BIG5 = &H0 ' Chinese BIG5 order
|
---|
1203 | Const SORT_CHINESE_PRCP = &H0 ' PRC Chinese Phonetic order
|
---|
1204 | Const SORT_CHINESE_UNICODE = &H1 ' Chinese Unicode order
|
---|
1205 | Const SORT_CHINESE_PRC = &H2 ' PRC Chinese Stroke Count order
|
---|
1206 | Const SORT_CHINESE_BOPOMOFO = &H3 ' Traditional Chinese Bopomofo order
|
---|
1207 |
|
---|
1208 | Const SORT_KOREAN_KSC = &H0 ' Korean KSC order
|
---|
1209 | Const SORT_KOREAN_UNICODE = &H1 ' Korean Unicode order
|
---|
1210 |
|
---|
1211 | Const SORT_GERMAN_PHONE_BOOK = &H1 ' German Phone Book order
|
---|
1212 |
|
---|
1213 | Const SORT_HUNGARIAN_DEFAULT = &H0 ' Hungarian Default order
|
---|
1214 | Const SORT_HUNGARIAN_TECHNICAL = &H1 ' Hungarian Technical order
|
---|
1215 |
|
---|
1216 | Const SORT_GEORGIAN_TRADITIONAL = &H0 ' Georgian Traditional order
|
---|
1217 | Const SORT_GEORGIAN_MODERN = &H1 ' Georgian Modern order
|
---|
1218 |
|
---|
1219 | '
|
---|
1220 | ' Wait functions' results.
|
---|
1221 | '
|
---|
1222 | Const WAIT_FAILED = (&hFFFFFFFF As DWord)
|
---|
1223 | Const WAIT_OBJECT_0 = 0 '((STATUS_WAIT_0 ) + 0)
|
---|
1224 |
|
---|
1225 | Const WAIT_ABANDONED = &h00000080 As DWord '((STATUS_ABANDONED_WAIT_0 ) + 0)
|
---|
1226 | Const WAIT_ABANDONED_0 = WAIT_ABANDONED '((STATUS_ABANDONED_WAIT_0 ) + 0)
|
---|
1227 |
|
---|
1228 | Const WAIT_IO_COMPLETION = &h000000C0 'STATUS_USER_APC
|
---|
1229 |
|
---|
1230 | #endif '_INC_SYSTEM
|
---|