2 * Internal NT APIs and data structures
4 * Copyright (C) the Wine project
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #ifndef __WINE_WINTERNL_H
22 #define __WINE_WINTERNL_H
29 #endif /* defined(__cplusplus) */
32 /**********************************************************************
33 * Fundamental types and data structures
36 #ifndef WINE_NTSTATUS_DECLARED
37 #define WINE_NTSTATUS_DECLARED
38 typedef LONG NTSTATUS
;
41 typedef const char *PCSZ
;
44 typedef CSHORT
*PCSHORT
;
46 #ifndef __STRING_DEFINED__
47 #define __STRING_DEFINED__
48 typedef struct _STRING
{
55 typedef STRING ANSI_STRING
;
56 typedef PSTRING PANSI_STRING
;
57 typedef const STRING
*PCANSI_STRING
;
59 typedef STRING OEM_STRING
;
60 typedef PSTRING POEM_STRING
;
61 typedef const STRING
*PCOEM_STRING
;
63 #ifndef __UNICODE_STRING_DEFINED__
64 #define __UNICODE_STRING_DEFINED__
65 typedef struct _UNICODE_STRING
{
66 USHORT Length
; /* bytes */
67 USHORT MaximumLength
; /* bytes */
69 } UNICODE_STRING
, *PUNICODE_STRING
;
72 typedef const UNICODE_STRING
*PCUNICODE_STRING
;
76 /* 64 bit number of 100 nanoseconds intervals since January 1, 1601 */
77 typedef struct _FILETIME
79 #ifdef WORDS_BIGENDIAN
86 } FILETIME
, *PFILETIME
, *LPFILETIME
;
87 #endif /* _FILETIME_ */
90 * RTL_SYSTEM_TIME and RTL_TIME_ZONE_INFORMATION are the same as
91 * the SYSTEMTIME and TIME_ZONE_INFORMATION structures defined
92 * in winbase.h, however we need to define them separately so
93 * winternl.h doesn't depend on winbase.h. They are used by
94 * RtlQueryTimeZoneInformation and RtlSetTimeZoneInformation.
95 * The names are guessed; if anybody knows the real names, let me know.
97 typedef struct _RTL_SYSTEM_TIME
{
106 } RTL_SYSTEM_TIME
, *PRTL_SYSTEM_TIME
;
108 typedef struct _RTL_TIME_ZONE_INFORMATION
{
110 WCHAR StandardName
[32];
111 RTL_SYSTEM_TIME StandardDate
;
113 WCHAR DaylightName
[32];
114 RTL_SYSTEM_TIME DaylightDate
;
116 } RTL_TIME_ZONE_INFORMATION
, *PRTL_TIME_ZONE_INFORMATION
;
118 typedef struct _RTL_TIME_DYNAMIC_ZONE_INFORMATION
121 WCHAR StandardName
[32];
122 RTL_SYSTEM_TIME StandardDate
;
124 WCHAR DaylightName
[32];
125 RTL_SYSTEM_TIME DaylightDate
;
127 WCHAR TimeZoneKeyName
[128];
128 BOOLEAN DynamicDaylightTimeDisabled
;
129 } RTL_DYNAMIC_TIME_ZONE_INFORMATION
, *PRTL_DYNAMIC_TIME_ZONE_INFORMATION
;
131 typedef struct _CLIENT_ID
133 HANDLE UniqueProcess
;
135 } CLIENT_ID
, *PCLIENT_ID
;
137 typedef struct _CURDIR
139 UNICODE_STRING DosPath
;
143 typedef struct RTL_DRIVE_LETTER_CURDIR
148 UNICODE_STRING DosPath
;
149 } RTL_DRIVE_LETTER_CURDIR
, *PRTL_DRIVE_LETTER_CURDIR
;
151 typedef struct _RTL_RELATIVE_NAME
153 UNICODE_STRING RelativeName
;
154 HANDLE ContainerDirectory
;
156 } RTL_RELATIVE_NAME
, *PRTL_RELATIVE_NAME
;
158 typedef struct tagRTL_BITMAP
{
159 ULONG SizeOfBitMap
; /* Number of bits in the bitmap */
160 PULONG Buffer
; /* Bitmap data, assumed sized to a DWORD boundary */
161 } RTL_BITMAP
, *PRTL_BITMAP
;
163 typedef const RTL_BITMAP
*PCRTL_BITMAP
;
165 typedef struct tagRTL_BITMAP_RUN
{
166 ULONG StartingIndex
; /* Bit position at which run starts */
167 ULONG NumberOfBits
; /* Size of the run in bits */
168 } RTL_BITMAP_RUN
, *PRTL_BITMAP_RUN
;
170 typedef const RTL_BITMAP_RUN
*PCRTL_BITMAP_RUN
;
172 typedef struct _RTL_USER_PROCESS_PARAMETERS
174 ULONG AllocationSize
;
178 HANDLE ConsoleHandle
;
183 CURDIR CurrentDirectory
;
184 UNICODE_STRING DllPath
;
185 UNICODE_STRING ImagePathName
;
186 UNICODE_STRING CommandLine
;
194 ULONG dwFillAttribute
;
197 UNICODE_STRING WindowTitle
;
198 UNICODE_STRING Desktop
;
199 UNICODE_STRING ShellInfo
;
200 UNICODE_STRING RuntimeInfo
;
201 RTL_DRIVE_LETTER_CURDIR DLCurrentDirectory
[0x20];
202 } RTL_USER_PROCESS_PARAMETERS
, *PRTL_USER_PROCESS_PARAMETERS
;
204 /* value for Flags field (FIXME: not the correct name) */
205 #define PROCESS_PARAMS_FLAG_NORMALIZED 1
207 typedef struct _PEB_LDR_DATA
212 LIST_ENTRY InLoadOrderModuleList
;
213 LIST_ENTRY InMemoryOrderModuleList
;
214 LIST_ENTRY InInitializationOrderModuleList
;
215 PVOID EntryInProgress
;
216 BOOLEAN ShutdownInProgress
;
217 HANDLE ShutdownThreadId
;
218 } PEB_LDR_DATA
, *PPEB_LDR_DATA
;
220 typedef struct _GDI_TEB_BATCH
227 typedef struct _RTL_ACTIVATION_CONTEXT_STACK_FRAME
229 struct _RTL_ACTIVATION_CONTEXT_STACK_FRAME
*Previous
;
230 struct _ACTIVATION_CONTEXT
*ActivationContext
;
232 } RTL_ACTIVATION_CONTEXT_STACK_FRAME
, *PRTL_ACTIVATION_CONTEXT_STACK_FRAME
;
234 typedef struct _ACTIVATION_CONTEXT_STACK
236 RTL_ACTIVATION_CONTEXT_STACK_FRAME
*ActiveFrame
;
237 LIST_ENTRY FrameListCache
;
239 ULONG NextCookieSequenceNumber
;
241 } ACTIVATION_CONTEXT_STACK
, *PACTIVATION_CONTEXT_STACK
;
243 typedef struct _TEB_ACTIVE_FRAME_CONTEXT
246 const char *FrameName
;
247 } TEB_ACTIVE_FRAME_CONTEXT
, *PTEB_ACTIVE_FRAME_CONTEXT
;
249 typedef struct _TEB_ACTIVE_FRAME_CONTEXT_EX
251 TEB_ACTIVE_FRAME_CONTEXT BasicContext
;
252 const char *SourceLocation
;
253 } TEB_ACTIVE_FRAME_CONTEXT_EX
, *PTEB_ACTIVE_FRAME_CONTEXT_EX
;
255 typedef struct _TEB_ACTIVE_FRAME
258 struct _TEB_ACTIVE_FRAME
*Previous
;
259 TEB_ACTIVE_FRAME_CONTEXT
*Context
;
260 } TEB_ACTIVE_FRAME
, *PTEB_ACTIVE_FRAME
;
262 typedef struct _TEB_ACTIVE_FRAME_EX
264 TEB_ACTIVE_FRAME BasicFrame
;
265 void *ExtensionIdentifier
;
266 } TEB_ACTIVE_FRAME_EX
, *PTEB_ACTIVE_FRAME_EX
;
268 typedef struct _FLS_CALLBACK
271 PFLS_CALLBACK_FUNCTION callback
; /* ~0 if NULL callback is set, NULL if FLS index is free. */
272 } FLS_CALLBACK
, *PFLS_CALLBACK
;
274 typedef struct _FLS_INFO_CHUNK
276 ULONG count
; /* number of allocated FLS indexes in the chunk. */
277 FLS_CALLBACK callbacks
[1]; /* the size is 0x10 for chunk 0 and is twice as
278 * the previous chunk size for the rest. */
279 } FLS_INFO_CHUNK
, *PFLS_INFO_CHUNK
;
281 typedef struct _GLOBAL_FLS_DATA
283 FLS_INFO_CHUNK
*fls_callback_chunks
[8];
284 LIST_ENTRY fls_list_head
;
285 ULONG fls_high_index
;
286 } GLOBAL_FLS_DATA
, *PGLOBAL_FLS_DATA
;
288 typedef struct _TEB_FLS_DATA
290 LIST_ENTRY fls_list_entry
;
291 void **fls_data_chunks
[8];
292 } TEB_FLS_DATA
, *PTEB_FLS_DATA
;
294 #define TEB_ACTIVE_FRAME_CONTEXT_FLAG_EXTENDED 0x00000001
295 #define TEB_ACTIVE_FRAME_FLAG_EXTENDED 0x00000001
297 /***********************************************************************
302 BOOLEAN InheritedAddressSpace
; /* 000/000 */
303 BOOLEAN ReadImageFileExecOptions
; /* 001/001 */
304 BOOLEAN BeingDebugged
; /* 002/002 */
305 BOOLEAN SpareBool
; /* 003/003 */
306 HANDLE Mutant
; /* 004/008 */
307 HMODULE ImageBaseAddress
; /* 008/010 */
308 PPEB_LDR_DATA LdrData
; /* 00c/018 */
309 RTL_USER_PROCESS_PARAMETERS
*ProcessParameters
; /* 010/020 */
310 PVOID SubSystemData
; /* 014/028 */
311 HANDLE ProcessHeap
; /* 018/030 */
312 PRTL_CRITICAL_SECTION FastPebLock
; /* 01c/038 */
313 PVOID
/*PPEBLOCKROUTINE*/ FastPebLockRoutine
; /* 020/040 */
314 PVOID
/*PPEBLOCKROUTINE*/ FastPebUnlockRoutine
; /* 024/048 */
315 ULONG EnvironmentUpdateCount
; /* 028/050 */
316 PVOID KernelCallbackTable
; /* 02c/058 */
317 ULONG Reserved
; /* 030/060 */
318 ULONG AtlThunkSListPtr32
; /* 034/064 */
319 PVOID
/*PPEB_FREE_BLOCK*/ FreeList
; /* 038/068 */
320 ULONG TlsExpansionCounter
; /* 03c/070 */
321 PRTL_BITMAP TlsBitmap
; /* 040/078 */
322 ULONG TlsBitmapBits
[2]; /* 044/080 */
323 PVOID ReadOnlySharedMemoryBase
; /* 04c/088 */
324 PVOID ReadOnlySharedMemoryHeap
; /* 050/090 */
325 PVOID
*ReadOnlyStaticServerData
; /* 054/098 */
326 PVOID AnsiCodePageData
; /* 058/0a0 */
327 PVOID OemCodePageData
; /* 05c/0a8 */
328 PVOID UnicodeCaseTableData
; /* 060/0b0 */
329 ULONG NumberOfProcessors
; /* 064/0b8 */
330 ULONG NtGlobalFlag
; /* 068/0bc */
331 LARGE_INTEGER CriticalSectionTimeout
; /* 070/0c0 */
332 SIZE_T HeapSegmentReserve
; /* 078/0c8 */
333 SIZE_T HeapSegmentCommit
; /* 07c/0d0 */
334 SIZE_T HeapDeCommitTotalFreeThreshold
; /* 080/0d8 */
335 SIZE_T HeapDeCommitFreeBlockThreshold
; /* 084/0e0 */
336 ULONG NumberOfHeaps
; /* 088/0e8 */
337 ULONG MaximumNumberOfHeaps
; /* 08c/0ec */
338 PVOID
*ProcessHeaps
; /* 090/0f0 */
339 PVOID GdiSharedHandleTable
; /* 094/0f8 */
340 PVOID ProcessStarterHelper
; /* 098/100 */
341 PVOID GdiDCAttributeList
; /* 09c/108 */
342 PVOID LoaderLock
; /* 0a0/110 */
343 ULONG OSMajorVersion
; /* 0a4/118 */
344 ULONG OSMinorVersion
; /* 0a8/11c */
345 ULONG OSBuildNumber
; /* 0ac/120 */
346 ULONG OSPlatformId
; /* 0b0/124 */
347 ULONG ImageSubSystem
; /* 0b4/128 */
348 ULONG ImageSubSystemMajorVersion
; /* 0b8/12c */
349 ULONG ImageSubSystemMinorVersion
; /* 0bc/130 */
350 ULONG ImageProcessAffinityMask
; /* 0c0/134 */
351 HANDLE GdiHandleBuffer
[28]; /* 0c4/138 */
352 ULONG unknown
[6]; /* 134/218 */
353 PVOID PostProcessInitRoutine
; /* 14c/230 */
354 PRTL_BITMAP TlsExpansionBitmap
; /* 150/238 */
355 ULONG TlsExpansionBitmapBits
[32]; /* 154/240 */
356 ULONG SessionId
; /* 1d4/2c0 */
357 ULARGE_INTEGER AppCompatFlags
; /* 1d8/2c8 */
358 ULARGE_INTEGER AppCompatFlagsUser
; /* 1e0/2d0 */
359 PVOID ShimData
; /* 1e8/2d8 */
360 PVOID AppCompatInfo
; /* 1ec/2e0 */
361 UNICODE_STRING CSDVersion
; /* 1f0/2e8 */
362 PVOID ActivationContextData
; /* 1f8/2f8 */
363 PVOID ProcessAssemblyStorageMap
; /* 1fc/300 */
364 PVOID SystemDefaultActivationData
; /* 200/308 */
365 PVOID SystemAssemblyStorageMap
; /* 204/310 */
366 SIZE_T MinimumStackCommit
; /* 208/318 */
367 PVOID
*FlsCallback
; /* 20c/320 */
368 LIST_ENTRY FlsListHead
; /* 210/328 */
369 PRTL_BITMAP FlsBitmap
; /* 218/338 */
370 ULONG FlsBitmapBits
[4]; /* 21c/340 */
371 ULONG FlsHighIndex
; /* 22c/350 */
372 PVOID WerRegistrationData
; /* 230/358 */
373 PVOID WerShipAssertPtr
; /* 234/360 */
374 PVOID pUnused
; /* 238/368 */
375 PVOID pImageHeaderHash
; /* 23c/370 */
376 ULONG TracingFlags
; /* 240/378 */
377 ULONGLONG CsrServerReadOnlySharedMemoryBase
; /* 248/380 */
378 ULONG TppWorkerpListLock
; /* 250/388 */
379 LIST_ENTRY TppWorkerpList
; /* 254/390 */
380 PVOID WaitOnAddressHashTable
[0x80]; /* 25c/3a0 */
381 PVOID TelemetryCoverageHeader
; /* 45c/7a0 */
382 ULONG CloudFileFlags
; /* 460/7a8 */
383 ULONG CloudFileDiagFlags
; /* 464/7ac */
384 CHAR PlaceholderCompatibilityMode
; /* 468/7b0 */
385 CHAR PlaceholderCompatibilityModeReserved
[7]; /* 469/7b1 */
386 PVOID LeapSecondData
; /* 470/7b8 */
387 ULONG LeapSecondFlags
; /* 474/7c0 */
388 ULONG NtGlobalFlag2
; /* 478/7c4 */
392 /***********************************************************************
397 NT_TIB Tib
; /* 000/0000 */
398 PVOID EnvironmentPointer
; /* 01c/0038 */
399 CLIENT_ID ClientId
; /* 020/0040 */
400 PVOID ActiveRpcHandle
; /* 028/0050 */
401 PVOID ThreadLocalStoragePointer
; /* 02c/0058 */
402 PPEB Peb
; /* 030/0060 */
403 ULONG LastErrorValue
; /* 034/0068 */
404 ULONG CountOfOwnedCriticalSections
; /* 038/006c */
405 PVOID CsrClientThread
; /* 03c/0070 */
406 PVOID Win32ThreadInfo
; /* 040/0078 */
407 ULONG User32Reserved
[26]; /* 044/0080 */
408 ULONG UserReserved
[5]; /* 0ac/00e8 */
409 PVOID WOW32Reserved
; /* 0c0/0100 */
410 ULONG CurrentLocale
; /* 0c4/0108 */
411 ULONG FpSoftwareStatusRegister
; /* 0c8/010c */
412 PVOID ReservedForDebuggerInstrumentation
[16]; /* 0cc/0110 */
414 PVOID SystemReserved1
[30]; /* /0190 */
416 PVOID SystemReserved1
[26]; /* 10c/ used for krnl386 private data in Wine */
418 char PlaceholderCompatibilityMode
; /* 174/0280 */
419 char PlaceholderReserved
[11]; /* 175/0281 */
420 DWORD ProxiedProcessId
; /* 180/028c */
421 ACTIVATION_CONTEXT_STACK ActivationContextStack
; /* 184/0290 */
422 UCHAR WorkingOnBehalfOfTicket
[8]; /* 19c/02b8 */
423 LONG ExceptionCode
; /* 1a4/02c0 */
424 ACTIVATION_CONTEXT_STACK
*ActivationContextStackPointer
; /* 1a8/02c8 */
425 ULONG_PTR InstrumentationCallbackSp
; /* 1ac/02d0 */
426 ULONG_PTR InstrumentationCallbackPreviousPc
; /* 1b0/02d8 */
427 ULONG_PTR InstrumentationCallbackPreviousSp
; /* 1b4/02e0 */
429 ULONG TxFsContext
; /* /02e8 */
430 BOOLEAN InstrumentationCallbackDisabled
; /* /02ec */
432 BOOLEAN InstrumentationCallbackDisabled
; /* 1b8/ */
433 BYTE SpareBytes1
[23]; /* 1b9/ */
434 ULONG TxFsContext
; /* 1d0/ */
436 GDI_TEB_BATCH GdiTebBatch
; /* 1d4/02f0 used for ntdll private data in Wine */
437 CLIENT_ID RealClientId
; /* 6b4/07d8 */
438 HANDLE GdiCachedProcessHandle
; /* 6bc/07e8 */
439 ULONG GdiClientPID
; /* 6c0/07f0 */
440 ULONG GdiClientTID
; /* 6c4/07f4 */
441 PVOID GdiThreadLocaleInfo
; /* 6c8/07f8 */
442 ULONG_PTR Win32ClientInfo
[62]; /* 6cc/0800 used for user32 private data in Wine */
443 PVOID glDispatchTable
[233]; /* 7c4/09f0 */
444 PVOID glReserved1
[29]; /* b68/1138 */
445 PVOID glReserved2
; /* bdc/1220 */
446 PVOID glSectionInfo
; /* be0/1228 */
447 PVOID glSection
; /* be4/1230 */
448 PVOID glTable
; /* be8/1238 */
449 PVOID glCurrentRC
; /* bec/1240 */
450 PVOID glContext
; /* bf0/1248 */
451 ULONG LastStatusValue
; /* bf4/1250 */
452 UNICODE_STRING StaticUnicodeString
; /* bf8/1258 */
453 WCHAR StaticUnicodeBuffer
[261]; /* c00/1268 */
454 PVOID DeallocationStack
; /* e0c/1478 */
455 PVOID TlsSlots
[64]; /* e10/1480 */
456 LIST_ENTRY TlsLinks
; /* f10/1680 */
457 PVOID Vdm
; /* f18/1690 */
458 PVOID ReservedForNtRpc
; /* f1c/1698 */
459 PVOID DbgSsReserved
[2]; /* f20/16a0 */
460 ULONG HardErrorDisabled
; /* f28/16b0 */
461 PVOID Instrumentation
[16]; /* f2c/16b8 */
462 PVOID WinSockData
; /* f6c/1738 */
463 ULONG GdiBatchCount
; /* f70/1740 */
464 ULONG Spare2
; /* f74/1744 */
465 ULONG GuaranteedStackBytes
; /* f78/1748 */
466 PVOID ReservedForPerf
; /* f7c/1750 */
467 PVOID ReservedForOle
; /* f80/1758 */
468 ULONG WaitingOnLoaderLock
; /* f84/1760 */
469 PVOID Reserved5
[3]; /* f88/1768 */
470 PVOID
*TlsExpansionSlots
; /* f94/1780 */
472 PVOID DeallocationBStore
; /* /1788 */
473 PVOID BStoreLimit
; /* /1790 */
475 ULONG ImpersonationLocale
; /* f98/1798 */
476 ULONG IsImpersonating
; /* f9c/179c */
477 PVOID NlsCache
; /* fa0/17a0 */
478 PVOID ShimData
; /* fa4/17a8 */
479 ULONG HeapVirtualAffinity
; /* fa8/17b0 */
480 PVOID CurrentTransactionHandle
; /* fac/17b8 */
481 TEB_ACTIVE_FRAME
*ActiveFrame
; /* fb0/17c0 */
482 TEB_FLS_DATA
*FlsSlots
; /* fb4/17c8 */
483 PVOID PreferredLanguages
; /* fb8/17d0 */
484 PVOID UserPrefLanguages
; /* fbc/17d8 */
485 PVOID MergedPrefLanguages
; /* fc0/17e0 */
486 ULONG MuiImpersonation
; /* fc4/17e8 */
487 USHORT CrossTebFlags
; /* fc8/17ec */
488 USHORT SameTebFlags
; /* fca/17ee */
489 PVOID TxnScopeEnterCallback
; /* fcc/17f0 */
490 PVOID TxnScopeExitCallback
; /* fd0/17f8 */
491 PVOID TxnScopeContext
; /* fd4/1800 */
492 ULONG LockCount
; /* fd8/1808 */
493 LONG WowTebOffset
; /* fdc/180c */
494 PVOID ResourceRetValue
; /* fe0/1810 */
495 PVOID ReservedForWdf
; /* fe4/1818 */
496 ULONGLONG ReservedForCrt
; /* fe8/1820 */
497 GUID EffectiveContainerId
; /* ff0/1828 */
501 /***********************************************************************
502 * The 64-bit version of the PEB and TEB for WoW64
506 typedef struct _NT_TIB64
508 ULONG64 ExceptionList
; /* 0000 */
509 ULONG64 StackBase
; /* 0008 */
510 ULONG64 StackLimit
; /* 0010 */
511 ULONG64 SubSystemTib
; /* 0018 */
512 ULONG64 FiberData
; /* 0020 */
513 ULONG64 ArbitraryUserPointer
; /* 0028 */
514 ULONG64 Self
; /* 0030 */
517 typedef struct _CLIENT_ID64
519 ULONG64 UniqueProcess
;
520 ULONG64 UniqueThread
;
523 typedef struct _LIST_ENTRY64
529 typedef struct _UNICODE_STRING64
532 USHORT MaximumLength
;
536 typedef struct _ACTIVATION_CONTEXT_STACK64
539 LIST_ENTRY64 FrameListCache
;
541 ULONG NextCookieSequenceNumber
;
543 } ACTIVATION_CONTEXT_STACK64
;
545 typedef struct _PEB64
547 BOOLEAN InheritedAddressSpace
; /* 0000 */
548 BOOLEAN ReadImageFileExecOptions
; /* 0001 */
549 BOOLEAN BeingDebugged
; /* 0002 */
550 BOOLEAN SpareBool
; /* 0003 */
551 ULONG64 Mutant
; /* 0008 */
552 ULONG64 ImageBaseAddress
; /* 0010 */
553 ULONG64 LdrData
; /* 0018 */
554 ULONG64 ProcessParameters
; /* 0020 */
555 ULONG64 SubSystemData
; /* 0028 */
556 ULONG64 ProcessHeap
; /* 0030 */
557 ULONG64 FastPebLock
; /* 0038 */
558 ULONG64 FastPebLockRoutine
; /* 0040 */
559 ULONG64 FastPebUnlockRoutine
; /* 0048 */
560 ULONG EnvironmentUpdateCount
; /* 0050 */
561 ULONG64 KernelCallbackTable
; /* 0058 */
562 ULONG Reserved
; /* 0060 */
563 ULONG AtlThunkSListPtr32
; /* 0064 */
564 ULONG64 FreeList
; /* 0068 */
565 ULONG TlsExpansionCounter
; /* 0070 */
566 ULONG64 TlsBitmap
; /* 0078 */
567 ULONG TlsBitmapBits
[2]; /* 0080 */
568 ULONG64 ReadOnlySharedMemoryBase
; /* 0088 */
569 ULONG64 ReadOnlySharedMemoryHeap
; /* 0090 */
570 ULONG64 ReadOnlyStaticServerData
; /* 0098 */
571 ULONG64 AnsiCodePageData
; /* 00a0 */
572 ULONG64 OemCodePageData
; /* 00a8 */
573 ULONG64 UnicodeCaseTableData
; /* 00b0 */
574 ULONG NumberOfProcessors
; /* 00b8 */
575 ULONG NtGlobalFlag
; /* 00bc */
576 LARGE_INTEGER CriticalSectionTimeout
; /* 00c0 */
577 ULONG64 HeapSegmentReserve
; /* 00c8 */
578 ULONG64 HeapSegmentCommit
; /* 00d0 */
579 ULONG64 HeapDeCommitTotalFreeThreshold
; /* 00d8 */
580 ULONG64 HeapDeCommitFreeBlockThreshold
; /* 00e0 */
581 ULONG NumberOfHeaps
; /* 00e8 */
582 ULONG MaximumNumberOfHeaps
; /* 00ec */
583 ULONG64 ProcessHeaps
; /* 00f0 */
584 ULONG64 GdiSharedHandleTable
; /* 00f8 */
585 ULONG64 ProcessStarterHelper
; /* 0100 */
586 ULONG64 GdiDCAttributeList
; /* 0108 */
587 ULONG64 LoaderLock
; /* 0110 */
588 ULONG OSMajorVersion
; /* 0118 */
589 ULONG OSMinorVersion
; /* 011c */
590 ULONG OSBuildNumber
; /* 0120 */
591 ULONG OSPlatformId
; /* 0124 */
592 ULONG ImageSubSystem
; /* 0128 */
593 ULONG ImageSubSystemMajorVersion
; /* 012c */
594 ULONG ImageSubSystemMinorVersion
; /* 0130 */
595 ULONG ImageProcessAffinityMask
; /* 0134 */
596 ULONG64 GdiHandleBuffer
[28]; /* 0138 */
597 ULONG unknown
[6]; /* 0218 */
598 ULONG64 PostProcessInitRoutine
; /* 0230 */
599 ULONG64 TlsExpansionBitmap
; /* 0238 */
600 ULONG TlsExpansionBitmapBits
[32]; /* 0240 */
601 ULONG SessionId
; /* 02c0 */
602 ULARGE_INTEGER AppCompatFlags
; /* 02c8 */
603 ULARGE_INTEGER AppCompatFlagsUser
; /* 02d0 */
604 ULONG64 ShimData
; /* 02d8 */
605 ULONG64 AppCompatInfo
; /* 02e0 */
606 UNICODE_STRING64 CSDVersion
; /* 02e8 */
607 ULONG64 ActivationContextData
; /* 02f8 */
608 ULONG64 ProcessAssemblyStorageMap
; /* 0300 */
609 ULONG64 SystemDefaultActivationData
; /* 0308 */
610 ULONG64 SystemAssemblyStorageMap
; /* 0310 */
611 ULONG64 MinimumStackCommit
; /* 0318 */
612 ULONG64 FlsCallback
; /* 0320 */
613 LIST_ENTRY64 FlsListHead
; /* 0328 */
614 ULONG64 FlsBitmap
; /* 0338 */
615 ULONG FlsBitmapBits
[4]; /* 0340 */
616 ULONG FlsHighIndex
; /* 0350 */
617 ULONG64 WerRegistrationData
; /* 0358 */
618 ULONG64 WerShipAssertPtr
; /* 0360 */
619 ULONG64 pUnused
; /* 0368 */
620 ULONG64 pImageHeaderHash
; /* 0370 */
621 ULONG TracingFlags
; /* 0378 */
622 ULONGLONG CsrServerReadOnlySharedMemoryBase
; /* 0380 */
623 ULONG TppWorkerpListLock
; /* 0388 */
624 LIST_ENTRY64 TppWorkerpList
; /* 0390 */
625 ULONG64 WaitOnAddressHashTable
[0x80]; /* 03a0 */
626 ULONG64 TelemetryCoverageHeader
; /* 07a0 */
627 ULONG CloudFileFlags
; /* 07a8 */
628 ULONG CloudFileDiagFlags
; /* 07ac */
629 CHAR PlaceholderCompatibilityMode
; /* 07b0 */
630 CHAR PlaceholderCompatibilityModeReserved
[7]; /* 07b1 */
631 ULONG64 LeapSecondData
; /* 07b8 */
632 ULONG LeapSecondFlags
; /* 07c0 */
633 ULONG NtGlobalFlag2
; /* 07c4 */
636 typedef struct _TEB64
638 NT_TIB64 Tib
; /* 0000 */
639 ULONG64 EnvironmentPointer
; /* 0038 */
640 CLIENT_ID64 ClientId
; /* 0040 */
641 ULONG64 ActiveRpcHandle
; /* 0050 */
642 ULONG64 ThreadLocalStoragePointer
; /* 0058 */
643 ULONG64 Peb
; /* 0060 */
644 ULONG LastErrorValue
; /* 0068 */
645 ULONG CountOfOwnedCriticalSections
; /* 006c */
646 ULONG64 CsrClientThread
; /* 0070 */
647 ULONG64 Win32ThreadInfo
; /* 0078 */
648 ULONG User32Reserved
[26]; /* 0080 */
649 ULONG UserReserved
[5]; /* 00e8 */
650 ULONG64 WOW32Reserved
; /* 0100 */
651 ULONG CurrentLocale
; /* 0108 */
652 ULONG FpSoftwareStatusRegister
; /* 010c */
653 ULONG64 ReservedForDebuggerInstrumentation
[16]; /* 0110 */
654 ULONG64 SystemReserved1
[30]; /* 0190 */
655 char PlaceholderCompatibilityMode
; /* 0280 */
656 char PlaceholderReserved
[11]; /* 0281 */
657 DWORD ProxiedProcessId
; /* 028c */
658 ACTIVATION_CONTEXT_STACK64 ActivationContextStack
; /* 0290 */
659 UCHAR WorkingOnBehalfOfTicket
[8]; /* 02b8 */
660 LONG ExceptionCode
; /* 02c0 */
661 ULONG64 ActivationContextStackPointer
; /* 02c8 */
662 ULONG64 InstrumentationCallbackSp
; /* 02d0 */
663 ULONG64 InstrumentationCallbackPreviousPc
; /* 02d8 */
664 ULONG64 InstrumentationCallbackPreviousSp
; /* 02e0 */
665 ULONG TxFsContext
; /* 02e8 */
666 BOOLEAN InstrumentationCallbackDisabled
; /* 02ec */
667 ULONG64 GdiTebBatch
[0x9d]; /* 02f0 */
668 CLIENT_ID64 RealClientId
; /* 07d8 */
669 ULONG64 GdiCachedProcessHandle
; /* 07e8 */
670 ULONG GdiClientPID
; /* 07f0 */
671 ULONG GdiClientTID
; /* 07f4 */
672 ULONG64 GdiThreadLocaleInfo
; /* 07f8 */
673 ULONG64 Win32ClientInfo
[62]; /* 0800 */
674 ULONG64 glDispatchTable
[233]; /* 09f0 */
675 ULONG64 glReserved1
[29]; /* 1138 */
676 ULONG64 glReserved2
; /* 1220 */
677 ULONG64 glSectionInfo
; /* 1228 */
678 ULONG64 glSection
; /* 1230 */
679 ULONG64 glTable
; /* 1238 */
680 ULONG64 glCurrentRC
; /* 1240 */
681 ULONG64 glContext
; /* 1248 */
682 ULONG LastStatusValue
; /* 1250 */
683 UNICODE_STRING64 StaticUnicodeString
; /* 1258 */
684 WCHAR StaticUnicodeBuffer
[261]; /* 1268 */
685 ULONG64 DeallocationStack
; /* 1478 */
686 ULONG64 TlsSlots
[64]; /* 1480 */
687 LIST_ENTRY64 TlsLinks
; /* 1680 */
688 ULONG64 Vdm
; /* 1690 */
689 ULONG64 ReservedForNtRpc
; /* 1698 */
690 ULONG64 DbgSsReserved
[2]; /* 16a0 */
691 ULONG HardErrorDisabled
; /* 16b0 */
692 ULONG64 Instrumentation
[16]; /* 16b8 */
693 ULONG64 WinSockData
; /* 1738 */
694 ULONG GdiBatchCount
; /* 1740 */
695 ULONG Spare2
; /* 1744 */
696 ULONG GuaranteedStackBytes
; /* 1748 */
697 ULONG64 ReservedForPerf
; /* 1750 */
698 ULONG64 ReservedForOle
; /* 1758 */
699 ULONG WaitingOnLoaderLock
; /* 1760 */
700 ULONG64 Reserved5
[3]; /* 1768 */
701 ULONG64 TlsExpansionSlots
; /* 1780 */
702 ULONG64 DeallocationBStore
; /* 1788 */
703 ULONG64 BStoreLimit
; /* 1790 */
704 ULONG ImpersonationLocale
; /* 1798 */
705 ULONG IsImpersonating
; /* 179c */
706 ULONG64 NlsCache
; /* 17a0 */
707 ULONG64 ShimData
; /* 17a8 */
708 ULONG HeapVirtualAffinity
; /* 17b0 */
709 ULONG64 CurrentTransactionHandle
; /* 17b8 */
710 ULONG64 ActiveFrame
; /* 17c0 */
711 ULONG64 FlsSlots
; /* 17c8 */
712 ULONG64 PreferredLanguages
; /* 17d0 */
713 ULONG64 UserPrefLanguages
; /* 17d8 */
714 ULONG64 MergedPrefLanguages
; /* 17e0 */
715 ULONG MuiImpersonation
; /* 17e8 */
716 USHORT CrossTebFlags
; /* 17ec */
717 USHORT SameTebFlags
; /* 17ee */
718 ULONG64 TxnScopeEnterCallback
; /* 17f0 */
719 ULONG64 TxnScopeExitCallback
; /* 17f8 */
720 ULONG64 TxnScopeContext
; /* 1800 */
721 ULONG LockCount
; /* 1808 */
722 LONG WowTebOffset
; /* 180c */
723 ULONG64 ResourceRetValue
; /* 1810 */
724 ULONG64 ReservedForWdf
; /* 1818 */
725 ULONGLONG ReservedForCrt
; /* 1820 */
726 GUID EffectiveContainerId
; /* 1828 */
729 /* reserved TEB64 TLS slots for Wow64 */
730 #define WOW64_TLS_FILESYSREDIR 8
734 /***********************************************************************
738 typedef enum _FILE_INFORMATION_CLASS
{
739 FileDirectoryInformation
= 1,
740 FileFullDirectoryInformation
,
741 FileBothDirectoryInformation
,
742 FileBasicInformation
,
743 FileStandardInformation
,
744 FileInternalInformation
,
746 FileAccessInformation
,
748 FileRenameInformation
,
750 FileNamesInformation
,
751 FileDispositionInformation
,
752 FilePositionInformation
,
753 FileFullEaInformation
,
755 FileAlignmentInformation
,
757 FileAllocationInformation
,
758 FileEndOfFileInformation
,
759 FileAlternateNameInformation
,
760 FileStreamInformation
,
762 FilePipeLocalInformation
,
763 FilePipeRemoteInformation
,
764 FileMailslotQueryInformation
,
765 FileMailslotSetInformation
,
766 FileCompressionInformation
,
767 FileObjectIdInformation
,
768 FileCompletionInformation
,
769 FileMoveClusterInformation
,
770 FileQuotaInformation
,
771 FileReparsePointInformation
,
772 FileNetworkOpenInformation
,
773 FileAttributeTagInformation
,
774 FileTrackingInformation
,
775 FileIdBothDirectoryInformation
,
776 FileIdFullDirectoryInformation
,
777 FileValidDataLengthInformation
,
778 FileShortNameInformation
,
779 FileIoCompletionNotificationInformation
,
780 FileIoStatusBlockRangeInformation
,
781 FileIoPriorityHintInformation
,
782 FileSfioReserveInformation
,
783 FileSfioVolumeInformation
,
784 FileHardLinkInformation
,
785 FileProcessIdsUsingFileInformation
,
786 FileNormalizedNameInformation
,
787 FileNetworkPhysicalNameInformation
,
788 FileIdGlobalTxDirectoryInformation
,
789 FileIsRemoteDeviceInformation
,
790 FileAttributeCacheInformation
,
791 FileNumaNodeInformation
,
792 FileStandardLinkInformation
,
793 FileRemoteProtocolInformation
,
794 FileRenameInformationBypassAccessCheck
,
795 FileLinkInformationBypassAccessCheck
,
796 FileVolumeNameInformation
,
798 FileIdExtdDirectoryInformation
,
799 FileReplaceCompletionInformation
,
800 FileHardLinkFullIdInformation
,
801 FileIdExtdBothDirectoryInformation
,
802 FileMaximumInformation
803 } FILE_INFORMATION_CLASS
, *PFILE_INFORMATION_CLASS
;
805 typedef struct _FILE_DIRECTORY_INFORMATION
{
806 ULONG NextEntryOffset
;
808 LARGE_INTEGER CreationTime
;
809 LARGE_INTEGER LastAccessTime
;
810 LARGE_INTEGER LastWriteTime
;
811 LARGE_INTEGER ChangeTime
;
812 LARGE_INTEGER EndOfFile
;
813 LARGE_INTEGER AllocationSize
;
814 ULONG FileAttributes
;
815 ULONG FileNameLength
;
816 WCHAR FileName
[ANYSIZE_ARRAY
];
817 } FILE_DIRECTORY_INFORMATION
, *PFILE_DIRECTORY_INFORMATION
;
819 typedef struct _FILE_FULL_DIRECTORY_INFORMATION
{
820 ULONG NextEntryOffset
;
822 LARGE_INTEGER CreationTime
;
823 LARGE_INTEGER LastAccessTime
;
824 LARGE_INTEGER LastWriteTime
;
825 LARGE_INTEGER ChangeTime
;
826 LARGE_INTEGER EndOfFile
;
827 LARGE_INTEGER AllocationSize
;
828 ULONG FileAttributes
;
829 ULONG FileNameLength
;
831 WCHAR FileName
[ANYSIZE_ARRAY
];
832 } FILE_FULL_DIRECTORY_INFORMATION
, *PFILE_FULL_DIRECTORY_INFORMATION
,
833 FILE_FULL_DIR_INFORMATION
, *PFILE_FULL_DIR_INFORMATION
;
835 typedef struct _FILE_ID_FULL_DIRECTORY_INFORMATION
{
836 ULONG NextEntryOffset
;
838 LARGE_INTEGER CreationTime
;
839 LARGE_INTEGER LastAccessTime
;
840 LARGE_INTEGER LastWriteTime
;
841 LARGE_INTEGER ChangeTime
;
842 LARGE_INTEGER EndOfFile
;
843 LARGE_INTEGER AllocationSize
;
844 ULONG FileAttributes
;
845 ULONG FileNameLength
;
847 LARGE_INTEGER FileId
;
848 WCHAR FileName
[ANYSIZE_ARRAY
];
849 } FILE_ID_FULL_DIRECTORY_INFORMATION
, *PFILE_ID_FULL_DIRECTORY_INFORMATION
;
851 typedef struct _FILE_BOTH_DIRECTORY_INFORMATION
{
852 ULONG NextEntryOffset
;
854 LARGE_INTEGER CreationTime
;
855 LARGE_INTEGER LastAccessTime
;
856 LARGE_INTEGER LastWriteTime
;
857 LARGE_INTEGER ChangeTime
;
858 LARGE_INTEGER EndOfFile
;
859 LARGE_INTEGER AllocationSize
;
860 ULONG FileAttributes
;
861 ULONG FileNameLength
;
863 CHAR ShortNameLength
;
865 WCHAR FileName
[ANYSIZE_ARRAY
];
866 } FILE_BOTH_DIRECTORY_INFORMATION
, *PFILE_BOTH_DIRECTORY_INFORMATION
,
867 FILE_BOTH_DIR_INFORMATION
, *PFILE_BOTH_DIR_INFORMATION
;
869 typedef struct _FILE_ID_BOTH_DIRECTORY_INFORMATION
{
870 ULONG NextEntryOffset
;
872 LARGE_INTEGER CreationTime
;
873 LARGE_INTEGER LastAccessTime
;
874 LARGE_INTEGER LastWriteTime
;
875 LARGE_INTEGER ChangeTime
;
876 LARGE_INTEGER EndOfFile
;
877 LARGE_INTEGER AllocationSize
;
878 ULONG FileAttributes
;
879 ULONG FileNameLength
;
881 CHAR ShortNameLength
;
883 LARGE_INTEGER FileId
;
884 WCHAR FileName
[ANYSIZE_ARRAY
];
885 } FILE_ID_BOTH_DIRECTORY_INFORMATION
, *PFILE_ID_BOTH_DIRECTORY_INFORMATION
;
887 typedef struct _FILE_ID_GLOBAL_TX_DIR_INFORMATION
{
888 ULONG NextEntryOffset
;
890 LARGE_INTEGER CreationTime
;
891 LARGE_INTEGER LastAccessTime
;
892 LARGE_INTEGER LastWriteTime
;
893 LARGE_INTEGER ChangeTime
;
894 LARGE_INTEGER EndOfFile
;
895 LARGE_INTEGER AllocationSize
;
896 ULONG FileAttributes
;
897 ULONG FileNameLength
;
898 LARGE_INTEGER FileId
;
899 GUID LockingTransactionId
;
901 WCHAR FileName
[ANYSIZE_ARRAY
];
902 } FILE_ID_GLOBAL_TX_DIR_INFORMATION
, *PFILE_ID_GLOBAL_TX_DIR_INFORMATION
;
904 typedef struct _FILE_BASIC_INFORMATION
{
905 LARGE_INTEGER CreationTime
;
906 LARGE_INTEGER LastAccessTime
;
907 LARGE_INTEGER LastWriteTime
;
908 LARGE_INTEGER ChangeTime
;
909 ULONG FileAttributes
;
910 } FILE_BASIC_INFORMATION
, *PFILE_BASIC_INFORMATION
;
912 typedef struct _FILE_STANDARD_INFORMATION
{
913 LARGE_INTEGER AllocationSize
;
914 LARGE_INTEGER EndOfFile
;
916 BOOLEAN DeletePending
;
918 } FILE_STANDARD_INFORMATION
, *PFILE_STANDARD_INFORMATION
;
920 typedef struct _FILE_INTERNAL_INFORMATION
{
921 LARGE_INTEGER IndexNumber
;
922 } FILE_INTERNAL_INFORMATION
, *PFILE_INTERNAL_INFORMATION
;
924 typedef struct _FILE_ID_128
{
925 UCHAR Identifier
[16];
926 } FILE_ID_128
, *PFILE_ID_128
;
928 typedef struct _FILE_ID_INFORMATION
{
929 ULONGLONG VolumeSerialNumber
;
931 } FILE_ID_INFORMATION
, *PFILE_ID_INFORMATION
;
933 typedef struct _FILE_EA_INFORMATION
{
935 } FILE_EA_INFORMATION
, *PFILE_EA_INFORMATION
;
937 typedef struct _FILE_ACCESS_INFORMATION
{
938 ACCESS_MASK AccessFlags
;
939 } FILE_ACCESS_INFORMATION
, *PFILE_ACCESS_INFORMATION
;
941 typedef struct _FILE_NAME_INFORMATION
{
942 ULONG FileNameLength
;
944 } FILE_NAME_INFORMATION
, *PFILE_NAME_INFORMATION
;
946 typedef struct _FILE_RENAME_INFORMATION
{
947 BOOLEAN ReplaceIfExists
;
948 HANDLE RootDirectory
;
949 ULONG FileNameLength
;
951 } FILE_RENAME_INFORMATION
, *PFILE_RENAME_INFORMATION
;
953 typedef struct _FILE_LINK_INFORMATION
{
954 BOOLEAN ReplaceIfExists
;
955 HANDLE RootDirectory
;
956 ULONG FileNameLength
;
958 } FILE_LINK_INFORMATION
, *PFILE_LINK_INFORMATION
;
960 typedef struct _FILE_NAMES_INFORMATION
{
961 ULONG NextEntryOffset
;
963 ULONG FileNameLength
;
965 } FILE_NAMES_INFORMATION
, *PFILE_NAMES_INFORMATION
;
967 typedef struct _FILE_DISPOSITION_INFORMATION
{
968 BOOLEAN DoDeleteFile
;
969 } FILE_DISPOSITION_INFORMATION
, *PFILE_DISPOSITION_INFORMATION
;
971 typedef struct _FILE_POSITION_INFORMATION
{
972 LARGE_INTEGER CurrentByteOffset
;
973 } FILE_POSITION_INFORMATION
, *PFILE_POSITION_INFORMATION
;
975 typedef struct _FILE_ALIGNMENT_INFORMATION
{
976 ULONG AlignmentRequirement
;
977 } FILE_ALIGNMENT_INFORMATION
, *PFILE_ALIGNMENT_INFORMATION
;
979 typedef struct _FILE_ALLOCATION_INFORMATION
{
980 LARGE_INTEGER AllocationSize
;
981 } FILE_ALLOCATION_INFORMATION
, *PFILE_ALLOCATION_INFORMATION
;
983 typedef struct _FILE_END_OF_FILE_INFORMATION
{
984 LARGE_INTEGER EndOfFile
;
985 } FILE_END_OF_FILE_INFORMATION
, *PFILE_END_OF_FILE_INFORMATION
;
987 typedef struct _FILE_NETWORK_OPEN_INFORMATION
{
988 LARGE_INTEGER CreationTime
;
989 LARGE_INTEGER LastAccessTime
;
990 LARGE_INTEGER LastWriteTime
;
991 LARGE_INTEGER ChangeTime
;
992 LARGE_INTEGER AllocationSize
;
993 LARGE_INTEGER EndOfFile
;
994 ULONG FileAttributes
;
995 } FILE_NETWORK_OPEN_INFORMATION
, *PFILE_NETWORK_OPEN_INFORMATION
;
997 typedef struct _FILE_FULL_EA_INFORMATION
{
998 ULONG NextEntryOffset
;
1001 USHORT EaValueLength
;
1003 } FILE_FULL_EA_INFORMATION
, *PFILE_FULL_EA_INFORMATION
;
1005 typedef struct _FILE_MODE_INFORMATION
{
1007 } FILE_MODE_INFORMATION
, *PFILE_MODE_INFORMATION
;
1009 typedef struct _FILE_STREAM_INFORMATION
1011 ULONG NextEntryOffset
;
1012 ULONG StreamNameLength
;
1013 LARGE_INTEGER StreamSize
;
1014 LARGE_INTEGER StreamAllocationSize
;
1015 WCHAR StreamName
[1];
1016 } FILE_STREAM_INFORMATION
, *PFILE_STREAM_INFORMATION
;
1018 typedef struct _FILE_ATTRIBUTE_TAG_INFORMATION
1020 ULONG FileAttributes
;
1022 } FILE_ATTRIBUTE_TAG_INFORMATION
, *PFILE_ATTRIBUTE_TAG_INFORMATION
;
1024 typedef struct _FILE_MAILSLOT_QUERY_INFORMATION
{
1025 ULONG MaximumMessageSize
;
1026 ULONG MailslotQuota
;
1027 ULONG NextMessageSize
;
1028 ULONG MessagesAvailable
;
1029 LARGE_INTEGER ReadTimeout
;
1030 } FILE_MAILSLOT_QUERY_INFORMATION
, *PFILE_MAILSLOT_QUERY_INFORMATION
;
1032 typedef struct _FILE_MAILSLOT_SET_INFORMATION
{
1033 LARGE_INTEGER ReadTimeout
;
1034 } FILE_MAILSLOT_SET_INFORMATION
, *PFILE_MAILSLOT_SET_INFORMATION
;
1036 typedef struct _FILE_PIPE_INFORMATION
{
1038 ULONG CompletionMode
;
1039 } FILE_PIPE_INFORMATION
, *PFILE_PIPE_INFORMATION
;
1041 typedef struct _FILE_PIPE_LOCAL_INFORMATION
{
1042 ULONG NamedPipeType
;
1043 ULONG NamedPipeConfiguration
;
1044 ULONG MaximumInstances
;
1045 ULONG CurrentInstances
;
1047 ULONG ReadDataAvailable
;
1048 ULONG OutboundQuota
;
1049 ULONG WriteQuotaAvailable
;
1050 ULONG NamedPipeState
;
1052 } FILE_PIPE_LOCAL_INFORMATION
, *PFILE_PIPE_LOCAL_INFORMATION
;
1054 #define FILE_PIPE_DISCONNECTED_STATE 0x00000001
1055 #define FILE_PIPE_LISTENING_STATE 0x00000002
1056 #define FILE_PIPE_CONNECTED_STATE 0x00000003
1057 #define FILE_PIPE_CLOSING_STATE 0x00000004
1059 typedef struct _FILE_OBJECTID_BUFFER
1066 BYTE BirthVolumeId
[16];
1067 BYTE BirthObjectId
[16];
1070 BYTE ExtendedInfo
[48];
1072 } FILE_OBJECTID_BUFFER
, *PFILE_OBJECTID_BUFFER
;
1074 typedef struct _FILE_OBJECTID_INFORMATION
{
1075 LONGLONG FileReference
;
1079 UCHAR BirthVolumeId
[16];
1080 UCHAR BirthObjectId
[16];
1083 UCHAR ExtendedInfo
[48];
1085 } FILE_OBJECTID_INFORMATION
, *PFILE_OBJECTID_INFORMATION
;
1087 typedef struct _FILE_QUOTA_INFORMATION
{
1088 ULONG NextEntryOffset
;
1090 LARGE_INTEGER ChangeTime
;
1091 LARGE_INTEGER QuotaUsed
;
1092 LARGE_INTEGER QuotaThreshold
;
1093 LARGE_INTEGER QuotaLimit
;
1095 } FILE_QUOTA_INFORMATION
, *PFILE_QUOTA_INFORMATION
;
1097 typedef struct _FILE_REPARSE_POINT_INFORMATION
{
1098 LONGLONG FileReference
;
1100 } FILE_REPARSE_POINT_INFORMATION
, *PFILE_REPARSE_POINT_INFORMATION
;
1102 typedef struct _FILE_ALL_INFORMATION
{
1103 FILE_BASIC_INFORMATION BasicInformation
;
1104 FILE_STANDARD_INFORMATION StandardInformation
;
1105 FILE_INTERNAL_INFORMATION InternalInformation
;
1106 FILE_EA_INFORMATION EaInformation
;
1107 FILE_ACCESS_INFORMATION AccessInformation
;
1108 FILE_POSITION_INFORMATION PositionInformation
;
1109 FILE_MODE_INFORMATION ModeInformation
;
1110 FILE_ALIGNMENT_INFORMATION AlignmentInformation
;
1111 FILE_NAME_INFORMATION NameInformation
;
1112 } FILE_ALL_INFORMATION
, *PFILE_ALL_INFORMATION
;
1114 typedef struct _FILE_IO_COMPLETION_NOTIFICATION_INFORMATION
{
1116 } FILE_IO_COMPLETION_NOTIFICATION_INFORMATION
, *PFILE_IO_COMPLETION_NOTIFICATION_INFORMATION
;
1118 #define FILE_SKIP_COMPLETION_PORT_ON_SUCCESS 0x1
1119 #define FILE_SKIP_SET_EVENT_ON_HANDLE 0x2
1120 #define FILE_SKIP_SET_USER_EVENT_ON_FAST_IO 0x4
1122 typedef enum _FSINFOCLASS
{
1123 FileFsVolumeInformation
= 1,
1124 FileFsLabelInformation
,
1125 FileFsSizeInformation
,
1126 FileFsDeviceInformation
,
1127 FileFsAttributeInformation
,
1128 FileFsControlInformation
,
1129 FileFsFullSizeInformation
,
1130 FileFsObjectIdInformation
,
1131 FileFsMaximumInformation
1132 } FS_INFORMATION_CLASS
, *PFS_INFORMATION_CLASS
;
1134 typedef enum _KEY_INFORMATION_CLASS
{
1135 KeyBasicInformation
,
1139 KeyCachedInformation
,
1140 KeyFlagsInformation
,
1141 KeyVirtualizationInformation
,
1142 KeyHandleTagsInformation
,
1144 } KEY_INFORMATION_CLASS
;
1146 typedef enum _KEY_VALUE_INFORMATION_CLASS
{
1147 KeyValueBasicInformation
,
1148 KeyValueFullInformation
,
1149 KeyValuePartialInformation
,
1150 KeyValueFullInformationAlign64
,
1151 KeyValuePartialInformationAlign64
1152 } KEY_VALUE_INFORMATION_CLASS
;
1154 typedef enum _OBJECT_INFORMATION_CLASS
{
1155 ObjectBasicInformation
,
1156 ObjectNameInformation
,
1157 ObjectTypeInformation
,
1158 ObjectAllInformation
,
1159 ObjectDataInformation
1160 } OBJECT_INFORMATION_CLASS
, *POBJECT_INFORMATION_CLASS
;
1162 typedef enum _PROCESSINFOCLASS
{
1163 ProcessBasicInformation
= 0,
1164 ProcessQuotaLimits
= 1,
1165 ProcessIoCounters
= 2,
1166 ProcessVmCounters
= 3,
1168 ProcessBasePriority
= 5,
1169 ProcessRaisePriority
= 6,
1170 ProcessDebugPort
= 7,
1171 ProcessExceptionPort
= 8,
1172 ProcessAccessToken
= 9,
1173 ProcessLdtInformation
= 10,
1174 ProcessLdtSize
= 11,
1175 ProcessDefaultHardErrorMode
= 12,
1176 ProcessIoPortHandlers
= 13,
1177 ProcessPooledUsageAndLimits
= 14,
1178 ProcessWorkingSetWatch
= 15,
1179 ProcessUserModeIOPL
= 16,
1180 ProcessEnableAlignmentFaultFixup
= 17,
1181 ProcessPriorityClass
= 18,
1182 ProcessWx86Information
= 19,
1183 ProcessHandleCount
= 20,
1184 ProcessAffinityMask
= 21,
1185 ProcessPriorityBoost
= 22,
1186 ProcessDeviceMap
= 23,
1187 ProcessSessionInformation
= 24,
1188 ProcessForegroundInformation
= 25,
1189 ProcessWow64Information
= 26,
1190 ProcessImageFileName
= 27,
1191 ProcessLUIDDeviceMapsEnabled
= 28,
1192 ProcessBreakOnTermination
= 29,
1193 ProcessDebugObjectHandle
= 30,
1194 ProcessDebugFlags
= 31,
1195 ProcessHandleTracing
= 32,
1196 ProcessIoPriority
= 33,
1197 ProcessExecuteFlags
= 34,
1198 ProcessTlsInformation
= 35,
1200 ProcessImageInformation
= 37,
1201 ProcessCycleTime
= 38,
1202 ProcessPagePriority
= 39,
1203 ProcessInstrumentationCallback
= 40,
1204 ProcessThreadStackAllocation
= 41,
1205 ProcessWorkingSetWatchEx
= 42,
1206 ProcessImageFileNameWin32
= 43,
1208 } PROCESSINFOCLASS
, PROCESS_INFORMATION_CLASS
;
1210 #define MEM_EXECUTE_OPTION_DISABLE 0x01
1211 #define MEM_EXECUTE_OPTION_ENABLE 0x02
1212 #define MEM_EXECUTE_OPTION_DISABLE_THUNK_EMULATION 0x04
1213 #define MEM_EXECUTE_OPTION_PERMANENT 0x08
1215 typedef enum _SECTION_INHERIT
{
1220 typedef enum _SYSTEM_INFORMATION_CLASS
{
1221 SystemBasicInformation
= 0,
1222 SystemCpuInformation
= 1,
1223 SystemPerformanceInformation
= 2,
1224 SystemTimeOfDayInformation
= 3, /* was SystemTimeInformation */
1226 SystemProcessInformation
= 5,
1229 SystemProcessorPerformanceInformation
= 8,
1232 SystemModuleInformation
= 11,
1237 SystemHandleInformation
= 16,
1239 SystemPageFileInformation
= 18,
1242 SystemCacheInformation
= 21,
1244 SystemInterruptInformation
= 23,
1245 SystemDpcBehaviourInformation
= 24,
1246 SystemFullMemoryInformation
= 25,
1247 SystemNotImplemented6
= 25,
1248 SystemLoadImage
= 26,
1249 SystemUnloadImage
= 27,
1250 SystemTimeAdjustmentInformation
= 28,
1251 SystemTimeAdjustment
= 28,
1252 SystemSummaryMemoryInformation
= 29,
1253 SystemNotImplemented7
= 29,
1254 SystemNextEventIdInformation
= 30,
1255 SystemNotImplemented8
= 30,
1256 SystemEventIdsInformation
= 31,
1257 SystemCrashDumpInformation
= 32,
1258 SystemExceptionInformation
= 33,
1259 SystemCrashDumpStateInformation
= 34,
1260 SystemKernelDebuggerInformation
= 35,
1261 SystemContextSwitchInformation
= 36,
1262 SystemRegistryQuotaInformation
= 37,
1263 SystemCurrentTimeZoneInformation
= 44,
1264 SystemTimeZoneInformation
= 44,
1265 SystemLookasideInformation
= 45,
1266 SystemSetTimeSlipEvent
= 46,
1267 SystemCreateSession
= 47,
1268 SystemDeleteSession
= 48,
1269 SystemInvalidInfoClass4
= 49,
1270 SystemRangeStartInformation
= 50,
1271 SystemVerifierInformation
= 51,
1272 SystemAddVerifier
= 52,
1273 SystemSessionProcessesInformation
= 53,
1274 SystemLoadGdiDriverInSystemSpace
= 54,
1275 SystemNumaProcessorMap
= 55,
1276 SystemPrefetcherInformation
= 56,
1277 SystemExtendedProcessInformation
= 57,
1278 SystemRecommendedSharedDataAlignment
= 58,
1279 SystemComPlusPackage
= 59,
1280 SystemNumaAvailableMemory
= 60,
1281 SystemProcessorPowerInformation
= 61,
1282 SystemEmulationBasicInformation
= 62,
1283 SystemEmulationProcessorInformation
= 63,
1284 SystemExtendedHandleInformation
= 64,
1285 SystemLostDelayedWriteInformation
= 65,
1286 SystemBigPoolInformation
= 66,
1287 SystemSessionPoolTagInformation
= 67,
1288 SystemSessionMappedViewInformation
= 68,
1289 SystemHotpatchInformation
= 69,
1290 SystemObjectSecurityMode
= 70,
1291 SystemWatchdogTimerHandler
= 71,
1292 SystemWatchdogTimerInformation
= 72,
1293 SystemLogicalProcessorInformation
= 73,
1294 SystemWow64SharedInformation
= 74,
1295 SystemRegisterFirmwareTableInformationHandler
= 75,
1296 SystemFirmwareTableInformation
= 76,
1297 SystemModuleInformationEx
= 77,
1298 SystemVerifierTriageInformation
= 78,
1299 SystemSuperfetchInformation
= 79,
1300 SystemMemoryListInformation
= 80,
1301 SystemFileCacheInformationEx
= 81,
1302 SystemDynamicTimeZoneInformation
= 102,
1303 SystemLogicalProcessorInformationEx
= 107,
1304 SystemInformationClassMax
1305 } SYSTEM_INFORMATION_CLASS
, *PSYSTEM_INFORMATION_CLASS
;
1307 typedef enum _THREADINFOCLASS
{
1308 ThreadBasicInformation
= 0,
1313 ThreadImpersonationToken
,
1314 ThreadDescriptorTableEntry
,
1315 ThreadEnableAlignmentFaultFixup
,
1316 ThreadEventPair_Reusable
,
1317 ThreadQuerySetWin32StartAddress
,
1319 ThreadPerformanceCount
,
1320 ThreadAmILastThread
,
1321 ThreadIdealProcessor
,
1322 ThreadPriorityBoost
,
1323 ThreadSetTlsArrayAddress
,
1325 ThreadHideFromDebugger
,
1326 ThreadBreakOnTermination
,
1327 ThreadSwitchLegacyState
,
1329 ThreadLastSystemCall
,
1333 ThreadActualBasePriority
,
1334 ThreadTebInformation
,
1338 ThreadGroupInformation
,
1339 ThreadUmsInformation
,
1340 ThreadCounterProfiling
,
1341 ThreadIdealProcessorEx
,
1342 ThreadSuspendCount
= 35,
1343 ThreadDescription
= 38,
1347 typedef struct _THREAD_BASIC_INFORMATION
1349 NTSTATUS ExitStatus
;
1350 PVOID TebBaseAddress
;
1352 ULONG_PTR AffinityMask
;
1355 } THREAD_BASIC_INFORMATION
, *PTHREAD_BASIC_INFORMATION
;
1357 typedef struct _THREAD_DESCRIPTOR_INFORMATION
1361 } THREAD_DESCRIPTOR_INFORMATION
, *PTHREAD_DESCRIPTOR_INFORMATION
;
1363 typedef struct _THREAD_DESCRIPTION_INFORMATION
1365 UNICODE_STRING Description
;
1366 } THREAD_DESCRIPTION_INFORMATION
, *PTHREAD_DESCRIPTION_INFORMATION
;
1368 typedef struct _KERNEL_USER_TIMES
{
1369 LARGE_INTEGER CreateTime
;
1370 LARGE_INTEGER ExitTime
;
1371 LARGE_INTEGER KernelTime
;
1372 LARGE_INTEGER UserTime
;
1373 } KERNEL_USER_TIMES
, *PKERNEL_USER_TIMES
;
1375 typedef enum _WINSTATIONINFOCLASS
{
1376 WinStationInformation
= 8
1377 } WINSTATIONINFOCLASS
;
1379 typedef enum _MEMORY_INFORMATION_CLASS
{
1380 MemoryBasicInformation
,
1381 MemoryWorkingSetList
,
1383 MemoryBasicVlmInformation
,
1384 MemoryWorkingSetExInformation
1385 } MEMORY_INFORMATION_CLASS
;
1387 typedef struct _MEMORY_SECTION_NAME
1389 UNICODE_STRING SectionFileName
;
1390 } MEMORY_SECTION_NAME
, *PMEMORY_SECTION_NAME
;
1392 typedef union _MEMORY_WORKING_SET_EX_BLOCK
{
1395 ULONG_PTR Valid
: 1;
1396 ULONG_PTR ShareCount
: 3;
1397 ULONG_PTR Win32Protection
: 11;
1398 ULONG_PTR Shared
: 1;
1400 ULONG_PTR Locked
: 1;
1401 ULONG_PTR LargePage
: 1;
1403 } MEMORY_WORKING_SET_EX_BLOCK
, *PMEMORY_WORKING_SET_EX_BLOCK
;
1405 typedef struct _MEMORY_WORKING_SET_EX_INFORMATION
{
1406 PVOID VirtualAddress
;
1407 MEMORY_WORKING_SET_EX_BLOCK VirtualAttributes
;
1408 } MEMORY_WORKING_SET_EX_INFORMATION
, *PMEMORY_WORKING_SET_EX_INFORMATION
;
1410 typedef enum _MUTANT_INFORMATION_CLASS
1412 MutantBasicInformation
1413 } MUTANT_INFORMATION_CLASS
, *PMUTANT_INFORMATION_CLASS
;
1415 typedef struct _MUTANT_BASIC_INFORMATION
{
1417 BOOLEAN OwnedByCaller
;
1418 BOOLEAN AbandonedState
;
1419 } MUTANT_BASIC_INFORMATION
, *PMUTANT_BASIC_INFORMATION
;
1421 typedef enum _TIMER_INFORMATION_CLASS
1423 TimerBasicInformation
= 0
1424 } TIMER_INFORMATION_CLASS
;
1426 typedef struct _TIMER_BASIC_INFORMATION
1428 LARGE_INTEGER RemainingTime
;
1430 } TIMER_BASIC_INFORMATION
, *PTIMER_BASIC_INFORMATION
;
1433 /* return type of RtlDetermineDosPathNameType_U (FIXME: not the correct names) */
1437 UNC_PATH
, /* "//foo" */
1438 ABSOLUTE_DRIVE_PATH
, /* "c:/foo" */
1439 RELATIVE_DRIVE_PATH
, /* "c:foo" */
1440 ABSOLUTE_PATH
, /* "/foo" */
1441 RELATIVE_PATH
, /* "foo" */
1442 DEVICE_PATH
, /* "//./foo" */
1443 UNC_DOT_PATH
/* "//." */
1444 } DOS_PATHNAME_TYPE
;
1447 /***********************************************************************
1448 * Types and data structures
1451 /* This is used by NtQuerySystemInformation */
1452 typedef struct _SYSTEM_THREAD_INFORMATION
1454 LARGE_INTEGER KernelTime
; /* 00/00 */
1455 LARGE_INTEGER UserTime
; /* 08/08 */
1456 LARGE_INTEGER CreateTime
; /* 10/10 */
1457 DWORD dwTickCount
; /* 18/18 */
1458 LPVOID StartAddress
; /* 1c/20 */
1459 CLIENT_ID ClientId
; /* 20/28 */
1460 DWORD dwCurrentPriority
; /* 28/38 */
1461 DWORD dwBasePriority
; /* 2c/3c */
1462 DWORD dwContextSwitches
; /* 30/40 */
1463 DWORD dwThreadState
; /* 34/44 */
1464 DWORD dwWaitReason
; /* 38/48 */
1465 DWORD dwUnknown
; /* 3c/4c */
1466 } SYSTEM_THREAD_INFORMATION
, *PSYSTEM_THREAD_INFORMATION
;
1468 typedef struct _IO_STATUS_BLOCK
{
1474 ULONG_PTR Information
;
1475 } IO_STATUS_BLOCK
, *PIO_STATUS_BLOCK
;
1477 typedef void (WINAPI
* PIO_APC_ROUTINE
)(PVOID
,PIO_STATUS_BLOCK
,ULONG
);
1479 typedef struct _KEY_BASIC_INFORMATION
{
1480 LARGE_INTEGER LastWriteTime
;
1484 } KEY_BASIC_INFORMATION
, *PKEY_BASIC_INFORMATION
;
1486 typedef struct _KEY_NODE_INFORMATION
1488 LARGE_INTEGER LastWriteTime
;
1495 } KEY_NODE_INFORMATION
, *PKEY_NODE_INFORMATION
;
1497 typedef struct _KEY_FULL_INFORMATION
1499 LARGE_INTEGER LastWriteTime
;
1507 ULONG MaxValueNameLen
;
1508 ULONG MaxValueDataLen
;
1510 } KEY_FULL_INFORMATION
, *PKEY_FULL_INFORMATION
;
1512 typedef struct _KEY_NAME_INFORMATION
{
1515 } KEY_NAME_INFORMATION
, *PKEY_NAME_INFORMATION
;
1517 typedef struct _KEY_CACHED_INFORMATION
1519 LARGE_INTEGER LastWriteTime
;
1524 ULONG MaxValueNameLen
;
1525 ULONG MaxValueDataLen
;
1527 } KEY_CACHED_INFORMATION
, *PKEY_CACHED_INFORMATION
;
1529 typedef struct _KEY_VALUE_ENTRY
1531 PUNICODE_STRING ValueName
;
1535 } KEY_VALUE_ENTRY
, *PKEY_VALUE_ENTRY
;
1537 typedef struct _KEY_VALUE_BASIC_INFORMATION
{
1542 } KEY_VALUE_BASIC_INFORMATION
, *PKEY_VALUE_BASIC_INFORMATION
;
1544 typedef struct _KEY_VALUE_FULL_INFORMATION
{
1551 } KEY_VALUE_FULL_INFORMATION
, *PKEY_VALUE_FULL_INFORMATION
;
1553 typedef struct _KEY_VALUE_PARTIAL_INFORMATION
{
1558 } KEY_VALUE_PARTIAL_INFORMATION
, *PKEY_VALUE_PARTIAL_INFORMATION
;
1560 #ifndef __OBJECT_ATTRIBUTES_DEFINED__
1561 #define __OBJECT_ATTRIBUTES_DEFINED__
1562 typedef struct _OBJECT_ATTRIBUTES
{
1564 HANDLE RootDirectory
;
1565 PUNICODE_STRING ObjectName
;
1567 PVOID SecurityDescriptor
; /* type SECURITY_DESCRIPTOR */
1568 PVOID SecurityQualityOfService
; /* type SECURITY_QUALITY_OF_SERVICE */
1569 } OBJECT_ATTRIBUTES
, *POBJECT_ATTRIBUTES
;
1572 typedef struct _OBJECT_DATA_INFORMATION
{
1573 BOOLEAN InheritHandle
;
1574 BOOLEAN ProtectFromClose
;
1575 } OBJECT_DATA_INFORMATION
, *POBJECT_DATA_INFORMATION
;
1577 typedef struct _OBJECT_BASIC_INFORMATION
{
1579 ACCESS_MASK GrantedAccess
;
1582 ULONG PagedPoolUsage
;
1583 ULONG NonPagedPoolUsage
;
1585 ULONG NameInformationLength
;
1586 ULONG TypeInformationLength
;
1587 ULONG SecurityDescriptorLength
;
1588 LARGE_INTEGER CreateTime
;
1589 } OBJECT_BASIC_INFORMATION
, *POBJECT_BASIC_INFORMATION
;
1591 typedef struct _OBJECT_NAME_INFORMATION
{
1592 UNICODE_STRING Name
;
1593 } OBJECT_NAME_INFORMATION
, *POBJECT_NAME_INFORMATION
;
1595 typedef struct __OBJECT_TYPE_INFORMATION
{
1596 UNICODE_STRING TypeName
;
1597 ULONG Reserved
[22];
1598 } OBJECT_TYPE_INFORMATION
, *POBJECT_TYPE_INFORMATION
;
1600 typedef struct _PROCESS_BASIC_INFORMATION
{
1602 DWORD_PTR ExitStatus
;
1603 PPEB PebBaseAddress
;
1604 DWORD_PTR AffinityMask
;
1605 DWORD_PTR BasePriority
;
1606 ULONG_PTR UniqueProcessId
;
1607 ULONG_PTR InheritedFromUniqueProcessId
;
1610 PPEB PebBaseAddress
;
1612 ULONG_PTR UniqueProcessId
;
1615 } PROCESS_BASIC_INFORMATION
, *PPROCESS_BASIC_INFORMATION
;
1617 #define PROCESS_PRIOCLASS_IDLE 1
1618 #define PROCESS_PRIOCLASS_NORMAL 2
1619 #define PROCESS_PRIOCLASS_HIGH 3
1620 #define PROCESS_PRIOCLASS_REALTIME 4
1621 #define PROCESS_PRIOCLASS_BELOW_NORMAL 5
1622 #define PROCESS_PRIOCLASS_ABOVE_NORMAL 6
1624 typedef struct _PROCESS_PRIORITY_CLASS
{
1626 UCHAR PriorityClass
;
1627 } PROCESS_PRIORITY_CLASS
, *PPROCESS_PRIORITY_CLASS
;
1629 typedef struct _PROCESS_STACK_ALLOCATION_INFORMATION
1634 } PROCESS_STACK_ALLOCATION_INFORMATION
, *PPROCESS_STACK_ALLOCATION_INFORMATION
;
1636 typedef struct _PROCESS_STACK_ALLOCATION_INFORMATION_EX
1638 ULONG PreferredNode
;
1642 PROCESS_STACK_ALLOCATION_INFORMATION AllocInfo
;
1643 } PROCESS_STACK_ALLOCATION_INFORMATION_EX
, *PPROCESS_STACK_ALLOCATION_INFORMATION_EX
;
1645 typedef struct _RTL_HEAP_DEFINITION
{
1646 ULONG Length
; /* = sizeof(RTL_HEAP_DEFINITION) */
1649 } RTL_HEAP_DEFINITION
, *PRTL_HEAP_DEFINITION
;
1651 typedef struct _RTL_RWLOCK
{
1652 RTL_CRITICAL_SECTION rtlCS
;
1654 HANDLE hSharedReleaseSemaphore
;
1655 UINT uSharedWaiters
;
1657 HANDLE hExclusiveReleaseSemaphore
;
1658 UINT uExclusiveWaiters
;
1661 HANDLE hOwningThreadId
;
1662 DWORD dwTimeoutBoost
;
1664 } RTL_RWLOCK
, *LPRTL_RWLOCK
;
1666 /* System Information Class 0x00 */
1668 typedef struct _SYSTEM_BASIC_INFORMATION
{
1671 ULONG KeMaximumIncrement
;
1673 ULONG MmNumberOfPhysicalPages
;
1674 ULONG MmLowestPhysicalPage
;
1675 ULONG MmHighestPhysicalPage
;
1676 ULONG_PTR AllocationGranularity
;
1677 PVOID LowestUserAddress
;
1678 PVOID HighestUserAddress
;
1679 ULONG_PTR ActiveProcessorsAffinityMask
;
1680 BYTE NumberOfProcessors
;
1684 CCHAR NumberOfProcessors
;
1686 } SYSTEM_BASIC_INFORMATION
, *PSYSTEM_BASIC_INFORMATION
;
1688 /* System Information Class 0x01 */
1690 typedef struct _SYSTEM_CPU_INFORMATION
{
1693 WORD Revision
; /* combination of CPU model and stepping */
1694 WORD Reserved
; /* always zero */
1695 DWORD FeatureSet
; /* see bit flags below */
1696 } SYSTEM_CPU_INFORMATION
, *PSYSTEM_CPU_INFORMATION
;
1698 /* definitions of bits in the Feature set for the x86 processors */
1699 #define CPU_FEATURE_VME 0x00000005 /* Virtual 86 Mode Extensions */
1700 #define CPU_FEATURE_TSC 0x00000002 /* Time Stamp Counter available */
1701 #define CPU_FEATURE_CMOV 0x00000008 /* Conditional Move instruction*/
1702 #define CPU_FEATURE_PGE 0x00000014 /* Page table Entry Global bit */
1703 #define CPU_FEATURE_PSE 0x00000024 /* Page Size Extension */
1704 #define CPU_FEATURE_MTRR 0x00000040 /* Memory Type Range Registers */
1705 #define CPU_FEATURE_CX8 0x00000080 /* Compare and eXchange 8 byte instr. */
1706 #define CPU_FEATURE_MMX 0x00000100 /* Multi Media eXtensions */
1707 #define CPU_FEATURE_X86 0x00000200 /* seems to be always ON, on the '86 */
1708 #define CPU_FEATURE_PAT 0x00000400 /* Page Attribute Table */
1709 #define CPU_FEATURE_FXSR 0x00000800 /* FXSAVE and FXSTORE instructions */
1710 #define CPU_FEATURE_SEP 0x00001000 /* SYSENTER and SYSEXIT instructions */
1711 #define CPU_FEATURE_SSE 0x00002000 /* SSE extensions (ext. MMX) */
1712 #define CPU_FEATURE_3DNOW 0x00004000 /* 3DNOW instructions available */
1713 #define CPU_FEATURE_SSE2 0x00010000 /* SSE2 extensions (XMMI64) */
1714 #define CPU_FEATURE_DS 0x00020000 /* Debug Store */
1715 #define CPU_FEATURE_HTT 0x00040000 /* Hyper Threading Technology */
1716 #define CPU_FEATURE_SSE3 0x00080000 /* SSE3 extensions */
1717 #define CPU_FEATURE_CX128 0x00100000 /* cmpxchg16b instruction */
1718 #define CPU_FEATURE_XSAVE 0x00800000 /* XSAVE instructions */
1719 #define CPU_FEATURE_2NDLEV 0x04000000 /* Second-level address translation */
1720 #define CPU_FEATURE_VIRT 0x08000000 /* Virtualization support */
1721 #define CPU_FEATURE_RDFS 0x10000000 /* RDFSBASE etc. instructions */
1722 #define CPU_FEATURE_NX 0x20000000 /* Data execution prevention */
1724 /* FIXME: following values are made up, actual flags are unknown */
1725 #define CPU_FEATURE_SSSE3 0x00008000 /* SSSE3 instructions */
1726 #define CPU_FEATURE_SSE41 0x01000000 /* SSE41 instructions */
1727 #define CPU_FEATURE_SSE42 0x02000000 /* SSE42 instructions */
1728 #define CPU_FEATURE_AVX 0x40000000 /* AVX instructions */
1729 #define CPU_FEATURE_AVX2 0x80000000 /* AVX2 instructions */
1731 #define CPU_FEATURE_PAE 0x00200000
1732 #define CPU_FEATURE_DAZ 0x00400000
1733 #define CPU_FEATURE_ARM_VFP_32 0x00000001
1734 #define CPU_FEATURE_ARM_NEON 0x00000002
1735 #define CPU_FEATURE_ARM_V8_CRC32 0x00000004
1736 #define CPU_FEATURE_ARM_V8_CRYPTO 0x00000008
1738 /* System Information Class 0x02 */
1740 /* Documented in "Windows NT/2000 Native API Reference" by Gary Nebbett. */
1741 typedef struct _SYSTEM_PERFORMANCE_INFORMATION
{
1742 LARGE_INTEGER IdleTime
;
1743 LARGE_INTEGER ReadTransferCount
;
1744 LARGE_INTEGER WriteTransferCount
;
1745 LARGE_INTEGER OtherTransferCount
;
1746 ULONG ReadOperationCount
;
1747 ULONG WriteOperationCount
;
1748 ULONG OtherOperationCount
;
1749 ULONG AvailablePages
;
1750 ULONG TotalCommittedPages
;
1751 ULONG TotalCommitLimit
;
1752 ULONG PeakCommitment
;
1754 ULONG WriteCopyFaults
;
1755 ULONG TransitionFaults
;
1757 ULONG DemandZeroFaults
;
1761 ULONG PagefilePagesWritten
;
1762 ULONG PagefilePageWriteIos
;
1763 ULONG MappedFilePagesWritten
;
1764 ULONG MappedFilePageWriteIos
;
1765 ULONG PagedPoolUsage
;
1766 ULONG NonPagedPoolUsage
;
1767 ULONG PagedPoolAllocs
;
1768 ULONG PagedPoolFrees
;
1769 ULONG NonPagedPoolAllocs
;
1770 ULONG NonPagedPoolFrees
;
1771 ULONG TotalFreeSystemPtes
;
1772 ULONG SystemCodePage
;
1773 ULONG TotalSystemDriverPages
;
1774 ULONG TotalSystemCodePages
;
1775 ULONG SmallNonPagedLookasideListAllocateHits
;
1776 ULONG SmallPagedLookasideListAllocateHits
;
1778 ULONG MmSystemCachePage
;
1779 ULONG PagedPoolPage
;
1780 ULONG SystemDriverPage
;
1781 ULONG FastReadNoWait
;
1783 ULONG FastReadResourceMiss
;
1784 ULONG FastReadNotPossible
;
1785 ULONG FastMdlReadNoWait
;
1786 ULONG FastMdlReadWait
;
1787 ULONG FastMdlReadResourceMiss
;
1788 ULONG FastMdlReadNotPossible
;
1789 ULONG MapDataNoWait
;
1791 ULONG MapDataNoWaitMiss
;
1792 ULONG MapDataWaitMiss
;
1793 ULONG PinMappedDataCount
;
1794 ULONG PinReadNoWait
;
1796 ULONG PinReadNoWaitMiss
;
1797 ULONG PinReadWaitMiss
;
1798 ULONG CopyReadNoWait
;
1800 ULONG CopyReadNoWaitMiss
;
1801 ULONG CopyReadWaitMiss
;
1802 ULONG MdlReadNoWait
;
1804 ULONG MdlReadNoWaitMiss
;
1805 ULONG MdlReadWaitMiss
;
1808 ULONG LazyWritePages
;
1811 ULONG ContextSwitches
;
1812 ULONG FirstLevelTbFills
;
1813 ULONG SecondLevelTbFills
;
1815 } SYSTEM_PERFORMANCE_INFORMATION
, *PSYSTEM_PERFORMANCE_INFORMATION
;
1817 /* System Information Class 0x03 */
1819 typedef struct _SYSTEM_TIMEOFDAY_INFORMATION
{
1821 LARGE_INTEGER BootTime
;
1822 LARGE_INTEGER SystemTime
;
1823 LARGE_INTEGER TimeZoneBias
;
1826 ULONGLONG BootTimeBias
;
1827 ULONGLONG SleepTimeBias
;
1831 } SYSTEM_TIMEOFDAY_INFORMATION
, *PSYSTEM_TIMEOFDAY_INFORMATION
; /* was SYSTEM_TIME_INFORMATION */
1833 /* System Information Class 0x08 */
1835 typedef struct _SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION
{
1836 LARGE_INTEGER IdleTime
;
1837 LARGE_INTEGER KernelTime
;
1838 LARGE_INTEGER UserTime
;
1839 LARGE_INTEGER Reserved1
[2];
1841 } SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION
, *PSYSTEM_PROCESSOR_PERFORMANCE_INFORMATION
;
1843 /* System Information Class 0x0b */
1845 typedef struct _SYSTEM_DRIVER_INFORMATION
{
1851 char szName
[MAX_PATH
+ 1];
1852 } SYSTEM_DRIVER_INFORMATION
, *PSYSTEM_DRIVER_INFORMATION
;
1854 /* System Information Class 0x10 */
1856 typedef struct _SYSTEM_HANDLE_ENTRY
{
1861 PVOID ObjectPointer
;
1863 } SYSTEM_HANDLE_ENTRY
, *PSYSTEM_HANDLE_ENTRY
;
1865 typedef struct _SYSTEM_HANDLE_INFORMATION
{
1867 SYSTEM_HANDLE_ENTRY Handle
[1];
1868 } SYSTEM_HANDLE_INFORMATION
, *PSYSTEM_HANDLE_INFORMATION
;
1870 /* System Information Class 0x15 */
1872 typedef struct _SYSTEM_CACHE_INFORMATION
{
1875 ULONG PageFaultCount
;
1876 ULONG MinimumWorkingSet
;
1877 ULONG MaximumWorkingSet
;
1882 } SYSTEM_CACHE_INFORMATION
, *PSYSTEM_CACHE_INFORMATION
;
1884 /* System Information Class 0x17 */
1886 typedef struct _SYSTEM_INTERRUPT_INFORMATION
{
1888 } SYSTEM_INTERRUPT_INFORMATION
, *PSYSTEM_INTERRUPT_INFORMATION
;
1890 typedef struct _SYSTEM_CONFIGURATION_INFO
{
1894 WORD ProcessorArchitecture
;
1899 PVOID MinimumApplicationAddress
;
1900 PVOID MaximumApplicationAddress
;
1901 ULONG ActiveProcessorMask
;
1902 ULONG NumberOfProcessors
;
1903 ULONG ProcessorType
;
1904 ULONG AllocationGranularity
;
1905 WORD ProcessorLevel
;
1906 WORD ProcessorRevision
;
1907 } SYSTEM_CONFIGURATION_INFO
, *PSYSTEM_CONFIGURATION_INFO
;
1909 typedef struct _SYSTEM_EXCEPTION_INFORMATION
{
1911 } SYSTEM_EXCEPTION_INFORMATION
, *PSYSTEM_EXCEPTION_INFORMATION
;
1913 typedef struct _SYSTEM_LOOKASIDE_INFORMATION
{
1915 } SYSTEM_LOOKASIDE_INFORMATION
, *PSYSTEM_LOOKASIDE_INFORMATION
;
1917 typedef struct _SYSTEM_KERNEL_DEBUGGER_INFORMATION
{
1918 BOOLEAN DebuggerEnabled
;
1919 BOOLEAN DebuggerNotPresent
;
1920 } SYSTEM_KERNEL_DEBUGGER_INFORMATION
, *PSYSTEM_KERNEL_DEBUGGER_INFORMATION
;
1922 typedef struct _VM_COUNTERS
1924 SIZE_T PeakVirtualSize
;
1926 ULONG PageFaultCount
;
1927 SIZE_T PeakWorkingSetSize
;
1928 SIZE_T WorkingSetSize
;
1929 SIZE_T QuotaPeakPagedPoolUsage
;
1930 SIZE_T QuotaPagedPoolUsage
;
1931 SIZE_T QuotaPeakNonPagedPoolUsage
;
1932 SIZE_T QuotaNonPagedPoolUsage
;
1933 SIZE_T PagefileUsage
;
1934 SIZE_T PeakPagefileUsage
;
1935 } VM_COUNTERS
, *PVM_COUNTERS
;
1937 typedef struct _VM_COUNTERS_EX
1939 SIZE_T PeakVirtualSize
;
1941 ULONG PageFaultCount
;
1942 SIZE_T PeakWorkingSetSize
;
1943 SIZE_T WorkingSetSize
;
1944 SIZE_T QuotaPeakPagedPoolUsage
;
1945 SIZE_T QuotaPagedPoolUsage
;
1946 SIZE_T QuotaPeakNonPagedPoolUsage
;
1947 SIZE_T QuotaNonPagedPoolUsage
;
1948 SIZE_T PagefileUsage
;
1949 SIZE_T PeakPagefileUsage
;
1950 SIZE_T PrivateUsage
;
1951 } VM_COUNTERS_EX
, *PVM_COUNTERS_EX
;
1953 typedef struct _SYSTEM_PROCESS_INFORMATION
{
1954 #ifdef __WINESRC__ /* win32/win64 */
1955 ULONG NextEntryOffset
; /* 00/00 */
1956 DWORD dwThreadCount
; /* 04/04 */
1957 DWORD dwUnknown1
[6]; /* 08/08 */
1958 LARGE_INTEGER CreationTime
; /* 20/20 */
1959 LARGE_INTEGER UserTime
; /* 28/28 */
1960 LARGE_INTEGER KernelTime
; /* 30/30 */
1961 UNICODE_STRING ProcessName
; /* 38/38 */
1962 DWORD dwBasePriority
; /* 40/48 */
1963 HANDLE UniqueProcessId
; /* 44/50 */
1964 HANDLE ParentProcessId
; /* 48/58 */
1965 ULONG HandleCount
; /* 4c/60 */
1966 ULONG SessionId
; /* 50/64 */
1967 DWORD dwUnknown4
; /* 54/68 */
1968 VM_COUNTERS_EX vmCounters
; /* 58/70 */
1969 IO_COUNTERS ioCounters
; /* 88/d0 */
1970 SYSTEM_THREAD_INFORMATION ti
[1]; /* b8/100 */
1972 ULONG NextEntryOffset
; /* 00/00 */
1973 BYTE Reserved1
[52]; /* 04/04 */
1974 PVOID Reserved2
[3]; /* 38/38 */
1975 HANDLE UniqueProcessId
; /* 44/50 */
1976 PVOID Reserved3
; /* 48/58 */
1977 ULONG HandleCount
; /* 4c/60 */
1978 BYTE Reserved4
[4]; /* 50/64 */
1979 PVOID Reserved5
[11]; /* 54/68 */
1980 SIZE_T PeakPagefileUsage
; /* 80/c0 */
1981 SIZE_T PrivatePageCount
; /* 84/c8 */
1982 LARGE_INTEGER Reserved6
[6]; /* 88/d0 */
1984 } SYSTEM_PROCESS_INFORMATION
, *PSYSTEM_PROCESS_INFORMATION
;
1986 typedef struct _SYSTEM_REGISTRY_QUOTA_INFORMATION
{
1987 ULONG RegistryQuotaAllowed
;
1988 ULONG RegistryQuotaUsed
;
1990 } SYSTEM_REGISTRY_QUOTA_INFORMATION
, *PSYSTEM_REGISTRY_QUOTA_INFORMATION
;
1992 typedef struct _SYSTEM_TIME_ADJUSTMENT_QUERY
{
1993 ULONG TimeAdjustment
;
1994 ULONG TimeIncrement
;
1995 BOOLEAN TimeAdjustmentDisabled
;
1996 } SYSTEM_TIME_ADJUSTMENT_QUERY
, *PSYSTEM_TIME_ADJUSTMENT_QUERY
;
1998 typedef struct _SYSTEM_TIME_ADJUSTMENT
{
1999 ULONG TimeAdjustment
;
2000 BOOLEAN TimeAdjustmentDisabled
;
2001 } SYSTEM_TIME_ADJUSTMENT
, *PSYSTEM_TIME_ADJUSTMENT
;
2003 typedef enum _SYSTEM_FIRMWARE_TABLE_ACTION
2005 SystemFirmwareTable_Enumerate
= 0,
2006 SystemFirmwareTable_Get
= 1
2007 } SYSTEM_FIRMWARE_TABLE_ACTION
, *PSYSTEM_FIRMWARE_TABLE_ACTION
;
2009 /* System Information Class 0x4C */
2011 typedef struct _SYSTEM_FIRMWARE_TABLE_INFORMATION
2013 ULONG ProviderSignature
;
2014 SYSTEM_FIRMWARE_TABLE_ACTION Action
;
2016 ULONG TableBufferLength
;
2017 UCHAR TableBuffer
[1];
2018 } SYSTEM_FIRMWARE_TABLE_INFORMATION
, *PSYSTEM_FIRMWARE_TABLE_INFORMATION
;
2020 typedef struct _TIME_FIELDS
2027 CSHORT Milliseconds
;
2029 } TIME_FIELDS
, *PTIME_FIELDS
;
2031 typedef struct _WINSTATIONINFORMATIONW
{
2034 BYTE Reserved3
[1140];
2035 } WINSTATIONINFORMATIONW
, *PWINSTATIONINFORMATIONW
;
2037 typedef BOOLEAN (WINAPI
* PWINSTATIONQUERYINFORMATIONW
)(HANDLE
,ULONG
,WINSTATIONINFOCLASS
,PVOID
,ULONG
,PULONG
);
2039 typedef struct _LDR_RESOURCE_INFO
2044 } LDR_RESOURCE_INFO
, *PLDR_RESOURCE_INFO
;
2047 /* debug buffer definitions */
2049 typedef struct _DEBUG_BUFFER
{
2050 HANDLE SectionHandle
;
2052 PVOID RemoteSectionBase
;
2053 ULONG SectionBaseDelta
;
2054 HANDLE EventPairHandle
;
2056 HANDLE RemoteThreadHandle
;
2057 ULONG InfoClassMask
;
2059 ULONG AllocatedSize
;
2061 PVOID ModuleInformation
;
2062 PVOID BackTraceInformation
;
2063 PVOID HeapInformation
;
2064 PVOID LockInformation
;
2066 } DEBUG_BUFFER
, *PDEBUG_BUFFER
;
2068 #define PDI_MODULES 0x01
2069 #define PDI_BACKTRACE 0x02
2070 #define PDI_HEAPS 0x04
2071 #define PDI_HEAP_TAGS 0x08
2072 #define PDI_HEAP_BLOCKS 0x10
2073 #define PDI_LOCKS 0x20
2075 typedef struct _DEBUG_MODULE_INFORMATION
{
2083 USHORT ModuleNameOffset
;
2084 CHAR ImageName
[256];
2085 } DEBUG_MODULE_INFORMATION
, *PDEBUG_MODULE_INFORMATION
;
2087 typedef struct _DEBUG_HEAP_INFORMATION
{
2099 } DEBUG_HEAP_INFORMATION
, *PDEBUG_HEAP_INFORMATION
;
2101 typedef struct _DEBUG_LOCK_INFORMATION
{
2104 USHORT CreatorBackTraceIndex
;
2105 ULONG OwnerThreadId
;
2107 ULONG ContentionCount
;
2109 ULONG RecursionCount
;
2110 ULONG NumberOfSharedWaiters
;
2111 ULONG NumberOfExclusiveWaiters
;
2112 } DEBUG_LOCK_INFORMATION
, *PDEBUG_LOCK_INFORMATION
;
2114 typedef struct _PORT_MESSAGE_HEADER
{
2118 USHORT VirtualRangesOffset
;
2122 } PORT_MESSAGE_HEADER
, *PPORT_MESSAGE_HEADER
, PORT_MESSAGE
, *PPORT_MESSAGE
;
2124 typedef unsigned short RTL_ATOM
, *PRTL_ATOM
;
2126 /* Wine doesn't implement atom table as NT does:
2127 * - in NT, atom tables are user space tables, which ntdll directly accesses
2128 * - on Wine, (even local) atom tables are wineserver objects, hence a HANDLE
2130 typedef struct atom_table
*RTL_ATOM_TABLE
, **PRTL_ATOM_TABLE
;
2132 typedef enum _ATOM_INFORMATION_CLASS
{
2133 AtomBasicInformation
= 0,
2134 AtomTableInformation
= 1,
2135 } ATOM_INFORMATION_CLASS
;
2137 typedef struct _ATOM_BASIC_INFORMATION
{
2138 USHORT ReferenceCount
;
2142 } ATOM_BASIC_INFORMATION
, *PATOM_BASIC_INFORMATION
;
2144 /* FIXME: names probably not correct */
2145 typedef struct _RTL_HANDLE
2147 struct _RTL_HANDLE
* Next
;
2150 /* FIXME: names probably not correct */
2151 typedef struct _RTL_HANDLE_TABLE
2153 ULONG MaxHandleCount
; /* 0x00 */
2154 ULONG HandleSize
; /* 0x04 */
2155 ULONG Unused
[2]; /* 0x08-0x0c */
2156 PVOID NextFree
; /* 0x10 */
2157 PVOID FirstHandle
; /* 0x14 */
2158 PVOID ReservedMemory
; /* 0x18 */
2159 PVOID MaxHandle
; /* 0x1c */
2162 /***********************************************************************
2166 /* flags for NtCreateFile and NtOpenFile */
2167 #define FILE_DIRECTORY_FILE 0x00000001
2168 #define FILE_WRITE_THROUGH 0x00000002
2169 #define FILE_SEQUENTIAL_ONLY 0x00000004
2170 #define FILE_NO_INTERMEDIATE_BUFFERING 0x00000008
2171 #define FILE_SYNCHRONOUS_IO_ALERT 0x00000010
2172 #define FILE_SYNCHRONOUS_IO_NONALERT 0x00000020
2173 #define FILE_NON_DIRECTORY_FILE 0x00000040
2174 #define FILE_CREATE_TREE_CONNECTION 0x00000080
2175 #define FILE_COMPLETE_IF_OPLOCKED 0x00000100
2176 #define FILE_NO_EA_KNOWLEDGE 0x00000200
2177 #define FILE_OPEN_FOR_RECOVERY 0x00000400
2178 #define FILE_RANDOM_ACCESS 0x00000800
2179 #define FILE_DELETE_ON_CLOSE 0x00001000
2180 #define FILE_OPEN_BY_FILE_ID 0x00002000
2181 #define FILE_OPEN_FOR_BACKUP_INTENT 0x00004000
2182 #define FILE_NO_COMPRESSION 0x00008000
2183 #define FILE_RESERVE_OPFILTER 0x00100000
2184 #define FILE_OPEN_REPARSE_POINT 0x00200000
2185 #define FILE_OPEN_OFFLINE_FILE 0x00400000
2186 #define FILE_OPEN_FOR_FREE_SPACE_QUERY 0x00800000
2188 #define FILE_ATTRIBUTE_VALID_FLAGS 0x00007fb7
2189 #define FILE_ATTRIBUTE_VALID_SET_FLAGS 0x000031a7
2191 /* status for NtCreateFile or NtOpenFile */
2192 #define FILE_SUPERSEDED 0
2193 #define FILE_OPENED 1
2194 #define FILE_CREATED 2
2195 #define FILE_OVERWRITTEN 3
2196 #define FILE_EXISTS 4
2197 #define FILE_DOES_NOT_EXIST 5
2199 /* disposition for NtCreateFile */
2200 #define FILE_SUPERSEDE 0
2202 #define FILE_CREATE 2
2203 #define FILE_OPEN_IF 3
2204 #define FILE_OVERWRITE 4
2205 #define FILE_OVERWRITE_IF 5
2206 #define FILE_MAXIMUM_DISPOSITION 5
2208 /* Characteristics of a File System */
2209 #define FILE_REMOVABLE_MEDIA 0x00000001
2210 #define FILE_READ_ONLY_DEVICE 0x00000002
2211 #define FILE_FLOPPY_DISKETTE 0x00000004
2212 #define FILE_WRITE_ONE_MEDIA 0x00000008
2213 #define FILE_REMOTE_DEVICE 0x00000010
2214 #define FILE_DEVICE_IS_MOUNTED 0x00000020
2215 #define FILE_VIRTUAL_VOLUME 0x00000040
2216 #define FILE_AUTOGENERATED_DEVICE_NAME 0x00000080
2217 #define FILE_DEVICE_SECURE_OPEN 0x00000100
2218 #define FILE_CHARACTERISTIC_PNP_DEVICE 0x00000800
2219 #define FILE_CHARACTERISTIC_TS_DEVICE 0x00001000
2220 #define FILE_CHARACTERISTIC_WEBDAV_DEVICE 0x00002000
2221 #define FILE_CHARACTERISTIC_CSV 0x00010000
2222 #define FILE_DEVICE_ALLOW_APPCONTAINER_TRAVERSAL 0x00020000
2223 #define FILE_PORTABLE_DEVICE 0x00040000
2225 /* options for NtCreateNamedPipeFile */
2226 #define FILE_PIPE_INBOUND 0x00000000
2227 #define FILE_PIPE_OUTBOUND 0x00000001
2228 #define FILE_PIPE_FULL_DUPLEX 0x00000002
2230 /* options for pipe's type */
2231 #define FILE_PIPE_TYPE_MESSAGE 0x00000001
2232 #define FILE_PIPE_TYPE_BYTE 0x00000000
2233 /* options for pipe's message mode */
2234 #define FILE_PIPE_MESSAGE_MODE 0x00000001
2235 #define FILE_PIPE_BYTE_STREAM_MODE 0x00000000
2236 /* options for pipe's blocking mode */
2237 #define FILE_PIPE_COMPLETE_OPERATION 0x00000001
2238 #define FILE_PIPE_QUEUE_OPERATION 0x00000000
2239 /* and client / server end */
2240 #define FILE_PIPE_SERVER_END 0x00000001
2241 #define FILE_PIPE_CLIENT_END 0x00000000
2243 #define INTERNAL_TS_ACTIVE_CONSOLE_ID ( *((volatile ULONG*)(0x7ffe02d8)) )
2245 #define LOGONID_CURRENT ((ULONG)-1)
2247 #define OBJ_INHERIT 0x00000002
2248 #define OBJ_PERMANENT 0x00000010
2249 #define OBJ_EXCLUSIVE 0x00000020
2250 #define OBJ_CASE_INSENSITIVE 0x00000040
2251 #define OBJ_OPENIF 0x00000080
2252 #define OBJ_OPENLINK 0x00000100
2253 #define OBJ_KERNEL_HANDLE 0x00000200
2254 #define OBJ_VALID_ATTRIBUTES 0x000003F2
2256 #define SERVERNAME_CURRENT ((HANDLE)NULL)
2258 typedef void (CALLBACK
*PNTAPCFUNC
)(ULONG_PTR
,ULONG_PTR
,ULONG_PTR
); /* FIXME: not the right name */
2259 typedef void (CALLBACK
*PRTL_THREAD_START_ROUTINE
)(LPVOID
); /* FIXME: not the right name */
2260 typedef DWORD (CALLBACK
*PRTL_WORK_ITEM_ROUTINE
)(LPVOID
); /* FIXME: not the right name */
2261 typedef void (NTAPI
*RTL_WAITORTIMERCALLBACKFUNC
)(PVOID
,BOOLEAN
); /* FIXME: not the right name */
2264 /* DbgPrintEx default levels */
2265 #define DPFLTR_ERROR_LEVEL 0
2266 #define DPFLTR_WARNING_LEVEL 1
2267 #define DPFLTR_TRACE_LEVEL 2
2268 #define DPFLTR_INFO_LEVEL 3
2269 #define DPFLTR_MASK 0x8000000
2271 /* Well-known LUID values */
2272 #define SE_MIN_WELL_KNOWN_PRIVILEGE 2
2273 #define SE_CREATE_TOKEN_PRIVILEGE 2
2274 #define SE_ASSIGNPRIMARYTOKEN_PRIVILEGE 3
2275 #define SE_LOCK_MEMORY_PRIVILEGE 4
2276 #define SE_INCREASE_QUOTA_PRIVILEGE 5
2277 #define SE_UNSOLICITED_INPUT_PRIVILEGE 6 /* obsolete */
2278 #define SE_MACHINE_ACCOUNT_PRIVILEGE 6
2279 #define SE_TCB_PRIVILEGE 7
2280 #define SE_SECURITY_PRIVILEGE 8
2281 #define SE_TAKE_OWNERSHIP_PRIVILEGE 9
2282 #define SE_LOAD_DRIVER_PRIVILEGE 10
2283 #define SE_SYSTEM_PROFILE_PRIVILEGE 11
2284 #define SE_SYSTEMTIME_PRIVILEGE 12
2285 #define SE_PROF_SINGLE_PROCESS_PRIVILEGE 13
2286 #define SE_INC_BASE_PRIORITY_PRIVILEGE 14
2287 #define SE_CREATE_PAGEFILE_PRIVILEGE 15
2288 #define SE_CREATE_PERMANENT_PRIVILEGE 16
2289 #define SE_BACKUP_PRIVILEGE 17
2290 #define SE_RESTORE_PRIVILEGE 18
2291 #define SE_SHUTDOWN_PRIVILEGE 19
2292 #define SE_DEBUG_PRIVILEGE 20
2293 #define SE_AUDIT_PRIVILEGE 21
2294 #define SE_SYSTEM_ENVIRONMENT_PRIVILEGE 22
2295 #define SE_CHANGE_NOTIFY_PRIVILEGE 23
2296 #define SE_REMOTE_SHUTDOWN_PRIVILEGE 24
2297 #define SE_UNDOCK_PRIVILEGE 25
2298 #define SE_SYNC_AGENT_PRIVILEGE 26
2299 #define SE_ENABLE_DELEGATION_PRIVILEGE 27
2300 #define SE_MANAGE_VOLUME_PRIVILEGE 28
2301 #define SE_IMPERSONATE_PRIVILEGE 29
2302 #define SE_CREATE_GLOBAL_PRIVILEGE 30
2303 #define SE_MAX_WELL_KNOWN_PRIVILEGE SE_CREATE_GLOBAL_PRIVILEGE
2305 /* NtGlobalFlag bits */
2306 #define FLG_STOP_ON_EXCEPTION 0x00000001
2307 #define FLG_SHOW_LDR_SNAPS 0x00000002
2308 #define FLG_DEBUG_INITIAL_COMMAND 0x00000004
2309 #define FLG_STOP_ON_HUNG_GUI 0x00000008
2310 #define FLG_HEAP_ENABLE_TAIL_CHECK 0x00000010
2311 #define FLG_HEAP_ENABLE_FREE_CHECK 0x00000020
2312 #define FLG_HEAP_VALIDATE_PARAMETERS 0x00000040
2313 #define FLG_HEAP_VALIDATE_ALL 0x00000080
2314 #define FLG_APPLICATION_VERIFIER 0x00000100
2315 #define FLG_POOL_ENABLE_TAGGING 0x00000400
2316 #define FLG_HEAP_ENABLE_TAGGING 0x00000800
2317 #define FLG_USER_STACK_TRACE_DB 0x00001000
2318 #define FLG_KERNEL_STACK_TRACE_DB 0x00002000
2319 #define FLG_MAINTAIN_OBJECT_TYPELIST 0x00004000
2320 #define FLG_HEAP_ENABLE_TAG_BY_DLL 0x00008000
2321 #define FLG_DISABLE_STACK_EXTENSION 0x00010000
2322 #define FLG_ENABLE_CSRDEBUG 0x00020000
2323 #define FLG_ENABLE_KDEBUG_SYMBOL_LOAD 0x00040000
2324 #define FLG_DISABLE_PAGE_KERNEL_STACKS 0x00080000
2325 #define FLG_ENABLE_SYSTEM_CRIT_BREAKS 0x00100000
2326 #define FLG_HEAP_DISABLE_COALESCING 0x00200000
2327 #define FLG_ENABLE_CLOSE_EXCEPTIONS 0x00400000
2328 #define FLG_ENABLE_EXCEPTION_LOGGING 0x00800000
2329 #define FLG_ENABLE_HANDLE_TYPE_TAGGING 0x01000000
2330 #define FLG_HEAP_PAGE_ALLOCS 0x02000000
2331 #define FLG_DEBUG_INITIAL_COMMAND_EX 0x04000000
2332 #define FLG_DISABLE_DBGPRINT 0x08000000
2333 #define FLG_CRITSEC_EVENT_CREATION 0x10000000
2334 #define FLG_LDR_TOP_DOWN 0x20000000
2335 #define FLG_ENABLE_HANDLE_EXCEPTIONS 0x40000000
2336 #define FLG_DISABLE_PROTDLLS 0x80000000
2338 /* Rtl*Registry* functions structs and defines */
2339 #define RTL_REGISTRY_ABSOLUTE 0
2340 #define RTL_REGISTRY_SERVICES 1
2341 #define RTL_REGISTRY_CONTROL 2
2342 #define RTL_REGISTRY_WINDOWS_NT 3
2343 #define RTL_REGISTRY_DEVICEMAP 4
2344 #define RTL_REGISTRY_USER 5
2346 #define RTL_REGISTRY_HANDLE 0x40000000
2347 #define RTL_REGISTRY_OPTIONAL 0x80000000
2349 #define RTL_QUERY_REGISTRY_SUBKEY 0x00000001
2350 #define RTL_QUERY_REGISTRY_TOPKEY 0x00000002
2351 #define RTL_QUERY_REGISTRY_REQUIRED 0x00000004
2352 #define RTL_QUERY_REGISTRY_NOVALUE 0x00000008
2353 #define RTL_QUERY_REGISTRY_NOEXPAND 0x00000010
2354 #define RTL_QUERY_REGISTRY_DIRECT 0x00000020
2355 #define RTL_QUERY_REGISTRY_DELETE 0x00000040
2356 #define RTL_QUERY_REGISTRY_TYPECHECK 0x00000100
2358 #define RTL_QUERY_REGISTRY_TYPECHECK_SHIFT 24
2360 typedef NTSTATUS (WINAPI
*PRTL_QUERY_REGISTRY_ROUTINE
)( PCWSTR ValueName
,
2365 PVOID EntryContext
);
2367 typedef struct _RTL_QUERY_REGISTRY_TABLE
2369 PRTL_QUERY_REGISTRY_ROUTINE QueryRoutine
;
2375 ULONG DefaultLength
;
2376 } RTL_QUERY_REGISTRY_TABLE
, *PRTL_QUERY_REGISTRY_TABLE
;
2378 typedef struct _KEY_MULTIPLE_VALUE_INFORMATION
2380 PUNICODE_STRING ValueName
;
2384 } KEY_MULTIPLE_VALUE_INFORMATION
, *PKEY_MULTIPLE_VALUE_INFORMATION
;
2386 typedef VOID (CALLBACK
*PRTL_OVERLAPPED_COMPLETION_ROUTINE
)(DWORD
,DWORD
,LPVOID
);
2388 typedef VOID (CALLBACK
*PTIMER_APC_ROUTINE
) ( PVOID
, ULONG
, LONG
);
2390 typedef enum _EVENT_INFORMATION_CLASS
{
2391 EventBasicInformation
2392 } EVENT_INFORMATION_CLASS
, *PEVENT_INFORMATION_CLASS
;
2394 typedef struct _EVENT_BASIC_INFORMATION
{
2395 EVENT_TYPE EventType
;
2397 } EVENT_BASIC_INFORMATION
, *PEVENT_BASIC_INFORMATION
;
2399 typedef enum _SEMAPHORE_INFORMATION_CLASS
{
2400 SemaphoreBasicInformation
2401 } SEMAPHORE_INFORMATION_CLASS
, *PSEMAPHORE_INFORMATION_CLASS
;
2403 typedef struct _SEMAPHORE_BASIC_INFORMATION
{
2406 } SEMAPHORE_BASIC_INFORMATION
, *PSEMAPHORE_BASIC_INFORMATION
;
2408 typedef enum _SECTION_INFORMATION_CLASS
2410 SectionBasicInformation
,
2411 SectionImageInformation
,
2412 } SECTION_INFORMATION_CLASS
;
2414 typedef struct _SECTION_BASIC_INFORMATION
{
2418 } SECTION_BASIC_INFORMATION
, *PSECTION_BASIC_INFORMATION
;
2420 typedef struct _SECTION_IMAGE_INFORMATION
{
2421 PVOID TransferAddress
;
2423 SIZE_T MaximumStackSize
;
2424 SIZE_T CommittedStackSize
;
2425 ULONG SubSystemType
;
2426 WORD SubsystemVersionLow
;
2427 WORD SubsystemVersionHigh
;
2429 USHORT ImageCharacteristics
;
2430 USHORT DllCharacteristics
;
2432 BOOLEAN ImageContainsCode
;
2438 UCHAR ComPlusNativeReady
: 1;
2439 UCHAR ComPlusILOnly
: 1;
2440 UCHAR ImageDynamicallyRelocated
: 1;
2441 UCHAR ImageMappedFlat
: 1;
2442 UCHAR BaseBelow4gb
: 1;
2447 ULONG ImageFileSize
;
2449 } SECTION_IMAGE_INFORMATION
, *PSECTION_IMAGE_INFORMATION
;
2451 typedef struct _LPC_SECTION_WRITE
{
2453 HANDLE SectionHandle
;
2454 ULONG SectionOffset
;
2457 PVOID TargetViewBase
;
2458 } LPC_SECTION_WRITE
, *PLPC_SECTION_WRITE
;
2460 typedef struct _LPC_SECTION_READ
{
2464 } LPC_SECTION_READ
, *PLPC_SECTION_READ
;
2466 typedef struct _LPC_MESSAGE
{
2470 USHORT VirtualRangesOffset
;
2472 ULONG_PTR MessageId
;
2473 ULONG_PTR SectionSize
;
2474 UCHAR Data
[ANYSIZE_ARRAY
];
2475 } LPC_MESSAGE
, *PLPC_MESSAGE
;
2477 typedef struct _RTL_USER_PROCESS_INFORMATION
2483 SECTION_IMAGE_INFORMATION ImageInformation
;
2484 } RTL_USER_PROCESS_INFORMATION
, *PRTL_USER_PROCESS_INFORMATION
;
2486 typedef enum _SHUTDOWN_ACTION
{
2490 } SHUTDOWN_ACTION
, *PSHUTDOWN_ACTION
;
2492 typedef struct _COUNTED_REASON_CONTEXT
2500 UNICODE_STRING ResourceFileName
;
2501 USHORT ResourceReasonId
;
2503 UNICODE_STRING
*ReasonStrings
;
2505 UNICODE_STRING SimpleString
;
2507 } COUNTED_REASON_CONTEXT
, *PCOUNTED_REASON_CONTEXT
;
2509 typedef enum _KPROFILE_SOURCE
{
2511 ProfileAlignmentFixup
,
2514 ProfileLoadInstructions
,
2515 ProfilePipelineFrozen
,
2516 ProfileBranchInstructions
,
2517 ProfileTotalNonissues
,
2518 ProfileDcacheMisses
,
2519 ProfileIcacheMisses
,
2521 ProfileBranchMispredictions
,
2522 ProfileStoreInstructions
,
2523 ProfileFpInstructions
,
2524 ProfileIntegerInstructions
,
2528 ProfileSpecialInstructions
,
2530 ProfileIcacheIssues
,
2531 ProfileDcacheAccesses
,
2532 ProfileMemoryBarrierCycles
,
2533 ProfileLoadLinkedIssues
,
2535 } KPROFILE_SOURCE
, *PKPROFILE_SOURCE
;
2537 typedef struct _DIRECTORY_BASIC_INFORMATION
{
2538 UNICODE_STRING ObjectName
;
2539 UNICODE_STRING ObjectTypeName
;
2540 } DIRECTORY_BASIC_INFORMATION
, *PDIRECTORY_BASIC_INFORMATION
;
2542 typedef struct _INITIAL_TEB
{
2544 void *OldStackLimit
;
2547 void *DeallocationStack
;
2548 } INITIAL_TEB
, *PINITIAL_TEB
;
2550 typedef enum _PORT_INFORMATION_CLASS
{
2552 } PORT_INFORMATION_CLASS
, *PPORT_INFORMATION_CLASS
;
2554 typedef enum _IO_COMPLETION_INFORMATION_CLASS
{
2555 IoCompletionBasicInformation
2556 } IO_COMPLETION_INFORMATION_CLASS
, *PIO_COMPLETION_INFORMATION_CLASS
;
2558 typedef struct _FILE_COMPLETION_INFORMATION
{
2559 HANDLE CompletionPort
;
2560 ULONG_PTR CompletionKey
;
2561 } FILE_COMPLETION_INFORMATION
, *PFILE_COMPLETION_INFORMATION
;
2563 #define IO_COMPLETION_QUERY_STATE 0x0001
2564 #define IO_COMPLETION_MODIFY_STATE 0x0002
2565 #define IO_COMPLETION_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED|SYNCHRONIZE|0x3)
2567 typedef struct _FILE_IO_COMPLETION_INFORMATION
{
2568 ULONG_PTR CompletionKey
;
2569 ULONG_PTR CompletionValue
;
2570 IO_STATUS_BLOCK IoStatusBlock
;
2571 } FILE_IO_COMPLETION_INFORMATION
, *PFILE_IO_COMPLETION_INFORMATION
;
2573 typedef enum _HARDERROR_RESPONSE_OPTION
{
2574 OptionAbortRetryIgnore
,
2580 OptionShutdownSystem
2581 } HARDERROR_RESPONSE_OPTION
, *PHARDERROR_RESPONSE_OPTION
;
2583 typedef enum _HARDERROR_RESPONSE
{
2584 ResponseReturnToCaller
,
2593 } HARDERROR_RESPONSE
, *PHARDERROR_RESPONSE
;
2595 typedef enum _SYSDBG_COMMAND
{
2596 SysDbgQueryModuleInformation
,
2597 SysDbgQueryTraceInformation
,
2598 SysDbgSetTracepoint
,
2599 SysDbgSetSpecialCall
,
2600 SysDbgClearSpecialCalls
,
2601 SysDbgQuerySpecialCalls
,
2607 SysDbgWritePhysical
,
2608 SysDbgReadControlSpace
,
2609 SysDbgWriteControlSpace
,
2616 } SYSDBG_COMMAND
, *PSYSDBG_COMMAND
;
2618 typedef struct _CPTABLEINFO
2621 USHORT MaximumCharacterSize
;
2623 USHORT UniDefaultChar
;
2624 USHORT TransDefaultChar
;
2625 USHORT TransUniDefaultChar
;
2626 USHORT DBCSCodePage
;
2628 USHORT
*MultiByteTable
;
2629 void *WideCharTable
;
2631 USHORT
*DBCSOffsets
;
2632 } CPTABLEINFO
, *PCPTABLEINFO
;
2634 typedef struct _NLSTABLEINFO
2636 CPTABLEINFO OemTableInfo
;
2637 CPTABLEINFO AnsiTableInfo
;
2638 USHORT
*UpperCaseTable
;
2639 USHORT
*LowerCaseTable
;
2640 } NLSTABLEINFO
, *PNLSTABLEINFO
;
2642 /*************************************************************************
2645 * Those are not part of standard Winternl.h
2648 typedef struct _LDR_SERVICE_TAG_RECORD
2650 struct _LDR_SERVICE_TAG_RECORD
*Next
;
2652 } LDR_SERVICE_TAG_RECORD
, *PLDR_SERVICE_TAG_RECORD
;
2654 typedef struct _LDRP_CSLIST
2656 SINGLE_LIST_ENTRY
*Tail
;
2657 } LDRP_CSLIST
, *PLDRP_CSLIST
;
2659 typedef enum _LDR_DDAG_STATE
2661 LdrModulesMerged
= -5,
2662 LdrModulesInitError
= -4,
2663 LdrModulesSnapError
= -3,
2664 LdrModulesUnloaded
= -2,
2665 LdrModulesUnloading
= -1,
2666 LdrModulesPlaceHolder
= 0,
2667 LdrModulesMapping
= 1,
2668 LdrModulesMapped
= 2,
2669 LdrModulesWaitingForDependencies
= 3,
2670 LdrModulesSnapping
= 4,
2671 LdrModulesSnapped
= 5,
2672 LdrModulesCondensed
= 6,
2673 LdrModulesReadyToInit
= 7,
2674 LdrModulesInitializing
= 8,
2675 LdrModulesReadyToRun
= 9,
2678 typedef struct _LDR_DDAG_NODE
2681 LDR_SERVICE_TAG_RECORD
*ServiceTagList
;
2683 ULONG ReferenceCount
;
2684 ULONG DependencyCount
;
2687 LDRP_CSLIST Dependencies
;
2688 SINGLE_LIST_ENTRY RemovalLink
;
2690 LDRP_CSLIST IncomingDependencies
;
2691 LDR_DDAG_STATE State
;
2692 SINGLE_LIST_ENTRY CondenseLink
;
2693 ULONG PreorderNumber
;
2695 } LDR_DDAG_NODE
, *PLDR_DDAG_NODE
;
2697 typedef enum _LDR_DLL_LOAD_REASON
2699 LoadReasonStaticDependency
,
2700 LoadReasonStaticForwarderDependency
,
2701 LoadReasonDynamicForwarderDependency
,
2702 LoadReasonDelayloadDependency
,
2703 LoadReasonDynamicLoad
,
2704 LoadReasonAsImageLoad
,
2705 LoadReasonAsDataLoad
,
2706 LoadReasonUnknown
= -1
2707 } LDR_DLL_LOAD_REASON
, *PLDR_DLL_LOAD_REASON
;
2709 typedef struct _LDR_DATA_TABLE_ENTRY
2711 LIST_ENTRY InLoadOrderLinks
;
2712 LIST_ENTRY InMemoryOrderLinks
;
2713 LIST_ENTRY InInitializationOrderLinks
;
2717 UNICODE_STRING FullDllName
;
2718 UNICODE_STRING BaseDllName
;
2722 HANDLE SectionHandle
;
2724 ULONG TimeDateStamp
;
2725 HANDLE ActivationContext
;
2727 LDR_DDAG_NODE
* DdagNode
;
2728 LIST_ENTRY NodeModuleLink
;
2729 struct _LDRP_LOAD_CONTEXT
*LoadContext
;
2730 void* ParentDllBase
;
2731 void* SwitchBackContext
;
2732 RTL_BALANCED_NODE BaseAddressIndexNode
;
2733 RTL_BALANCED_NODE MappingInfoIndexNode
;
2734 ULONG_PTR OriginalBase
;
2735 LARGE_INTEGER LoadTime
;
2736 ULONG BaseNameHashValue
;
2737 LDR_DLL_LOAD_REASON LoadReason
;
2738 ULONG ImplicitPathOptions
;
2739 ULONG ReferenceCount
;
2740 } LDR_DATA_TABLE_ENTRY
, *PLDR_DATA_TABLE_ENTRY
;
2742 typedef struct _LDR_DLL_LOADED_NOTIFICATION_DATA
2745 const UNICODE_STRING
*FullDllName
;
2746 const UNICODE_STRING
*BaseDllName
;
2749 } LDR_DLL_LOADED_NOTIFICATION_DATA
, *PLDR_DLL_LOADED_NOTIFICATION_DATA
;
2751 typedef struct _LDR_DLL_UNLOADED_NOTIFICATION_DATA
2754 const UNICODE_STRING
*FullDllName
;
2755 const UNICODE_STRING
*BaseDllName
;
2758 } LDR_DLL_UNLOADED_NOTIFICATION_DATA
, *PLDR_DLL_UNLOADED_NOTIFICATION_DATA
;
2760 typedef union _LDR_DLL_NOTIFICATION_DATA
2762 LDR_DLL_LOADED_NOTIFICATION_DATA Loaded
;
2763 LDR_DLL_UNLOADED_NOTIFICATION_DATA Unloaded
;
2764 } LDR_DLL_NOTIFICATION_DATA
, *PLDR_DLL_NOTIFICATION_DATA
;
2766 typedef void (CALLBACK
*PLDR_DLL_NOTIFICATION_FUNCTION
)(ULONG
, LDR_DLL_NOTIFICATION_DATA
*, void*);
2768 /* those defines are (some of the) regular LDR_DATA_TABLE_ENTRY.Flags values */
2769 #define LDR_IMAGE_IS_DLL 0x00000004
2770 #define LDR_LOAD_IN_PROGRESS 0x00001000
2771 #define LDR_UNLOAD_IN_PROGRESS 0x00002000
2772 #define LDR_NO_DLL_CALLS 0x00040000
2773 #define LDR_PROCESS_ATTACHED 0x00080000
2774 #define LDR_COR_IMAGE 0x00400000
2775 #define LDR_COR_ILONLY 0x01000000
2777 /* these ones is Wine specific */
2778 #define LDR_DONT_RESOLVE_REFS 0x40000000
2779 #define LDR_WINE_INTERNAL 0x80000000
2781 /* flag for LdrAddRefDll */
2782 #define LDR_ADDREF_DLL_PIN 0x00000001
2784 #define LDR_DLL_NOTIFICATION_REASON_LOADED 1
2785 #define LDR_DLL_NOTIFICATION_REASON_UNLOADED 2
2787 /* FIXME: to be checked */
2788 #define MAXIMUM_FILENAME_LENGTH 256
2790 typedef struct _SYSTEM_MODULE
2792 PVOID Section
; /* 00/00 */
2793 PVOID MappedBaseAddress
; /* 04/08 */
2794 PVOID ImageBaseAddress
; /* 08/10 */
2795 ULONG ImageSize
; /* 0c/18 */
2796 ULONG Flags
; /* 10/1c */
2797 WORD LoadOrderIndex
; /* 14/20 */
2798 WORD InitOrderIndex
; /* 16/22 */
2799 WORD LoadCount
; /* 18/24 */
2800 WORD NameOffset
; /* 1a/26 */
2801 BYTE Name
[MAXIMUM_FILENAME_LENGTH
]; /* 1c/28 */
2802 } SYSTEM_MODULE
, *PSYSTEM_MODULE
;
2804 typedef struct _SYSTEM_MODULE_INFORMATION
2807 SYSTEM_MODULE Modules
[1]; /* FIXME: should be Modules[0] */
2808 } SYSTEM_MODULE_INFORMATION
, *PSYSTEM_MODULE_INFORMATION
;
2810 #define PROCESS_CREATE_FLAGS_BREAKAWAY 0x00000001
2811 #define PROCESS_CREATE_FLAGS_NO_DEBUG_INHERIT 0x00000002
2812 #define PROCESS_CREATE_FLAGS_INHERIT_HANDLES 0x00000004
2813 #define PROCESS_CREATE_FLAGS_OVERRIDE_ADDRESS_SPACE 0x00000008
2814 #define PROCESS_CREATE_FLAGS_LARGE_PAGES 0x00000010
2815 #define PROCESS_CREATE_FLAGS_LARGE_PAGE_SYSTEM_DLL 0x00000020
2816 #define PROCESS_CREATE_FLAGS_PROTECTED_PROCESS 0x00000040
2817 #define PROCESS_CREATE_FLAGS_CREATE_SESSION 0x00000080
2818 #define PROCESS_CREATE_FLAGS_INHERIT_FROM_PARENT 0x00000100
2819 #define PROCESS_CREATE_FLAGS_SUSPENDED 0x00000200
2820 #define PROCESS_CREATE_FLAGS_EXTENDED_UNKNOWN 0x00000400
2822 typedef struct _RTL_PROCESS_MODULE_INFORMATION_EX
2825 SYSTEM_MODULE BaseInfo
;
2826 ULONG ImageCheckSum
;
2827 ULONG TimeDateStamp
;
2829 } RTL_PROCESS_MODULE_INFORMATION_EX
;
2831 #define THREAD_CREATE_FLAGS_CREATE_SUSPENDED 0x00000001
2832 #define THREAD_CREATE_FLAGS_SKIP_THREAD_ATTACH 0x00000002
2833 #define THREAD_CREATE_FLAGS_HIDE_FROM_DEBUGGER 0x00000004
2834 #define THREAD_CREATE_FLAGS_HAS_SECURITY_DESCRIPTOR 0x00000010
2835 #define THREAD_CREATE_FLAGS_ACCESS_CHECK_IN_TARGET 0x00000020
2836 #define THREAD_CREATE_FLAGS_INITIAL_THREAD 0x00000080
2838 typedef LONG (CALLBACK
*PRTL_EXCEPTION_FILTER
)(PEXCEPTION_POINTERS
);
2840 typedef void (CALLBACK
*PTP_IO_CALLBACK
)(PTP_CALLBACK_INSTANCE
,void*,void*,IO_STATUS_BLOCK
*,PTP_IO
);
2842 #define PS_ATTRIBUTE_THREAD 0x00010000
2843 #define PS_ATTRIBUTE_INPUT 0x00020000
2844 #define PS_ATTRIBUTE_ADDITIVE 0x00040000
2846 typedef enum _PS_ATTRIBUTE_NUM
2848 PsAttributeParentProcess
,
2849 PsAttributeDebugPort
,
2851 PsAttributeClientId
,
2852 PsAttributeTebAddress
,
2853 PsAttributeImageName
,
2854 PsAttributeImageInfo
,
2855 PsAttributeMemoryReserve
,
2856 PsAttributePriorityClass
,
2857 PsAttributeErrorMode
,
2858 PsAttributeStdHandleInfo
,
2859 PsAttributeHandleList
,
2860 PsAttributeGroupAffinity
,
2861 PsAttributePreferredNode
,
2862 PsAttributeIdealProcessor
,
2863 PsAttributeUmsThread
,
2864 PsAttributeMitigationOptions
,
2865 PsAttributeProtectionLevel
,
2866 PsAttributeSecureProcess
,
2868 PsAttributeChildProcessPolicy
,
2869 PsAttributeAllApplicationPackagesPolicy
,
2870 PsAttributeWin32kFilter
,
2871 PsAttributeSafeOpenPromptOriginClaim
,
2872 PsAttributeBnoIsolation
,
2873 PsAttributeDesktopAppPolicy
,
2878 #define PS_ATTRIBUTE_PARENT_PROCESS (PsAttributeParentProcess | PS_ATTRIBUTE_INPUT | PS_ATTRIBUTE_ADDITIVE)
2879 #define PS_ATTRIBUTE_DEBUG_PORT (PsAttributeDebugPort | PS_ATTRIBUTE_INPUT | PS_ATTRIBUTE_ADDITIVE)
2880 #define PS_ATTRIBUTE_TOKEN (PsAttributeToken | PS_ATTRIBUTE_INPUT | PS_ATTRIBUTE_ADDITIVE)
2881 #define PS_ATTRIBUTE_CLIENT_ID (PsAttributeClientId | PS_ATTRIBUTE_THREAD)
2882 #define PS_ATTRIBUTE_TEB_ADDRESS (PsAttributeTebAddress | PS_ATTRIBUTE_THREAD)
2883 #define PS_ATTRIBUTE_IMAGE_NAME (PsAttributeImageName | PS_ATTRIBUTE_INPUT)
2884 #define PS_ATTRIBUTE_IMAGE_INFO (PsAttributeImageInfo)
2885 #define PS_ATTRIBUTE_MEMORY_RESERVE (PsAttributeMemoryReserve | PS_ATTRIBUTE_INPUT)
2886 #define PS_ATTRIBUTE_PRIORITY_CLASS (PsAttributePriorityClass | PS_ATTRIBUTE_INPUT)
2887 #define PS_ATTRIBUTE_ERROR_MODE (PsAttributeErrorMode | PS_ATTRIBUTE_INPUT)
2888 #define PS_ATTRIBUTE_STD_HANDLE_INFO (PsAttributeStdHandleInfo | PS_ATTRIBUTE_INPUT)
2889 #define PS_ATTRIBUTE_HANDLE_LIST (PsAttributeHandleList | PS_ATTRIBUTE_INPUT)
2890 #define PS_ATTRIBUTE_GROUP_AFFINITY (PsAttributeGroupAffinity | PS_ATTRIBUTE_THREAD | PS_ATTRIBUTE_INPUT)
2891 #define PS_ATTRIBUTE_PREFERRED_NODE (PsAttributePreferredNode | PS_ATTRIBUTE_INPUT)
2892 #define PS_ATTRIBUTE_IDEAL_PROCESSOR (PsAttributeIdealProcessor | PS_ATTRIBUTE_THREAD | PS_ATTRIBUTE_INPUT)
2893 #define PS_ATTRIBUTE_MITIGATION_OPTIONS (PsAttributeMitigationOptions | PS_ATTRIBUTE_INPUT | PS_ATTRIBUTE_UNKNOWN)
2894 #define PS_ATTRIBUTE_PROTECTION_LEVEL (PsAttributeProtectionLevel | PS_ATTRIBUTE_INPUT | PS_ATTRIBUTE_UNKNOWN)
2895 #define PS_ATTRIBUTE_SECURE_PROCESS (PsAttributeSecureProcess | PS_ATTRIBUTE_INPUT)
2896 #define PS_ATTRIBUTE_JOB_LIST (PsAttributeJobList | PS_ATTRIBUTE_INPUT)
2897 #define PS_ATTRIBUTE_CHILD_PROCESS_POLICY (PsAttributeChildProcessPolicy | PS_ATTRIBUTE_INPUT)
2898 #define PS_ATTRIBUTE_ALL_APPLICATION_PACKAGES_POLICY (PsAttributeAllApplicationPackagesPolicy | PS_ATTRIBUTE_INPUT)
2899 #define PS_ATTRIBUTE_WIN32K_FILTER (PsAttributeWin32kFilter | PS_ATTRIBUTE_INPUT)
2900 #define PS_ATTRIBUTE_SAFE_OPEN_PROMPT_ORIGIN_CLAIM (PsAttributeSafeOpenPromptOriginClaim | PS_ATTRIBUTE_INPUT)
2901 #define PS_ATTRIBUTE_BNO_ISOLATION (PsAttributeBnoIsolation | PS_ATTRIBUTE_INPUT)
2902 #define PS_ATTRIBUTE_DESKTOP_APP_POLICY (PsAttributeDesktopAppPolicy | PS_ATTRIBUTE_INPUT)
2904 typedef struct _PS_ATTRIBUTE
2906 ULONG_PTR Attribute
;
2913 SIZE_T
*ReturnLength
;
2916 typedef struct _PS_ATTRIBUTE_LIST
2919 PS_ATTRIBUTE Attributes
[1];
2920 } PS_ATTRIBUTE_LIST
, *PPS_ATTRIBUTE_LIST
;
2922 typedef enum _PS_CREATE_STATE
2924 PsCreateInitialState
,
2925 PsCreateFailOnFileOpen
,
2926 PsCreateFailOnSectionCreate
,
2927 PsCreateFailExeFormat
,
2928 PsCreateFailMachineMismatch
,
2929 PsCreateFailExeName
,
2931 PsCreateMaximumStates
2934 typedef struct _PS_CREATE_INFO
2937 PS_CREATE_STATE State
;
2947 UCHAR WriteOutputOnExit
: 1;
2948 UCHAR DetectManifest
: 1;
2949 UCHAR IFEOSkipDebugger
: 1;
2950 UCHAR IFEODoNotPropagateKeyState
: 1;
2951 UCHAR SpareBits1
: 4;
2952 UCHAR SpareBits2
: 8;
2953 USHORT ProhibitedImageCharacteristics
: 16;
2956 ACCESS_MASK AdditionalFileAccess
;
2964 USHORT DllCharacteristics
;
2977 UCHAR ProtectedProcess
: 1;
2978 UCHAR AddressSpaceOverride
: 1;
2979 UCHAR DevOverrideEnabled
: 1;
2980 UCHAR ManifestDetected
: 1;
2981 UCHAR ProtectedProcessLight
: 1;
2982 UCHAR SpareBits1
: 3;
2983 UCHAR SpareBits2
: 8;
2984 USHORT SpareBits3
: 16;
2988 HANDLE SectionHandle
;
2989 ULONGLONG UserProcessParametersNative
;
2990 ULONG UserProcessParametersWow64
;
2991 ULONG CurrentParameterFlags
;
2992 ULONGLONG PebAddressNative
;
2993 ULONG PebAddressWow64
;
2994 ULONGLONG ManifestAddress
;
2998 } PS_CREATE_INFO
, *PPS_CREATE_INFO
;
3000 /***********************************************************************
3001 * Function declarations
3004 NTSYSAPI
void WINAPI
DbgBreakPoint(void);
3005 NTSYSAPI NTSTATUS WINAPIV
DbgPrint(LPCSTR fmt
, ...);
3006 NTSYSAPI NTSTATUS WINAPIV
DbgPrintEx(ULONG iComponentId
, ULONG Level
, LPCSTR fmt
, ...);
3007 NTSYSAPI NTSTATUS WINAPI
DbgUiIssueRemoteBreakin(HANDLE
);
3008 NTSYSAPI
void WINAPI
DbgUiRemoteBreakin(void*);
3009 NTSYSAPI
void WINAPI
DbgUserBreakPoint(void);
3010 NTSYSAPI NTSTATUS WINAPI
LdrAccessResource(HMODULE
,const IMAGE_RESOURCE_DATA_ENTRY
*,void**,PULONG
);
3011 NTSYSAPI NTSTATUS WINAPI
LdrAddDllDirectory(const UNICODE_STRING
*,void**);
3012 NTSYSAPI NTSTATUS WINAPI
LdrAddRefDll(ULONG
,HMODULE
);
3013 NTSYSAPI NTSTATUS WINAPI
LdrDisableThreadCalloutsForDll(HMODULE
);
3014 NTSYSAPI NTSTATUS WINAPI
LdrFindEntryForAddress(const void*, PLDR_DATA_TABLE_ENTRY
*);
3015 NTSYSAPI NTSTATUS WINAPI
LdrFindResourceDirectory_U(HMODULE
,const LDR_RESOURCE_INFO
*,ULONG
,const IMAGE_RESOURCE_DIRECTORY
**);
3016 NTSYSAPI NTSTATUS WINAPI
LdrFindResource_U(HMODULE
,const LDR_RESOURCE_INFO
*,ULONG
,const IMAGE_RESOURCE_DATA_ENTRY
**);
3017 NTSYSAPI NTSTATUS WINAPI
LdrGetDllDirectory(UNICODE_STRING
*);
3018 NTSYSAPI NTSTATUS WINAPI
LdrGetDllHandle(LPCWSTR
, ULONG
, const UNICODE_STRING
*, HMODULE
*);
3019 NTSYSAPI NTSTATUS WINAPI
LdrGetDllPath(PCWSTR
,ULONG
,PWSTR
*,PWSTR
*);
3020 NTSYSAPI NTSTATUS WINAPI
LdrGetProcedureAddress(HMODULE
, const ANSI_STRING
*, ULONG
, void**);
3021 NTSYSAPI NTSTATUS WINAPI
LdrLoadDll(LPCWSTR
, DWORD
, const UNICODE_STRING
*, HMODULE
*);
3022 NTSYSAPI NTSTATUS WINAPI
LdrLockLoaderLock(ULONG
,ULONG
*,ULONG_PTR
*);
3023 IMAGE_BASE_RELOCATION
* WINAPI
LdrProcessRelocationBlock(void*,UINT
,USHORT
*,INT_PTR
);
3024 NTSYSAPI NTSTATUS WINAPI
LdrQueryImageFileExecutionOptions(const UNICODE_STRING
*,LPCWSTR
,ULONG
,void*,ULONG
,ULONG
*);
3025 NTSYSAPI NTSTATUS WINAPI
LdrQueryProcessModuleInformation(SYSTEM_MODULE_INFORMATION
*, ULONG
, ULONG
*);
3026 NTSYSAPI NTSTATUS WINAPI
LdrRegisterDllNotification(ULONG
,PLDR_DLL_NOTIFICATION_FUNCTION
,void*,void**);
3027 NTSYSAPI NTSTATUS WINAPI
LdrRemoveDllDirectory(void*);
3028 NTSYSAPI NTSTATUS WINAPI
LdrSetDefaultDllDirectories(ULONG
);
3029 NTSYSAPI NTSTATUS WINAPI
LdrSetDllDirectory(const UNICODE_STRING
*);
3030 NTSYSAPI
void WINAPI
LdrShutdownProcess(void);
3031 NTSYSAPI
void WINAPI
LdrShutdownThread(void);
3032 NTSYSAPI NTSTATUS WINAPI
LdrUnloadDll(HMODULE
);
3033 NTSYSAPI NTSTATUS WINAPI
LdrUnlockLoaderLock(ULONG
,ULONG_PTR
);
3034 NTSYSAPI NTSTATUS WINAPI
LdrUnregisterDllNotification(void*);
3035 NTSYSAPI NTSTATUS WINAPI
NtAcceptConnectPort(PHANDLE
,ULONG
,PLPC_MESSAGE
,BOOLEAN
,PLPC_SECTION_WRITE
,PLPC_SECTION_READ
);
3036 NTSYSAPI NTSTATUS WINAPI
NtAccessCheck(PSECURITY_DESCRIPTOR
,HANDLE
,ACCESS_MASK
,PGENERIC_MAPPING
,PPRIVILEGE_SET
,PULONG
,PULONG
,NTSTATUS
*);
3037 NTSYSAPI NTSTATUS WINAPI
NtAccessCheckAndAuditAlarm(PUNICODE_STRING
,HANDLE
,PUNICODE_STRING
,PUNICODE_STRING
,PSECURITY_DESCRIPTOR
,ACCESS_MASK
,PGENERIC_MAPPING
,BOOLEAN
,PACCESS_MASK
,PBOOLEAN
,PBOOLEAN
);
3038 NTSYSAPI NTSTATUS WINAPI
NtAddAtom(const WCHAR
*,ULONG
,RTL_ATOM
*);
3039 NTSYSAPI NTSTATUS WINAPI
NtAdjustGroupsToken(HANDLE
,BOOLEAN
,PTOKEN_GROUPS
,ULONG
,PTOKEN_GROUPS
,PULONG
);
3040 NTSYSAPI NTSTATUS WINAPI
NtAdjustPrivilegesToken(HANDLE
,BOOLEAN
,PTOKEN_PRIVILEGES
,DWORD
,PTOKEN_PRIVILEGES
,PDWORD
);
3041 NTSYSAPI NTSTATUS WINAPI
NtAlertResumeThread(HANDLE
,PULONG
);
3042 NTSYSAPI NTSTATUS WINAPI
NtAlertThread(HANDLE ThreadHandle
);
3043 NTSYSAPI NTSTATUS WINAPI
NtAllocateLocallyUniqueId(PLUID lpLuid
);
3044 NTSYSAPI NTSTATUS WINAPI
NtAllocateUuids(PULARGE_INTEGER
,PULONG
,PULONG
,PUCHAR
);
3045 NTSYSAPI NTSTATUS WINAPI
NtAllocateVirtualMemory(HANDLE
,PVOID
*,ULONG_PTR
,SIZE_T
*,ULONG
,ULONG
);
3046 NTSYSAPI NTSTATUS WINAPI
NtAllocateVirtualMemoryEx(HANDLE
,PVOID
*,SIZE_T
*,ULONG
,ULONG
,MEM_EXTENDED_PARAMETER
*,ULONG
);
3047 NTSYSAPI NTSTATUS WINAPI
NtAreMappedFilesTheSame(PVOID
,PVOID
);
3048 NTSYSAPI NTSTATUS WINAPI
NtAssignProcessToJobObject(HANDLE
,HANDLE
);
3049 NTSYSAPI NTSTATUS WINAPI
NtCallbackReturn(PVOID
,ULONG
,NTSTATUS
);
3050 NTSYSAPI NTSTATUS WINAPI
NtCancelIoFile(HANDLE
,PIO_STATUS_BLOCK
);
3051 NTSYSAPI NTSTATUS WINAPI
NtCancelIoFileEx(HANDLE
,PIO_STATUS_BLOCK
,PIO_STATUS_BLOCK
);
3052 NTSYSAPI NTSTATUS WINAPI
NtCancelTimer(HANDLE
, BOOLEAN
*);
3053 NTSYSAPI NTSTATUS WINAPI
NtClearEvent(HANDLE
);
3054 NTSYSAPI NTSTATUS WINAPI
NtClearPowerRequest(HANDLE
,POWER_REQUEST_TYPE
);
3055 NTSYSAPI NTSTATUS WINAPI
NtClose(HANDLE
);
3056 NTSYSAPI NTSTATUS WINAPI
NtCloseObjectAuditAlarm(PUNICODE_STRING
,HANDLE
,BOOLEAN
);
3057 NTSYSAPI NTSTATUS WINAPI
NtCompleteConnectPort(HANDLE
);
3058 NTSYSAPI NTSTATUS WINAPI
NtConnectPort(PHANDLE
,PUNICODE_STRING
,PSECURITY_QUALITY_OF_SERVICE
,PLPC_SECTION_WRITE
,PLPC_SECTION_READ
,PULONG
,PVOID
,PULONG
);
3059 NTSYSAPI NTSTATUS WINAPI
NtContinue(PCONTEXT
,BOOLEAN
);
3060 NTSYSAPI NTSTATUS WINAPI
NtCreateDirectoryObject(PHANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
);
3061 NTSYSAPI NTSTATUS WINAPI
NtCreateEvent(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,EVENT_TYPE
,BOOLEAN
);
3062 NTSYSAPI NTSTATUS WINAPI
NtCreateEventPair(PHANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
);
3063 NTSYSAPI NTSTATUS WINAPI
NtCreateFile(PHANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
,PIO_STATUS_BLOCK
,PLARGE_INTEGER
,ULONG
,ULONG
,ULONG
,ULONG
,PVOID
,ULONG
);
3064 NTSYSAPI NTSTATUS WINAPI
NtCreateIoCompletion(PHANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
,ULONG
);
3065 NTSYSAPI NTSTATUS WINAPI
NtCreateJobObject(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*);
3066 NTSYSAPI NTSTATUS WINAPI
NtCreateKey(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,ULONG
,const UNICODE_STRING
*,ULONG
,PULONG
);
3067 NTSYSAPI NTSTATUS WINAPI
NtCreateKeyTransacted(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,ULONG
,const UNICODE_STRING
*,ULONG
,HANDLE
,ULONG
*);
3068 NTSYSAPI NTSTATUS WINAPI
NtCreateKeyedEvent(HANDLE
*,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,ULONG
);
3069 NTSYSAPI NTSTATUS WINAPI
NtCreateMailslotFile(PHANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
,PIO_STATUS_BLOCK
,ULONG
,ULONG
,ULONG
,PLARGE_INTEGER
);
3070 NTSYSAPI NTSTATUS WINAPI
NtCreateMutant(HANDLE
*,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,BOOLEAN
);
3071 NTSYSAPI NTSTATUS WINAPI
NtCreateNamedPipeFile(PHANDLE
,ULONG
,POBJECT_ATTRIBUTES
,PIO_STATUS_BLOCK
,ULONG
,ULONG
,ULONG
,ULONG
,ULONG
,ULONG
,ULONG
,ULONG
,ULONG
,PLARGE_INTEGER
);
3072 NTSYSAPI NTSTATUS WINAPI
NtCreatePagingFile(PUNICODE_STRING
,PLARGE_INTEGER
,PLARGE_INTEGER
,PLARGE_INTEGER
);
3073 NTSYSAPI NTSTATUS WINAPI
NtCreatePort(PHANDLE
,POBJECT_ATTRIBUTES
,ULONG
,ULONG
,PULONG
);
3074 NTSYSAPI NTSTATUS WINAPI
NtCreatePowerRequest(HANDLE
*,COUNTED_REASON_CONTEXT
*);
3075 NTSYSAPI NTSTATUS WINAPI
NtCreateProcess(PHANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
,HANDLE
,BOOLEAN
,HANDLE
,HANDLE
,HANDLE
);
3076 NTSYSAPI NTSTATUS WINAPI
NtCreateProfile(PHANDLE
,HANDLE
,PVOID
,ULONG
,ULONG
,PVOID
,ULONG
,KPROFILE_SOURCE
,KAFFINITY
);
3077 NTSYSAPI NTSTATUS WINAPI
NtCreateSection(HANDLE
*,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,const LARGE_INTEGER
*,ULONG
,ULONG
,HANDLE
);
3078 NTSYSAPI NTSTATUS WINAPI
NtCreateSemaphore(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,LONG
,LONG
);
3079 NTSYSAPI NTSTATUS WINAPI
NtCreateSymbolicLinkObject(PHANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
,PUNICODE_STRING
);
3080 NTSYSAPI NTSTATUS WINAPI
NtCreateThread(PHANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
,HANDLE
,PCLIENT_ID
,PCONTEXT
,PINITIAL_TEB
,BOOLEAN
);
3081 NTSYSAPI NTSTATUS WINAPI
NtCreateThreadEx(HANDLE
*,ACCESS_MASK
,OBJECT_ATTRIBUTES
*,HANDLE
,PRTL_THREAD_START_ROUTINE
,void*,ULONG
,SIZE_T
,SIZE_T
,SIZE_T
,PS_ATTRIBUTE_LIST
*);
3082 NTSYSAPI NTSTATUS WINAPI
NtCreateTimer(HANDLE
*, ACCESS_MASK
, const OBJECT_ATTRIBUTES
*, TIMER_TYPE
);
3083 NTSYSAPI NTSTATUS WINAPI
NtCreateToken(PHANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
,TOKEN_TYPE
,PLUID
,PLARGE_INTEGER
,PTOKEN_USER
,PTOKEN_GROUPS
,PTOKEN_PRIVILEGES
,PTOKEN_OWNER
,PTOKEN_PRIMARY_GROUP
,PTOKEN_DEFAULT_DACL
,PTOKEN_SOURCE
);
3084 NTSYSAPI NTSTATUS WINAPI
NtCreateUserProcess(HANDLE
*,HANDLE
*,ACCESS_MASK
,ACCESS_MASK
,OBJECT_ATTRIBUTES
*,OBJECT_ATTRIBUTES
*,ULONG
,ULONG
,RTL_USER_PROCESS_PARAMETERS
*,PS_CREATE_INFO
*,PS_ATTRIBUTE_LIST
*);
3085 NTSYSAPI NTSTATUS WINAPI
NtDelayExecution(BOOLEAN
,const LARGE_INTEGER
*);
3086 NTSYSAPI NTSTATUS WINAPI
NtDeleteAtom(RTL_ATOM
);
3087 NTSYSAPI NTSTATUS WINAPI
NtDeleteFile(POBJECT_ATTRIBUTES
);
3088 NTSYSAPI NTSTATUS WINAPI
NtDeleteKey(HANDLE
);
3089 NTSYSAPI NTSTATUS WINAPI
NtDeleteValueKey(HANDLE
,const UNICODE_STRING
*);
3090 NTSYSAPI NTSTATUS WINAPI
NtDeviceIoControlFile(HANDLE
,HANDLE
,PIO_APC_ROUTINE
,PVOID
,PIO_STATUS_BLOCK
,ULONG
,PVOID
,ULONG
,PVOID
,ULONG
);
3091 NTSYSAPI NTSTATUS WINAPI
NtDisplayString(PUNICODE_STRING
);
3092 NTSYSAPI NTSTATUS WINAPI
NtDuplicateObject(HANDLE
,HANDLE
,HANDLE
,PHANDLE
,ACCESS_MASK
,ULONG
,ULONG
);
3093 NTSYSAPI NTSTATUS WINAPI
NtDuplicateToken(HANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
,SECURITY_IMPERSONATION_LEVEL
,TOKEN_TYPE
,PHANDLE
);
3094 NTSYSAPI NTSTATUS WINAPI
NtEnumerateKey(HANDLE
,ULONG
,KEY_INFORMATION_CLASS
,void *,DWORD
,DWORD
*);
3095 NTSYSAPI NTSTATUS WINAPI
NtEnumerateValueKey(HANDLE
,ULONG
,KEY_VALUE_INFORMATION_CLASS
,PVOID
,ULONG
,PULONG
);
3096 NTSYSAPI NTSTATUS WINAPI
NtExtendSection(HANDLE
,PLARGE_INTEGER
);
3097 NTSYSAPI NTSTATUS WINAPI
NtFilterToken(HANDLE
,ULONG
,TOKEN_GROUPS
*,TOKEN_PRIVILEGES
*,TOKEN_GROUPS
*,HANDLE
*);
3098 NTSYSAPI NTSTATUS WINAPI
NtFindAtom(const WCHAR
*,ULONG
,RTL_ATOM
*);
3099 NTSYSAPI NTSTATUS WINAPI
NtFlushBuffersFile(HANDLE
,IO_STATUS_BLOCK
*);
3100 NTSYSAPI NTSTATUS WINAPI
NtFlushInstructionCache(HANDLE
,LPCVOID
,SIZE_T
);
3101 NTSYSAPI NTSTATUS WINAPI
NtFlushKey(HANDLE
);
3102 NTSYSAPI
void WINAPI
NtFlushProcessWriteBuffers(void);
3103 NTSYSAPI NTSTATUS WINAPI
NtFlushVirtualMemory(HANDLE
,LPCVOID
*,SIZE_T
*,ULONG
);
3104 NTSYSAPI NTSTATUS WINAPI
NtFlushWriteBuffer(VOID
);
3105 NTSYSAPI NTSTATUS WINAPI
NtFreeVirtualMemory(HANDLE
,PVOID
*,SIZE_T
*,ULONG
);
3106 NTSYSAPI NTSTATUS WINAPI
NtFsControlFile(HANDLE
,HANDLE
,PIO_APC_ROUTINE
,PVOID
,PIO_STATUS_BLOCK
,ULONG
,PVOID
,ULONG
,PVOID
,ULONG
);
3107 NTSYSAPI NTSTATUS WINAPI
NtGetContextThread(HANDLE
,CONTEXT
*);
3108 NTSYSAPI ULONG WINAPI
NtGetCurrentProcessorNumber(void);
3109 NTSYSAPI NTSTATUS WINAPI
NtGetNlsSectionPtr(ULONG
,ULONG
,void*,void**,SIZE_T
*);
3110 NTSYSAPI NTSTATUS WINAPI
NtGetPlugPlayEvent(ULONG
,ULONG
,PVOID
,ULONG
);
3111 NTSYSAPI ULONG WINAPI
NtGetTickCount(VOID
);
3112 NTSYSAPI NTSTATUS WINAPI
NtGetWriteWatch(HANDLE
,ULONG
,PVOID
,SIZE_T
,PVOID
*,ULONG_PTR
*,ULONG
*);
3113 NTSYSAPI NTSTATUS WINAPI
NtImpersonateAnonymousToken(HANDLE
);
3114 NTSYSAPI NTSTATUS WINAPI
NtImpersonateClientOfPort(HANDLE
,PPORT_MESSAGE
);
3115 NTSYSAPI NTSTATUS WINAPI
NtImpersonateThread(HANDLE
,HANDLE
,PSECURITY_QUALITY_OF_SERVICE
);
3116 NTSYSAPI NTSTATUS WINAPI
NtInitializeRegistry(BOOLEAN
);
3117 NTSYSAPI NTSTATUS WINAPI
NtInitiatePowerAction(POWER_ACTION
,SYSTEM_POWER_STATE
,ULONG
,BOOLEAN
);
3118 NTSYSAPI NTSTATUS WINAPI
NtIsProcessInJob(HANDLE
,HANDLE
);
3119 NTSYSAPI NTSTATUS WINAPI
NtListenPort(HANDLE
,PLPC_MESSAGE
);
3120 NTSYSAPI NTSTATUS WINAPI
NtLoadDriver(const UNICODE_STRING
*);
3121 NTSYSAPI NTSTATUS WINAPI
NtLoadKey(const OBJECT_ATTRIBUTES
*,OBJECT_ATTRIBUTES
*);
3122 NTSYSAPI NTSTATUS WINAPI
NtLockFile(HANDLE
,HANDLE
,PIO_APC_ROUTINE
,void*,PIO_STATUS_BLOCK
,PLARGE_INTEGER
,PLARGE_INTEGER
,ULONG
*,BOOLEAN
,BOOLEAN
);
3123 NTSYSAPI NTSTATUS WINAPI
NtLockVirtualMemory(HANDLE
,PVOID
*,SIZE_T
*,ULONG
);
3124 NTSYSAPI NTSTATUS WINAPI
NtMakeTemporaryObject(HANDLE
);
3125 NTSYSAPI NTSTATUS WINAPI
NtMapViewOfSection(HANDLE
,HANDLE
,PVOID
*,ULONG_PTR
,SIZE_T
,const LARGE_INTEGER
*,SIZE_T
*,SECTION_INHERIT
,ULONG
,ULONG
);
3126 NTSYSAPI NTSTATUS WINAPI
NtNotifyChangeDirectoryFile(HANDLE
,HANDLE
,PIO_APC_ROUTINE
,PVOID
,PIO_STATUS_BLOCK
,PVOID
,ULONG
,ULONG
,BOOLEAN
);
3127 NTSYSAPI NTSTATUS WINAPI
NtNotifyChangeKey(HANDLE
,HANDLE
,PIO_APC_ROUTINE
,PVOID
,PIO_STATUS_BLOCK
,ULONG
,BOOLEAN
,PVOID
,ULONG
,BOOLEAN
);
3128 NTSYSAPI NTSTATUS WINAPI
NtNotifyChangeMultipleKeys(HANDLE
,ULONG
,OBJECT_ATTRIBUTES
*,HANDLE
,PIO_APC_ROUTINE
,PVOID
,PIO_STATUS_BLOCK
,ULONG
,BOOLEAN
,PVOID
,ULONG
,BOOLEAN
);
3129 NTSYSAPI NTSTATUS WINAPI
NtOpenDirectoryObject(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*);
3130 NTSYSAPI NTSTATUS WINAPI
NtOpenEvent(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*);
3131 NTSYSAPI NTSTATUS WINAPI
NtOpenEventPair(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*);
3132 NTSYSAPI NTSTATUS WINAPI
NtOpenFile(PHANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
,PIO_STATUS_BLOCK
,ULONG
,ULONG
);
3133 NTSYSAPI NTSTATUS WINAPI
NtOpenIoCompletion(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*);
3134 NTSYSAPI NTSTATUS WINAPI
NtOpenJobObject(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*);
3135 NTSYSAPI NTSTATUS WINAPI
NtOpenKey(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*);
3136 NTSYSAPI NTSTATUS WINAPI
NtOpenKeyEx(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,ULONG
);
3137 NTSYSAPI NTSTATUS WINAPI
NtOpenKeyTransacted(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,HANDLE
);
3138 NTSYSAPI NTSTATUS WINAPI
NtOpenKeyTransactedEx(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,ULONG
,HANDLE
);
3139 NTSYSAPI NTSTATUS WINAPI
NtOpenKeyedEvent(HANDLE
*,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*);
3140 NTSYSAPI NTSTATUS WINAPI
NtOpenMutant(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*);
3141 NTSYSAPI NTSTATUS WINAPI
NtOpenObjectAuditAlarm(PUNICODE_STRING
,PHANDLE
,PUNICODE_STRING
,PUNICODE_STRING
,PSECURITY_DESCRIPTOR
,HANDLE
,ACCESS_MASK
,ACCESS_MASK
,PPRIVILEGE_SET
,BOOLEAN
,BOOLEAN
,PBOOLEAN
);
3142 NTSYSAPI NTSTATUS WINAPI
NtOpenProcess(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,const CLIENT_ID
*);
3143 NTSYSAPI NTSTATUS WINAPI
NtOpenProcessToken(HANDLE
,DWORD
,HANDLE
*);
3144 NTSYSAPI NTSTATUS WINAPI
NtOpenProcessTokenEx(HANDLE
,DWORD
,DWORD
,HANDLE
*);
3145 NTSYSAPI NTSTATUS WINAPI
NtOpenSection(HANDLE
*,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*);
3146 NTSYSAPI NTSTATUS WINAPI
NtOpenSemaphore(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*);
3147 NTSYSAPI NTSTATUS WINAPI
NtOpenSymbolicLinkObject(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*);
3148 NTSYSAPI NTSTATUS WINAPI
NtOpenThread(HANDLE
*,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,const CLIENT_ID
*);
3149 NTSYSAPI NTSTATUS WINAPI
NtOpenThreadToken(HANDLE
,DWORD
,BOOLEAN
,HANDLE
*);
3150 NTSYSAPI NTSTATUS WINAPI
NtOpenThreadTokenEx(HANDLE
,DWORD
,BOOLEAN
,DWORD
,HANDLE
*);
3151 NTSYSAPI NTSTATUS WINAPI
NtOpenTimer(HANDLE
*, ACCESS_MASK
, const OBJECT_ATTRIBUTES
*);
3152 NTSYSAPI NTSTATUS WINAPI
NtPowerInformation(POWER_INFORMATION_LEVEL
,PVOID
,ULONG
,PVOID
,ULONG
);
3153 NTSYSAPI NTSTATUS WINAPI
NtPrivilegeCheck(HANDLE
,PPRIVILEGE_SET
,PBOOLEAN
);
3154 NTSYSAPI NTSTATUS WINAPI
NtPrivilegeObjectAuditAlarm(PUNICODE_STRING
,HANDLE
,HANDLE
,ULONG
,PPRIVILEGE_SET
,BOOLEAN
);
3155 NTSYSAPI NTSTATUS WINAPI
NtPrivilegedServiceAuditAlarm(PUNICODE_STRING
,PUNICODE_STRING
,HANDLE
,PPRIVILEGE_SET
,BOOLEAN
);
3156 NTSYSAPI NTSTATUS WINAPI
NtProtectVirtualMemory(HANDLE
,PVOID
*,SIZE_T
*,ULONG
,ULONG
*);
3157 NTSYSAPI NTSTATUS WINAPI
NtPulseEvent(HANDLE
,LONG
*);
3158 NTSYSAPI NTSTATUS WINAPI
NtQueueApcThread(HANDLE
,PNTAPCFUNC
,ULONG_PTR
,ULONG_PTR
,ULONG_PTR
);
3159 NTSYSAPI NTSTATUS WINAPI
NtQueryAttributesFile(const OBJECT_ATTRIBUTES
*,FILE_BASIC_INFORMATION
*);
3160 NTSYSAPI NTSTATUS WINAPI
NtQueryDefaultLocale(BOOLEAN
,LCID
*);
3161 NTSYSAPI NTSTATUS WINAPI
NtQueryDefaultUILanguage(LANGID
*);
3162 NTSYSAPI NTSTATUS WINAPI
NtQueryDirectoryFile(HANDLE
,HANDLE
,PIO_APC_ROUTINE
,PVOID
,PIO_STATUS_BLOCK
,PVOID
,ULONG
,FILE_INFORMATION_CLASS
,BOOLEAN
,PUNICODE_STRING
,BOOLEAN
);
3163 NTSYSAPI NTSTATUS WINAPI
NtQueryDirectoryObject(HANDLE
,PDIRECTORY_BASIC_INFORMATION
,ULONG
,BOOLEAN
,BOOLEAN
,PULONG
,PULONG
);
3164 NTSYSAPI NTSTATUS WINAPI
NtQueryEaFile(HANDLE
,PIO_STATUS_BLOCK
,PVOID
,ULONG
,BOOLEAN
,PVOID
,ULONG
,PULONG
,BOOLEAN
);
3165 NTSYSAPI NTSTATUS WINAPI
NtQueryEvent(HANDLE
,EVENT_INFORMATION_CLASS
,PVOID
,ULONG
,PULONG
);
3166 NTSYSAPI NTSTATUS WINAPI
NtQueryFullAttributesFile(const OBJECT_ATTRIBUTES
*,FILE_NETWORK_OPEN_INFORMATION
*);
3167 NTSYSAPI NTSTATUS WINAPI
NtQueryInformationAtom(RTL_ATOM
,ATOM_INFORMATION_CLASS
,PVOID
,ULONG
,ULONG
*);
3168 NTSYSAPI NTSTATUS WINAPI
NtQueryInformationFile(HANDLE
,PIO_STATUS_BLOCK
,PVOID
,LONG
,FILE_INFORMATION_CLASS
);
3169 NTSYSAPI NTSTATUS WINAPI
NtQueryInformationJobObject(HANDLE
,JOBOBJECTINFOCLASS
,PVOID
,ULONG
,PULONG
);
3170 NTSYSAPI NTSTATUS WINAPI
NtQueryInformationPort(HANDLE
,PORT_INFORMATION_CLASS
,PVOID
,ULONG
,PULONG
);
3171 NTSYSAPI NTSTATUS WINAPI
NtQueryInformationProcess(HANDLE
,PROCESSINFOCLASS
,PVOID
,ULONG
,PULONG
);
3172 NTSYSAPI NTSTATUS WINAPI
NtQueryInformationThread(HANDLE
,THREADINFOCLASS
,PVOID
,ULONG
,PULONG
);
3173 NTSYSAPI NTSTATUS WINAPI
NtQueryInformationToken(HANDLE
,TOKEN_INFORMATION_CLASS
,PVOID
,ULONG
,PULONG
);
3174 NTSYSAPI NTSTATUS WINAPI
NtQueryInstallUILanguage(LANGID
*);
3175 NTSYSAPI NTSTATUS WINAPI
NtQueryIntervalProfile(KPROFILE_SOURCE
,PULONG
);
3176 NTSYSAPI NTSTATUS WINAPI
NtQueryIoCompletion(HANDLE
,IO_COMPLETION_INFORMATION_CLASS
,PVOID
,ULONG
,PULONG
);
3177 NTSYSAPI NTSTATUS WINAPI
NtQueryKey(HANDLE
,KEY_INFORMATION_CLASS
,void *,DWORD
,DWORD
*);
3178 NTSYSAPI NTSTATUS WINAPI
NtQueryMultipleValueKey(HANDLE
,PKEY_MULTIPLE_VALUE_INFORMATION
,ULONG
,PVOID
,ULONG
,PULONG
);
3179 NTSYSAPI NTSTATUS WINAPI
NtQueryMutant(HANDLE
,MUTANT_INFORMATION_CLASS
,PVOID
,ULONG
,PULONG
);
3180 NTSYSAPI NTSTATUS WINAPI
NtQueryObject(HANDLE
, OBJECT_INFORMATION_CLASS
, PVOID
, ULONG
, PULONG
);
3181 NTSYSAPI NTSTATUS WINAPI
NtQueryOpenSubKeys(POBJECT_ATTRIBUTES
,PULONG
);
3182 NTSYSAPI NTSTATUS WINAPI
NtQueryPerformanceCounter(PLARGE_INTEGER
, PLARGE_INTEGER
);
3183 NTSYSAPI NTSTATUS WINAPI
NtQuerySecurityObject(HANDLE
,SECURITY_INFORMATION
,PSECURITY_DESCRIPTOR
,ULONG
,PULONG
);
3184 NTSYSAPI NTSTATUS WINAPI
NtQuerySection(HANDLE
,SECTION_INFORMATION_CLASS
,PVOID
,SIZE_T
,SIZE_T
*);
3185 NTSYSAPI NTSTATUS WINAPI
NtQuerySemaphore(HANDLE
,SEMAPHORE_INFORMATION_CLASS
,PVOID
,ULONG
,PULONG
);
3186 NTSYSAPI NTSTATUS WINAPI
NtQuerySymbolicLinkObject(HANDLE
,PUNICODE_STRING
,PULONG
);
3187 NTSYSAPI NTSTATUS WINAPI
NtQuerySystemEnvironmentValue(PUNICODE_STRING
,PWCHAR
,ULONG
,PULONG
);
3188 NTSYSAPI NTSTATUS WINAPI
NtQuerySystemInformation(SYSTEM_INFORMATION_CLASS
,PVOID
,ULONG
,PULONG
);
3189 NTSYSAPI NTSTATUS WINAPI
NtQuerySystemInformationEx(SYSTEM_INFORMATION_CLASS
,void*,ULONG
,void*,ULONG
,ULONG
*);
3190 NTSYSAPI NTSTATUS WINAPI
NtQuerySystemTime(PLARGE_INTEGER
);
3191 NTSYSAPI NTSTATUS WINAPI
NtQueryTimer(HANDLE
,TIMER_INFORMATION_CLASS
,PVOID
,ULONG
,PULONG
);
3192 NTSYSAPI NTSTATUS WINAPI
NtQueryTimerResolution(PULONG
,PULONG
,PULONG
);
3193 NTSYSAPI NTSTATUS WINAPI
NtQueryValueKey(HANDLE
,const UNICODE_STRING
*,KEY_VALUE_INFORMATION_CLASS
,void *,DWORD
,DWORD
*);
3194 NTSYSAPI NTSTATUS WINAPI
NtQueryLicenseValue(const UNICODE_STRING
*,ULONG
*,PVOID
,ULONG
,ULONG
*);
3195 NTSYSAPI NTSTATUS WINAPI
NtQueryVirtualMemory(HANDLE
,LPCVOID
,MEMORY_INFORMATION_CLASS
,PVOID
,SIZE_T
,SIZE_T
*);
3196 NTSYSAPI NTSTATUS WINAPI
NtQueryVolumeInformationFile(HANDLE
,PIO_STATUS_BLOCK
,PVOID
,ULONG
,FS_INFORMATION_CLASS
);
3197 NTSYSAPI NTSTATUS WINAPI
NtRaiseException(PEXCEPTION_RECORD
,PCONTEXT
,BOOL
);
3198 NTSYSAPI NTSTATUS WINAPI
NtRaiseHardError(NTSTATUS
,ULONG
,PUNICODE_STRING
,PVOID
*,HARDERROR_RESPONSE_OPTION
,PHARDERROR_RESPONSE
);
3199 NTSYSAPI NTSTATUS WINAPI
NtReadFile(HANDLE
,HANDLE
,PIO_APC_ROUTINE
,PVOID
,PIO_STATUS_BLOCK
,PVOID
,ULONG
,PLARGE_INTEGER
,PULONG
);
3200 NTSYSAPI NTSTATUS WINAPI
NtReadFileScatter(HANDLE
,HANDLE
,PIO_APC_ROUTINE
,PVOID
,PIO_STATUS_BLOCK
,FILE_SEGMENT_ELEMENT
*,ULONG
,PLARGE_INTEGER
,PULONG
);
3201 NTSYSAPI NTSTATUS WINAPI
NtReadRequestData(HANDLE
,PLPC_MESSAGE
,ULONG
,PVOID
,ULONG
,PULONG
);
3202 NTSYSAPI NTSTATUS WINAPI
NtReadVirtualMemory(HANDLE
,const void*,void*,SIZE_T
,SIZE_T
*);
3203 NTSYSAPI NTSTATUS WINAPI
NtRegisterThreadTerminatePort(HANDLE
);
3204 NTSYSAPI NTSTATUS WINAPI
NtReleaseKeyedEvent(HANDLE
,const void*,BOOLEAN
,const LARGE_INTEGER
*);
3205 NTSYSAPI NTSTATUS WINAPI
NtReleaseMutant(HANDLE
,PLONG
);
3206 NTSYSAPI NTSTATUS WINAPI
NtReleaseSemaphore(HANDLE
,ULONG
,PULONG
);
3207 NTSYSAPI NTSTATUS WINAPI
NtRemoveIoCompletion(HANDLE
,PULONG_PTR
,PULONG_PTR
,PIO_STATUS_BLOCK
,PLARGE_INTEGER
);
3208 NTSYSAPI NTSTATUS WINAPI
NtRemoveIoCompletionEx(HANDLE
,FILE_IO_COMPLETION_INFORMATION
*,ULONG
,ULONG
*,LARGE_INTEGER
*,BOOLEAN
);
3209 NTSYSAPI NTSTATUS WINAPI
NtRenameKey(HANDLE
,UNICODE_STRING
*);
3210 NTSYSAPI NTSTATUS WINAPI
NtReplaceKey(POBJECT_ATTRIBUTES
,HANDLE
,POBJECT_ATTRIBUTES
);
3211 NTSYSAPI NTSTATUS WINAPI
NtReplyPort(HANDLE
,PLPC_MESSAGE
);
3212 NTSYSAPI NTSTATUS WINAPI
NtReplyWaitReceivePort(HANDLE
,PULONG
,PLPC_MESSAGE
,PLPC_MESSAGE
);
3213 NTSYSAPI NTSTATUS WINAPI
NtReplyWaitReceivePortEx(HANDLE
,PVOID
*,PPORT_MESSAGE
,PPORT_MESSAGE
,PLARGE_INTEGER
);
3214 NTSYSAPI NTSTATUS WINAPI
NtReplyWaitReplyPort(HANDLE
,PLPC_MESSAGE
);
3215 NTSYSAPI NTSTATUS WINAPI
NtRequestPort(HANDLE
,PLPC_MESSAGE
);
3216 NTSYSAPI NTSTATUS WINAPI
NtRequestWaitReplyPort(HANDLE
,PLPC_MESSAGE
,PLPC_MESSAGE
);
3217 NTSYSAPI NTSTATUS WINAPI
NtResetEvent(HANDLE
,LONG
*);
3218 NTSYSAPI NTSTATUS WINAPI
NtResetWriteWatch(HANDLE
,PVOID
,SIZE_T
);
3219 NTSYSAPI NTSTATUS WINAPI
NtRestoreKey(HANDLE
,HANDLE
,ULONG
);
3220 NTSYSAPI NTSTATUS WINAPI
NtResumeProcess(HANDLE
);
3221 NTSYSAPI NTSTATUS WINAPI
NtResumeThread(HANDLE
,PULONG
);
3222 NTSYSAPI NTSTATUS WINAPI
NtSaveKey(HANDLE
,HANDLE
);
3223 NTSYSAPI NTSTATUS WINAPI
NtSecureConnectPort(PHANDLE
,PUNICODE_STRING
,PSECURITY_QUALITY_OF_SERVICE
,PLPC_SECTION_WRITE
,PSID
,PLPC_SECTION_READ
,PULONG
,PVOID
,PULONG
);
3224 NTSYSAPI NTSTATUS WINAPI
NtSetContextThread(HANDLE
,const CONTEXT
*);
3225 NTSYSAPI NTSTATUS WINAPI
NtSetDefaultHardErrorPort(HANDLE
);
3226 NTSYSAPI NTSTATUS WINAPI
NtSetDefaultLocale(BOOLEAN
,LCID
);
3227 NTSYSAPI NTSTATUS WINAPI
NtSetDefaultUILanguage(LANGID
);
3228 NTSYSAPI NTSTATUS WINAPI
NtSetEaFile(HANDLE
,PIO_STATUS_BLOCK
,PVOID
,ULONG
);
3229 NTSYSAPI NTSTATUS WINAPI
NtSetEvent(HANDLE
,LONG
*);
3230 NTSYSAPI NTSTATUS WINAPI
NtSetHighEventPair(HANDLE
);
3231 NTSYSAPI NTSTATUS WINAPI
NtSetHighWaitLowEventPair(HANDLE
);
3232 NTSYSAPI NTSTATUS WINAPI
NtSetHighWaitLowThread(VOID
);
3233 NTSYSAPI NTSTATUS WINAPI
NtSetInformationFile(HANDLE
,PIO_STATUS_BLOCK
,PVOID
,ULONG
,FILE_INFORMATION_CLASS
);
3234 NTSYSAPI NTSTATUS WINAPI
NtSetInformationJobObject(HANDLE
,JOBOBJECTINFOCLASS
,PVOID
,ULONG
);
3235 NTSYSAPI NTSTATUS WINAPI
NtSetInformationKey(HANDLE
,const int,PVOID
,ULONG
);
3236 NTSYSAPI NTSTATUS WINAPI
NtSetInformationObject(HANDLE
, OBJECT_INFORMATION_CLASS
, PVOID
, ULONG
);
3237 NTSYSAPI NTSTATUS WINAPI
NtSetInformationProcess(HANDLE
,PROCESS_INFORMATION_CLASS
,PVOID
,ULONG
);
3238 NTSYSAPI NTSTATUS WINAPI
NtSetInformationThread(HANDLE
,THREADINFOCLASS
,LPCVOID
,ULONG
);
3239 NTSYSAPI NTSTATUS WINAPI
NtSetInformationToken(HANDLE
,TOKEN_INFORMATION_CLASS
,PVOID
,ULONG
);
3240 NTSYSAPI NTSTATUS WINAPI
NtSetIntervalProfile(ULONG
,KPROFILE_SOURCE
);
3241 NTSYSAPI NTSTATUS WINAPI
NtSetIoCompletion(HANDLE
,ULONG_PTR
,ULONG_PTR
,NTSTATUS
,SIZE_T
);
3242 NTSYSAPI NTSTATUS WINAPI
NtSetLdtEntries(ULONG
,LDT_ENTRY
,ULONG
,LDT_ENTRY
);
3243 NTSYSAPI NTSTATUS WINAPI
NtSetLowEventPair(HANDLE
);
3244 NTSYSAPI NTSTATUS WINAPI
NtSetLowWaitHighEventPair(HANDLE
);
3245 NTSYSAPI NTSTATUS WINAPI
NtSetLowWaitHighThread(VOID
);
3246 NTSYSAPI NTSTATUS WINAPI
NtSetPowerRequest(HANDLE
,POWER_REQUEST_TYPE
);
3247 NTSYSAPI NTSTATUS WINAPI
NtSetSecurityObject(HANDLE
,SECURITY_INFORMATION
,PSECURITY_DESCRIPTOR
);
3248 NTSYSAPI NTSTATUS WINAPI
NtSetSystemEnvironmentValue(PUNICODE_STRING
,PUNICODE_STRING
);
3249 NTSYSAPI NTSTATUS WINAPI
NtSetSystemInformation(SYSTEM_INFORMATION_CLASS
,PVOID
,ULONG
);
3250 NTSYSAPI NTSTATUS WINAPI
NtSetSystemPowerState(POWER_ACTION
,SYSTEM_POWER_STATE
,ULONG
);
3251 NTSYSAPI NTSTATUS WINAPI
NtSetSystemTime(const LARGE_INTEGER
*,LARGE_INTEGER
*);
3252 NTSYSAPI NTSTATUS WINAPI
NtSetThreadExecutionState(EXECUTION_STATE
,EXECUTION_STATE
*);
3253 NTSYSAPI NTSTATUS WINAPI
NtSetTimer(HANDLE
, const LARGE_INTEGER
*, PTIMER_APC_ROUTINE
, PVOID
, BOOLEAN
, ULONG
, BOOLEAN
*);
3254 NTSYSAPI NTSTATUS WINAPI
NtSetTimerResolution(ULONG
,BOOLEAN
,PULONG
);
3255 NTSYSAPI NTSTATUS WINAPI
NtSetValueKey(HANDLE
,const UNICODE_STRING
*,ULONG
,ULONG
,const void *,ULONG
);
3256 NTSYSAPI NTSTATUS WINAPI
NtSetVolumeInformationFile(HANDLE
,PIO_STATUS_BLOCK
,PVOID
,ULONG
,FS_INFORMATION_CLASS
);
3257 NTSYSAPI NTSTATUS WINAPI
NtSignalAndWaitForSingleObject(HANDLE
,HANDLE
,BOOLEAN
,const LARGE_INTEGER
*);
3258 NTSYSAPI NTSTATUS WINAPI
NtShutdownSystem(SHUTDOWN_ACTION
);
3259 NTSYSAPI NTSTATUS WINAPI
NtStartProfile(HANDLE
);
3260 NTSYSAPI NTSTATUS WINAPI
NtStopProfile(HANDLE
);
3261 NTSYSAPI NTSTATUS WINAPI
NtSuspendProcess(HANDLE
);
3262 NTSYSAPI NTSTATUS WINAPI
NtSuspendThread(HANDLE
,PULONG
);
3263 NTSYSAPI NTSTATUS WINAPI
NtSystemDebugControl(SYSDBG_COMMAND
,PVOID
,ULONG
,PVOID
,ULONG
,PULONG
);
3264 NTSYSAPI NTSTATUS WINAPI
NtTerminateJobObject(HANDLE
,NTSTATUS
);
3265 NTSYSAPI NTSTATUS WINAPI
NtTerminateProcess(HANDLE
,LONG
);
3266 NTSYSAPI NTSTATUS WINAPI
NtTerminateThread(HANDLE
,LONG
);
3267 NTSYSAPI NTSTATUS WINAPI
NtTestAlert(VOID
);
3268 NTSYSAPI NTSTATUS WINAPI
NtUnloadDriver(const UNICODE_STRING
*);
3269 NTSYSAPI NTSTATUS WINAPI
NtUnloadKey(POBJECT_ATTRIBUTES
);
3270 NTSYSAPI NTSTATUS WINAPI
NtUnloadKeyEx(POBJECT_ATTRIBUTES
,HANDLE
);
3271 NTSYSAPI NTSTATUS WINAPI
NtUnlockFile(HANDLE
,PIO_STATUS_BLOCK
,PLARGE_INTEGER
,PLARGE_INTEGER
,PULONG
);
3272 NTSYSAPI NTSTATUS WINAPI
NtUnlockVirtualMemory(HANDLE
,PVOID
*,SIZE_T
*,ULONG
);
3273 NTSYSAPI NTSTATUS WINAPI
NtUnmapViewOfSection(HANDLE
,PVOID
);
3274 NTSYSAPI NTSTATUS WINAPI
NtVdmControl(ULONG
,PVOID
);
3275 NTSYSAPI NTSTATUS WINAPI
NtWaitForKeyedEvent(HANDLE
,const void*,BOOLEAN
,const LARGE_INTEGER
*);
3276 NTSYSAPI NTSTATUS WINAPI
NtWaitForSingleObject(HANDLE
,BOOLEAN
,const LARGE_INTEGER
*);
3277 NTSYSAPI NTSTATUS WINAPI
NtWaitForMultipleObjects(ULONG
,const HANDLE
*,BOOLEAN
,BOOLEAN
,const LARGE_INTEGER
*);
3278 NTSYSAPI NTSTATUS WINAPI
NtWaitHighEventPair(HANDLE
);
3279 NTSYSAPI NTSTATUS WINAPI
NtWaitLowEventPair(HANDLE
);
3280 NTSYSAPI NTSTATUS WINAPI
NtWriteFile(HANDLE
,HANDLE
,PIO_APC_ROUTINE
,PVOID
,PIO_STATUS_BLOCK
,const void*,ULONG
,PLARGE_INTEGER
,PULONG
);
3281 NTSYSAPI NTSTATUS WINAPI
NtWriteFileGather(HANDLE
,HANDLE
,PIO_APC_ROUTINE
,PVOID
,PIO_STATUS_BLOCK
,FILE_SEGMENT_ELEMENT
*,ULONG
,PLARGE_INTEGER
,PULONG
);
3282 NTSYSAPI NTSTATUS WINAPI
NtWriteRequestData(HANDLE
,PLPC_MESSAGE
,ULONG
,PVOID
,ULONG
,PULONG
);
3283 NTSYSAPI NTSTATUS WINAPI
NtWriteVirtualMemory(HANDLE
,void*,const void*,SIZE_T
,SIZE_T
*);
3284 NTSYSAPI NTSTATUS WINAPI
NtYieldExecution(void);
3286 NTSYSAPI NTSTATUS WINAPI
RtlAbsoluteToSelfRelativeSD(PSECURITY_DESCRIPTOR
,PSECURITY_DESCRIPTOR
,PULONG
);
3287 NTSYSAPI
void WINAPI
RtlAcquirePebLock(void);
3288 NTSYSAPI BYTE WINAPI
RtlAcquireResourceExclusive(LPRTL_RWLOCK
,BYTE
);
3289 NTSYSAPI BYTE WINAPI
RtlAcquireResourceShared(LPRTL_RWLOCK
,BYTE
);
3290 NTSYSAPI
void WINAPI
RtlAcquireSRWLockExclusive(RTL_SRWLOCK
*);
3291 NTSYSAPI
void WINAPI
RtlAcquireSRWLockShared(RTL_SRWLOCK
*);
3292 NTSYSAPI NTSTATUS WINAPI
RtlActivateActivationContext(DWORD
,HANDLE
,ULONG_PTR
*);
3293 NTSYSAPI NTSTATUS WINAPI
RtlActivateActivationContextEx(ULONG
,TEB
*,HANDLE
,ULONG_PTR
*);
3294 NTSYSAPI NTSTATUS WINAPI
RtlAddAce(PACL
,DWORD
,DWORD
,PACE_HEADER
,DWORD
);
3295 NTSYSAPI NTSTATUS WINAPI
RtlAddAccessAllowedAce(PACL
,DWORD
,DWORD
,PSID
);
3296 NTSYSAPI NTSTATUS WINAPI
RtlAddAccessAllowedAceEx(PACL
,DWORD
,DWORD
,DWORD
,PSID
);
3297 NTSYSAPI NTSTATUS WINAPI
RtlAddAccessAllowedObjectAce(PACL
,DWORD
,DWORD
,DWORD
,GUID
*,GUID
*,PSID
);
3298 NTSYSAPI NTSTATUS WINAPI
RtlAddAccessDeniedAce(PACL
,DWORD
,DWORD
,PSID
);
3299 NTSYSAPI NTSTATUS WINAPI
RtlAddAccessDeniedAceEx(PACL
,DWORD
,DWORD
,DWORD
,PSID
);
3300 NTSYSAPI NTSTATUS WINAPI
RtlAddAccessDeniedObjectAce(PACL
,DWORD
,DWORD
,DWORD
,GUID
*,GUID
*,PSID
);
3301 NTSYSAPI NTSTATUS WINAPI
RtlAddAtomToAtomTable(RTL_ATOM_TABLE
,const WCHAR
*,RTL_ATOM
*);
3302 NTSYSAPI NTSTATUS WINAPI
RtlAddAuditAccessAce(PACL
,DWORD
,DWORD
,PSID
,BOOL
,BOOL
);
3303 NTSYSAPI NTSTATUS WINAPI
RtlAddAuditAccessAceEx(PACL
,DWORD
,DWORD
,DWORD
,PSID
,BOOL
,BOOL
);
3304 NTSYSAPI NTSTATUS WINAPI
RtlAddAuditAccessObjectAce(PACL
,DWORD
,DWORD
,DWORD
,GUID
*,GUID
*,PSID
,BOOL
,BOOL
);
3305 NTSYSAPI NTSTATUS WINAPI
RtlAddMandatoryAce(PACL
,DWORD
,DWORD
,DWORD
,DWORD
,PSID
);
3306 NTSYSAPI
void WINAPI
RtlAddRefActivationContext(HANDLE
);
3307 NTSYSAPI PVOID WINAPI
RtlAddVectoredExceptionHandler(ULONG
,PVECTORED_EXCEPTION_HANDLER
);
3308 NTSYSAPI NTSTATUS WINAPI
RtlAdjustPrivilege(ULONG
,BOOLEAN
,BOOLEAN
,PBOOLEAN
);
3309 NTSYSAPI NTSTATUS WINAPI
RtlAllocateAndInitializeSid(PSID_IDENTIFIER_AUTHORITY
,BYTE
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,PSID
*);
3310 NTSYSAPI RTL_HANDLE
* WINAPI
RtlAllocateHandle(RTL_HANDLE_TABLE
*,ULONG
*);
3311 NTSYSAPI PVOID WINAPI
RtlAllocateHeap(HANDLE
,ULONG
,SIZE_T
) __WINE_ALLOC_SIZE(3);
3312 NTSYSAPI WCHAR WINAPI
RtlAnsiCharToUnicodeChar(LPSTR
*);
3313 NTSYSAPI DWORD WINAPI
RtlAnsiStringToUnicodeSize(const STRING
*);
3314 NTSYSAPI NTSTATUS WINAPI
RtlAnsiStringToUnicodeString(PUNICODE_STRING
,PCANSI_STRING
,BOOLEAN
);
3315 NTSYSAPI NTSTATUS WINAPI
RtlAppendAsciizToString(STRING
*,LPCSTR
);
3316 NTSYSAPI NTSTATUS WINAPI
RtlAppendStringToString(STRING
*,const STRING
*);
3317 NTSYSAPI NTSTATUS WINAPI
RtlAppendUnicodeStringToString(UNICODE_STRING
*,const UNICODE_STRING
*);
3318 NTSYSAPI NTSTATUS WINAPI
RtlAppendUnicodeToString(UNICODE_STRING
*,LPCWSTR
);
3319 NTSYSAPI BOOLEAN WINAPI
RtlAreAllAccessesGranted(ACCESS_MASK
,ACCESS_MASK
);
3320 NTSYSAPI BOOLEAN WINAPI
RtlAreAnyAccessesGranted(ACCESS_MASK
,ACCESS_MASK
);
3321 NTSYSAPI BOOLEAN WINAPI
RtlAreBitsSet(PCRTL_BITMAP
,ULONG
,ULONG
);
3322 NTSYSAPI BOOLEAN WINAPI
RtlAreBitsClear(PCRTL_BITMAP
,ULONG
,ULONG
);
3323 NTSYSAPI NTSTATUS WINAPI
RtlCharToInteger(PCSZ
,ULONG
,PULONG
);
3324 NTSYSAPI NTSTATUS WINAPI
RtlCheckRegistryKey(ULONG
, PWSTR
);
3325 NTSYSAPI
void WINAPI
RtlClearAllBits(PRTL_BITMAP
);
3326 NTSYSAPI
void WINAPI
RtlClearBits(PRTL_BITMAP
,ULONG
,ULONG
);
3327 NTSYSAPI NTSTATUS WINAPI
RtlCreateActivationContext(HANDLE
*,const void*);
3328 NTSYSAPI PDEBUG_BUFFER WINAPI
RtlCreateQueryDebugBuffer(ULONG
,BOOLEAN
);
3329 NTSYSAPI NTSTATUS WINAPI
RtlCreateRegistryKey(ULONG
,PWSTR
);
3330 NTSYSAPI ULONG WINAPI
RtlCompactHeap(HANDLE
,ULONG
);
3331 NTSYSAPI LONG WINAPI
RtlCompareString(const STRING
*,const STRING
*,BOOLEAN
);
3332 NTSYSAPI LONG WINAPI
RtlCompareUnicodeString(const UNICODE_STRING
*,const UNICODE_STRING
*,BOOLEAN
);
3333 NTSYSAPI LONG WINAPI
RtlCompareUnicodeStrings(const WCHAR
*,SIZE_T
,const WCHAR
*,SIZE_T
,BOOLEAN
);
3334 NTSYSAPI NTSTATUS WINAPI
RtlCompressBuffer(USHORT
,PUCHAR
,ULONG
,PUCHAR
,ULONG
,ULONG
,PULONG
,PVOID
);
3335 NTSYSAPI DWORD WINAPI
RtlComputeCrc32(DWORD
,const BYTE
*,INT
);
3336 NTSYSAPI NTSTATUS WINAPI
RtlConvertSidToUnicodeString(PUNICODE_STRING
,PSID
,BOOLEAN
);
3337 NTSYSAPI NTSTATUS WINAPI
RtlConvertToAutoInheritSecurityObject(PSECURITY_DESCRIPTOR
,PSECURITY_DESCRIPTOR
,PSECURITY_DESCRIPTOR
*,GUID
*,BOOL
,PGENERIC_MAPPING
);
3338 NTSYSAPI
void WINAPI
RtlCopyLuid(PLUID
,const LUID
*);
3339 NTSYSAPI
void WINAPI
RtlCopyLuidAndAttributesArray(ULONG
,const LUID_AND_ATTRIBUTES
*,PLUID_AND_ATTRIBUTES
);
3340 NTSYSAPI BOOLEAN WINAPI
RtlCopySid(DWORD
,PSID
,PSID
);
3341 NTSYSAPI NTSTATUS WINAPI
RtlCopySecurityDescriptor(PSECURITY_DESCRIPTOR
,PSECURITY_DESCRIPTOR
);
3342 NTSYSAPI
void WINAPI
RtlCopyString(STRING
*,const STRING
*);
3343 NTSYSAPI
void WINAPI
RtlCopyUnicodeString(UNICODE_STRING
*,const UNICODE_STRING
*);
3344 NTSYSAPI NTSTATUS WINAPI
RtlCreateAcl(PACL
,DWORD
,DWORD
);
3345 NTSYSAPI NTSTATUS WINAPI
RtlCreateAtomTable(ULONG
,RTL_ATOM_TABLE
*);
3346 NTSYSAPI NTSTATUS WINAPI
RtlCreateEnvironment(BOOLEAN
, PWSTR
*);
3347 NTSYSAPI HANDLE WINAPI
RtlCreateHeap(ULONG
,PVOID
,SIZE_T
,SIZE_T
,PVOID
,PRTL_HEAP_DEFINITION
);
3348 NTSYSAPI NTSTATUS WINAPI
RtlCreateProcessParameters(RTL_USER_PROCESS_PARAMETERS
**,const UNICODE_STRING
*,const UNICODE_STRING
*,const UNICODE_STRING
*,const UNICODE_STRING
*,PWSTR
,const UNICODE_STRING
*,const UNICODE_STRING
*,const UNICODE_STRING
*,const UNICODE_STRING
*);
3349 NTSYSAPI NTSTATUS WINAPI
RtlCreateProcessParametersEx(RTL_USER_PROCESS_PARAMETERS
**,const UNICODE_STRING
*,const UNICODE_STRING
*,const UNICODE_STRING
*,const UNICODE_STRING
*,PWSTR
,const UNICODE_STRING
*,const UNICODE_STRING
*,const UNICODE_STRING
*,const UNICODE_STRING
*,ULONG
);
3350 NTSYSAPI NTSTATUS WINAPI
RtlCreateSecurityDescriptor(PSECURITY_DESCRIPTOR
,DWORD
);
3351 NTSYSAPI NTSTATUS WINAPI
RtlCreateTimerQueue(PHANDLE
);
3352 NTSYSAPI NTSTATUS WINAPI
RtlCreateTimer(PHANDLE
, HANDLE
, RTL_WAITORTIMERCALLBACKFUNC
, PVOID
, DWORD
, DWORD
, ULONG
);
3353 NTSYSAPI BOOLEAN WINAPI
RtlCreateUnicodeString(PUNICODE_STRING
,LPCWSTR
);
3354 NTSYSAPI BOOLEAN WINAPI
RtlCreateUnicodeStringFromAsciiz(PUNICODE_STRING
,LPCSTR
);
3355 NTSYSAPI NTSTATUS WINAPI
RtlCreateUserProcess(UNICODE_STRING
*,ULONG
,RTL_USER_PROCESS_PARAMETERS
*,SECURITY_DESCRIPTOR
*,SECURITY_DESCRIPTOR
*,HANDLE
,BOOLEAN
,HANDLE
,HANDLE
,RTL_USER_PROCESS_INFORMATION
*);
3356 NTSYSAPI NTSTATUS WINAPI
RtlCreateUserThread(HANDLE
,SECURITY_DESCRIPTOR
*,BOOLEAN
,PVOID
,SIZE_T
,SIZE_T
,PRTL_THREAD_START_ROUTINE
,void*,HANDLE
*,CLIENT_ID
*);
3357 NTSYSAPI NTSTATUS WINAPI
RtlCreateUserStack(SIZE_T
,SIZE_T
,ULONG
,SIZE_T
,SIZE_T
,INITIAL_TEB
*);
3358 NTSYSAPI NTSTATUS WINAPI
RtlCustomCPToUnicodeN(CPTABLEINFO
*,WCHAR
*,DWORD
,DWORD
*,const char*,DWORD
);
3359 NTSYSAPI
void WINAPI
RtlDeactivateActivationContext(DWORD
,ULONG_PTR
);
3360 NTSYSAPI PVOID WINAPI
RtlDecodePointer(PVOID
);
3361 NTSYSAPI NTSTATUS WINAPI
RtlDecompressBuffer(USHORT
,PUCHAR
,ULONG
,PUCHAR
,ULONG
,PULONG
);
3362 NTSYSAPI NTSTATUS WINAPI
RtlDecompressFragment(USHORT
,PUCHAR
,ULONG
,PUCHAR
,ULONG
,ULONG
,PULONG
,PVOID
);
3363 NTSYSAPI NTSTATUS WINAPI
RtlDeleteAce(PACL
,DWORD
);
3364 NTSYSAPI NTSTATUS WINAPI
RtlDeleteAtomFromAtomTable(RTL_ATOM_TABLE
,RTL_ATOM
);
3365 NTSYSAPI NTSTATUS WINAPI
RtlDeleteCriticalSection(RTL_CRITICAL_SECTION
*);
3366 NTSYSAPI NTSTATUS WINAPI
RtlDeleteRegistryValue(ULONG
, PCWSTR
, PCWSTR
);
3367 NTSYSAPI
void WINAPI
RtlDeleteResource(LPRTL_RWLOCK
);
3368 NTSYSAPI NTSTATUS WINAPI
RtlDeleteSecurityObject(PSECURITY_DESCRIPTOR
*);
3369 NTSYSAPI NTSTATUS WINAPI
RtlDeleteTimer(HANDLE
, HANDLE
, HANDLE
);
3370 NTSYSAPI NTSTATUS WINAPI
RtlDeleteTimerQueueEx(HANDLE
, HANDLE
);
3371 NTSYSAPI PRTL_USER_PROCESS_PARAMETERS WINAPI
RtlDeNormalizeProcessParams(RTL_USER_PROCESS_PARAMETERS
*);
3372 NTSYSAPI NTSTATUS WINAPI
RtlDeregisterWait(HANDLE
);
3373 NTSYSAPI NTSTATUS WINAPI
RtlDeregisterWaitEx(HANDLE
,HANDLE
);
3374 NTSYSAPI NTSTATUS WINAPI
RtlDestroyAtomTable(RTL_ATOM_TABLE
);
3375 NTSYSAPI NTSTATUS WINAPI
RtlDestroyEnvironment(PWSTR
);
3376 NTSYSAPI NTSTATUS WINAPI
RtlDestroyHandleTable(RTL_HANDLE_TABLE
*);
3377 NTSYSAPI HANDLE WINAPI
RtlDestroyHeap(HANDLE
);
3378 NTSYSAPI
void WINAPI
RtlDestroyProcessParameters(RTL_USER_PROCESS_PARAMETERS
*);
3379 NTSYSAPI NTSTATUS WINAPI
RtlDestroyQueryDebugBuffer(PDEBUG_BUFFER
);
3380 NTSYSAPI DOS_PATHNAME_TYPE WINAPI
RtlDetermineDosPathNameType_U(PCWSTR
);
3381 NTSYSAPI BOOLEAN WINAPI
RtlDllShutdownInProgress(void);
3382 NTSYSAPI BOOLEAN WINAPI
RtlDoesFileExists_U(LPCWSTR
);
3383 NTSYSAPI BOOLEAN WINAPI
RtlDosPathNameToNtPathName_U(PCWSTR
,PUNICODE_STRING
,PWSTR
*,CURDIR
*);
3384 NTSYSAPI NTSTATUS WINAPI
RtlDosPathNameToNtPathName_U_WithStatus(PCWSTR
,PUNICODE_STRING
,PWSTR
*,CURDIR
*);
3385 NTSYSAPI ULONG WINAPI
RtlDosSearchPath_U(LPCWSTR
, LPCWSTR
, LPCWSTR
, ULONG
, LPWSTR
, LPWSTR
*);
3386 NTSYSAPI WCHAR WINAPI
RtlDowncaseUnicodeChar(WCHAR
);
3387 NTSYSAPI NTSTATUS WINAPI
RtlDowncaseUnicodeString(UNICODE_STRING
*,const UNICODE_STRING
*,BOOLEAN
);
3388 NTSYSAPI
void WINAPI
RtlDumpResource(LPRTL_RWLOCK
);
3389 NTSYSAPI NTSTATUS WINAPI
RtlDuplicateUnicodeString(int,const UNICODE_STRING
*,UNICODE_STRING
*);
3390 NTSYSAPI NTSTATUS WINAPI
RtlEmptyAtomTable(RTL_ATOM_TABLE
,BOOLEAN
);
3391 NTSYSAPI PVOID WINAPI
RtlEncodePointer(PVOID
);
3392 NTSYSAPI NTSTATUS WINAPI
RtlEnterCriticalSection(RTL_CRITICAL_SECTION
*);
3393 NTSYSAPI
void WINAPI
RtlEraseUnicodeString(UNICODE_STRING
*);
3394 NTSYSAPI NTSTATUS WINAPI
RtlEqualComputerName(const UNICODE_STRING
*,const UNICODE_STRING
*);
3395 NTSYSAPI NTSTATUS WINAPI
RtlEqualDomainName(const UNICODE_STRING
*,const UNICODE_STRING
*);
3396 NTSYSAPI BOOLEAN WINAPI
RtlEqualLuid(const LUID
*,const LUID
*);
3397 NTSYSAPI BOOL WINAPI
RtlEqualPrefixSid(PSID
,PSID
);
3398 NTSYSAPI BOOL WINAPI
RtlEqualSid(PSID
,PSID
);
3399 NTSYSAPI BOOLEAN WINAPI
RtlEqualString(const STRING
*,const STRING
*,BOOLEAN
);
3400 NTSYSAPI BOOLEAN WINAPI
RtlEqualUnicodeString(const UNICODE_STRING
*,const UNICODE_STRING
*,BOOLEAN
);
3401 NTSYSAPI
void DECLSPEC_NORETURN WINAPI
RtlExitUserProcess(ULONG
);
3402 NTSYSAPI
void DECLSPEC_NORETURN WINAPI
RtlExitUserThread(ULONG
);
3403 NTSYSAPI NTSTATUS WINAPI
RtlExpandEnvironmentStrings(const WCHAR
*,WCHAR
*,SIZE_T
,WCHAR
*,SIZE_T
,SIZE_T
*);
3404 NTSYSAPI NTSTATUS WINAPI
RtlExpandEnvironmentStrings_U(PCWSTR
, const UNICODE_STRING
*, UNICODE_STRING
*, ULONG
*);
3405 NTSYSAPI NTSTATUS WINAPI
RtlFindActivationContextSectionString(ULONG
,const GUID
*,ULONG
,const UNICODE_STRING
*,PVOID
);
3406 NTSYSAPI NTSTATUS WINAPI
RtlFindActivationContextSectionGuid(ULONG
,const GUID
*,ULONG
,const GUID
*,PVOID
);
3407 NTSYSAPI NTSTATUS WINAPI
RtlFindCharInUnicodeString(int,const UNICODE_STRING
*,const UNICODE_STRING
*,USHORT
*);
3408 NTSYSAPI ULONG WINAPI
RtlFindClearBits(PCRTL_BITMAP
,ULONG
,ULONG
);
3409 NTSYSAPI ULONG WINAPI
RtlFindClearBitsAndSet(PRTL_BITMAP
,ULONG
,ULONG
);
3410 NTSYSAPI ULONG WINAPI
RtlFindClearRuns(PCRTL_BITMAP
,PRTL_BITMAP_RUN
,ULONG
,BOOLEAN
);
3411 NTSYSAPI ULONG WINAPI
RtlFindLastBackwardRunSet(PCRTL_BITMAP
,ULONG
,PULONG
);
3412 NTSYSAPI ULONG WINAPI
RtlFindLastBackwardRunClear(PCRTL_BITMAP
,ULONG
,PULONG
);
3413 NTSYSAPI CCHAR WINAPI
RtlFindLeastSignificantBit(ULONGLONG
);
3414 NTSYSAPI ULONG WINAPI
RtlFindLongestRunSet(PCRTL_BITMAP
,PULONG
);
3415 NTSYSAPI ULONG WINAPI
RtlFindLongestRunClear(PCRTL_BITMAP
,PULONG
);
3416 NTSYSAPI NTSTATUS WINAPI
RtlFindMessage(HMODULE
,ULONG
,ULONG
,ULONG
,const MESSAGE_RESOURCE_ENTRY
**);
3417 NTSYSAPI CCHAR WINAPI
RtlFindMostSignificantBit(ULONGLONG
);
3418 NTSYSAPI ULONG WINAPI
RtlFindNextForwardRunSet(PCRTL_BITMAP
,ULONG
,PULONG
);
3419 NTSYSAPI ULONG WINAPI
RtlFindNextForwardRunClear(PCRTL_BITMAP
,ULONG
,PULONG
);
3420 NTSYSAPI ULONG WINAPI
RtlFindSetBits(PCRTL_BITMAP
,ULONG
,ULONG
);
3421 NTSYSAPI ULONG WINAPI
RtlFindSetBitsAndClear(PRTL_BITMAP
,ULONG
,ULONG
);
3422 NTSYSAPI ULONG WINAPI
RtlFindSetRuns(PCRTL_BITMAP
,PRTL_BITMAP_RUN
,ULONG
,BOOLEAN
);
3423 NTSYSAPI BOOLEAN WINAPI
RtlFirstFreeAce(PACL
,PACE_HEADER
*);
3424 NTSYSAPI NTSTATUS WINAPI
RtlFlsAlloc(PFLS_CALLBACK_FUNCTION
,ULONG
*);
3425 NTSYSAPI NTSTATUS WINAPI
RtlFlsFree(ULONG
);
3426 NTSYSAPI NTSTATUS WINAPI
RtlFlsGetValue(ULONG
,void **);
3427 NTSYSAPI NTSTATUS WINAPI
RtlFlsSetValue(ULONG
,void *);
3428 NTSYSAPI NTSTATUS WINAPI
RtlFormatCurrentUserKeyPath(PUNICODE_STRING
);
3429 NTSYSAPI NTSTATUS WINAPI
RtlFormatMessage(LPCWSTR
,ULONG
,BOOLEAN
,BOOLEAN
,BOOLEAN
,__ms_va_list
*,LPWSTR
,ULONG
,ULONG
*);
3430 NTSYSAPI NTSTATUS WINAPI
RtlFormatMessageEx(LPCWSTR
,ULONG
,BOOLEAN
,BOOLEAN
,BOOLEAN
,__ms_va_list
*,LPWSTR
,ULONG
,ULONG
*,ULONG
);
3431 NTSYSAPI
void WINAPI
RtlFreeAnsiString(PANSI_STRING
);
3432 NTSYSAPI BOOLEAN WINAPI
RtlFreeHandle(RTL_HANDLE_TABLE
*,RTL_HANDLE
*);
3433 NTSYSAPI BOOLEAN WINAPI
RtlFreeHeap(HANDLE
,ULONG
,PVOID
);
3434 NTSYSAPI
void WINAPI
RtlFreeOemString(POEM_STRING
);
3435 NTSYSAPI DWORD WINAPI
RtlFreeSid(PSID
);
3436 NTSYSAPI
void WINAPI
RtlFreeThreadActivationContextStack(void);
3437 NTSYSAPI
void WINAPI
RtlFreeUnicodeString(PUNICODE_STRING
);
3438 NTSYSAPI
void WINAPI
RtlFreeUserStack(void*);
3439 NTSYSAPI NTSTATUS WINAPI
RtlGetAce(PACL
,DWORD
,LPVOID
*);
3440 NTSYSAPI NTSTATUS WINAPI
RtlGetActiveActivationContext(HANDLE
*);
3441 NTSYSAPI NTSTATUS WINAPI
RtlGetCompressionWorkSpaceSize(USHORT
,PULONG
,PULONG
);
3442 NTSYSAPI NTSTATUS WINAPI
RtlGetControlSecurityDescriptor(PSECURITY_DESCRIPTOR
, PSECURITY_DESCRIPTOR_CONTROL
,LPDWORD
);
3443 NTSYSAPI ULONG WINAPI
RtlGetCurrentDirectory_U(ULONG
, LPWSTR
);
3444 NTSYSAPI PEB
* WINAPI
RtlGetCurrentPeb(void);
3445 NTSYSAPI NTSTATUS WINAPI
RtlGetDaclSecurityDescriptor(PSECURITY_DESCRIPTOR
,PBOOLEAN
,PACL
*,PBOOLEAN
);
3446 NTSYSAPI NTSTATUS WINAPI
RtlGetExePath(PCWSTR
,PWSTR
*);
3447 NTSYSAPI TEB_ACTIVE_FRAME
* WINAPI
RtlGetFrame(void);
3448 NTSYSAPI ULONG WINAPI
RtlGetFullPathName_U(PCWSTR
,ULONG
,PWSTR
,PWSTR
*);
3449 NTSYSAPI NTSTATUS WINAPI
RtlGetGroupSecurityDescriptor(PSECURITY_DESCRIPTOR
,PSID
*,PBOOLEAN
);
3450 NTSYSAPI NTSTATUS WINAPI
RtlGetLastNtStatus(void);
3451 NTSYSAPI DWORD WINAPI
RtlGetLastWin32Error(void);
3452 NTSYSAPI DWORD WINAPI
RtlGetLongestNtPathLength(void);
3453 NTSYSAPI ULONG WINAPI
RtlGetNtGlobalFlags(void);
3454 NTSYSAPI BOOLEAN WINAPI
RtlGetNtProductType(LPDWORD
);
3455 NTSYSAPI NTSTATUS WINAPI
RtlGetOwnerSecurityDescriptor(PSECURITY_DESCRIPTOR
,PSID
*,PBOOLEAN
);
3456 NTSYSAPI ULONG WINAPI
RtlGetProcessHeaps(ULONG
,HANDLE
*);
3457 NTSYSAPI NTSTATUS WINAPI
RtlGetProcessPreferredUILanguages(DWORD
,ULONG
*,WCHAR
*,ULONG
*);
3458 NTSYSAPI NTSTATUS WINAPI
RtlGetSaclSecurityDescriptor(PSECURITY_DESCRIPTOR
,PBOOLEAN
,PACL
*,PBOOLEAN
);
3459 NTSYSAPI NTSTATUS WINAPI
RtlGetSearchPath(PWSTR
*);
3460 NTSYSAPI NTSTATUS WINAPI
RtlGetSystemPreferredUILanguages(DWORD
,ULONG
,ULONG
*,WCHAR
*,ULONG
*);
3461 NTSYSAPI LONGLONG WINAPI
RtlGetSystemTimePrecise(void);
3462 NTSYSAPI DWORD WINAPI
RtlGetThreadErrorMode(void);
3463 NTSYSAPI NTSTATUS WINAPI
RtlGetThreadPreferredUILanguages(DWORD
,ULONG
*,WCHAR
*,ULONG
*);
3464 NTSYSAPI NTSTATUS WINAPI
RtlGetUserPreferredUILanguages(DWORD
,ULONG
,ULONG
*,WCHAR
*,ULONG
*);
3465 NTSYSAPI NTSTATUS WINAPI
RtlGetVersion(RTL_OSVERSIONINFOEXW
*);
3466 NTSYSAPI NTSTATUS WINAPI
RtlGUIDFromString(PUNICODE_STRING
,GUID
*);
3467 NTSYSAPI PSID_IDENTIFIER_AUTHORITY WINAPI
RtlIdentifierAuthoritySid(PSID
);
3468 NTSYSAPI NTSTATUS WINAPI
RtlIdnToAscii(DWORD
,const WCHAR
*,INT
,WCHAR
*,INT
*);
3469 NTSYSAPI NTSTATUS WINAPI
RtlIdnToNameprepUnicode(DWORD
,const WCHAR
*,INT
,WCHAR
*,INT
*);
3470 NTSYSAPI NTSTATUS WINAPI
RtlIdnToUnicode(DWORD
,const WCHAR
*,INT
,WCHAR
*,INT
*);
3471 NTSYSAPI PVOID WINAPI
RtlImageDirectoryEntryToData(HMODULE
,BOOL
,WORD
,ULONG
*);
3472 NTSYSAPI PIMAGE_NT_HEADERS WINAPI
RtlImageNtHeader(HMODULE
);
3473 NTSYSAPI PIMAGE_SECTION_HEADER WINAPI
RtlImageRvaToSection(const IMAGE_NT_HEADERS
*,HMODULE
,DWORD
);
3474 NTSYSAPI PVOID WINAPI
RtlImageRvaToVa(const IMAGE_NT_HEADERS
*,HMODULE
,DWORD
,IMAGE_SECTION_HEADER
**);
3475 NTSYSAPI NTSTATUS WINAPI
RtlImpersonateSelf(SECURITY_IMPERSONATION_LEVEL
);
3476 NTSYSAPI
void WINAPI
RtlInitString(PSTRING
,PCSZ
);
3477 NTSYSAPI
void WINAPI
RtlInitAnsiString(PANSI_STRING
,PCSZ
);
3478 NTSYSAPI NTSTATUS WINAPI
RtlInitAnsiStringEx(PANSI_STRING
,PCSZ
);
3479 NTSYSAPI
void WINAPI
RtlInitCodePageTable(USHORT
*,CPTABLEINFO
*);
3480 NTSYSAPI
void WINAPI
RtlInitNlsTables(USHORT
*,USHORT
*,USHORT
*,NLSTABLEINFO
*);
3481 NTSYSAPI
void WINAPI
RtlInitUnicodeString(PUNICODE_STRING
,PCWSTR
);
3482 NTSYSAPI NTSTATUS WINAPI
RtlInitUnicodeStringEx(PUNICODE_STRING
,PCWSTR
);
3483 NTSYSAPI
void WINAPI
RtlInitializeBitMap(PRTL_BITMAP
,PULONG
,ULONG
);
3484 NTSYSAPI
void WINAPI
RtlInitializeConditionVariable(RTL_CONDITION_VARIABLE
*);
3485 NTSYSAPI NTSTATUS WINAPI
RtlInitializeCriticalSection(RTL_CRITICAL_SECTION
*);
3486 NTSYSAPI NTSTATUS WINAPI
RtlInitializeCriticalSectionAndSpinCount(RTL_CRITICAL_SECTION
*,ULONG
);
3487 NTSYSAPI NTSTATUS WINAPI
RtlInitializeCriticalSectionEx(RTL_CRITICAL_SECTION
*,ULONG
,ULONG
);
3488 NTSYSAPI
void WINAPI
RtlInitializeHandleTable(ULONG
,ULONG
,RTL_HANDLE_TABLE
*);
3489 NTSYSAPI
void WINAPI
RtlInitializeResource(LPRTL_RWLOCK
);
3490 NTSYSAPI
void WINAPI
RtlInitializeSRWLock(RTL_SRWLOCK
*);
3491 NTSYSAPI BOOL WINAPI
RtlInitializeSid(PSID
,PSID_IDENTIFIER_AUTHORITY
,BYTE
);
3492 NTSYSAPI NTSTATUS WINAPI
RtlInt64ToUnicodeString(ULONGLONG
,ULONG
,UNICODE_STRING
*);
3493 NTSYSAPI NTSTATUS WINAPI
RtlIntegerToChar(ULONG
,ULONG
,ULONG
,PCHAR
);
3494 NTSYSAPI NTSTATUS WINAPI
RtlIntegerToUnicodeString(ULONG
,ULONG
,UNICODE_STRING
*);
3495 NTSYSAPI BOOLEAN WINAPI
RtlIsActivationContextActive(HANDLE
);
3496 NTSYSAPI BOOL WINAPI
RtlIsCriticalSectionLocked(RTL_CRITICAL_SECTION
*);
3497 NTSYSAPI BOOL WINAPI
RtlIsCriticalSectionLockedByThread(RTL_CRITICAL_SECTION
*);
3498 NTSYSAPI ULONG WINAPI
RtlIsDosDeviceName_U(PCWSTR
);
3499 NTSYSAPI BOOLEAN WINAPI
RtlIsNameLegalDOS8Dot3(const UNICODE_STRING
*,POEM_STRING
,PBOOLEAN
);
3500 NTSYSAPI NTSTATUS WINAPI
RtlIsNormalizedString(ULONG
,const WCHAR
*,INT
,BOOLEAN
*);
3501 NTSYSAPI BOOLEAN WINAPI
RtlIsProcessorFeaturePresent(UINT
);
3502 NTSYSAPI BOOLEAN WINAPI
RtlIsTextUnicode(LPCVOID
,INT
,INT
*);
3503 NTSYSAPI BOOLEAN WINAPI
RtlIsValidHandle(const RTL_HANDLE_TABLE
*, const RTL_HANDLE
*);
3504 NTSYSAPI BOOLEAN WINAPI
RtlIsValidIndexHandle(const RTL_HANDLE_TABLE
*, ULONG Index
, RTL_HANDLE
**);
3505 NTSYSAPI NTSTATUS WINAPI
RtlLeaveCriticalSection(RTL_CRITICAL_SECTION
*);
3506 NTSYSAPI DWORD WINAPI
RtlLengthRequiredSid(DWORD
);
3507 NTSYSAPI ULONG WINAPI
RtlLengthSecurityDescriptor(PSECURITY_DESCRIPTOR
);
3508 NTSYSAPI DWORD WINAPI
RtlLengthSid(PSID
);
3509 NTSYSAPI NTSTATUS WINAPI
RtlLocalTimeToSystemTime(const LARGE_INTEGER
*,PLARGE_INTEGER
);
3510 NTSYSAPI NTSTATUS WINAPI
RtlLocaleNameToLcid(const WCHAR
*,LCID
*,ULONG
);
3511 NTSYSAPI BOOLEAN WINAPI
RtlLockHeap(HANDLE
);
3512 NTSYSAPI NTSTATUS WINAPI
RtlLookupAtomInAtomTable(RTL_ATOM_TABLE
,const WCHAR
*,RTL_ATOM
*);
3513 NTSYSAPI NTSTATUS WINAPI
RtlMakeSelfRelativeSD(PSECURITY_DESCRIPTOR
,PSECURITY_DESCRIPTOR
,LPDWORD
);
3514 NTSYSAPI
void WINAPI
RtlMapGenericMask(PACCESS_MASK
,const GENERIC_MAPPING
*);
3515 NTSYSAPI NTSTATUS WINAPI
RtlMultiByteToUnicodeN(LPWSTR
,DWORD
,LPDWORD
,LPCSTR
,DWORD
);
3516 NTSYSAPI NTSTATUS WINAPI
RtlMultiByteToUnicodeSize(DWORD
*,LPCSTR
,UINT
);
3517 NTSYSAPI NTSTATUS WINAPI
RtlNewSecurityObject(PSECURITY_DESCRIPTOR
,PSECURITY_DESCRIPTOR
,PSECURITY_DESCRIPTOR
*,BOOLEAN
,HANDLE
,PGENERIC_MAPPING
);
3518 NTSYSAPI PRTL_USER_PROCESS_PARAMETERS WINAPI
RtlNormalizeProcessParams(RTL_USER_PROCESS_PARAMETERS
*);
3519 NTSYSAPI NTSTATUS WINAPI
RtlNormalizeString(ULONG
,const WCHAR
*,INT
,WCHAR
*,INT
*);
3520 NTSYSAPI ULONG WINAPI
RtlNtStatusToDosError(NTSTATUS
);
3521 NTSYSAPI ULONG WINAPI
RtlNtStatusToDosErrorNoTeb(NTSTATUS
);
3522 NTSYSAPI ULONG WINAPI
RtlNumberOfSetBits(PCRTL_BITMAP
);
3523 NTSYSAPI ULONG WINAPI
RtlNumberOfClearBits(PCRTL_BITMAP
);
3524 NTSYSAPI UINT WINAPI
RtlOemStringToUnicodeSize(const STRING
*);
3525 NTSYSAPI NTSTATUS WINAPI
RtlOemStringToUnicodeString(UNICODE_STRING
*,const STRING
*,BOOLEAN
);
3526 NTSYSAPI NTSTATUS WINAPI
RtlOemToUnicodeN(LPWSTR
,DWORD
,LPDWORD
,LPCSTR
,DWORD
);
3527 NTSYSAPI NTSTATUS WINAPI
RtlOpenCurrentUser(ACCESS_MASK
,PHANDLE
);
3528 NTSYSAPI PVOID WINAPI
RtlPcToFileHeader(PVOID
,PVOID
*);
3529 NTSYSAPI NTSTATUS WINAPI
RtlPinAtomInAtomTable(RTL_ATOM_TABLE
,RTL_ATOM
);
3530 NTSYSAPI
void WINAPI
RtlPopFrame(TEB_ACTIVE_FRAME
*);
3531 NTSYSAPI BOOLEAN WINAPI
RtlPrefixString(const STRING
*,const STRING
*,BOOLEAN
);
3532 NTSYSAPI BOOLEAN WINAPI
RtlPrefixUnicodeString(const UNICODE_STRING
*,const UNICODE_STRING
*,BOOLEAN
);
3533 NTSYSAPI
void WINAPI
RtlProcessFlsData(void*,ULONG
);
3534 NTSYSAPI
void WINAPI
RtlPushFrame(TEB_ACTIVE_FRAME
*);
3535 NTSYSAPI NTSTATUS WINAPI
RtlQueryActivationContextApplicationSettings(DWORD
,HANDLE
,const WCHAR
*,const WCHAR
*,WCHAR
*,SIZE_T
,SIZE_T
*);
3536 NTSYSAPI NTSTATUS WINAPI
RtlQueryAtomInAtomTable(RTL_ATOM_TABLE
,RTL_ATOM
,ULONG
*,ULONG
*,WCHAR
*,ULONG
*);
3537 NTSYSAPI NTSTATUS WINAPI
RtlQueryDynamicTimeZoneInformation(RTL_DYNAMIC_TIME_ZONE_INFORMATION
*);
3538 NTSYSAPI NTSTATUS WINAPI
RtlQueryEnvironmentVariable(WCHAR
*,const WCHAR
*,SIZE_T
,WCHAR
*,SIZE_T
,SIZE_T
*);
3539 NTSYSAPI NTSTATUS WINAPI
RtlQueryEnvironmentVariable_U(PWSTR
,PUNICODE_STRING
,PUNICODE_STRING
);
3540 NTSYSAPI NTSTATUS WINAPI
RtlQueryHeapInformation(HANDLE
,HEAP_INFORMATION_CLASS
,PVOID
,SIZE_T
,PSIZE_T
);
3541 NTSYSAPI NTSTATUS WINAPI
RtlQueryInformationAcl(PACL
,LPVOID
,DWORD
,ACL_INFORMATION_CLASS
);
3542 NTSYSAPI NTSTATUS WINAPI
RtlQueryInformationActivationContext(ULONG
,HANDLE
,PVOID
,ULONG
,PVOID
,SIZE_T
,SIZE_T
*);
3543 NTSYSAPI BOOL WINAPI
RtlQueryPerformanceCounter(LARGE_INTEGER
*);
3544 NTSYSAPI BOOL WINAPI
RtlQueryPerformanceFrequency(LARGE_INTEGER
*);
3545 NTSYSAPI NTSTATUS WINAPI
RtlQueryProcessDebugInformation(ULONG
,ULONG
,PDEBUG_BUFFER
);
3546 NTSYSAPI NTSTATUS WINAPI
RtlQueryRegistryValues(ULONG
, PCWSTR
, PRTL_QUERY_REGISTRY_TABLE
, PVOID
, PVOID
);
3547 NTSYSAPI NTSTATUS WINAPI
RtlQueryTimeZoneInformation(RTL_TIME_ZONE_INFORMATION
*);
3548 NTSYSAPI BOOL WINAPI
RtlQueryUnbiasedInterruptTime(ULONGLONG
*);
3549 NTSYSAPI NTSTATUS WINAPI
RtlQueueWorkItem(PRTL_WORK_ITEM_ROUTINE
,PVOID
,ULONG
);
3550 NTSYSAPI
void WINAPI
RtlRaiseException(PEXCEPTION_RECORD
);
3551 NTSYSAPI
void WINAPI
RtlRaiseStatus(NTSTATUS
);
3552 NTSYSAPI ULONG WINAPI
RtlRandom(PULONG
);
3553 NTSYSAPI PVOID WINAPI
RtlReAllocateHeap(HANDLE
,ULONG
,PVOID
,SIZE_T
);
3554 NTSYSAPI NTSTATUS WINAPI
RtlRegisterWait(PHANDLE
,HANDLE
,RTL_WAITORTIMERCALLBACKFUNC
,PVOID
,ULONG
,ULONG
);
3555 NTSYSAPI
void WINAPI
RtlReleaseActivationContext(HANDLE
);
3556 NTSYSAPI
void WINAPI
RtlReleasePath(PWSTR
);
3557 NTSYSAPI
void WINAPI
RtlReleasePebLock(void);
3558 NTSYSAPI
void WINAPI
RtlReleaseResource(LPRTL_RWLOCK
);
3559 NTSYSAPI
void WINAPI
RtlReleaseSRWLockExclusive(RTL_SRWLOCK
*);
3560 NTSYSAPI
void WINAPI
RtlReleaseSRWLockShared(RTL_SRWLOCK
*);
3561 NTSYSAPI ULONG WINAPI
RtlRemoveVectoredExceptionHandler(PVOID
);
3562 NTSYSAPI
void WINAPI
RtlResetRtlTranslations(const NLSTABLEINFO
*);
3563 NTSYSAPI
void WINAPI
RtlRestoreLastWin32Error(DWORD
);
3564 NTSYSAPI
void WINAPI
RtlSecondsSince1970ToTime(DWORD
,LARGE_INTEGER
*);
3565 NTSYSAPI
void WINAPI
RtlSecondsSince1980ToTime(DWORD
,LARGE_INTEGER
*);
3566 NTSYSAPI NTSTATUS WINAPI
RtlSelfRelativeToAbsoluteSD(PSECURITY_DESCRIPTOR
,PSECURITY_DESCRIPTOR
,PDWORD
,PACL
,PDWORD
,PACL
,PDWORD
,PSID
,PDWORD
,PSID
,PDWORD
);
3567 NTSYSAPI
void WINAPI
RtlSetAllBits(PRTL_BITMAP
);
3568 NTSYSAPI
void WINAPI
RtlSetBits(PRTL_BITMAP
,ULONG
,ULONG
);
3569 NTSYSAPI ULONG WINAPI
RtlSetCriticalSectionSpinCount(RTL_CRITICAL_SECTION
*,ULONG
);
3570 NTSYSAPI NTSTATUS WINAPI
RtlSetControlSecurityDescriptor(PSECURITY_DESCRIPTOR
,SECURITY_DESCRIPTOR_CONTROL
,SECURITY_DESCRIPTOR_CONTROL
);
3571 NTSYSAPI NTSTATUS WINAPI
RtlSetCurrentDirectory_U(const UNICODE_STRING
*);
3572 NTSYSAPI
void WINAPI
RtlSetCurrentEnvironment(PWSTR
, PWSTR
*);
3573 NTSYSAPI NTSTATUS WINAPI
RtlSetDaclSecurityDescriptor(PSECURITY_DESCRIPTOR
,BOOLEAN
,PACL
,BOOLEAN
);
3574 NTSYSAPI NTSTATUS WINAPI
RtlSetEnvironmentVariable(PWSTR
*,PUNICODE_STRING
,PUNICODE_STRING
);
3575 NTSYSAPI NTSTATUS WINAPI
RtlSetHeapInformation(HANDLE
,HEAP_INFORMATION_CLASS
,PVOID
,SIZE_T
);
3576 NTSYSAPI NTSTATUS WINAPI
RtlSetOwnerSecurityDescriptor(PSECURITY_DESCRIPTOR
,PSID
,BOOLEAN
);
3577 NTSYSAPI NTSTATUS WINAPI
RtlSetGroupSecurityDescriptor(PSECURITY_DESCRIPTOR
,PSID
,BOOLEAN
);
3578 NTSYSAPI NTSTATUS WINAPI
RtlSetIoCompletionCallback(HANDLE
,PRTL_OVERLAPPED_COMPLETION_ROUTINE
,ULONG
);
3579 NTSYSAPI
void WINAPI
RtlSetLastWin32Error(DWORD
);
3580 NTSYSAPI
void WINAPI
RtlSetLastWin32ErrorAndNtStatusFromNtStatus(NTSTATUS
);
3581 NTSYSAPI NTSTATUS WINAPI
RtlSetProcessPreferredUILanguages(DWORD
,PCZZWSTR
,ULONG
*);
3582 NTSYSAPI NTSTATUS WINAPI
RtlSetSaclSecurityDescriptor(PSECURITY_DESCRIPTOR
,BOOLEAN
,PACL
,BOOLEAN
);
3583 NTSYSAPI NTSTATUS WINAPI
RtlSetSearchPathMode(ULONG
);
3584 NTSYSAPI NTSTATUS WINAPI
RtlSetThreadErrorMode(DWORD
,LPDWORD
);
3585 NTSYSAPI NTSTATUS WINAPI
RtlSetThreadPreferredUILanguages(DWORD
,PCZZWSTR
,ULONG
*);
3586 NTSYSAPI NTSTATUS WINAPI
RtlSetTimeZoneInformation(const RTL_TIME_ZONE_INFORMATION
*);
3587 NTSYSAPI
void WINAPI
RtlSetUnhandledExceptionFilter(PRTL_EXCEPTION_FILTER
);
3588 NTSYSAPI SIZE_T WINAPI
RtlSizeHeap(HANDLE
,ULONG
,const void*);
3589 NTSYSAPI NTSTATUS WINAPI
RtlSleepConditionVariableCS(RTL_CONDITION_VARIABLE
*,RTL_CRITICAL_SECTION
*,const LARGE_INTEGER
*);
3590 NTSYSAPI NTSTATUS WINAPI
RtlSleepConditionVariableSRW(RTL_CONDITION_VARIABLE
*,RTL_SRWLOCK
*,const LARGE_INTEGER
*,ULONG
);
3591 NTSYSAPI NTSTATUS WINAPI
RtlStringFromGUID(REFGUID
,PUNICODE_STRING
);
3592 NTSYSAPI LPDWORD WINAPI
RtlSubAuthoritySid(PSID
,DWORD
);
3593 NTSYSAPI LPBYTE WINAPI
RtlSubAuthorityCountSid(PSID
);
3594 NTSYSAPI NTSTATUS WINAPI
RtlSystemTimeToLocalTime(const LARGE_INTEGER
*,PLARGE_INTEGER
);
3595 NTSYSAPI
void WINAPI
RtlTimeToTimeFields(const LARGE_INTEGER
*,PTIME_FIELDS
);
3596 NTSYSAPI BOOLEAN WINAPI
RtlTimeFieldsToTime(PTIME_FIELDS
,PLARGE_INTEGER
);
3597 NTSYSAPI
void WINAPI
RtlTimeToElapsedTimeFields(const LARGE_INTEGER
*,PTIME_FIELDS
);
3598 NTSYSAPI BOOLEAN WINAPI
RtlTimeToSecondsSince1970(const LARGE_INTEGER
*,LPDWORD
);
3599 NTSYSAPI BOOLEAN WINAPI
RtlTimeToSecondsSince1980(const LARGE_INTEGER
*,LPDWORD
);
3600 NTSYSAPI BOOLEAN WINAPI
RtlTryAcquireSRWLockExclusive(RTL_SRWLOCK
*);
3601 NTSYSAPI BOOLEAN WINAPI
RtlTryAcquireSRWLockShared(RTL_SRWLOCK
*);
3602 NTSYSAPI BOOL WINAPI
RtlTryEnterCriticalSection(RTL_CRITICAL_SECTION
*);
3603 NTSYSAPI NTSTATUS WINAPI
RtlUTF8ToUnicodeN(WCHAR
*,DWORD
,DWORD
*,const char*,DWORD
);
3604 NTSYSAPI ULONGLONG __cdecl
RtlUlonglongByteSwap(ULONGLONG
);
3605 NTSYSAPI DWORD WINAPI
RtlUnicodeStringToAnsiSize(const UNICODE_STRING
*);
3606 NTSYSAPI NTSTATUS WINAPI
RtlUnicodeStringToAnsiString(PANSI_STRING
,PCUNICODE_STRING
,BOOLEAN
);
3607 NTSYSAPI NTSTATUS WINAPI
RtlUnicodeStringToInteger(const UNICODE_STRING
*,ULONG
,ULONG
*);
3608 NTSYSAPI DWORD WINAPI
RtlUnicodeStringToOemSize(const UNICODE_STRING
*);
3609 NTSYSAPI NTSTATUS WINAPI
RtlUnicodeStringToOemString(POEM_STRING
,PCUNICODE_STRING
,BOOLEAN
);
3610 NTSYSAPI NTSTATUS WINAPI
RtlUnicodeToCustomCPN(CPTABLEINFO
*,char*,DWORD
,DWORD
*,const WCHAR
*,DWORD
);
3611 NTSYSAPI NTSTATUS WINAPI
RtlUnicodeToMultiByteN(LPSTR
,DWORD
,LPDWORD
,LPCWSTR
,DWORD
);
3612 NTSYSAPI NTSTATUS WINAPI
RtlUnicodeToMultiByteSize(PULONG
,PCWSTR
,ULONG
);
3613 NTSYSAPI NTSTATUS WINAPI
RtlUnicodeToOemN(LPSTR
,DWORD
,LPDWORD
,LPCWSTR
,DWORD
);
3614 NTSYSAPI NTSTATUS WINAPI
RtlUnicodeToUTF8N(LPSTR
,DWORD
,LPDWORD
,LPCWSTR
,DWORD
);
3615 NTSYSAPI ULONG WINAPI
RtlUniform(PULONG
);
3616 NTSYSAPI BOOLEAN WINAPI
RtlUnlockHeap(HANDLE
);
3617 NTSYSAPI
void WINAPI
RtlUnwind(PVOID
,PVOID
,PEXCEPTION_RECORD
,PVOID
);
3619 NTSYSAPI
void WINAPI
RtlUnwindEx(PVOID
,PVOID
,PEXCEPTION_RECORD
,PVOID
,PCONTEXT
,PUNWIND_HISTORY_TABLE
);
3620 #elif defined(__ia64__)
3621 NTSYSAPI
void WINAPI
RtlUnwind2(FRAME_POINTERS
,PVOID
,PEXCEPTION_RECORD
,PVOID
,PCONTEXT
);
3622 NTSYSAPI
void WINAPI
RtlUnwindEx(FRAME_POINTERS
,PVOID
,PEXCEPTION_RECORD
,PVOID
,PCONTEXT
,PUNWIND_HISTORY_TABLE
);
3624 NTSYSAPI WCHAR WINAPI
RtlUpcaseUnicodeChar(WCHAR
);
3625 NTSYSAPI NTSTATUS WINAPI
RtlUpcaseUnicodeString(UNICODE_STRING
*,const UNICODE_STRING
*,BOOLEAN
);
3626 NTSYSAPI NTSTATUS WINAPI
RtlUpcaseUnicodeStringToAnsiString(STRING
*,const UNICODE_STRING
*,BOOLEAN
);
3627 NTSYSAPI NTSTATUS WINAPI
RtlUpcaseUnicodeStringToCountedOemString(STRING
*,const UNICODE_STRING
*,BOOLEAN
);
3628 NTSYSAPI NTSTATUS WINAPI
RtlUpcaseUnicodeStringToOemString(STRING
*,const UNICODE_STRING
*,BOOLEAN
);
3629 NTSYSAPI NTSTATUS WINAPI
RtlUpcaseUnicodeToCustomCPN(CPTABLEINFO
*,char*,DWORD
,DWORD
*,const WCHAR
*,DWORD
);
3630 NTSYSAPI NTSTATUS WINAPI
RtlUpcaseUnicodeToMultiByteN(LPSTR
,DWORD
,LPDWORD
,LPCWSTR
,DWORD
);
3631 NTSYSAPI NTSTATUS WINAPI
RtlUpcaseUnicodeToOemN(LPSTR
,DWORD
,LPDWORD
,LPCWSTR
,DWORD
);
3632 NTSYSAPI NTSTATUS WINAPI
RtlUpdateTimer(HANDLE
, HANDLE
, DWORD
, DWORD
);
3633 NTSYSAPI CHAR WINAPI
RtlUpperChar(CHAR
);
3634 NTSYSAPI
void WINAPI
RtlUpperString(STRING
*,const STRING
*);
3635 NTSYSAPI
void WINAPI
RtlUserThreadStart(PRTL_THREAD_START_ROUTINE
,void*);
3636 NTSYSAPI NTSTATUS WINAPI
RtlValidSecurityDescriptor(PSECURITY_DESCRIPTOR
);
3637 NTSYSAPI BOOLEAN WINAPI
RtlValidRelativeSecurityDescriptor(PSECURITY_DESCRIPTOR
,ULONG
,SECURITY_INFORMATION
);
3638 NTSYSAPI BOOLEAN WINAPI
RtlValidAcl(PACL
);
3639 NTSYSAPI BOOLEAN WINAPI
RtlValidSid(PSID
);
3640 NTSYSAPI BOOLEAN WINAPI
RtlValidateHeap(HANDLE
,ULONG
,LPCVOID
);
3641 NTSYSAPI NTSTATUS WINAPI
RtlVerifyVersionInfo(const RTL_OSVERSIONINFOEXW
*,DWORD
,DWORDLONG
);
3642 NTSYSAPI NTSTATUS WINAPI
RtlWaitOnAddress(const void *,const void *,SIZE_T
,const LARGE_INTEGER
*);
3643 NTSYSAPI
void WINAPI
RtlWakeAddressAll(const void *);
3644 NTSYSAPI
void WINAPI
RtlWakeAddressSingle(const void *);
3645 NTSYSAPI
void WINAPI
RtlWakeAllConditionVariable(RTL_CONDITION_VARIABLE
*);
3646 NTSYSAPI
void WINAPI
RtlWakeConditionVariable(RTL_CONDITION_VARIABLE
*);
3647 NTSYSAPI NTSTATUS WINAPI
RtlWalkHeap(HANDLE
,PVOID
);
3648 NTSYSAPI NTSTATUS WINAPI
RtlWow64EnableFsRedirection(BOOLEAN
);
3649 NTSYSAPI NTSTATUS WINAPI
RtlWow64EnableFsRedirectionEx(ULONG
,ULONG
*);
3651 NTSYSAPI NTSTATUS WINAPI
RtlWow64GetThreadContext(HANDLE
, WOW64_CONTEXT
*);
3652 NTSYSAPI NTSTATUS WINAPI
RtlWow64SetThreadContext(HANDLE
, const WOW64_CONTEXT
*);
3654 NTSYSAPI NTSTATUS WINAPI
RtlWriteRegistryValue(ULONG
,PCWSTR
,PCWSTR
,ULONG
,PVOID
,ULONG
);
3655 NTSYSAPI NTSTATUS WINAPI
RtlZombifyActivationContext(HANDLE
);
3656 NTSYSAPI NTSTATUS WINAPI
RtlpNtCreateKey(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,ULONG
,const UNICODE_STRING
*,ULONG
,PULONG
);
3657 NTSYSAPI NTSTATUS WINAPI
RtlpNtEnumerateSubKey(HANDLE
,UNICODE_STRING
*, ULONG
);
3658 NTSYSAPI NTSTATUS WINAPI
RtlpWaitForCriticalSection(RTL_CRITICAL_SECTION
*);
3659 NTSYSAPI NTSTATUS WINAPI
RtlpUnWaitCriticalSection(RTL_CRITICAL_SECTION
*);
3660 NTSYSAPI NTSTATUS WINAPI
vDbgPrintEx(ULONG
,ULONG
,LPCSTR
,__ms_va_list
);
3661 NTSYSAPI NTSTATUS WINAPI
vDbgPrintExWithPrefix(LPCSTR
,ULONG
,ULONG
,LPCSTR
,__ms_va_list
);
3663 #if defined(__x86_64__) || defined(__i386__)
3664 NTSYSAPI NTSTATUS WINAPI
RtlCopyExtendedContext(CONTEXT_EX
*,ULONG
,CONTEXT_EX
*);
3665 NTSYSAPI NTSTATUS WINAPI
RtlInitializeExtendedContext(void*,ULONG
,CONTEXT_EX
**);
3666 NTSYSAPI NTSTATUS WINAPI
RtlInitializeExtendedContext2(void*,ULONG
,CONTEXT_EX
**,ULONG64
);
3667 NTSYSAPI ULONG64 WINAPI
RtlGetEnabledExtendedFeatures(ULONG64
);
3668 NTSYSAPI NTSTATUS WINAPI
RtlGetExtendedContextLength(ULONG
,ULONG
*);
3669 NTSYSAPI NTSTATUS WINAPI
RtlGetExtendedContextLength2(ULONG
,ULONG
*,ULONG64
);
3670 NTSYSAPI
void * WINAPI
RtlLocateLegacyContext(CONTEXT_EX
*,ULONG
*);
3671 NTSYSAPI
void * WINAPI
RtlLocateExtendedFeature(CONTEXT_EX
*,ULONG
,ULONG
*);
3672 NTSYSAPI
void * WINAPI
RtlLocateExtendedFeature2(CONTEXT_EX
*,ULONG
,XSTATE_CONFIGURATION
*,ULONG
*);
3673 NTSYSAPI ULONG64 WINAPI
RtlGetExtendedFeaturesMask(CONTEXT_EX
*);
3674 NTSYSAPI
void WINAPI
RtlSetExtendedFeaturesMask(CONTEXT_EX
*,ULONG64
);
3677 #ifndef __WINE_USE_MSVCRT
3678 NTSYSAPI
int __cdecl
_strnicmp(LPCSTR
,LPCSTR
,size_t);
3681 /* 32-bit only functions */
3684 NTSYSAPI LONGLONG WINAPI
RtlConvertLongToLargeInteger(LONG
);
3685 NTSYSAPI ULONGLONG WINAPI
RtlConvertUlongToLargeInteger(ULONG
);
3686 NTSYSAPI LONGLONG WINAPI
RtlEnlargedIntegerMultiply(INT
,INT
);
3687 NTSYSAPI ULONGLONG WINAPI
RtlEnlargedUnsignedMultiply(UINT
,UINT
);
3688 NTSYSAPI UINT WINAPI
RtlEnlargedUnsignedDivide(ULONGLONG
,UINT
,UINT
*);
3689 NTSYSAPI LONGLONG WINAPI
RtlExtendedMagicDivide(LONGLONG
,LONGLONG
,INT
);
3690 NTSYSAPI LONGLONG WINAPI
RtlExtendedIntegerMultiply(LONGLONG
,INT
);
3691 NTSYSAPI LONGLONG WINAPI
RtlExtendedLargeIntegerDivide(LONGLONG
,INT
,INT
*);
3692 NTSYSAPI LONGLONG WINAPI
RtlInterlockedCompareExchange64(LONGLONG
*,LONGLONG
,LONGLONG
);
3693 NTSYSAPI LONGLONG WINAPI
RtlLargeIntegerAdd(LONGLONG
,LONGLONG
);
3694 NTSYSAPI LONGLONG WINAPI
RtlLargeIntegerArithmeticShift(LONGLONG
,INT
);
3695 NTSYSAPI ULONGLONG WINAPI
RtlLargeIntegerDivide( ULONGLONG
,ULONGLONG
,ULONGLONG
*);
3696 NTSYSAPI LONGLONG WINAPI
RtlLargeIntegerNegate(LONGLONG
);
3697 NTSYSAPI LONGLONG WINAPI
RtlLargeIntegerShiftLeft(LONGLONG
,INT
);
3698 NTSYSAPI LONGLONG WINAPI
RtlLargeIntegerShiftRight(LONGLONG
,INT
);
3699 NTSYSAPI LONGLONG WINAPI
RtlLargeIntegerSubtract(LONGLONG
,LONGLONG
);
3700 NTSYSAPI NTSTATUS WINAPI
RtlLargeIntegerToChar(const ULONGLONG
*,ULONG
,ULONG
,PCHAR
);
3703 /* Threadpool functions */
3705 NTSYSAPI NTSTATUS WINAPI
TpAllocCleanupGroup(TP_CLEANUP_GROUP
**);
3706 NTSYSAPI NTSTATUS WINAPI
TpAllocIoCompletion(TP_IO
**,HANDLE
,PTP_IO_CALLBACK
,void *,TP_CALLBACK_ENVIRON
*);
3707 NTSYSAPI NTSTATUS WINAPI
TpAllocPool(TP_POOL
**,PVOID
);
3708 NTSYSAPI NTSTATUS WINAPI
TpAllocTimer(TP_TIMER
**,PTP_TIMER_CALLBACK
,PVOID
,TP_CALLBACK_ENVIRON
*);
3709 NTSYSAPI NTSTATUS WINAPI
TpAllocWait(TP_WAIT
**,PTP_WAIT_CALLBACK
,PVOID
,TP_CALLBACK_ENVIRON
*);
3710 NTSYSAPI NTSTATUS WINAPI
TpAllocWork(TP_WORK
**,PTP_WORK_CALLBACK
,PVOID
,TP_CALLBACK_ENVIRON
*);
3711 NTSYSAPI
void WINAPI
TpCallbackLeaveCriticalSectionOnCompletion(TP_CALLBACK_INSTANCE
*,RTL_CRITICAL_SECTION
*);
3712 NTSYSAPI NTSTATUS WINAPI
TpCallbackMayRunLong(TP_CALLBACK_INSTANCE
*);
3713 NTSYSAPI
void WINAPI
TpCallbackReleaseMutexOnCompletion(TP_CALLBACK_INSTANCE
*,HANDLE
);
3714 NTSYSAPI
void WINAPI
TpCallbackReleaseSemaphoreOnCompletion(TP_CALLBACK_INSTANCE
*,HANDLE
,DWORD
);
3715 NTSYSAPI
void WINAPI
TpCallbackSetEventOnCompletion(TP_CALLBACK_INSTANCE
*,HANDLE
);
3716 NTSYSAPI
void WINAPI
TpCallbackUnloadDllOnCompletion(TP_CALLBACK_INSTANCE
*,HMODULE
);
3717 NTSYSAPI
void WINAPI
TpCancelAsyncIoOperation(TP_IO
*);
3718 NTSYSAPI
void WINAPI
TpDisassociateCallback(TP_CALLBACK_INSTANCE
*);
3719 NTSYSAPI BOOL WINAPI
TpIsTimerSet(TP_TIMER
*);
3720 NTSYSAPI
void WINAPI
TpPostWork(TP_WORK
*);
3721 NTSYSAPI NTSTATUS WINAPI
TpQueryPoolStackInformation(TP_POOL
*, TP_POOL_STACK_INFORMATION
*stack_info
);
3722 NTSYSAPI
void WINAPI
TpReleaseCleanupGroup(TP_CLEANUP_GROUP
*);
3723 NTSYSAPI
void WINAPI
TpReleaseCleanupGroupMembers(TP_CLEANUP_GROUP
*,BOOL
,PVOID
);
3724 NTSYSAPI
void WINAPI
TpReleaseIoCompletion(TP_IO
*);
3725 NTSYSAPI
void WINAPI
TpReleasePool(TP_POOL
*);
3726 NTSYSAPI
void WINAPI
TpReleaseTimer(TP_TIMER
*);
3727 NTSYSAPI
void WINAPI
TpReleaseWait(TP_WAIT
*);
3728 NTSYSAPI
void WINAPI
TpReleaseWork(TP_WORK
*);
3729 NTSYSAPI
void WINAPI
TpSetPoolMaxThreads(TP_POOL
*,DWORD
);
3730 NTSYSAPI BOOL WINAPI
TpSetPoolMinThreads(TP_POOL
*,DWORD
);
3731 NTSYSAPI NTSTATUS WINAPI
TpSetPoolStackInformation(TP_POOL
*, TP_POOL_STACK_INFORMATION
*stack_info
);
3732 NTSYSAPI
void WINAPI
TpSetTimer(TP_TIMER
*, LARGE_INTEGER
*,LONG
,LONG
);
3733 NTSYSAPI
void WINAPI
TpSetWait(TP_WAIT
*,HANDLE
,LARGE_INTEGER
*);
3734 NTSYSAPI NTSTATUS WINAPI
TpSimpleTryPost(PTP_SIMPLE_CALLBACK
,PVOID
,TP_CALLBACK_ENVIRON
*);
3735 NTSYSAPI
void WINAPI
TpStartAsyncIoOperation(TP_IO
*);
3736 NTSYSAPI
void WINAPI
TpWaitForIoCompletion(TP_IO
*,BOOL
);
3737 NTSYSAPI
void WINAPI
TpWaitForTimer(TP_TIMER
*,BOOL
);
3738 NTSYSAPI
void WINAPI
TpWaitForWait(TP_WAIT
*,BOOL
);
3739 NTSYSAPI
void WINAPI
TpWaitForWork(TP_WORK
*,BOOL
);
3741 /* Wine internal functions */
3743 NTSYSAPI NTSTATUS CDECL
wine_nt_to_unix_file_name( const UNICODE_STRING
*nameW
, char *nameA
, SIZE_T
*size
,
3745 NTSYSAPI NTSTATUS CDECL
wine_unix_to_nt_file_name( const char *name
, WCHAR
*buffer
, SIZE_T
*size
);
3748 /***********************************************************************
3752 #define InitializeObjectAttributes(p,n,a,r,s) \
3754 (p)->Length = sizeof(OBJECT_ATTRIBUTES); \
3755 (p)->RootDirectory = r; \
3756 (p)->Attributes = a; \
3757 (p)->ObjectName = n; \
3758 (p)->SecurityDescriptor = s; \
3759 (p)->SecurityQualityOfService = NULL; \
3762 #define NtCurrentProcess() ((HANDLE)-1)
3764 #define RtlFillMemory(Destination,Length,Fill) memset((Destination),(Fill),(Length))
3765 #define RtlMoveMemory(Destination,Source,Length) memmove((Destination),(Source),(Length))
3766 #define RtlStoreUlong(p,v) do { ULONG _v = (v); memcpy((p), &_v, sizeof(_v)); } while (0)
3767 #define RtlStoreUlonglong(p,v) do { ULONGLONG _v = (v); memcpy((p), &_v, sizeof(_v)); } while (0)
3768 #define RtlRetrieveUlong(p,s) memcpy((p), (s), sizeof(ULONG))
3769 #define RtlRetrieveUlonglong(p,s) memcpy((p), (s), sizeof(ULONGLONG))
3770 #define RtlZeroMemory(Destination,Length) memset((Destination),0,(Length))
3772 static inline BOOLEAN
RtlCheckBit(PCRTL_BITMAP lpBits
, ULONG ulBit
)
3774 if (lpBits
&& ulBit
< lpBits
->SizeOfBitMap
&&
3775 lpBits
->Buffer
[ulBit
>> 5] & (1 << (ulBit
& 31)))
3780 /* These are implemented as __fastcall, so we can't let Winelib apps link with them */
3781 static inline USHORT
RtlUshortByteSwap(USHORT s
)
3783 return (s
>> 8) | (s
<< 8);
3785 static inline ULONG
RtlUlongByteSwap(ULONG i
)
3787 #if defined(__i386__) && defined(__GNUC__)
3789 __asm__("bswap %0" : "=r" (ret
) : "0" (i
) );
3792 return ((ULONG
)RtlUshortByteSwap((USHORT
)i
) << 16) | RtlUshortByteSwap((USHORT
)(i
>> 16));
3796 /* list manipulation macros */
3797 #define InitializeListHead(le) (void)((le)->Flink = (le)->Blink = (le))
3798 #define InsertHeadList(le,e) do { PLIST_ENTRY f = (le)->Flink; (e)->Flink = f; (e)->Blink = (le); f->Blink = (e); (le)->Flink = (e); } while (0)
3799 #define InsertTailList(le,e) do { PLIST_ENTRY b = (le)->Blink; (e)->Flink = (le); (e)->Blink = b; b->Flink = (e); (le)->Blink = (e); } while (0)
3800 #define IsListEmpty(le) ((le)->Flink == (le))
3801 #define RemoveEntryList(e) do { PLIST_ENTRY f = (e)->Flink, b = (e)->Blink; f->Blink = b; b->Flink = f; (e)->Flink = (e)->Blink = NULL; } while (0)
3802 static inline PLIST_ENTRY
RemoveHeadList(PLIST_ENTRY le
)
3804 PLIST_ENTRY f
, b
, e
;
3807 f
= le
->Flink
->Flink
;
3808 b
= le
->Flink
->Blink
;
3812 if (e
!= le
) e
->Flink
= e
->Blink
= NULL
;
3815 static inline PLIST_ENTRY
RemoveTailList(PLIST_ENTRY le
)
3817 PLIST_ENTRY f
, b
, e
;
3820 f
= le
->Blink
->Flink
;
3821 b
= le
->Blink
->Blink
;
3825 if (e
!= le
) e
->Flink
= e
->Blink
= NULL
;
3832 /* Wine internal functions */
3833 extern NTSTATUS CDECL
__wine_init_unix_lib( HMODULE module
, DWORD reason
, const void *ptr_in
, void *ptr_out
);
3835 /* The thread information for 16-bit threads */
3836 /* NtCurrentTeb()->SubSystemTib points to this */
3839 void *unknown
; /* 00 unknown */
3840 UNICODE_STRING
*exe_name
; /* 04 exe module name */
3842 /* the following fields do not exist under Windows */
3843 UNICODE_STRING exe_str
; /* exe name string pointed to by exe_name */
3844 CURDIR curdir
; /* current directory */
3845 WCHAR curdir_buffer
[MAX_PATH
];
3846 } WIN16_SUBSYSTEM_TIB
;
3848 #endif /* __WINESRC__ */
3852 #endif /* defined(__cplusplus) */
3854 #endif /* __WINE_WINTERNL_H */