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 } PEB_LDR_DATA
, *PPEB_LDR_DATA
;
218 typedef struct _GDI_TEB_BATCH
225 typedef struct _RTL_ACTIVATION_CONTEXT_STACK_FRAME
227 struct _RTL_ACTIVATION_CONTEXT_STACK_FRAME
*Previous
;
228 struct _ACTIVATION_CONTEXT
*ActivationContext
;
230 } RTL_ACTIVATION_CONTEXT_STACK_FRAME
, *PRTL_ACTIVATION_CONTEXT_STACK_FRAME
;
232 typedef struct _ACTIVATION_CONTEXT_STACK
235 ULONG NextCookieSequenceNumber
;
236 RTL_ACTIVATION_CONTEXT_STACK_FRAME
*ActiveFrame
;
237 LIST_ENTRY FrameListCache
;
238 } ACTIVATION_CONTEXT_STACK
, *PACTIVATION_CONTEXT_STACK
;
240 typedef struct _TEB_ACTIVE_FRAME_CONTEXT
243 const char *FrameName
;
244 } TEB_ACTIVE_FRAME_CONTEXT
, *PTEB_ACTIVE_FRAME_CONTEXT
;
246 typedef struct _TEB_ACTIVE_FRAME_CONTEXT_EX
248 TEB_ACTIVE_FRAME_CONTEXT BasicContext
;
249 const char *SourceLocation
;
250 } TEB_ACTIVE_FRAME_CONTEXT_EX
, *PTEB_ACTIVE_FRAME_CONTEXT_EX
;
252 typedef struct _TEB_ACTIVE_FRAME
255 struct _TEB_ACTIVE_FRAME
*Previous
;
256 TEB_ACTIVE_FRAME_CONTEXT
*Context
;
257 } TEB_ACTIVE_FRAME
, *PTEB_ACTIVE_FRAME
;
259 typedef struct _TEB_ACTIVE_FRAME_EX
261 TEB_ACTIVE_FRAME BasicFrame
;
262 void *ExtensionIdentifier
;
263 } TEB_ACTIVE_FRAME_EX
, *PTEB_ACTIVE_FRAME_EX
;
265 #define TEB_ACTIVE_FRAME_CONTEXT_FLAG_EXTENDED 0x00000001
266 #define TEB_ACTIVE_FRAME_FLAG_EXTENDED 0x00000001
268 /***********************************************************************
273 BOOLEAN InheritedAddressSpace
; /* 000/000 */
274 BOOLEAN ReadImageFileExecOptions
; /* 001/001 */
275 BOOLEAN BeingDebugged
; /* 002/002 */
276 BOOLEAN SpareBool
; /* 003/003 */
277 HANDLE Mutant
; /* 004/008 */
278 HMODULE ImageBaseAddress
; /* 008/010 */
279 PPEB_LDR_DATA LdrData
; /* 00c/018 */
280 RTL_USER_PROCESS_PARAMETERS
*ProcessParameters
; /* 010/020 */
281 PVOID SubSystemData
; /* 014/028 */
282 HANDLE ProcessHeap
; /* 018/030 */
283 PRTL_CRITICAL_SECTION FastPebLock
; /* 01c/038 */
284 PVOID
/*PPEBLOCKROUTINE*/ FastPebLockRoutine
; /* 020/040 */
285 PVOID
/*PPEBLOCKROUTINE*/ FastPebUnlockRoutine
; /* 024/048 */
286 ULONG EnvironmentUpdateCount
; /* 028/050 */
287 PVOID KernelCallbackTable
; /* 02c/058 */
288 ULONG Reserved
[2]; /* 030/060 */
289 PVOID
/*PPEB_FREE_BLOCK*/ FreeList
; /* 038/068 */
290 ULONG TlsExpansionCounter
; /* 03c/070 */
291 PRTL_BITMAP TlsBitmap
; /* 040/078 */
292 ULONG TlsBitmapBits
[2]; /* 044/080 */
293 PVOID ReadOnlySharedMemoryBase
; /* 04c/088 */
294 PVOID ReadOnlySharedMemoryHeap
; /* 050/090 */
295 PVOID
*ReadOnlyStaticServerData
; /* 054/098 */
296 PVOID AnsiCodePageData
; /* 058/0a0 */
297 PVOID OemCodePageData
; /* 05c/0a8 */
298 PVOID UnicodeCaseTableData
; /* 060/0b0 */
299 ULONG NumberOfProcessors
; /* 064/0b8 */
300 ULONG NtGlobalFlag
; /* 068/0bc */
301 LARGE_INTEGER CriticalSectionTimeout
; /* 070/0c0 */
302 SIZE_T HeapSegmentReserve
; /* 078/0c8 */
303 SIZE_T HeapSegmentCommit
; /* 07c/0d0 */
304 SIZE_T HeapDeCommitTotalFreeThreshold
; /* 080/0d8 */
305 SIZE_T HeapDeCommitFreeBlockThreshold
; /* 084/0e0 */
306 ULONG NumberOfHeaps
; /* 088/0e8 */
307 ULONG MaximumNumberOfHeaps
; /* 08c/0ec */
308 PVOID
*ProcessHeaps
; /* 090/0f0 */
309 PVOID GdiSharedHandleTable
; /* 094/0f8 */
310 PVOID ProcessStarterHelper
; /* 098/100 */
311 PVOID GdiDCAttributeList
; /* 09c/108 */
312 PVOID LoaderLock
; /* 0a0/110 */
313 ULONG OSMajorVersion
; /* 0a4/118 */
314 ULONG OSMinorVersion
; /* 0a8/11c */
315 ULONG OSBuildNumber
; /* 0ac/120 */
316 ULONG OSPlatformId
; /* 0b0/124 */
317 ULONG ImageSubSystem
; /* 0b4/128 */
318 ULONG ImageSubSystemMajorVersion
; /* 0b8/12c */
319 ULONG ImageSubSystemMinorVersion
; /* 0bc/130 */
320 ULONG ImageProcessAffinityMask
; /* 0c0/134 */
321 HANDLE GdiHandleBuffer
[28]; /* 0c4/138 */
322 ULONG unknown
[6]; /* 134/218 */
323 PVOID PostProcessInitRoutine
; /* 14c/230 */
324 PRTL_BITMAP TlsExpansionBitmap
; /* 150/238 */
325 ULONG TlsExpansionBitmapBits
[32]; /* 154/240 */
326 ULONG SessionId
; /* 1d4/2c0 */
327 ULARGE_INTEGER AppCompatFlags
; /* 1d8/2c8 */
328 ULARGE_INTEGER AppCompatFlagsUser
; /* 1e0/2d0 */
329 PVOID ShimData
; /* 1e8/2d8 */
330 PVOID AppCompatInfo
; /* 1ec/2e0 */
331 UNICODE_STRING CSDVersion
; /* 1f0/2e8 */
332 PVOID ActivationContextData
; /* 1f8/2f8 */
333 PVOID ProcessAssemblyStorageMap
; /* 1fc/300 */
334 PVOID SystemDefaultActivationData
; /* 200/308 */
335 PVOID SystemAssemblyStorageMap
; /* 204/310 */
336 SIZE_T MinimumStackCommit
; /* 208/318 */
337 PVOID
*FlsCallback
; /* 20c/320 */
338 LIST_ENTRY FlsListHead
; /* 210/328 */
339 PRTL_BITMAP FlsBitmap
; /* 218/338 */
340 ULONG FlsBitmapBits
[4]; /* 21c/340 */
344 /***********************************************************************
349 NT_TIB Tib
; /* 000/0000 */
350 PVOID EnvironmentPointer
; /* 01c/0038 */
351 CLIENT_ID ClientId
; /* 020/0040 */
352 PVOID ActiveRpcHandle
; /* 028/0050 */
353 PVOID ThreadLocalStoragePointer
; /* 02c/0058 */
354 PPEB Peb
; /* 030/0060 */
355 ULONG LastErrorValue
; /* 034/0068 */
356 ULONG CountOfOwnedCriticalSections
; /* 038/006c */
357 PVOID CsrClientThread
; /* 03c/0070 */
358 PVOID Win32ThreadInfo
; /* 040/0078 */
359 ULONG Win32ClientInfo
[31]; /* 044/0080 used for user32 private data in Wine */
360 PVOID WOW32Reserved
; /* 0c0/0100 */
361 ULONG CurrentLocale
; /* 0c4/0108 */
362 ULONG FpSoftwareStatusRegister
; /* 0c8/010c */
363 PVOID SystemReserved1
[54]; /* 0cc/0110 used for kernel32 private data in Wine */
364 LONG ExceptionCode
; /* 1a4/02c0 */
365 ACTIVATION_CONTEXT_STACK ActivationContextStack
; /* 1a8/02c8 */
366 BYTE SpareBytes1
[24]; /* 1bc/02e8 */
367 PVOID SystemReserved2
[10]; /* 1d4/0300 used for ntdll platform-specific private data in Wine */
368 GDI_TEB_BATCH GdiTebBatch
; /* 1fc/0350 used for ntdll private data in Wine */
369 HANDLE gdiRgn
; /* 6dc/0838 */
370 HANDLE gdiPen
; /* 6e0/0840 */
371 HANDLE gdiBrush
; /* 6e4/0848 */
372 CLIENT_ID RealClientId
; /* 6e8/0850 */
373 HANDLE GdiCachedProcessHandle
; /* 6f0/0860 */
374 ULONG GdiClientPID
; /* 6f4/0868 */
375 ULONG GdiClientTID
; /* 6f8/086c */
376 PVOID GdiThreadLocaleInfo
; /* 6fc/0870 */
377 ULONG UserReserved
[5]; /* 700/0878 */
378 PVOID glDispatchTable
[280]; /* 714/0890 */
379 PVOID glReserved1
[26]; /* b74/1150 */
380 PVOID glReserved2
; /* bdc/1220 */
381 PVOID glSectionInfo
; /* be0/1228 */
382 PVOID glSection
; /* be4/1230 */
383 PVOID glTable
; /* be8/1238 */
384 PVOID glCurrentRC
; /* bec/1240 */
385 PVOID glContext
; /* bf0/1248 */
386 ULONG LastStatusValue
; /* bf4/1250 */
387 UNICODE_STRING StaticUnicodeString
; /* bf8/1258 used by advapi32 */
388 WCHAR StaticUnicodeBuffer
[261]; /* c00/1268 used by advapi32 */
389 PVOID DeallocationStack
; /* e0c/1478 */
390 PVOID TlsSlots
[64]; /* e10/1480 */
391 LIST_ENTRY TlsLinks
; /* f10/1680 */
392 PVOID Vdm
; /* f18/1690 */
393 PVOID ReservedForNtRpc
; /* f1c/1698 */
394 PVOID DbgSsReserved
[2]; /* f20/16a0 */
395 ULONG HardErrorDisabled
; /* f28/16b0 */
396 PVOID Instrumentation
[16]; /* f2c/16b8 */
397 PVOID WinSockData
; /* f6c/1738 */
398 ULONG GdiBatchCount
; /* f70/1740 */
399 ULONG Spare2
; /* f74/1744 */
400 ULONG GuaranteedStackBytes
; /* f78/1748 */
401 PVOID ReservedForPerf
; /* f7c/1750 */
402 PVOID ReservedForOle
; /* f80/1758 */
403 ULONG WaitingOnLoaderLock
; /* f84/1760 */
404 PVOID Reserved5
[3]; /* f88/1768 */
405 PVOID
*TlsExpansionSlots
; /* f94/1780 */
407 PVOID DeallocationBStore
; /* /1788 */
408 PVOID BStoreLimit
; /* /1790 */
410 ULONG ImpersonationLocale
; /* f98/1798 */
411 ULONG IsImpersonating
; /* f9c/179c */
412 PVOID NlsCache
; /* fa0/17a0 */
413 PVOID ShimData
; /* fa4/17a8 */
414 ULONG HeapVirtualAffinity
; /* fa8/17b0 */
415 PVOID CurrentTransactionHandle
; /* fac/17b8 */
416 TEB_ACTIVE_FRAME
*ActiveFrame
; /* fb0/17c0 */
417 PVOID
*FlsSlots
; /* fb4/17c8 */
420 /***********************************************************************
424 typedef enum _FILE_INFORMATION_CLASS
{
425 FileDirectoryInformation
= 1,
426 FileFullDirectoryInformation
,
427 FileBothDirectoryInformation
,
428 FileBasicInformation
,
429 FileStandardInformation
,
430 FileInternalInformation
,
432 FileAccessInformation
,
434 FileRenameInformation
,
436 FileNamesInformation
,
437 FileDispositionInformation
,
438 FilePositionInformation
,
439 FileFullEaInformation
,
441 FileAlignmentInformation
,
443 FileAllocationInformation
,
444 FileEndOfFileInformation
,
445 FileAlternateNameInformation
,
446 FileStreamInformation
,
448 FilePipeLocalInformation
,
449 FilePipeRemoteInformation
,
450 FileMailslotQueryInformation
,
451 FileMailslotSetInformation
,
452 FileCompressionInformation
,
453 FileObjectIdInformation
,
454 FileCompletionInformation
,
455 FileMoveClusterInformation
,
456 FileQuotaInformation
,
457 FileReparsePointInformation
,
458 FileNetworkOpenInformation
,
459 FileAttributeTagInformation
,
460 FileTrackingInformation
,
461 FileIdBothDirectoryInformation
,
462 FileIdFullDirectoryInformation
,
463 FileValidDataLengthInformation
,
464 FileShortNameInformation
,
465 FileIoCompletionNotificationInformation
,
466 FileIoStatusBlockRangeInformation
,
467 FileIoPriorityHintInformation
,
468 FileSfioReserveInformation
,
469 FileSfioVolumeInformation
,
470 FileHardLinkInformation
,
471 FileProcessIdsUsingFileInformation
,
472 FileNormalizedNameInformation
,
473 FileNetworkPhysicalNameInformation
,
474 FileIdGlobalTxDirectoryInformation
,
475 FileIsRemoteDeviceInformation
,
476 FileAttributeCacheInformation
,
477 FileNumaNodeInformation
,
478 FileStandardLinkInformation
,
479 FileRemoteProtocolInformation
,
480 FileRenameInformationBypassAccessCheck
,
481 FileLinkInformationBypassAccessCheck
,
482 FileVolumeNameInformation
,
484 FileIdExtdDirectoryInformation
,
485 FileReplaceCompletionInformation
,
486 FileHardLinkFullIdInformation
,
487 FileIdExtdBothDirectoryInformation
,
488 FileMaximumInformation
489 } FILE_INFORMATION_CLASS
, *PFILE_INFORMATION_CLASS
;
491 typedef struct _FILE_DIRECTORY_INFORMATION
{
492 ULONG NextEntryOffset
;
494 LARGE_INTEGER CreationTime
;
495 LARGE_INTEGER LastAccessTime
;
496 LARGE_INTEGER LastWriteTime
;
497 LARGE_INTEGER ChangeTime
;
498 LARGE_INTEGER EndOfFile
;
499 LARGE_INTEGER AllocationSize
;
500 ULONG FileAttributes
;
501 ULONG FileNameLength
;
502 WCHAR FileName
[ANYSIZE_ARRAY
];
503 } FILE_DIRECTORY_INFORMATION
, *PFILE_DIRECTORY_INFORMATION
;
505 typedef struct _FILE_FULL_DIRECTORY_INFORMATION
{
506 ULONG NextEntryOffset
;
508 LARGE_INTEGER CreationTime
;
509 LARGE_INTEGER LastAccessTime
;
510 LARGE_INTEGER LastWriteTime
;
511 LARGE_INTEGER ChangeTime
;
512 LARGE_INTEGER EndOfFile
;
513 LARGE_INTEGER AllocationSize
;
514 ULONG FileAttributes
;
515 ULONG FileNameLength
;
517 WCHAR FileName
[ANYSIZE_ARRAY
];
518 } FILE_FULL_DIRECTORY_INFORMATION
, *PFILE_FULL_DIRECTORY_INFORMATION
,
519 FILE_FULL_DIR_INFORMATION
, *PFILE_FULL_DIR_INFORMATION
;
521 typedef struct _FILE_ID_FULL_DIRECTORY_INFORMATION
{
522 ULONG NextEntryOffset
;
524 LARGE_INTEGER CreationTime
;
525 LARGE_INTEGER LastAccessTime
;
526 LARGE_INTEGER LastWriteTime
;
527 LARGE_INTEGER ChangeTime
;
528 LARGE_INTEGER EndOfFile
;
529 LARGE_INTEGER AllocationSize
;
530 ULONG FileAttributes
;
531 ULONG FileNameLength
;
533 LARGE_INTEGER FileId
;
534 WCHAR FileName
[ANYSIZE_ARRAY
];
535 } FILE_ID_FULL_DIRECTORY_INFORMATION
, *PFILE_ID_FULL_DIRECTORY_INFORMATION
;
537 typedef struct _FILE_BOTH_DIRECTORY_INFORMATION
{
538 ULONG NextEntryOffset
;
540 LARGE_INTEGER CreationTime
;
541 LARGE_INTEGER LastAccessTime
;
542 LARGE_INTEGER LastWriteTime
;
543 LARGE_INTEGER ChangeTime
;
544 LARGE_INTEGER EndOfFile
;
545 LARGE_INTEGER AllocationSize
;
546 ULONG FileAttributes
;
547 ULONG FileNameLength
;
549 CHAR ShortNameLength
;
551 WCHAR FileName
[ANYSIZE_ARRAY
];
552 } FILE_BOTH_DIRECTORY_INFORMATION
, *PFILE_BOTH_DIRECTORY_INFORMATION
,
553 FILE_BOTH_DIR_INFORMATION
, *PFILE_BOTH_DIR_INFORMATION
;
555 typedef struct _FILE_ID_BOTH_DIRECTORY_INFORMATION
{
556 ULONG NextEntryOffset
;
558 LARGE_INTEGER CreationTime
;
559 LARGE_INTEGER LastAccessTime
;
560 LARGE_INTEGER LastWriteTime
;
561 LARGE_INTEGER ChangeTime
;
562 LARGE_INTEGER EndOfFile
;
563 LARGE_INTEGER AllocationSize
;
564 ULONG FileAttributes
;
565 ULONG FileNameLength
;
567 CHAR ShortNameLength
;
569 LARGE_INTEGER FileId
;
570 WCHAR FileName
[ANYSIZE_ARRAY
];
571 } FILE_ID_BOTH_DIRECTORY_INFORMATION
, *PFILE_ID_BOTH_DIRECTORY_INFORMATION
;
573 typedef struct _FILE_ID_GLOBAL_TX_DIR_INFORMATION
{
574 ULONG NextEntryOffset
;
576 LARGE_INTEGER CreationTime
;
577 LARGE_INTEGER LastAccessTime
;
578 LARGE_INTEGER LastWriteTime
;
579 LARGE_INTEGER ChangeTime
;
580 LARGE_INTEGER EndOfFile
;
581 LARGE_INTEGER AllocationSize
;
582 ULONG FileAttributes
;
583 ULONG FileNameLength
;
584 LARGE_INTEGER FileId
;
585 GUID LockingTransactionId
;
587 WCHAR FileName
[ANYSIZE_ARRAY
];
588 } FILE_ID_GLOBAL_TX_DIR_INFORMATION
, *PFILE_ID_GLOBAL_TX_DIR_INFORMATION
;
590 typedef struct _FILE_BASIC_INFORMATION
{
591 LARGE_INTEGER CreationTime
;
592 LARGE_INTEGER LastAccessTime
;
593 LARGE_INTEGER LastWriteTime
;
594 LARGE_INTEGER ChangeTime
;
595 ULONG FileAttributes
;
596 } FILE_BASIC_INFORMATION
, *PFILE_BASIC_INFORMATION
;
598 typedef struct _FILE_STANDARD_INFORMATION
{
599 LARGE_INTEGER AllocationSize
;
600 LARGE_INTEGER EndOfFile
;
602 BOOLEAN DeletePending
;
604 } FILE_STANDARD_INFORMATION
, *PFILE_STANDARD_INFORMATION
;
606 typedef struct _FILE_INTERNAL_INFORMATION
{
607 LARGE_INTEGER IndexNumber
;
608 } FILE_INTERNAL_INFORMATION
, *PFILE_INTERNAL_INFORMATION
;
610 typedef struct _FILE_ID_128
{
611 UCHAR Identifier
[16];
612 } FILE_ID_128
, *PFILE_ID_128
;
614 typedef struct _FILE_ID_INFORMATION
{
615 ULONGLONG VolumeSerialNumber
;
617 } FILE_ID_INFORMATION
, *PFILE_ID_INFORMATION
;
619 typedef struct _FILE_EA_INFORMATION
{
621 } FILE_EA_INFORMATION
, *PFILE_EA_INFORMATION
;
623 typedef struct _FILE_ACCESS_INFORMATION
{
624 ACCESS_MASK AccessFlags
;
625 } FILE_ACCESS_INFORMATION
, *PFILE_ACCESS_INFORMATION
;
627 typedef struct _FILE_NAME_INFORMATION
{
628 ULONG FileNameLength
;
630 } FILE_NAME_INFORMATION
, *PFILE_NAME_INFORMATION
;
632 typedef struct _FILE_RENAME_INFORMATION
{
635 ULONG FileNameLength
;
637 } FILE_RENAME_INFORMATION
, *PFILE_RENAME_INFORMATION
;
639 typedef struct _FILE_LINK_INFORMATION
{
640 BOOLEAN ReplaceIfExists
;
641 HANDLE RootDirectory
;
642 ULONG FileNameLength
;
644 } FILE_LINK_INFORMATION
, *PFILE_LINK_INFORMATION
;
646 typedef struct _FILE_NAMES_INFORMATION
{
647 ULONG NextEntryOffset
;
649 ULONG FileNameLength
;
651 } FILE_NAMES_INFORMATION
, *PFILE_NAMES_INFORMATION
;
653 typedef struct _FILE_DISPOSITION_INFORMATION
{
654 BOOLEAN DoDeleteFile
;
655 } FILE_DISPOSITION_INFORMATION
, *PFILE_DISPOSITION_INFORMATION
;
657 typedef struct _FILE_POSITION_INFORMATION
{
658 LARGE_INTEGER CurrentByteOffset
;
659 } FILE_POSITION_INFORMATION
, *PFILE_POSITION_INFORMATION
;
661 typedef struct _FILE_ALIGNMENT_INFORMATION
{
662 ULONG AlignmentRequirement
;
663 } FILE_ALIGNMENT_INFORMATION
, *PFILE_ALIGNMENT_INFORMATION
;
665 typedef struct _FILE_ALLOCATION_INFORMATION
{
666 LARGE_INTEGER AllocationSize
;
667 } FILE_ALLOCATION_INFORMATION
, *PFILE_ALLOCATION_INFORMATION
;
669 typedef struct _FILE_END_OF_FILE_INFORMATION
{
670 LARGE_INTEGER EndOfFile
;
671 } FILE_END_OF_FILE_INFORMATION
, *PFILE_END_OF_FILE_INFORMATION
;
673 typedef struct _FILE_NETWORK_OPEN_INFORMATION
{
674 LARGE_INTEGER CreationTime
;
675 LARGE_INTEGER LastAccessTime
;
676 LARGE_INTEGER LastWriteTime
;
677 LARGE_INTEGER ChangeTime
;
678 LARGE_INTEGER AllocationSize
;
679 LARGE_INTEGER EndOfFile
;
680 ULONG FileAttributes
;
681 } FILE_NETWORK_OPEN_INFORMATION
, *PFILE_NETWORK_OPEN_INFORMATION
;
683 typedef struct _FILE_FULL_EA_INFORMATION
{
684 ULONG NextEntryOffset
;
687 USHORT EaValueLength
;
689 } FILE_FULL_EA_INFORMATION
, *PFILE_FULL_EA_INFORMATION
;
691 typedef struct _FILE_MODE_INFORMATION
{
693 } FILE_MODE_INFORMATION
, *PFILE_MODE_INFORMATION
;
695 typedef struct _FILE_STREAM_INFORMATION
697 ULONG NextEntryOffset
;
698 ULONG StreamNameLength
;
699 LARGE_INTEGER StreamSize
;
700 LARGE_INTEGER StreamAllocationSize
;
702 } FILE_STREAM_INFORMATION
, *PFILE_STREAM_INFORMATION
;
704 typedef struct _FILE_ATTRIBUTE_TAG_INFORMATION
706 ULONG FileAttributes
;
708 } FILE_ATTRIBUTE_TAG_INFORMATION
, *PFILE_ATTRIBUTE_TAG_INFORMATION
;
710 typedef struct _FILE_MAILSLOT_QUERY_INFORMATION
{
711 ULONG MaximumMessageSize
;
713 ULONG NextMessageSize
;
714 ULONG MessagesAvailable
;
715 LARGE_INTEGER ReadTimeout
;
716 } FILE_MAILSLOT_QUERY_INFORMATION
, *PFILE_MAILSLOT_QUERY_INFORMATION
;
718 typedef struct _FILE_MAILSLOT_SET_INFORMATION
{
719 LARGE_INTEGER ReadTimeout
;
720 } FILE_MAILSLOT_SET_INFORMATION
, *PFILE_MAILSLOT_SET_INFORMATION
;
722 typedef struct _FILE_PIPE_INFORMATION
{
724 ULONG CompletionMode
;
725 } FILE_PIPE_INFORMATION
, *PFILE_PIPE_INFORMATION
;
727 typedef struct _FILE_PIPE_LOCAL_INFORMATION
{
729 ULONG NamedPipeConfiguration
;
730 ULONG MaximumInstances
;
731 ULONG CurrentInstances
;
733 ULONG ReadDataAvailable
;
735 ULONG WriteQuotaAvailable
;
736 ULONG NamedPipeState
;
738 } FILE_PIPE_LOCAL_INFORMATION
, *PFILE_PIPE_LOCAL_INFORMATION
;
740 #define FILE_PIPE_DISCONNECTED_STATE 0x00000001
741 #define FILE_PIPE_LISTENING_STATE 0x00000002
742 #define FILE_PIPE_CONNECTED_STATE 0x00000003
743 #define FILE_PIPE_CLOSING_STATE 0x00000004
745 typedef struct _FILE_OBJECTID_INFORMATION
{
746 LONGLONG FileReference
;
750 UCHAR BirthVolumeId
[16];
751 UCHAR BirthObjectId
[16];
754 UCHAR ExtendedInfo
[48];
756 } FILE_OBJECTID_INFORMATION
, *PFILE_OBJECTID_INFORMATION
;
758 typedef struct _FILE_QUOTA_INFORMATION
{
759 ULONG NextEntryOffset
;
761 LARGE_INTEGER ChangeTime
;
762 LARGE_INTEGER QuotaUsed
;
763 LARGE_INTEGER QuotaThreshold
;
764 LARGE_INTEGER QuotaLimit
;
766 } FILE_QUOTA_INFORMATION
, *PFILE_QUOTA_INFORMATION
;
768 typedef struct _FILE_REPARSE_POINT_INFORMATION
{
769 LONGLONG FileReference
;
771 } FILE_REPARSE_POINT_INFORMATION
, *PFILE_REPARSE_POINT_INFORMATION
;
773 typedef struct _FILE_ALL_INFORMATION
{
774 FILE_BASIC_INFORMATION BasicInformation
;
775 FILE_STANDARD_INFORMATION StandardInformation
;
776 FILE_INTERNAL_INFORMATION InternalInformation
;
777 FILE_EA_INFORMATION EaInformation
;
778 FILE_ACCESS_INFORMATION AccessInformation
;
779 FILE_POSITION_INFORMATION PositionInformation
;
780 FILE_MODE_INFORMATION ModeInformation
;
781 FILE_ALIGNMENT_INFORMATION AlignmentInformation
;
782 FILE_NAME_INFORMATION NameInformation
;
783 } FILE_ALL_INFORMATION
, *PFILE_ALL_INFORMATION
;
785 typedef struct _FILE_IO_COMPLETION_NOTIFICATION_INFORMATION
{
787 } FILE_IO_COMPLETION_NOTIFICATION_INFORMATION
, *PFILE_IO_COMPLETION_NOTIFICATION_INFORMATION
;
789 #define FILE_SKIP_COMPLETION_PORT_ON_SUCCESS 0x1
790 #define FILE_SKIP_SET_EVENT_ON_HANDLE 0x2
791 #define FILE_SKIP_SET_USER_EVENT_ON_FAST_IO 0x4
793 typedef enum _FSINFOCLASS
{
794 FileFsVolumeInformation
= 1,
795 FileFsLabelInformation
,
796 FileFsSizeInformation
,
797 FileFsDeviceInformation
,
798 FileFsAttributeInformation
,
799 FileFsControlInformation
,
800 FileFsFullSizeInformation
,
801 FileFsObjectIdInformation
,
802 FileFsMaximumInformation
803 } FS_INFORMATION_CLASS
, *PFS_INFORMATION_CLASS
;
805 typedef enum _KEY_INFORMATION_CLASS
{
810 KeyCachedInformation
,
812 KeyVirtualizationInformation
,
813 KeyHandleTagsInformation
,
815 } KEY_INFORMATION_CLASS
;
817 typedef enum _KEY_VALUE_INFORMATION_CLASS
{
818 KeyValueBasicInformation
,
819 KeyValueFullInformation
,
820 KeyValuePartialInformation
,
821 KeyValueFullInformationAlign64
,
822 KeyValuePartialInformationAlign64
823 } KEY_VALUE_INFORMATION_CLASS
;
825 typedef enum _OBJECT_INFORMATION_CLASS
{
826 ObjectBasicInformation
,
827 ObjectNameInformation
,
828 ObjectTypeInformation
,
829 ObjectAllInformation
,
830 ObjectDataInformation
831 } OBJECT_INFORMATION_CLASS
, *POBJECT_INFORMATION_CLASS
;
833 typedef enum _PROCESSINFOCLASS
{
834 ProcessBasicInformation
= 0,
835 ProcessQuotaLimits
= 1,
836 ProcessIoCounters
= 2,
837 ProcessVmCounters
= 3,
839 ProcessBasePriority
= 5,
840 ProcessRaisePriority
= 6,
841 ProcessDebugPort
= 7,
842 ProcessExceptionPort
= 8,
843 ProcessAccessToken
= 9,
844 ProcessLdtInformation
= 10,
846 ProcessDefaultHardErrorMode
= 12,
847 ProcessIoPortHandlers
= 13,
848 ProcessPooledUsageAndLimits
= 14,
849 ProcessWorkingSetWatch
= 15,
850 ProcessUserModeIOPL
= 16,
851 ProcessEnableAlignmentFaultFixup
= 17,
852 ProcessPriorityClass
= 18,
853 ProcessWx86Information
= 19,
854 ProcessHandleCount
= 20,
855 ProcessAffinityMask
= 21,
856 ProcessPriorityBoost
= 22,
857 ProcessDeviceMap
= 23,
858 ProcessSessionInformation
= 24,
859 ProcessForegroundInformation
= 25,
860 ProcessWow64Information
= 26,
861 ProcessImageFileName
= 27,
862 ProcessLUIDDeviceMapsEnabled
= 28,
863 ProcessBreakOnTermination
= 29,
864 ProcessDebugObjectHandle
= 30,
865 ProcessDebugFlags
= 31,
866 ProcessHandleTracing
= 32,
867 ProcessExecuteFlags
= 34,
868 ProcessTlsInformation
= 35,
870 ProcessImageInformation
= 37,
871 ProcessCycleTime
= 38,
872 ProcessPagePriority
= 39,
873 ProcessInstrumentationCallback
= 40,
874 ProcessThreadStackAllocation
= 41,
875 ProcessWorkingSetWatchEx
= 42,
876 ProcessImageFileNameWin32
= 43,
878 } PROCESSINFOCLASS
, PROCESS_INFORMATION_CLASS
;
880 #define MEM_EXECUTE_OPTION_DISABLE 0x01
881 #define MEM_EXECUTE_OPTION_ENABLE 0x02
882 #define MEM_EXECUTE_OPTION_DISABLE_THUNK_EMULATION 0x04
883 #define MEM_EXECUTE_OPTION_PERMANENT 0x08
885 typedef enum _SECTION_INHERIT
{
890 typedef enum _SYSTEM_INFORMATION_CLASS
{
891 SystemBasicInformation
= 0,
892 SystemCpuInformation
= 1,
893 SystemPerformanceInformation
= 2,
894 SystemTimeOfDayInformation
= 3, /* was SystemTimeInformation */
896 SystemProcessInformation
= 5,
899 SystemProcessorPerformanceInformation
= 8,
902 SystemModuleInformation
= 11,
907 SystemHandleInformation
= 16,
909 SystemPageFileInformation
= 18,
912 SystemCacheInformation
= 21,
914 SystemInterruptInformation
= 23,
915 SystemDpcBehaviourInformation
= 24,
916 SystemFullMemoryInformation
= 25,
917 SystemNotImplemented6
= 25,
918 SystemLoadImage
= 26,
919 SystemUnloadImage
= 27,
920 SystemTimeAdjustmentInformation
= 28,
921 SystemTimeAdjustment
= 28,
922 SystemSummaryMemoryInformation
= 29,
923 SystemNotImplemented7
= 29,
924 SystemNextEventIdInformation
= 30,
925 SystemNotImplemented8
= 30,
926 SystemEventIdsInformation
= 31,
927 SystemCrashDumpInformation
= 32,
928 SystemExceptionInformation
= 33,
929 SystemCrashDumpStateInformation
= 34,
930 SystemKernelDebuggerInformation
= 35,
931 SystemContextSwitchInformation
= 36,
932 SystemRegistryQuotaInformation
= 37,
933 SystemCurrentTimeZoneInformation
= 44,
934 SystemTimeZoneInformation
= 44,
935 SystemLookasideInformation
= 45,
936 SystemSetTimeSlipEvent
= 46,
937 SystemCreateSession
= 47,
938 SystemDeleteSession
= 48,
939 SystemInvalidInfoClass4
= 49,
940 SystemRangeStartInformation
= 50,
941 SystemVerifierInformation
= 51,
942 SystemAddVerifier
= 52,
943 SystemSessionProcessesInformation
= 53,
944 SystemLoadGdiDriverInSystemSpace
= 54,
945 SystemNumaProcessorMap
= 55,
946 SystemPrefetcherInformation
= 56,
947 SystemExtendedProcessInformation
= 57,
948 SystemRecommendedSharedDataAlignment
= 58,
949 SystemComPlusPackage
= 59,
950 SystemNumaAvailableMemory
= 60,
951 SystemProcessorPowerInformation
= 61,
952 SystemEmulationBasicInformation
= 62,
953 SystemEmulationProcessorInformation
= 63,
954 SystemExtendedHandleInformation
= 64,
955 SystemLostDelayedWriteInformation
= 65,
956 SystemBigPoolInformation
= 66,
957 SystemSessionPoolTagInformation
= 67,
958 SystemSessionMappedViewInformation
= 68,
959 SystemHotpatchInformation
= 69,
960 SystemObjectSecurityMode
= 70,
961 SystemWatchdogTimerHandler
= 71,
962 SystemWatchdogTimerInformation
= 72,
963 SystemLogicalProcessorInformation
= 73,
964 SystemWow64SharedInformation
= 74,
965 SystemRegisterFirmwareTableInformationHandler
= 75,
966 SystemFirmwareTableInformation
= 76,
967 SystemModuleInformationEx
= 77,
968 SystemVerifierTriageInformation
= 78,
969 SystemSuperfetchInformation
= 79,
970 SystemMemoryListInformation
= 80,
971 SystemFileCacheInformationEx
= 81,
972 SystemLogicalProcessorInformationEx
= 107,
973 SystemInformationClassMax
974 } SYSTEM_INFORMATION_CLASS
, *PSYSTEM_INFORMATION_CLASS
;
976 typedef enum _THREADINFOCLASS
{
977 ThreadBasicInformation
,
982 ThreadImpersonationToken
,
983 ThreadDescriptorTableEntry
,
984 ThreadEnableAlignmentFaultFixup
,
985 ThreadEventPair_Reusable
,
986 ThreadQuerySetWin32StartAddress
,
988 ThreadPerformanceCount
,
990 ThreadIdealProcessor
,
992 ThreadSetTlsArrayAddress
,
994 ThreadHideFromDebugger
,
995 ThreadBreakOnTermination
,
996 ThreadSwitchLegacyState
,
998 ThreadLastSystemCall
,
1002 ThreadActualBasePriority
,
1003 ThreadTebInformation
,
1007 ThreadGroupInformation
,
1008 ThreadUmsInformation
,
1009 ThreadCounterProfiling
,
1010 ThreadIdealProcessorEx
,
1014 typedef struct _THREAD_BASIC_INFORMATION
1016 NTSTATUS ExitStatus
;
1017 PVOID TebBaseAddress
;
1019 ULONG_PTR AffinityMask
;
1022 } THREAD_BASIC_INFORMATION
, *PTHREAD_BASIC_INFORMATION
;
1024 typedef struct _THREAD_DESCRIPTOR_INFORMATION
1028 } THREAD_DESCRIPTOR_INFORMATION
, *PTHREAD_DESCRIPTOR_INFORMATION
;
1030 typedef struct _KERNEL_USER_TIMES
{
1031 LARGE_INTEGER CreateTime
;
1032 LARGE_INTEGER ExitTime
;
1033 LARGE_INTEGER KernelTime
;
1034 LARGE_INTEGER UserTime
;
1035 } KERNEL_USER_TIMES
, *PKERNEL_USER_TIMES
;
1037 typedef enum _WINSTATIONINFOCLASS
{
1038 WinStationInformation
= 8
1039 } WINSTATIONINFOCLASS
;
1041 typedef enum _MEMORY_INFORMATION_CLASS
{
1042 MemoryBasicInformation
,
1043 MemoryWorkingSetList
,
1045 MemoryBasicVlmInformation
1046 } MEMORY_INFORMATION_CLASS
;
1048 typedef struct _MEMORY_SECTION_NAME
1050 UNICODE_STRING SectionFileName
;
1051 } MEMORY_SECTION_NAME
, *PMEMORY_SECTION_NAME
;
1053 typedef enum _MUTANT_INFORMATION_CLASS
1055 MutantBasicInformation
1056 } MUTANT_INFORMATION_CLASS
, *PMUTANT_INFORMATION_CLASS
;
1058 typedef struct _MUTANT_BASIC_INFORMATION
{
1060 BOOLEAN OwnedByCaller
;
1061 BOOLEAN AbandonedState
;
1062 } MUTANT_BASIC_INFORMATION
, *PMUTANT_BASIC_INFORMATION
;
1064 typedef enum _TIMER_INFORMATION_CLASS
1066 TimerBasicInformation
= 0
1067 } TIMER_INFORMATION_CLASS
;
1069 typedef struct _TIMER_BASIC_INFORMATION
1071 LARGE_INTEGER RemainingTime
;
1073 } TIMER_BASIC_INFORMATION
, *PTIMER_BASIC_INFORMATION
;
1076 /* return type of RtlDetermineDosPathNameType_U (FIXME: not the correct names) */
1080 UNC_PATH
, /* "//foo" */
1081 ABSOLUTE_DRIVE_PATH
, /* "c:/foo" */
1082 RELATIVE_DRIVE_PATH
, /* "c:foo" */
1083 ABSOLUTE_PATH
, /* "/foo" */
1084 RELATIVE_PATH
, /* "foo" */
1085 DEVICE_PATH
, /* "//./foo" */
1086 UNC_DOT_PATH
/* "//." */
1087 } DOS_PATHNAME_TYPE
;
1090 /***********************************************************************
1091 * Types and data structures
1094 /* This is used by NtQuerySystemInformation */
1095 typedef struct _SYSTEM_THREAD_INFORMATION
1097 LARGE_INTEGER KernelTime
; /* 00/00 */
1098 LARGE_INTEGER UserTime
; /* 08/08 */
1099 LARGE_INTEGER CreateTime
; /* 10/10 */
1100 DWORD dwTickCount
; /* 18/18 */
1101 LPVOID StartAddress
; /* 1c/20 */
1102 CLIENT_ID ClientId
; /* 20/28 */
1103 DWORD dwCurrentPriority
; /* 28/38 */
1104 DWORD dwBasePriority
; /* 2c/3c */
1105 DWORD dwContextSwitches
; /* 30/40 */
1106 DWORD dwThreadState
; /* 34/44 */
1107 DWORD dwWaitReason
; /* 38/48 */
1108 DWORD dwUnknown
; /* 3c/4c */
1109 } SYSTEM_THREAD_INFORMATION
, *PSYSTEM_THREAD_INFORMATION
;
1111 typedef struct _IO_STATUS_BLOCK
{
1117 ULONG_PTR Information
;
1118 } IO_STATUS_BLOCK
, *PIO_STATUS_BLOCK
;
1120 typedef void (WINAPI
* PIO_APC_ROUTINE
)(PVOID
,PIO_STATUS_BLOCK
,ULONG
);
1122 typedef struct _KEY_BASIC_INFORMATION
{
1123 LARGE_INTEGER LastWriteTime
;
1127 } KEY_BASIC_INFORMATION
, *PKEY_BASIC_INFORMATION
;
1129 typedef struct _KEY_NODE_INFORMATION
1131 LARGE_INTEGER LastWriteTime
;
1138 } KEY_NODE_INFORMATION
, *PKEY_NODE_INFORMATION
;
1140 typedef struct _KEY_FULL_INFORMATION
1142 LARGE_INTEGER LastWriteTime
;
1150 ULONG MaxValueNameLen
;
1151 ULONG MaxValueDataLen
;
1153 } KEY_FULL_INFORMATION
, *PKEY_FULL_INFORMATION
;
1155 typedef struct _KEY_NAME_INFORMATION
{
1158 } KEY_NAME_INFORMATION
, *PKEY_NAME_INFORMATION
;
1160 typedef struct _KEY_CACHED_INFORMATION
1162 LARGE_INTEGER LastWriteTime
;
1167 ULONG MaxValueNameLen
;
1168 ULONG MaxValueDataLen
;
1170 } KEY_CACHED_INFORMATION
, *PKEY_CACHED_INFORMATION
;
1172 typedef struct _KEY_VALUE_ENTRY
1174 PUNICODE_STRING ValueName
;
1178 } KEY_VALUE_ENTRY
, *PKEY_VALUE_ENTRY
;
1180 typedef struct _KEY_VALUE_BASIC_INFORMATION
{
1185 } KEY_VALUE_BASIC_INFORMATION
, *PKEY_VALUE_BASIC_INFORMATION
;
1187 typedef struct _KEY_VALUE_FULL_INFORMATION
{
1194 } KEY_VALUE_FULL_INFORMATION
, *PKEY_VALUE_FULL_INFORMATION
;
1196 typedef struct _KEY_VALUE_PARTIAL_INFORMATION
{
1201 } KEY_VALUE_PARTIAL_INFORMATION
, *PKEY_VALUE_PARTIAL_INFORMATION
;
1203 #ifndef __OBJECT_ATTRIBUTES_DEFINED__
1204 #define __OBJECT_ATTRIBUTES_DEFINED__
1205 typedef struct _OBJECT_ATTRIBUTES
{
1207 HANDLE RootDirectory
;
1208 PUNICODE_STRING ObjectName
;
1210 PVOID SecurityDescriptor
; /* type SECURITY_DESCRIPTOR */
1211 PVOID SecurityQualityOfService
; /* type SECURITY_QUALITY_OF_SERVICE */
1212 } OBJECT_ATTRIBUTES
, *POBJECT_ATTRIBUTES
;
1215 typedef struct _OBJECT_DATA_INFORMATION
{
1216 BOOLEAN InheritHandle
;
1217 BOOLEAN ProtectFromClose
;
1218 } OBJECT_DATA_INFORMATION
, *POBJECT_DATA_INFORMATION
;
1220 typedef struct _OBJECT_BASIC_INFORMATION
{
1222 ACCESS_MASK GrantedAccess
;
1225 ULONG PagedPoolUsage
;
1226 ULONG NonPagedPoolUsage
;
1228 ULONG NameInformationLength
;
1229 ULONG TypeInformationLength
;
1230 ULONG SecurityDescriptorLength
;
1231 LARGE_INTEGER CreateTime
;
1232 } OBJECT_BASIC_INFORMATION
, *POBJECT_BASIC_INFORMATION
;
1234 typedef struct _OBJECT_NAME_INFORMATION
{
1235 UNICODE_STRING Name
;
1236 } OBJECT_NAME_INFORMATION
, *POBJECT_NAME_INFORMATION
;
1238 typedef struct __OBJECT_TYPE_INFORMATION
{
1239 UNICODE_STRING TypeName
;
1240 ULONG Reserved
[22];
1241 } OBJECT_TYPE_INFORMATION
, *POBJECT_TYPE_INFORMATION
;
1243 typedef struct _PROCESS_BASIC_INFORMATION
{
1245 DWORD_PTR ExitStatus
;
1246 PPEB PebBaseAddress
;
1247 DWORD_PTR AffinityMask
;
1248 DWORD_PTR BasePriority
;
1249 ULONG_PTR UniqueProcessId
;
1250 ULONG_PTR InheritedFromUniqueProcessId
;
1253 PPEB PebBaseAddress
;
1255 ULONG_PTR UniqueProcessId
;
1258 } PROCESS_BASIC_INFORMATION
, *PPROCESS_BASIC_INFORMATION
;
1260 #define PROCESS_PRIOCLASS_IDLE 1
1261 #define PROCESS_PRIOCLASS_NORMAL 2
1262 #define PROCESS_PRIOCLASS_HIGH 3
1263 #define PROCESS_PRIOCLASS_REALTIME 4
1264 #define PROCESS_PRIOCLASS_BELOW_NORMAL 5
1265 #define PROCESS_PRIOCLASS_ABOVE_NORMAL 6
1267 typedef struct _PROCESS_PRIORITY_CLASS
{
1269 UCHAR PriorityClass
;
1270 } PROCESS_PRIORITY_CLASS
, *PPROCESS_PRIORITY_CLASS
;
1272 typedef struct _RTL_HEAP_DEFINITION
{
1273 ULONG Length
; /* = sizeof(RTL_HEAP_DEFINITION) */
1276 } RTL_HEAP_DEFINITION
, *PRTL_HEAP_DEFINITION
;
1278 typedef struct _RTL_RWLOCK
{
1279 RTL_CRITICAL_SECTION rtlCS
;
1281 HANDLE hSharedReleaseSemaphore
;
1282 UINT uSharedWaiters
;
1284 HANDLE hExclusiveReleaseSemaphore
;
1285 UINT uExclusiveWaiters
;
1288 HANDLE hOwningThreadId
;
1289 DWORD dwTimeoutBoost
;
1291 } RTL_RWLOCK
, *LPRTL_RWLOCK
;
1293 /* System Information Class 0x00 */
1295 typedef struct _SYSTEM_BASIC_INFORMATION
{
1298 ULONG KeMaximumIncrement
;
1300 ULONG MmNumberOfPhysicalPages
;
1301 ULONG MmLowestPhysicalPage
;
1302 ULONG MmHighestPhysicalPage
;
1303 ULONG_PTR AllocationGranularity
;
1304 PVOID LowestUserAddress
;
1305 PVOID HighestUserAddress
;
1306 ULONG_PTR ActiveProcessorsAffinityMask
;
1307 BYTE NumberOfProcessors
;
1311 CCHAR NumberOfProcessors
;
1313 } SYSTEM_BASIC_INFORMATION
, *PSYSTEM_BASIC_INFORMATION
;
1315 /* System Information Class 0x01 */
1317 typedef struct _SYSTEM_CPU_INFORMATION
{
1320 WORD Revision
; /* combination of CPU model and stepping */
1321 WORD Reserved
; /* always zero */
1322 DWORD FeatureSet
; /* see bit flags below */
1323 } SYSTEM_CPU_INFORMATION
, *PSYSTEM_CPU_INFORMATION
;
1325 /* definitions of bits in the Feature set for the x86 processors */
1326 #define CPU_FEATURE_VME 0x00000005 /* Virtual 86 Mode Extensions */
1327 #define CPU_FEATURE_TSC 0x00000002 /* Time Stamp Counter available */
1328 #define CPU_FEATURE_CMOV 0x00000008 /* Conditional Move instruction*/
1329 #define CPU_FEATURE_PGE 0x00000014 /* Page table Entry Global bit */
1330 #define CPU_FEATURE_PSE 0x00000024 /* Page Size Extension */
1331 #define CPU_FEATURE_MTRR 0x00000040 /* Memory Type Range Registers */
1332 #define CPU_FEATURE_CX8 0x00000080 /* Compare and eXchange 8 byte instr. */
1333 #define CPU_FEATURE_MMX 0x00000100 /* Multi Media eXtensions */
1334 #define CPU_FEATURE_X86 0x00000200 /* seems to be always ON, on the '86 */
1335 #define CPU_FEATURE_PAT 0x00000400 /* Page Attribute Table */
1336 #define CPU_FEATURE_FXSR 0x00000800 /* FXSAVE and FXSTORE instructions */
1337 #define CPU_FEATURE_SEP 0x00001000 /* SYSENTER and SYSEXIT instructions */
1338 #define CPU_FEATURE_SSE 0x00002000 /* SSE extensions (ext. MMX) */
1339 #define CPU_FEATURE_3DNOW 0x00004000 /* 3DNOW instructions available */
1340 #define CPU_FEATURE_SSE2 0x00010000 /* SSE2 extensions (XMMI64) */
1341 #define CPU_FEATURE_DS 0x00020000 /* Debug Store */
1342 #define CPU_FEATURE_HTT 0x00040000 /* Hyper Threading Technology */
1344 /* System Information Class 0x02 */
1346 /* Documented in "Windows NT/2000 Native API Reference" by Gary Nebbett. */
1347 typedef struct _SYSTEM_PERFORMANCE_INFORMATION
{
1348 LARGE_INTEGER IdleTime
;
1349 LARGE_INTEGER ReadTransferCount
;
1350 LARGE_INTEGER WriteTransferCount
;
1351 LARGE_INTEGER OtherTransferCount
;
1352 ULONG ReadOperationCount
;
1353 ULONG WriteOperationCount
;
1354 ULONG OtherOperationCount
;
1355 ULONG AvailablePages
;
1356 ULONG TotalCommittedPages
;
1357 ULONG TotalCommitLimit
;
1358 ULONG PeakCommitment
;
1360 ULONG WriteCopyFaults
;
1361 ULONG TransitionFaults
;
1363 ULONG DemandZeroFaults
;
1367 ULONG PagefilePagesWritten
;
1368 ULONG PagefilePageWriteIos
;
1369 ULONG MappedFilePagesWritten
;
1370 ULONG MappedFilePageWriteIos
;
1371 ULONG PagedPoolUsage
;
1372 ULONG NonPagedPoolUsage
;
1373 ULONG PagedPoolAllocs
;
1374 ULONG PagedPoolFrees
;
1375 ULONG NonPagedPoolAllocs
;
1376 ULONG NonPagedPoolFrees
;
1377 ULONG TotalFreeSystemPtes
;
1378 ULONG SystemCodePage
;
1379 ULONG TotalSystemDriverPages
;
1380 ULONG TotalSystemCodePages
;
1381 ULONG SmallNonPagedLookasideListAllocateHits
;
1382 ULONG SmallPagedLookasideListAllocateHits
;
1384 ULONG MmSystemCachePage
;
1385 ULONG PagedPoolPage
;
1386 ULONG SystemDriverPage
;
1387 ULONG FastReadNoWait
;
1389 ULONG FastReadResourceMiss
;
1390 ULONG FastReadNotPossible
;
1391 ULONG FastMdlReadNoWait
;
1392 ULONG FastMdlReadWait
;
1393 ULONG FastMdlReadResourceMiss
;
1394 ULONG FastMdlReadNotPossible
;
1395 ULONG MapDataNoWait
;
1397 ULONG MapDataNoWaitMiss
;
1398 ULONG MapDataWaitMiss
;
1399 ULONG PinMappedDataCount
;
1400 ULONG PinReadNoWait
;
1402 ULONG PinReadNoWaitMiss
;
1403 ULONG PinReadWaitMiss
;
1404 ULONG CopyReadNoWait
;
1406 ULONG CopyReadNoWaitMiss
;
1407 ULONG CopyReadWaitMiss
;
1408 ULONG MdlReadNoWait
;
1410 ULONG MdlReadNoWaitMiss
;
1411 ULONG MdlReadWaitMiss
;
1414 ULONG LazyWritePages
;
1417 ULONG ContextSwitches
;
1418 ULONG FirstLevelTbFills
;
1419 ULONG SecondLevelTbFills
;
1421 } SYSTEM_PERFORMANCE_INFORMATION
, *PSYSTEM_PERFORMANCE_INFORMATION
;
1423 /* System Information Class 0x03 */
1425 typedef struct _SYSTEM_TIMEOFDAY_INFORMATION
{
1427 LARGE_INTEGER liKeBootTime
;
1428 LARGE_INTEGER liKeSystemTime
;
1429 LARGE_INTEGER liExpTimeZoneBias
;
1430 ULONG uCurrentTimeZoneId
;
1431 DWORD dwUnknown1
[5];
1435 } SYSTEM_TIMEOFDAY_INFORMATION
, *PSYSTEM_TIMEOFDAY_INFORMATION
; /* was SYSTEM_TIME_INFORMATION */
1437 /* System Information Class 0x08 */
1439 typedef struct _SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION
{
1440 LARGE_INTEGER IdleTime
;
1441 LARGE_INTEGER KernelTime
;
1442 LARGE_INTEGER UserTime
;
1443 LARGE_INTEGER Reserved1
[2];
1445 } SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION
, *PSYSTEM_PROCESSOR_PERFORMANCE_INFORMATION
;
1447 /* System Information Class 0x0b */
1449 typedef struct _SYSTEM_DRIVER_INFORMATION
{
1455 char szName
[MAX_PATH
+ 1];
1456 } SYSTEM_DRIVER_INFORMATION
, *PSYSTEM_DRIVER_INFORMATION
;
1458 /* System Information Class 0x10 */
1460 typedef struct _SYSTEM_HANDLE_ENTRY
{
1465 PVOID ObjectPointer
;
1467 } SYSTEM_HANDLE_ENTRY
, *PSYSTEM_HANDLE_ENTRY
;
1469 typedef struct _SYSTEM_HANDLE_INFORMATION
{
1471 SYSTEM_HANDLE_ENTRY Handle
[1];
1472 } SYSTEM_HANDLE_INFORMATION
, *PSYSTEM_HANDLE_INFORMATION
;
1474 /* System Information Class 0x15 */
1476 typedef struct _SYSTEM_CACHE_INFORMATION
{
1479 ULONG PageFaultCount
;
1480 ULONG MinimumWorkingSet
;
1481 ULONG MaximumWorkingSet
;
1486 } SYSTEM_CACHE_INFORMATION
, *PSYSTEM_CACHE_INFORMATION
;
1488 /* System Information Class 0x17 */
1490 typedef struct _SYSTEM_INTERRUPT_INFORMATION
{
1492 } SYSTEM_INTERRUPT_INFORMATION
, *PSYSTEM_INTERRUPT_INFORMATION
;
1494 typedef struct _SYSTEM_CONFIGURATION_INFO
{
1498 WORD ProcessorArchitecture
;
1503 PVOID MinimumApplicationAddress
;
1504 PVOID MaximumApplicationAddress
;
1505 ULONG ActiveProcessorMask
;
1506 ULONG NumberOfProcessors
;
1507 ULONG ProcessorType
;
1508 ULONG AllocationGranularity
;
1509 WORD ProcessorLevel
;
1510 WORD ProcessorRevision
;
1511 } SYSTEM_CONFIGURATION_INFO
, *PSYSTEM_CONFIGURATION_INFO
;
1513 typedef struct _SYSTEM_EXCEPTION_INFORMATION
{
1515 } SYSTEM_EXCEPTION_INFORMATION
, *PSYSTEM_EXCEPTION_INFORMATION
;
1517 typedef struct _SYSTEM_LOOKASIDE_INFORMATION
{
1519 } SYSTEM_LOOKASIDE_INFORMATION
, *PSYSTEM_LOOKASIDE_INFORMATION
;
1521 typedef struct _SYSTEM_KERNEL_DEBUGGER_INFORMATION
{
1522 BOOLEAN DebuggerEnabled
;
1523 BOOLEAN DebuggerNotPresent
;
1524 } SYSTEM_KERNEL_DEBUGGER_INFORMATION
, *PSYSTEM_KERNEL_DEBUGGER_INFORMATION
;
1526 /* System Information Class 0x05 */
1528 typedef struct _VM_COUNTERS_
{
1529 SIZE_T PeakVirtualSize
;
1531 ULONG PageFaultCount
;
1532 SIZE_T PeakWorkingSetSize
;
1533 SIZE_T WorkingSetSize
;
1534 SIZE_T QuotaPeakPagedPoolUsage
;
1535 SIZE_T QuotaPagedPoolUsage
;
1536 SIZE_T QuotaPeakNonPagedPoolUsage
;
1537 SIZE_T QuotaNonPagedPoolUsage
;
1538 SIZE_T PagefileUsage
;
1539 SIZE_T PeakPagefileUsage
;
1540 SIZE_T PrivatePageCount
;
1541 } VM_COUNTERS
, *PVM_COUNTERS
;
1543 typedef struct _SYSTEM_PROCESS_INFORMATION
{
1544 #ifdef __WINESRC__ /* win32/win64 */
1545 ULONG NextEntryOffset
; /* 00/00 */
1546 DWORD dwThreadCount
; /* 04/04 */
1547 DWORD dwUnknown1
[6]; /* 08/08 */
1548 LARGE_INTEGER CreationTime
; /* 20/20 */
1549 LARGE_INTEGER UserTime
; /* 28/28 */
1550 LARGE_INTEGER KernelTime
; /* 30/30 */
1551 UNICODE_STRING ProcessName
; /* 38/38 */
1552 DWORD dwBasePriority
; /* 40/48 */
1553 HANDLE UniqueProcessId
; /* 44/50 */
1554 HANDLE ParentProcessId
; /* 48/58 */
1555 ULONG HandleCount
; /* 4c/60 */
1556 ULONG SessionId
; /* 50/64 */
1557 DWORD dwUnknown4
; /* 54/68 */
1558 VM_COUNTERS vmCounters
; /* 58/70 */
1559 IO_COUNTERS ioCounters
; /* 88/d0 */
1560 SYSTEM_THREAD_INFORMATION ti
[1]; /* b8/100 */
1562 ULONG NextEntryOffset
; /* 00/00 */
1563 BYTE Reserved1
[52]; /* 04/04 */
1564 PVOID Reserved2
[3]; /* 38/38 */
1565 HANDLE UniqueProcessId
; /* 44/50 */
1566 PVOID Reserved3
; /* 48/58 */
1567 ULONG HandleCount
; /* 4c/60 */
1568 BYTE Reserved4
[4]; /* 50/64 */
1569 PVOID Reserved5
[11]; /* 54/68 */
1570 SIZE_T PeakPagefileUsage
; /* 80/c0 */
1571 SIZE_T PrivatePageCount
; /* 84/c8 */
1572 LARGE_INTEGER Reserved6
[6]; /* 88/d0 */
1574 } SYSTEM_PROCESS_INFORMATION
, *PSYSTEM_PROCESS_INFORMATION
;
1576 typedef struct _SYSTEM_REGISTRY_QUOTA_INFORMATION
{
1577 ULONG RegistryQuotaAllowed
;
1578 ULONG RegistryQuotaUsed
;
1580 } SYSTEM_REGISTRY_QUOTA_INFORMATION
, *PSYSTEM_REGISTRY_QUOTA_INFORMATION
;
1582 typedef struct _SYSTEM_TIME_ADJUSTMENT
{
1583 ULONG TimeAdjustment
;
1584 BOOLEAN TimeAdjustmentDisabled
;
1585 } SYSTEM_TIME_ADJUSTMENT
, *PSYSTEM_TIME_ADJUSTMENT
;
1587 typedef enum _SYSTEM_FIRMWARE_TABLE_ACTION
1589 SystemFirmwareTable_Enumerate
= 0,
1590 SystemFirmwareTable_Get
= 1
1591 } SYSTEM_FIRMWARE_TABLE_ACTION
, *PSYSTEM_FIRMWARE_TABLE_ACTION
;
1593 /* System Information Class 0x4C */
1595 typedef struct _SYSTEM_FIRMWARE_TABLE_INFORMATION
1597 ULONG ProviderSignature
;
1598 SYSTEM_FIRMWARE_TABLE_ACTION Action
;
1600 ULONG TableBufferLength
;
1601 UCHAR TableBuffer
[1];
1602 } SYSTEM_FIRMWARE_TABLE_INFORMATION
, *PSYSTEM_FIRMWARE_TABLE_INFORMATION
;
1604 typedef struct _TIME_FIELDS
1611 CSHORT Milliseconds
;
1613 } TIME_FIELDS
, *PTIME_FIELDS
;
1615 typedef struct _WINSTATIONINFORMATIONW
{
1618 BYTE Reserved3
[1140];
1619 } WINSTATIONINFORMATIONW
, *PWINSTATIONINFORMATIONW
;
1621 typedef BOOLEAN (WINAPI
* PWINSTATIONQUERYINFORMATIONW
)(HANDLE
,ULONG
,WINSTATIONINFOCLASS
,PVOID
,ULONG
,PULONG
);
1623 typedef struct _LDR_RESOURCE_INFO
1628 } LDR_RESOURCE_INFO
, *PLDR_RESOURCE_INFO
;
1631 /* debug buffer definitions */
1633 typedef struct _DEBUG_BUFFER
{
1634 HANDLE SectionHandle
;
1636 PVOID RemoteSectionBase
;
1637 ULONG SectionBaseDelta
;
1638 HANDLE EventPairHandle
;
1640 HANDLE RemoteThreadHandle
;
1641 ULONG InfoClassMask
;
1643 ULONG AllocatedSize
;
1645 PVOID ModuleInformation
;
1646 PVOID BackTraceInformation
;
1647 PVOID HeapInformation
;
1648 PVOID LockInformation
;
1650 } DEBUG_BUFFER
, *PDEBUG_BUFFER
;
1652 #define PDI_MODULES 0x01
1653 #define PDI_BACKTRACE 0x02
1654 #define PDI_HEAPS 0x04
1655 #define PDI_HEAP_TAGS 0x08
1656 #define PDI_HEAP_BLOCKS 0x10
1657 #define PDI_LOCKS 0x20
1659 typedef struct _DEBUG_MODULE_INFORMATION
{
1667 USHORT ModuleNameOffset
;
1668 CHAR ImageName
[256];
1669 } DEBUG_MODULE_INFORMATION
, *PDEBUG_MODULE_INFORMATION
;
1671 typedef struct _DEBUG_HEAP_INFORMATION
{
1683 } DEBUG_HEAP_INFORMATION
, *PDEBUG_HEAP_INFORMATION
;
1685 typedef struct _DEBUG_LOCK_INFORMATION
{
1688 USHORT CreatorBackTraceIndex
;
1689 ULONG OwnerThreadId
;
1691 ULONG ContentionCount
;
1693 ULONG RecursionCount
;
1694 ULONG NumberOfSharedWaiters
;
1695 ULONG NumberOfExclusiveWaiters
;
1696 } DEBUG_LOCK_INFORMATION
, *PDEBUG_LOCK_INFORMATION
;
1698 typedef struct _PORT_MESSAGE_HEADER
{
1702 USHORT VirtualRangesOffset
;
1706 } PORT_MESSAGE_HEADER
, *PPORT_MESSAGE_HEADER
, PORT_MESSAGE
, *PPORT_MESSAGE
;
1708 typedef unsigned short RTL_ATOM
, *PRTL_ATOM
;
1710 /* Wine doesn't implement atom table as NT does:
1711 * - in NT, atom tables are user space tables, which ntdll directly accesses
1712 * - on Wine, (even local) atom tables are wineserver objects, hence a HANDLE
1714 typedef struct atom_table
*RTL_ATOM_TABLE
, **PRTL_ATOM_TABLE
;
1716 typedef enum _ATOM_INFORMATION_CLASS
{
1717 AtomBasicInformation
= 0,
1718 AtomTableInformation
= 1,
1719 } ATOM_INFORMATION_CLASS
;
1721 typedef struct _ATOM_BASIC_INFORMATION
{
1722 USHORT ReferenceCount
;
1726 } ATOM_BASIC_INFORMATION
, *PATOM_BASIC_INFORMATION
;
1728 /* FIXME: names probably not correct */
1729 typedef struct _RTL_HANDLE
1731 struct _RTL_HANDLE
* Next
;
1734 /* FIXME: names probably not correct */
1735 typedef struct _RTL_HANDLE_TABLE
1737 ULONG MaxHandleCount
; /* 0x00 */
1738 ULONG HandleSize
; /* 0x04 */
1739 ULONG Unused
[2]; /* 0x08-0x0c */
1740 PVOID NextFree
; /* 0x10 */
1741 PVOID FirstHandle
; /* 0x14 */
1742 PVOID ReservedMemory
; /* 0x18 */
1743 PVOID MaxHandle
; /* 0x1c */
1746 /***********************************************************************
1750 /* flags for NtCreateFile and NtOpenFile */
1751 #define FILE_DIRECTORY_FILE 0x00000001
1752 #define FILE_WRITE_THROUGH 0x00000002
1753 #define FILE_SEQUENTIAL_ONLY 0x00000004
1754 #define FILE_NO_INTERMEDIATE_BUFFERING 0x00000008
1755 #define FILE_SYNCHRONOUS_IO_ALERT 0x00000010
1756 #define FILE_SYNCHRONOUS_IO_NONALERT 0x00000020
1757 #define FILE_NON_DIRECTORY_FILE 0x00000040
1758 #define FILE_CREATE_TREE_CONNECTION 0x00000080
1759 #define FILE_COMPLETE_IF_OPLOCKED 0x00000100
1760 #define FILE_NO_EA_KNOWLEDGE 0x00000200
1761 #define FILE_OPEN_FOR_RECOVERY 0x00000400
1762 #define FILE_RANDOM_ACCESS 0x00000800
1763 #define FILE_DELETE_ON_CLOSE 0x00001000
1764 #define FILE_OPEN_BY_FILE_ID 0x00002000
1765 #define FILE_OPEN_FOR_BACKUP_INTENT 0x00004000
1766 #define FILE_NO_COMPRESSION 0x00008000
1767 #define FILE_RESERVE_OPFILTER 0x00100000
1768 #define FILE_TRANSACTED_MODE 0x00200000
1769 #define FILE_OPEN_OFFLINE_FILE 0x00400000
1770 #define FILE_OPEN_FOR_FREE_SPACE_QUERY 0x00800000
1772 #define FILE_ATTRIBUTE_VALID_FLAGS 0x00007fb7
1773 #define FILE_ATTRIBUTE_VALID_SET_FLAGS 0x000031a7
1775 /* status for NtCreateFile or NtOpenFile */
1776 #define FILE_SUPERSEDED 0
1777 #define FILE_OPENED 1
1778 #define FILE_CREATED 2
1779 #define FILE_OVERWRITTEN 3
1780 #define FILE_EXISTS 4
1781 #define FILE_DOES_NOT_EXIST 5
1783 /* disposition for NtCreateFile */
1784 #define FILE_SUPERSEDE 0
1786 #define FILE_CREATE 2
1787 #define FILE_OPEN_IF 3
1788 #define FILE_OVERWRITE 4
1789 #define FILE_OVERWRITE_IF 5
1790 #define FILE_MAXIMUM_DISPOSITION 5
1792 /* Characteristics of a File System */
1793 #define FILE_REMOVABLE_MEDIA 0x00000001
1794 #define FILE_READ_ONLY_DEVICE 0x00000002
1795 #define FILE_FLOPPY_DISKETTE 0x00000004
1796 #define FILE_WRITE_ONE_MEDIA 0x00000008
1797 #define FILE_REMOTE_DEVICE 0x00000010
1798 #define FILE_DEVICE_IS_MOUNTED 0x00000020
1799 #define FILE_VIRTUAL_VOLUME 0x00000040
1800 #define FILE_AUTOGENERATED_DEVICE_NAME 0x00000080
1801 #define FILE_DEVICE_SECURE_OPEN 0x00000100
1802 #define FILE_CHARACTERISTIC_PNP_DEVICE 0x00000800
1803 #define FILE_CHARACTERISTIC_TS_DEVICE 0x00001000
1804 #define FILE_CHARACTERISTIC_WEBDAV_DEVICE 0x00002000
1805 #define FILE_CHARACTERISTIC_CSV 0x00010000
1806 #define FILE_DEVICE_ALLOW_APPCONTAINER_TRAVERSAL 0x00020000
1807 #define FILE_PORTABLE_DEVICE 0x00040000
1809 /* options for NtCreateNamedPipeFile */
1810 #define FILE_PIPE_INBOUND 0x00000000
1811 #define FILE_PIPE_OUTBOUND 0x00000001
1812 #define FILE_PIPE_FULL_DUPLEX 0x00000002
1814 /* options for pipe's type */
1815 #define FILE_PIPE_TYPE_MESSAGE 0x00000001
1816 #define FILE_PIPE_TYPE_BYTE 0x00000000
1817 /* options for pipe's message mode */
1818 #define FILE_PIPE_MESSAGE_MODE 0x00000001
1819 #define FILE_PIPE_BYTE_STREAM_MODE 0x00000000
1820 /* options for pipe's blocking mode */
1821 #define FILE_PIPE_COMPLETE_OPERATION 0x00000001
1822 #define FILE_PIPE_QUEUE_OPERATION 0x00000000
1823 /* and client / server end */
1824 #define FILE_PIPE_SERVER_END 0x00000001
1825 #define FILE_PIPE_CLIENT_END 0x00000000
1827 #define INTERNAL_TS_ACTIVE_CONSOLE_ID ( *((volatile ULONG*)(0x7ffe02d8)) )
1829 #define LOGONID_CURRENT ((ULONG)-1)
1831 #define OBJ_INHERIT 0x00000002
1832 #define OBJ_PERMANENT 0x00000010
1833 #define OBJ_EXCLUSIVE 0x00000020
1834 #define OBJ_CASE_INSENSITIVE 0x00000040
1835 #define OBJ_OPENIF 0x00000080
1836 #define OBJ_OPENLINK 0x00000100
1837 #define OBJ_KERNEL_HANDLE 0x00000200
1838 #define OBJ_VALID_ATTRIBUTES 0x000003F2
1840 #define SERVERNAME_CURRENT ((HANDLE)NULL)
1842 typedef void (CALLBACK
*PNTAPCFUNC
)(ULONG_PTR
,ULONG_PTR
,ULONG_PTR
); /* FIXME: not the right name */
1843 typedef void (CALLBACK
*PRTL_THREAD_START_ROUTINE
)(LPVOID
); /* FIXME: not the right name */
1844 typedef DWORD (CALLBACK
*PRTL_WORK_ITEM_ROUTINE
)(LPVOID
); /* FIXME: not the right name */
1845 typedef void (NTAPI
*RTL_WAITORTIMERCALLBACKFUNC
)(PVOID
,BOOLEAN
); /* FIXME: not the right name */
1848 /* DbgPrintEx default levels */
1849 #define DPFLTR_ERROR_LEVEL 0
1850 #define DPFLTR_WARNING_LEVEL 1
1851 #define DPFLTR_TRACE_LEVEL 2
1852 #define DPFLTR_INFO_LEVEL 3
1853 #define DPFLTR_MASK 0x8000000
1855 /* Well-known LUID values */
1856 #define SE_MIN_WELL_KNOWN_PRIVILEGE 2
1857 #define SE_CREATE_TOKEN_PRIVILEGE 2
1858 #define SE_ASSIGNPRIMARYTOKEN_PRIVILEGE 3
1859 #define SE_LOCK_MEMORY_PRIVILEGE 4
1860 #define SE_INCREASE_QUOTA_PRIVILEGE 5
1861 #define SE_UNSOLICITED_INPUT_PRIVILEGE 6 /* obsolete */
1862 #define SE_MACHINE_ACCOUNT_PRIVILEGE 6
1863 #define SE_TCB_PRIVILEGE 7
1864 #define SE_SECURITY_PRIVILEGE 8
1865 #define SE_TAKE_OWNERSHIP_PRIVILEGE 9
1866 #define SE_LOAD_DRIVER_PRIVILEGE 10
1867 #define SE_SYSTEM_PROFILE_PRIVILEGE 11
1868 #define SE_SYSTEMTIME_PRIVILEGE 12
1869 #define SE_PROF_SINGLE_PROCESS_PRIVILEGE 13
1870 #define SE_INC_BASE_PRIORITY_PRIVILEGE 14
1871 #define SE_CREATE_PAGEFILE_PRIVILEGE 15
1872 #define SE_CREATE_PERMANENT_PRIVILEGE 16
1873 #define SE_BACKUP_PRIVILEGE 17
1874 #define SE_RESTORE_PRIVILEGE 18
1875 #define SE_SHUTDOWN_PRIVILEGE 19
1876 #define SE_DEBUG_PRIVILEGE 20
1877 #define SE_AUDIT_PRIVILEGE 21
1878 #define SE_SYSTEM_ENVIRONMENT_PRIVILEGE 22
1879 #define SE_CHANGE_NOTIFY_PRIVILEGE 23
1880 #define SE_REMOTE_SHUTDOWN_PRIVILEGE 24
1881 #define SE_UNDOCK_PRIVILEGE 25
1882 #define SE_SYNC_AGENT_PRIVILEGE 26
1883 #define SE_ENABLE_DELEGATION_PRIVILEGE 27
1884 #define SE_MANAGE_VOLUME_PRIVILEGE 28
1885 #define SE_IMPERSONATE_PRIVILEGE 29
1886 #define SE_CREATE_GLOBAL_PRIVILEGE 30
1887 #define SE_MAX_WELL_KNOWN_PRIVILEGE SE_CREATE_GLOBAL_PRIVILEGE
1889 /* NtGlobalFlag bits */
1890 #define FLG_STOP_ON_EXCEPTION 0x00000001
1891 #define FLG_SHOW_LDR_SNAPS 0x00000002
1892 #define FLG_DEBUG_INITIAL_COMMAND 0x00000004
1893 #define FLG_STOP_ON_HUNG_GUI 0x00000008
1894 #define FLG_HEAP_ENABLE_TAIL_CHECK 0x00000010
1895 #define FLG_HEAP_ENABLE_FREE_CHECK 0x00000020
1896 #define FLG_HEAP_VALIDATE_PARAMETERS 0x00000040
1897 #define FLG_HEAP_VALIDATE_ALL 0x00000080
1898 #define FLG_APPLICATION_VERIFIER 0x00000100
1899 #define FLG_POOL_ENABLE_TAGGING 0x00000400
1900 #define FLG_HEAP_ENABLE_TAGGING 0x00000800
1901 #define FLG_USER_STACK_TRACE_DB 0x00001000
1902 #define FLG_KERNEL_STACK_TRACE_DB 0x00002000
1903 #define FLG_MAINTAIN_OBJECT_TYPELIST 0x00004000
1904 #define FLG_HEAP_ENABLE_TAG_BY_DLL 0x00008000
1905 #define FLG_DISABLE_STACK_EXTENSION 0x00010000
1906 #define FLG_ENABLE_CSRDEBUG 0x00020000
1907 #define FLG_ENABLE_KDEBUG_SYMBOL_LOAD 0x00040000
1908 #define FLG_DISABLE_PAGE_KERNEL_STACKS 0x00080000
1909 #define FLG_ENABLE_SYSTEM_CRIT_BREAKS 0x00100000
1910 #define FLG_HEAP_DISABLE_COALESCING 0x00200000
1911 #define FLG_ENABLE_CLOSE_EXCEPTIONS 0x00400000
1912 #define FLG_ENABLE_EXCEPTION_LOGGING 0x00800000
1913 #define FLG_ENABLE_HANDLE_TYPE_TAGGING 0x01000000
1914 #define FLG_HEAP_PAGE_ALLOCS 0x02000000
1915 #define FLG_DEBUG_INITIAL_COMMAND_EX 0x04000000
1916 #define FLG_DISABLE_DBGPRINT 0x08000000
1917 #define FLG_CRITSEC_EVENT_CREATION 0x10000000
1918 #define FLG_LDR_TOP_DOWN 0x20000000
1919 #define FLG_ENABLE_HANDLE_EXCEPTIONS 0x40000000
1920 #define FLG_DISABLE_PROTDLLS 0x80000000
1922 /* Rtl*Registry* functions structs and defines */
1923 #define RTL_REGISTRY_ABSOLUTE 0
1924 #define RTL_REGISTRY_SERVICES 1
1925 #define RTL_REGISTRY_CONTROL 2
1926 #define RTL_REGISTRY_WINDOWS_NT 3
1927 #define RTL_REGISTRY_DEVICEMAP 4
1928 #define RTL_REGISTRY_USER 5
1930 #define RTL_REGISTRY_HANDLE 0x40000000
1931 #define RTL_REGISTRY_OPTIONAL 0x80000000
1933 #define RTL_QUERY_REGISTRY_SUBKEY 0x00000001
1934 #define RTL_QUERY_REGISTRY_TOPKEY 0x00000002
1935 #define RTL_QUERY_REGISTRY_REQUIRED 0x00000004
1936 #define RTL_QUERY_REGISTRY_NOVALUE 0x00000008
1937 #define RTL_QUERY_REGISTRY_NOEXPAND 0x00000010
1938 #define RTL_QUERY_REGISTRY_DIRECT 0x00000020
1939 #define RTL_QUERY_REGISTRY_DELETE 0x00000040
1941 typedef NTSTATUS (WINAPI
*PRTL_QUERY_REGISTRY_ROUTINE
)( PCWSTR ValueName
,
1946 PVOID EntryContext
);
1948 typedef struct _RTL_QUERY_REGISTRY_TABLE
1950 PRTL_QUERY_REGISTRY_ROUTINE QueryRoutine
;
1956 ULONG DefaultLength
;
1957 } RTL_QUERY_REGISTRY_TABLE
, *PRTL_QUERY_REGISTRY_TABLE
;
1959 typedef struct _KEY_MULTIPLE_VALUE_INFORMATION
1961 PUNICODE_STRING ValueName
;
1965 } KEY_MULTIPLE_VALUE_INFORMATION
, *PKEY_MULTIPLE_VALUE_INFORMATION
;
1967 typedef VOID (CALLBACK
*PRTL_OVERLAPPED_COMPLETION_ROUTINE
)(DWORD
,DWORD
,LPVOID
);
1969 typedef VOID (CALLBACK
*PTIMER_APC_ROUTINE
) ( PVOID
, ULONG
, LONG
);
1971 typedef enum _EVENT_INFORMATION_CLASS
{
1972 EventBasicInformation
1973 } EVENT_INFORMATION_CLASS
, *PEVENT_INFORMATION_CLASS
;
1975 typedef struct _EVENT_BASIC_INFORMATION
{
1976 EVENT_TYPE EventType
;
1978 } EVENT_BASIC_INFORMATION
, *PEVENT_BASIC_INFORMATION
;
1980 typedef enum _SEMAPHORE_INFORMATION_CLASS
{
1981 SemaphoreBasicInformation
1982 } SEMAPHORE_INFORMATION_CLASS
, *PSEMAPHORE_INFORMATION_CLASS
;
1984 typedef struct _SEMAPHORE_BASIC_INFORMATION
{
1987 } SEMAPHORE_BASIC_INFORMATION
, *PSEMAPHORE_BASIC_INFORMATION
;
1989 typedef enum _SECTION_INFORMATION_CLASS
1991 SectionBasicInformation
,
1992 SectionImageInformation
,
1993 } SECTION_INFORMATION_CLASS
;
1995 typedef struct _SECTION_BASIC_INFORMATION
{
1999 } SECTION_BASIC_INFORMATION
, *PSECTION_BASIC_INFORMATION
;
2001 typedef struct _SECTION_IMAGE_INFORMATION
{
2002 PVOID TransferAddress
;
2004 SIZE_T MaximumStackSize
;
2005 SIZE_T CommittedStackSize
;
2006 ULONG SubSystemType
;
2007 WORD SubsystemVersionLow
;
2008 WORD SubsystemVersionHigh
;
2010 USHORT ImageCharacteristics
;
2011 USHORT DllCharacteristics
;
2013 BOOLEAN ImageContainsCode
;
2019 UCHAR ComPlusNativeReady
: 1;
2020 UCHAR ComPlusILOnly
: 1;
2021 UCHAR ImageDynamicallyRelocated
: 1;
2022 UCHAR ImageMappedFlat
: 1;
2023 UCHAR BaseBelow4gb
: 1;
2028 ULONG ImageFileSize
;
2030 } SECTION_IMAGE_INFORMATION
, *PSECTION_IMAGE_INFORMATION
;
2032 typedef struct _LPC_SECTION_WRITE
{
2034 HANDLE SectionHandle
;
2035 ULONG SectionOffset
;
2038 PVOID TargetViewBase
;
2039 } LPC_SECTION_WRITE
, *PLPC_SECTION_WRITE
;
2041 typedef struct _LPC_SECTION_READ
{
2045 } LPC_SECTION_READ
, *PLPC_SECTION_READ
;
2047 typedef struct _LPC_MESSAGE
{
2051 USHORT VirtualRangesOffset
;
2053 ULONG_PTR MessageId
;
2054 ULONG_PTR SectionSize
;
2055 UCHAR Data
[ANYSIZE_ARRAY
];
2056 } LPC_MESSAGE
, *PLPC_MESSAGE
;
2058 typedef struct _RTL_USER_PROCESS_INFORMATION
2064 SECTION_IMAGE_INFORMATION ImageInformation
;
2065 } RTL_USER_PROCESS_INFORMATION
, *PRTL_USER_PROCESS_INFORMATION
;
2067 typedef enum _SHUTDOWN_ACTION
{
2071 } SHUTDOWN_ACTION
, *PSHUTDOWN_ACTION
;
2073 typedef struct _COUNTED_REASON_CONTEXT
2081 UNICODE_STRING ResourceFileName
;
2082 USHORT ResourceReasonId
;
2084 UNICODE_STRING
*ReasonStrings
;
2086 UNICODE_STRING SimpleString
;
2088 } COUNTED_REASON_CONTEXT
, *PCOUNTED_REASON_CONTEXT
;
2090 typedef enum _KPROFILE_SOURCE
{
2092 ProfileAlignmentFixup
,
2095 ProfileLoadInstructions
,
2096 ProfilePipelineFrozen
,
2097 ProfileBranchInstructions
,
2098 ProfileTotalNonissues
,
2099 ProfileDcacheMisses
,
2100 ProfileIcacheMisses
,
2102 ProfileBranchMispredictions
,
2103 ProfileStoreInstructions
,
2104 ProfileFpInstructions
,
2105 ProfileIntegerInstructions
,
2109 ProfileSpecialInstructions
,
2111 ProfileIcacheIssues
,
2112 ProfileDcacheAccesses
,
2113 ProfileMemoryBarrierCycles
,
2114 ProfileLoadLinkedIssues
,
2116 } KPROFILE_SOURCE
, *PKPROFILE_SOURCE
;
2118 typedef struct _DIRECTORY_BASIC_INFORMATION
{
2119 UNICODE_STRING ObjectName
;
2120 UNICODE_STRING ObjectTypeName
;
2121 } DIRECTORY_BASIC_INFORMATION
, *PDIRECTORY_BASIC_INFORMATION
;
2123 typedef struct _INITIAL_TEB
{
2125 void *OldStackLimit
;
2128 void *DeallocationStack
;
2129 } INITIAL_TEB
, *PINITIAL_TEB
;
2131 typedef enum _PORT_INFORMATION_CLASS
{
2133 } PORT_INFORMATION_CLASS
, *PPORT_INFORMATION_CLASS
;
2135 typedef enum _IO_COMPLETION_INFORMATION_CLASS
{
2136 IoCompletionBasicInformation
2137 } IO_COMPLETION_INFORMATION_CLASS
, *PIO_COMPLETION_INFORMATION_CLASS
;
2139 typedef struct _FILE_COMPLETION_INFORMATION
{
2140 HANDLE CompletionPort
;
2141 ULONG_PTR CompletionKey
;
2142 } FILE_COMPLETION_INFORMATION
, *PFILE_COMPLETION_INFORMATION
;
2144 #define IO_COMPLETION_QUERY_STATE 0x0001
2145 #define IO_COMPLETION_MODIFY_STATE 0x0002
2146 #define IO_COMPLETION_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED|SYNCHRONIZE|0x3)
2148 typedef struct _FILE_IO_COMPLETION_INFORMATION
{
2149 ULONG_PTR CompletionKey
;
2150 ULONG_PTR CompletionValue
;
2151 IO_STATUS_BLOCK IoStatusBlock
;
2152 } FILE_IO_COMPLETION_INFORMATION
, *PFILE_IO_COMPLETION_INFORMATION
;
2154 typedef enum _HARDERROR_RESPONSE_OPTION
{
2155 OptionAbortRetryIgnore
,
2161 OptionShutdownSystem
2162 } HARDERROR_RESPONSE_OPTION
, *PHARDERROR_RESPONSE_OPTION
;
2164 typedef enum _HARDERROR_RESPONSE
{
2165 ResponseReturnToCaller
,
2174 } HARDERROR_RESPONSE
, *PHARDERROR_RESPONSE
;
2176 typedef enum _SYSDBG_COMMAND
{
2177 SysDbgQueryModuleInformation
,
2178 SysDbgQueryTraceInformation
,
2179 SysDbgSetTracepoint
,
2180 SysDbgSetSpecialCall
,
2181 SysDbgClearSpecialCalls
,
2182 SysDbgQuerySpecialCalls
,
2188 SysDbgWritePhysical
,
2189 SysDbgReadControlSpace
,
2190 SysDbgWriteControlSpace
,
2197 } SYSDBG_COMMAND
, *PSYSDBG_COMMAND
;
2200 /*************************************************************************
2203 * Those are not part of standard Winternl.h
2205 typedef struct _LDR_MODULE
2207 LIST_ENTRY InLoadOrderModuleList
;
2208 LIST_ENTRY InMemoryOrderModuleList
;
2209 LIST_ENTRY InInitializationOrderModuleList
;
2213 UNICODE_STRING FullDllName
;
2214 UNICODE_STRING BaseDllName
;
2218 HANDLE SectionHandle
;
2220 ULONG TimeDateStamp
;
2221 HANDLE ActivationContext
;
2222 } LDR_MODULE
, *PLDR_MODULE
;
2224 typedef struct _LDR_DLL_LOADED_NOTIFICATION_DATA
2227 const UNICODE_STRING
*FullDllName
;
2228 const UNICODE_STRING
*BaseDllName
;
2231 } LDR_DLL_LOADED_NOTIFICATION_DATA
, *PLDR_DLL_LOADED_NOTIFICATION_DATA
;
2233 typedef struct _LDR_DLL_UNLOADED_NOTIFICATION_DATA
2236 const UNICODE_STRING
*FullDllName
;
2237 const UNICODE_STRING
*BaseDllName
;
2240 } LDR_DLL_UNLOADED_NOTIFICATION_DATA
, *PLDR_DLL_UNLOADED_NOTIFICATION_DATA
;
2242 typedef union _LDR_DLL_NOTIFICATION_DATA
2244 LDR_DLL_LOADED_NOTIFICATION_DATA Loaded
;
2245 LDR_DLL_UNLOADED_NOTIFICATION_DATA Unloaded
;
2246 } LDR_DLL_NOTIFICATION_DATA
, *PLDR_DLL_NOTIFICATION_DATA
;
2248 typedef void (CALLBACK
*PLDR_DLL_NOTIFICATION_FUNCTION
)(ULONG
, LDR_DLL_NOTIFICATION_DATA
*, void*);
2250 /* those defines are (some of the) regular LDR_MODULE.Flags values */
2251 #define LDR_IMAGE_IS_DLL 0x00000004
2252 #define LDR_LOAD_IN_PROGRESS 0x00001000
2253 #define LDR_UNLOAD_IN_PROGRESS 0x00002000
2254 #define LDR_NO_DLL_CALLS 0x00040000
2255 #define LDR_PROCESS_ATTACHED 0x00080000
2256 #define LDR_COR_IMAGE 0x00400000
2257 #define LDR_COR_ILONLY 0x01000000
2259 /* these ones is Wine specific */
2260 #define LDR_DONT_RESOLVE_REFS 0x40000000
2261 #define LDR_WINE_INTERNAL 0x80000000
2263 /* flag for LdrAddRefDll */
2264 #define LDR_ADDREF_DLL_PIN 0x00000001
2266 #define LDR_DLL_NOTIFICATION_REASON_LOADED 1
2267 #define LDR_DLL_NOTIFICATION_REASON_UNLOADED 2
2269 /* FIXME: to be checked */
2270 #define MAXIMUM_FILENAME_LENGTH 256
2272 typedef struct _SYSTEM_MODULE
2274 PVOID Reserved1
; /* 00/00 */
2275 PVOID Reserved2
; /* 04/08 */
2276 PVOID ImageBaseAddress
; /* 08/10 */
2277 ULONG ImageSize
; /* 0c/18 */
2278 ULONG Flags
; /* 10/1c */
2279 WORD Id
; /* 14/20 */
2280 WORD Rank
; /* 16/22 */
2281 WORD Unknown
; /* 18/24 */
2282 WORD NameOffset
; /* 1a/26 */
2283 BYTE Name
[MAXIMUM_FILENAME_LENGTH
]; /* 1c/28 */
2284 } SYSTEM_MODULE
, *PSYSTEM_MODULE
;
2286 typedef struct _SYSTEM_MODULE_INFORMATION
2289 SYSTEM_MODULE Modules
[1]; /* FIXME: should be Modules[0] */
2290 } SYSTEM_MODULE_INFORMATION
, *PSYSTEM_MODULE_INFORMATION
;
2292 #define THREAD_CREATE_FLAGS_CREATE_SUSPENDED 0x00000001
2293 #define THREAD_CREATE_FLAGS_SKIP_THREAD_ATTACH 0x00000002
2294 #define THREAD_CREATE_FLAGS_HIDE_FROM_DEBUGGER 0x00000004
2295 #define THREAD_CREATE_FLAGS_HAS_SECURITY_DESCRIPTOR 0x00000010
2296 #define THREAD_CREATE_FLAGS_ACCESS_CHECK_IN_TARGET 0x00000020
2297 #define THREAD_CREATE_FLAGS_INITIAL_THREAD 0x00000080
2299 typedef LONG (CALLBACK
*PRTL_EXCEPTION_FILTER
)(PEXCEPTION_POINTERS
);
2301 /***********************************************************************
2302 * Function declarations
2305 NTSYSAPI
void WINAPI
DbgBreakPoint(void);
2306 NTSYSAPI NTSTATUS WINAPIV
DbgPrint(LPCSTR fmt
, ...);
2307 NTSYSAPI NTSTATUS WINAPIV
DbgPrintEx(ULONG iComponentId
, ULONG Level
, LPCSTR fmt
, ...);
2308 NTSYSAPI NTSTATUS WINAPI
DbgUiIssueRemoteBreakin(HANDLE
);
2309 NTSYSAPI
void WINAPI
DbgUiRemoteBreakin(void*);
2310 NTSYSAPI
void WINAPI
DbgUserBreakPoint(void);
2311 NTSYSAPI NTSTATUS WINAPI
LdrAccessResource(HMODULE
,const IMAGE_RESOURCE_DATA_ENTRY
*,void**,PULONG
);
2312 NTSYSAPI NTSTATUS WINAPI
LdrAddRefDll(ULONG
,HMODULE
);
2313 NTSYSAPI NTSTATUS WINAPI
LdrFindResourceDirectory_U(HMODULE
,const LDR_RESOURCE_INFO
*,ULONG
,const IMAGE_RESOURCE_DIRECTORY
**);
2314 NTSYSAPI NTSTATUS WINAPI
LdrFindResource_U(HMODULE
,const LDR_RESOURCE_INFO
*,ULONG
,const IMAGE_RESOURCE_DATA_ENTRY
**);
2315 NTSYSAPI NTSTATUS WINAPI
LdrDisableThreadCalloutsForDll(HMODULE
);
2316 NTSYSAPI NTSTATUS WINAPI
LdrFindEntryForAddress(const void*, PLDR_MODULE
*);
2317 NTSYSAPI NTSTATUS WINAPI
LdrGetDllHandle(LPCWSTR
, ULONG
, const UNICODE_STRING
*, HMODULE
*);
2318 NTSYSAPI NTSTATUS WINAPI
LdrGetProcedureAddress(HMODULE
, const ANSI_STRING
*, ULONG
, void**);
2319 NTSYSAPI NTSTATUS WINAPI
LdrLoadDll(LPCWSTR
, DWORD
, const UNICODE_STRING
*, HMODULE
*);
2320 NTSYSAPI NTSTATUS WINAPI
LdrLockLoaderLock(ULONG
,ULONG
*,ULONG_PTR
*);
2321 IMAGE_BASE_RELOCATION
* WINAPI
LdrProcessRelocationBlock(void*,UINT
,USHORT
*,INT_PTR
);
2322 NTSYSAPI NTSTATUS WINAPI
LdrQueryImageFileExecutionOptions(const UNICODE_STRING
*,LPCWSTR
,ULONG
,void*,ULONG
,ULONG
*);
2323 NTSYSAPI NTSTATUS WINAPI
LdrQueryProcessModuleInformation(SYSTEM_MODULE_INFORMATION
*, ULONG
, ULONG
*);
2324 NTSYSAPI
void WINAPI
LdrShutdownProcess(void);
2325 NTSYSAPI
void WINAPI
LdrShutdownThread(void);
2326 NTSYSAPI NTSTATUS WINAPI
LdrUnloadDll(HMODULE
);
2327 NTSYSAPI NTSTATUS WINAPI
LdrUnlockLoaderLock(ULONG
,ULONG_PTR
);
2328 NTSYSAPI NTSTATUS WINAPI
NtAcceptConnectPort(PHANDLE
,ULONG
,PLPC_MESSAGE
,BOOLEAN
,PLPC_SECTION_WRITE
,PLPC_SECTION_READ
);
2329 NTSYSAPI NTSTATUS WINAPI
NtAccessCheck(PSECURITY_DESCRIPTOR
,HANDLE
,ACCESS_MASK
,PGENERIC_MAPPING
,PPRIVILEGE_SET
,PULONG
,PULONG
,NTSTATUS
*);
2330 NTSYSAPI NTSTATUS WINAPI
NtAccessCheckAndAuditAlarm(PUNICODE_STRING
,HANDLE
,PUNICODE_STRING
,PUNICODE_STRING
,PSECURITY_DESCRIPTOR
,ACCESS_MASK
,PGENERIC_MAPPING
,BOOLEAN
,PACCESS_MASK
,PBOOLEAN
,PBOOLEAN
);
2331 NTSYSAPI NTSTATUS WINAPI
NtAddAtom(const WCHAR
*,ULONG
,RTL_ATOM
*);
2332 NTSYSAPI NTSTATUS WINAPI
NtAdjustGroupsToken(HANDLE
,BOOLEAN
,PTOKEN_GROUPS
,ULONG
,PTOKEN_GROUPS
,PULONG
);
2333 NTSYSAPI NTSTATUS WINAPI
NtAdjustPrivilegesToken(HANDLE
,BOOLEAN
,PTOKEN_PRIVILEGES
,DWORD
,PTOKEN_PRIVILEGES
,PDWORD
);
2334 NTSYSAPI NTSTATUS WINAPI
NtAlertResumeThread(HANDLE
,PULONG
);
2335 NTSYSAPI NTSTATUS WINAPI
NtAlertThread(HANDLE ThreadHandle
);
2336 NTSYSAPI NTSTATUS WINAPI
NtAllocateLocallyUniqueId(PLUID lpLuid
);
2337 NTSYSAPI NTSTATUS WINAPI
NtAllocateUuids(PULARGE_INTEGER
,PULONG
,PULONG
,PUCHAR
);
2338 NTSYSAPI NTSTATUS WINAPI
NtAllocateVirtualMemory(HANDLE
,PVOID
*,ULONG_PTR
,SIZE_T
*,ULONG
,ULONG
);
2339 NTSYSAPI NTSTATUS WINAPI
NtAreMappedFilesTheSame(PVOID
,PVOID
);
2340 NTSYSAPI NTSTATUS WINAPI
NtAssignProcessToJobObject(HANDLE
,HANDLE
);
2341 NTSYSAPI NTSTATUS WINAPI
NtCallbackReturn(PVOID
,ULONG
,NTSTATUS
);
2342 NTSYSAPI NTSTATUS WINAPI
NtCancelIoFile(HANDLE
,PIO_STATUS_BLOCK
);
2343 NTSYSAPI NTSTATUS WINAPI
NtCancelIoFileEx(HANDLE
,PIO_STATUS_BLOCK
,PIO_STATUS_BLOCK
);
2344 NTSYSAPI NTSTATUS WINAPI
NtCancelTimer(HANDLE
, BOOLEAN
*);
2345 NTSYSAPI NTSTATUS WINAPI
NtClearEvent(HANDLE
);
2346 NTSYSAPI NTSTATUS WINAPI
NtClearPowerRequest(HANDLE
,POWER_REQUEST_TYPE
);
2347 NTSYSAPI NTSTATUS WINAPI
NtClose(HANDLE
);
2348 NTSYSAPI NTSTATUS WINAPI
NtCloseObjectAuditAlarm(PUNICODE_STRING
,HANDLE
,BOOLEAN
);
2349 NTSYSAPI NTSTATUS WINAPI
NtCompleteConnectPort(HANDLE
);
2350 NTSYSAPI NTSTATUS WINAPI
NtConnectPort(PHANDLE
,PUNICODE_STRING
,PSECURITY_QUALITY_OF_SERVICE
,PLPC_SECTION_WRITE
,PLPC_SECTION_READ
,PULONG
,PVOID
,PULONG
);
2351 NTSYSAPI NTSTATUS WINAPI
NtContinue(PCONTEXT
,BOOLEAN
);
2352 NTSYSAPI NTSTATUS WINAPI
NtCreateDirectoryObject(PHANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
);
2353 NTSYSAPI NTSTATUS WINAPI
NtCreateEvent(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,EVENT_TYPE
,BOOLEAN
);
2354 NTSYSAPI NTSTATUS WINAPI
NtCreateEventPair(PHANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
);
2355 NTSYSAPI NTSTATUS WINAPI
NtCreateFile(PHANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
,PIO_STATUS_BLOCK
,PLARGE_INTEGER
,ULONG
,ULONG
,ULONG
,ULONG
,PVOID
,ULONG
);
2356 NTSYSAPI NTSTATUS WINAPI
NtCreateIoCompletion(PHANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
,ULONG
);
2357 NTSYSAPI NTSTATUS WINAPI
NtCreateJobObject(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*);
2358 NTSYSAPI NTSTATUS WINAPI
NtCreateKey(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,ULONG
,const UNICODE_STRING
*,ULONG
,PULONG
);
2359 NTSYSAPI NTSTATUS WINAPI
NtCreateKeyTransacted(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,ULONG
,const UNICODE_STRING
*,ULONG
,HANDLE
,ULONG
*);
2360 NTSYSAPI NTSTATUS WINAPI
NtCreateKeyedEvent(HANDLE
*,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,ULONG
);
2361 NTSYSAPI NTSTATUS WINAPI
NtCreateMailslotFile(PHANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
,PIO_STATUS_BLOCK
,ULONG
,ULONG
,ULONG
,PLARGE_INTEGER
);
2362 NTSYSAPI NTSTATUS WINAPI
NtCreateMutant(HANDLE
*,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,BOOLEAN
);
2363 NTSYSAPI NTSTATUS WINAPI
NtCreateNamedPipeFile(PHANDLE
,ULONG
,POBJECT_ATTRIBUTES
,PIO_STATUS_BLOCK
,ULONG
,ULONG
,ULONG
,ULONG
,ULONG
,ULONG
,ULONG
,ULONG
,ULONG
,PLARGE_INTEGER
);
2364 NTSYSAPI NTSTATUS WINAPI
NtCreatePagingFile(PUNICODE_STRING
,PLARGE_INTEGER
,PLARGE_INTEGER
,PLARGE_INTEGER
);
2365 NTSYSAPI NTSTATUS WINAPI
NtCreatePort(PHANDLE
,POBJECT_ATTRIBUTES
,ULONG
,ULONG
,PULONG
);
2366 NTSYSAPI NTSTATUS WINAPI
NtCreatePowerRequest(HANDLE
*,COUNTED_REASON_CONTEXT
*);
2367 NTSYSAPI NTSTATUS WINAPI
NtCreateProcess(PHANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
,HANDLE
,BOOLEAN
,HANDLE
,HANDLE
,HANDLE
);
2368 NTSYSAPI NTSTATUS WINAPI
NtCreateProfile(PHANDLE
,HANDLE
,PVOID
,ULONG
,ULONG
,PVOID
,ULONG
,KPROFILE_SOURCE
,KAFFINITY
);
2369 NTSYSAPI NTSTATUS WINAPI
NtCreateSection(HANDLE
*,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,const LARGE_INTEGER
*,ULONG
,ULONG
,HANDLE
);
2370 NTSYSAPI NTSTATUS WINAPI
NtCreateSemaphore(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,LONG
,LONG
);
2371 NTSYSAPI NTSTATUS WINAPI
NtCreateSymbolicLinkObject(PHANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
,PUNICODE_STRING
);
2372 NTSYSAPI NTSTATUS WINAPI
NtCreateThread(PHANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
,HANDLE
,PCLIENT_ID
,PCONTEXT
,PINITIAL_TEB
,BOOLEAN
);
2373 NTSYSAPI NTSTATUS WINAPI
NtCreateTimer(HANDLE
*, ACCESS_MASK
, const OBJECT_ATTRIBUTES
*, TIMER_TYPE
);
2374 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
);
2375 NTSYSAPI NTSTATUS WINAPI
NtDelayExecution(BOOLEAN
,const LARGE_INTEGER
*);
2376 NTSYSAPI NTSTATUS WINAPI
NtDeleteAtom(RTL_ATOM
);
2377 NTSYSAPI NTSTATUS WINAPI
NtDeleteFile(POBJECT_ATTRIBUTES
);
2378 NTSYSAPI NTSTATUS WINAPI
NtDeleteKey(HANDLE
);
2379 NTSYSAPI NTSTATUS WINAPI
NtDeleteValueKey(HANDLE
,const UNICODE_STRING
*);
2380 NTSYSAPI NTSTATUS WINAPI
NtDeviceIoControlFile(HANDLE
,HANDLE
,PIO_APC_ROUTINE
,PVOID
,PIO_STATUS_BLOCK
,ULONG
,PVOID
,ULONG
,PVOID
,ULONG
);
2381 NTSYSAPI NTSTATUS WINAPI
NtDisplayString(PUNICODE_STRING
);
2382 NTSYSAPI NTSTATUS WINAPI
NtDuplicateObject(HANDLE
,HANDLE
,HANDLE
,PHANDLE
,ACCESS_MASK
,ULONG
,ULONG
);
2383 NTSYSAPI NTSTATUS WINAPI
NtDuplicateToken(HANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
,SECURITY_IMPERSONATION_LEVEL
,TOKEN_TYPE
,PHANDLE
);
2384 NTSYSAPI NTSTATUS WINAPI
NtEnumerateKey(HANDLE
,ULONG
,KEY_INFORMATION_CLASS
,void *,DWORD
,DWORD
*);
2385 NTSYSAPI NTSTATUS WINAPI
NtEnumerateValueKey(HANDLE
,ULONG
,KEY_VALUE_INFORMATION_CLASS
,PVOID
,ULONG
,PULONG
);
2386 NTSYSAPI NTSTATUS WINAPI
NtExtendSection(HANDLE
,PLARGE_INTEGER
);
2387 NTSYSAPI NTSTATUS WINAPI
NtFindAtom(const WCHAR
*,ULONG
,RTL_ATOM
*);
2388 NTSYSAPI NTSTATUS WINAPI
NtFlushBuffersFile(HANDLE
,IO_STATUS_BLOCK
*);
2389 NTSYSAPI NTSTATUS WINAPI
NtFlushInstructionCache(HANDLE
,LPCVOID
,SIZE_T
);
2390 NTSYSAPI NTSTATUS WINAPI
NtFlushKey(HANDLE
);
2391 NTSYSAPI NTSTATUS WINAPI
NtFlushVirtualMemory(HANDLE
,LPCVOID
*,SIZE_T
*,ULONG
);
2392 NTSYSAPI NTSTATUS WINAPI
NtFlushWriteBuffer(VOID
);
2393 NTSYSAPI NTSTATUS WINAPI
NtFreeVirtualMemory(HANDLE
,PVOID
*,SIZE_T
*,ULONG
);
2394 NTSYSAPI NTSTATUS WINAPI
NtFsControlFile(HANDLE
,HANDLE
,PIO_APC_ROUTINE
,PVOID
,PIO_STATUS_BLOCK
,ULONG
,PVOID
,ULONG
,PVOID
,ULONG
);
2395 NTSYSAPI NTSTATUS WINAPI
NtGetContextThread(HANDLE
,CONTEXT
*);
2396 NTSYSAPI ULONG WINAPI
NtGetCurrentProcessorNumber(void);
2397 NTSYSAPI NTSTATUS WINAPI
NtGetPlugPlayEvent(ULONG
,ULONG
,PVOID
,ULONG
);
2398 NTSYSAPI ULONG WINAPI
NtGetTickCount(VOID
);
2399 NTSYSAPI NTSTATUS WINAPI
NtGetWriteWatch(HANDLE
,ULONG
,PVOID
,SIZE_T
,PVOID
*,ULONG_PTR
*,ULONG
*);
2400 NTSYSAPI NTSTATUS WINAPI
NtImpersonateAnonymousToken(HANDLE
);
2401 NTSYSAPI NTSTATUS WINAPI
NtImpersonateClientOfPort(HANDLE
,PPORT_MESSAGE
);
2402 NTSYSAPI NTSTATUS WINAPI
NtImpersonateThread(HANDLE
,HANDLE
,PSECURITY_QUALITY_OF_SERVICE
);
2403 NTSYSAPI NTSTATUS WINAPI
NtInitializeRegistry(BOOLEAN
);
2404 NTSYSAPI NTSTATUS WINAPI
NtInitiatePowerAction(POWER_ACTION
,SYSTEM_POWER_STATE
,ULONG
,BOOLEAN
);
2405 NTSYSAPI NTSTATUS WINAPI
NtIsProcessInJob(HANDLE
,HANDLE
);
2406 NTSYSAPI NTSTATUS WINAPI
NtListenPort(HANDLE
,PLPC_MESSAGE
);
2407 NTSYSAPI NTSTATUS WINAPI
NtLoadDriver(const UNICODE_STRING
*);
2408 NTSYSAPI NTSTATUS WINAPI
NtLoadKey(const OBJECT_ATTRIBUTES
*,OBJECT_ATTRIBUTES
*);
2409 NTSYSAPI NTSTATUS WINAPI
NtLockFile(HANDLE
,HANDLE
,PIO_APC_ROUTINE
,void*,PIO_STATUS_BLOCK
,PLARGE_INTEGER
,PLARGE_INTEGER
,ULONG
*,BOOLEAN
,BOOLEAN
);
2410 NTSYSAPI NTSTATUS WINAPI
NtLockVirtualMemory(HANDLE
,PVOID
*,SIZE_T
*,ULONG
);
2411 NTSYSAPI NTSTATUS WINAPI
NtMakeTemporaryObject(HANDLE
);
2412 NTSYSAPI NTSTATUS WINAPI
NtMapViewOfSection(HANDLE
,HANDLE
,PVOID
*,ULONG_PTR
,SIZE_T
,const LARGE_INTEGER
*,SIZE_T
*,SECTION_INHERIT
,ULONG
,ULONG
);
2413 NTSYSAPI NTSTATUS WINAPI
NtNotifyChangeDirectoryFile(HANDLE
,HANDLE
,PIO_APC_ROUTINE
,PVOID
,PIO_STATUS_BLOCK
,PVOID
,ULONG
,ULONG
,BOOLEAN
);
2414 NTSYSAPI NTSTATUS WINAPI
NtNotifyChangeKey(HANDLE
,HANDLE
,PIO_APC_ROUTINE
,PVOID
,PIO_STATUS_BLOCK
,ULONG
,BOOLEAN
,PVOID
,ULONG
,BOOLEAN
);
2415 NTSYSAPI NTSTATUS WINAPI
NtNotifyChangeMultipleKeys(HANDLE
,ULONG
,OBJECT_ATTRIBUTES
*,HANDLE
,PIO_APC_ROUTINE
,PVOID
,PIO_STATUS_BLOCK
,ULONG
,BOOLEAN
,PVOID
,ULONG
,BOOLEAN
);
2416 NTSYSAPI NTSTATUS WINAPI
NtOpenDirectoryObject(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*);
2417 NTSYSAPI NTSTATUS WINAPI
NtOpenEvent(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*);
2418 NTSYSAPI NTSTATUS WINAPI
NtOpenEventPair(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*);
2419 NTSYSAPI NTSTATUS WINAPI
NtOpenFile(PHANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
,PIO_STATUS_BLOCK
,ULONG
,ULONG
);
2420 NTSYSAPI NTSTATUS WINAPI
NtOpenIoCompletion(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*);
2421 NTSYSAPI NTSTATUS WINAPI
NtOpenJobObject(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*);
2422 NTSYSAPI NTSTATUS WINAPI
NtOpenKey(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*);
2423 NTSYSAPI NTSTATUS WINAPI
NtOpenKeyEx(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,ULONG
);
2424 NTSYSAPI NTSTATUS WINAPI
NtOpenKeyTransacted(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,HANDLE
);
2425 NTSYSAPI NTSTATUS WINAPI
NtOpenKeyTransactedEx(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,ULONG
,HANDLE
);
2426 NTSYSAPI NTSTATUS WINAPI
NtOpenKeyedEvent(HANDLE
*,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*);
2427 NTSYSAPI NTSTATUS WINAPI
NtOpenMutant(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*);
2428 NTSYSAPI NTSTATUS WINAPI
NtOpenObjectAuditAlarm(PUNICODE_STRING
,PHANDLE
,PUNICODE_STRING
,PUNICODE_STRING
,PSECURITY_DESCRIPTOR
,HANDLE
,ACCESS_MASK
,ACCESS_MASK
,PPRIVILEGE_SET
,BOOLEAN
,BOOLEAN
,PBOOLEAN
);
2429 NTSYSAPI NTSTATUS WINAPI
NtOpenProcess(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,const CLIENT_ID
*);
2430 NTSYSAPI NTSTATUS WINAPI
NtOpenProcessToken(HANDLE
,DWORD
,HANDLE
*);
2431 NTSYSAPI NTSTATUS WINAPI
NtOpenProcessTokenEx(HANDLE
,DWORD
,DWORD
,HANDLE
*);
2432 NTSYSAPI NTSTATUS WINAPI
NtOpenSection(HANDLE
*,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*);
2433 NTSYSAPI NTSTATUS WINAPI
NtOpenSemaphore(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*);
2434 NTSYSAPI NTSTATUS WINAPI
NtOpenSymbolicLinkObject(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*);
2435 NTSYSAPI NTSTATUS WINAPI
NtOpenThread(HANDLE
*,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,const CLIENT_ID
*);
2436 NTSYSAPI NTSTATUS WINAPI
NtOpenThreadToken(HANDLE
,DWORD
,BOOLEAN
,HANDLE
*);
2437 NTSYSAPI NTSTATUS WINAPI
NtOpenThreadTokenEx(HANDLE
,DWORD
,BOOLEAN
,DWORD
,HANDLE
*);
2438 NTSYSAPI NTSTATUS WINAPI
NtOpenTimer(HANDLE
*, ACCESS_MASK
, const OBJECT_ATTRIBUTES
*);
2439 NTSYSAPI NTSTATUS WINAPI
NtPowerInformation(POWER_INFORMATION_LEVEL
,PVOID
,ULONG
,PVOID
,ULONG
);
2440 NTSYSAPI NTSTATUS WINAPI
NtPrivilegeCheck(HANDLE
,PPRIVILEGE_SET
,PBOOLEAN
);
2441 NTSYSAPI NTSTATUS WINAPI
NtPrivilegeObjectAuditAlarm(PUNICODE_STRING
,HANDLE
,HANDLE
,ULONG
,PPRIVILEGE_SET
,BOOLEAN
);
2442 NTSYSAPI NTSTATUS WINAPI
NtPrivilegedServiceAuditAlarm(PUNICODE_STRING
,PUNICODE_STRING
,HANDLE
,PPRIVILEGE_SET
,BOOLEAN
);
2443 NTSYSAPI NTSTATUS WINAPI
NtProtectVirtualMemory(HANDLE
,PVOID
*,SIZE_T
*,ULONG
,ULONG
*);
2444 NTSYSAPI NTSTATUS WINAPI
NtPulseEvent(HANDLE
,LONG
*);
2445 NTSYSAPI NTSTATUS WINAPI
NtQueueApcThread(HANDLE
,PNTAPCFUNC
,ULONG_PTR
,ULONG_PTR
,ULONG_PTR
);
2446 NTSYSAPI NTSTATUS WINAPI
NtQueryAttributesFile(const OBJECT_ATTRIBUTES
*,FILE_BASIC_INFORMATION
*);
2447 NTSYSAPI NTSTATUS WINAPI
NtQueryDefaultLocale(BOOLEAN
,LCID
*);
2448 NTSYSAPI NTSTATUS WINAPI
NtQueryDefaultUILanguage(LANGID
*);
2449 NTSYSAPI NTSTATUS WINAPI
NtQueryDirectoryFile(HANDLE
,HANDLE
,PIO_APC_ROUTINE
,PVOID
,PIO_STATUS_BLOCK
,PVOID
,ULONG
,FILE_INFORMATION_CLASS
,BOOLEAN
,PUNICODE_STRING
,BOOLEAN
);
2450 NTSYSAPI NTSTATUS WINAPI
NtQueryDirectoryObject(HANDLE
,PDIRECTORY_BASIC_INFORMATION
,ULONG
,BOOLEAN
,BOOLEAN
,PULONG
,PULONG
);
2451 NTSYSAPI NTSTATUS WINAPI
NtQueryEaFile(HANDLE
,PIO_STATUS_BLOCK
,PVOID
,ULONG
,BOOLEAN
,PVOID
,ULONG
,PULONG
,BOOLEAN
);
2452 NTSYSAPI NTSTATUS WINAPI
NtQueryEvent(HANDLE
,EVENT_INFORMATION_CLASS
,PVOID
,ULONG
,PULONG
);
2453 NTSYSAPI NTSTATUS WINAPI
NtQueryFullAttributesFile(const OBJECT_ATTRIBUTES
*,FILE_NETWORK_OPEN_INFORMATION
*);
2454 NTSYSAPI NTSTATUS WINAPI
NtQueryInformationAtom(RTL_ATOM
,ATOM_INFORMATION_CLASS
,PVOID
,ULONG
,ULONG
*);
2455 NTSYSAPI NTSTATUS WINAPI
NtQueryInformationFile(HANDLE
,PIO_STATUS_BLOCK
,PVOID
,LONG
,FILE_INFORMATION_CLASS
);
2456 NTSYSAPI NTSTATUS WINAPI
NtQueryInformationJobObject(HANDLE
,JOBOBJECTINFOCLASS
,PVOID
,ULONG
,PULONG
);
2457 NTSYSAPI NTSTATUS WINAPI
NtQueryInformationPort(HANDLE
,PORT_INFORMATION_CLASS
,PVOID
,ULONG
,PULONG
);
2458 NTSYSAPI NTSTATUS WINAPI
NtQueryInformationProcess(HANDLE
,PROCESSINFOCLASS
,PVOID
,ULONG
,PULONG
);
2459 NTSYSAPI NTSTATUS WINAPI
NtQueryInformationThread(HANDLE
,THREADINFOCLASS
,PVOID
,ULONG
,PULONG
);
2460 NTSYSAPI NTSTATUS WINAPI
NtQueryInformationToken(HANDLE
,TOKEN_INFORMATION_CLASS
,PVOID
,ULONG
,PULONG
);
2461 NTSYSAPI NTSTATUS WINAPI
NtQueryInstallUILanguage(LANGID
*);
2462 NTSYSAPI NTSTATUS WINAPI
NtQueryIntervalProfile(KPROFILE_SOURCE
,PULONG
);
2463 NTSYSAPI NTSTATUS WINAPI
NtQueryIoCompletion(HANDLE
,IO_COMPLETION_INFORMATION_CLASS
,PVOID
,ULONG
,PULONG
);
2464 NTSYSAPI NTSTATUS WINAPI
NtQueryKey(HANDLE
,KEY_INFORMATION_CLASS
,void *,DWORD
,DWORD
*);
2465 NTSYSAPI NTSTATUS WINAPI
NtQueryMultipleValueKey(HANDLE
,PKEY_MULTIPLE_VALUE_INFORMATION
,ULONG
,PVOID
,ULONG
,PULONG
);
2466 NTSYSAPI NTSTATUS WINAPI
NtQueryMutant(HANDLE
,MUTANT_INFORMATION_CLASS
,PVOID
,ULONG
,PULONG
);
2467 NTSYSAPI NTSTATUS WINAPI
NtQueryObject(HANDLE
, OBJECT_INFORMATION_CLASS
, PVOID
, ULONG
, PULONG
);
2468 NTSYSAPI NTSTATUS WINAPI
NtQueryOpenSubKeys(POBJECT_ATTRIBUTES
,PULONG
);
2469 NTSYSAPI NTSTATUS WINAPI
NtQueryPerformanceCounter(PLARGE_INTEGER
, PLARGE_INTEGER
);
2470 NTSYSAPI NTSTATUS WINAPI
NtQuerySecurityObject(HANDLE
,SECURITY_INFORMATION
,PSECURITY_DESCRIPTOR
,ULONG
,PULONG
);
2471 NTSYSAPI NTSTATUS WINAPI
NtQuerySection(HANDLE
,SECTION_INFORMATION_CLASS
,PVOID
,SIZE_T
,SIZE_T
*);
2472 NTSYSAPI NTSTATUS WINAPI
NtQuerySemaphore(HANDLE
,SEMAPHORE_INFORMATION_CLASS
,PVOID
,ULONG
,PULONG
);
2473 NTSYSAPI NTSTATUS WINAPI
NtQuerySymbolicLinkObject(HANDLE
,PUNICODE_STRING
,PULONG
);
2474 NTSYSAPI NTSTATUS WINAPI
NtQuerySystemEnvironmentValue(PUNICODE_STRING
,PWCHAR
,ULONG
,PULONG
);
2475 NTSYSAPI NTSTATUS WINAPI
NtQuerySystemInformation(SYSTEM_INFORMATION_CLASS
,PVOID
,ULONG
,PULONG
);
2476 NTSYSAPI NTSTATUS WINAPI
NtQuerySystemInformationEx(SYSTEM_INFORMATION_CLASS
,void*,ULONG
,void*,ULONG
,ULONG
*);
2477 NTSYSAPI NTSTATUS WINAPI
NtQuerySystemTime(PLARGE_INTEGER
);
2478 NTSYSAPI NTSTATUS WINAPI
NtQueryTimer(HANDLE
,TIMER_INFORMATION_CLASS
,PVOID
,ULONG
,PULONG
);
2479 NTSYSAPI NTSTATUS WINAPI
NtQueryTimerResolution(PULONG
,PULONG
,PULONG
);
2480 NTSYSAPI NTSTATUS WINAPI
NtQueryValueKey(HANDLE
,const UNICODE_STRING
*,KEY_VALUE_INFORMATION_CLASS
,void *,DWORD
,DWORD
*);
2481 NTSYSAPI NTSTATUS WINAPI
NtQueryLicenseValue(const UNICODE_STRING
*,ULONG
*,PVOID
,ULONG
,ULONG
*);
2482 NTSYSAPI NTSTATUS WINAPI
NtQueryVirtualMemory(HANDLE
,LPCVOID
,MEMORY_INFORMATION_CLASS
,PVOID
,SIZE_T
,SIZE_T
*);
2483 NTSYSAPI NTSTATUS WINAPI
NtQueryVolumeInformationFile(HANDLE
,PIO_STATUS_BLOCK
,PVOID
,ULONG
,FS_INFORMATION_CLASS
);
2484 NTSYSAPI NTSTATUS WINAPI
NtRaiseException(PEXCEPTION_RECORD
,PCONTEXT
,BOOL
);
2485 NTSYSAPI NTSTATUS WINAPI
NtRaiseHardError(NTSTATUS
,ULONG
,PUNICODE_STRING
,PVOID
*,HARDERROR_RESPONSE_OPTION
,PHARDERROR_RESPONSE
);
2486 NTSYSAPI NTSTATUS WINAPI
NtReadFile(HANDLE
,HANDLE
,PIO_APC_ROUTINE
,PVOID
,PIO_STATUS_BLOCK
,PVOID
,ULONG
,PLARGE_INTEGER
,PULONG
);
2487 NTSYSAPI NTSTATUS WINAPI
NtReadFileScatter(HANDLE
,HANDLE
,PIO_APC_ROUTINE
,PVOID
,PIO_STATUS_BLOCK
,FILE_SEGMENT_ELEMENT
*,ULONG
,PLARGE_INTEGER
,PULONG
);
2488 NTSYSAPI NTSTATUS WINAPI
NtReadRequestData(HANDLE
,PLPC_MESSAGE
,ULONG
,PVOID
,ULONG
,PULONG
);
2489 NTSYSAPI NTSTATUS WINAPI
NtReadVirtualMemory(HANDLE
,const void*,void*,SIZE_T
,SIZE_T
*);
2490 NTSYSAPI NTSTATUS WINAPI
NtRegisterThreadTerminatePort(HANDLE
);
2491 NTSYSAPI NTSTATUS WINAPI
NtReleaseKeyedEvent(HANDLE
,const void*,BOOLEAN
,const LARGE_INTEGER
*);
2492 NTSYSAPI NTSTATUS WINAPI
NtReleaseMutant(HANDLE
,PLONG
);
2493 NTSYSAPI NTSTATUS WINAPI
NtReleaseSemaphore(HANDLE
,ULONG
,PULONG
);
2494 NTSYSAPI NTSTATUS WINAPI
NtRemoveIoCompletion(HANDLE
,PULONG_PTR
,PULONG_PTR
,PIO_STATUS_BLOCK
,PLARGE_INTEGER
);
2495 NTSYSAPI NTSTATUS WINAPI
NtRemoveIoCompletionEx(HANDLE
,FILE_IO_COMPLETION_INFORMATION
*,ULONG
,ULONG
*,LARGE_INTEGER
*,BOOLEAN
);
2496 NTSYSAPI NTSTATUS WINAPI
NtRenameKey(HANDLE
,UNICODE_STRING
*);
2497 NTSYSAPI NTSTATUS WINAPI
NtReplaceKey(POBJECT_ATTRIBUTES
,HANDLE
,POBJECT_ATTRIBUTES
);
2498 NTSYSAPI NTSTATUS WINAPI
NtReplyPort(HANDLE
,PLPC_MESSAGE
);
2499 NTSYSAPI NTSTATUS WINAPI
NtReplyWaitReceivePort(HANDLE
,PULONG
,PLPC_MESSAGE
,PLPC_MESSAGE
);
2500 NTSYSAPI NTSTATUS WINAPI
NtReplyWaitReceivePortEx(HANDLE
,PVOID
*,PPORT_MESSAGE
,PPORT_MESSAGE
,PLARGE_INTEGER
);
2501 NTSYSAPI NTSTATUS WINAPI
NtReplyWaitReplyPort(HANDLE
,PLPC_MESSAGE
);
2502 NTSYSAPI NTSTATUS WINAPI
NtRequestPort(HANDLE
,PLPC_MESSAGE
);
2503 NTSYSAPI NTSTATUS WINAPI
NtRequestWaitReplyPort(HANDLE
,PLPC_MESSAGE
,PLPC_MESSAGE
);
2504 NTSYSAPI NTSTATUS WINAPI
NtResetEvent(HANDLE
,LONG
*);
2505 NTSYSAPI NTSTATUS WINAPI
NtResetWriteWatch(HANDLE
,PVOID
,SIZE_T
);
2506 NTSYSAPI NTSTATUS WINAPI
NtRestoreKey(HANDLE
,HANDLE
,ULONG
);
2507 NTSYSAPI NTSTATUS WINAPI
NtResumeThread(HANDLE
,PULONG
);
2508 NTSYSAPI NTSTATUS WINAPI
NtSaveKey(HANDLE
,HANDLE
);
2509 NTSYSAPI NTSTATUS WINAPI
NtSecureConnectPort(PHANDLE
,PUNICODE_STRING
,PSECURITY_QUALITY_OF_SERVICE
,PLPC_SECTION_WRITE
,PSID
,PLPC_SECTION_READ
,PULONG
,PVOID
,PULONG
);
2510 NTSYSAPI NTSTATUS WINAPI
NtSetContextThread(HANDLE
,const CONTEXT
*);
2511 NTSYSAPI NTSTATUS WINAPI
NtSetDefaultHardErrorPort(HANDLE
);
2512 NTSYSAPI NTSTATUS WINAPI
NtSetDefaultLocale(BOOLEAN
,LCID
);
2513 NTSYSAPI NTSTATUS WINAPI
NtSetDefaultUILanguage(LANGID
);
2514 NTSYSAPI NTSTATUS WINAPI
NtSetEaFile(HANDLE
,PIO_STATUS_BLOCK
,PVOID
,ULONG
);
2515 NTSYSAPI NTSTATUS WINAPI
NtSetEvent(HANDLE
,LONG
*);
2516 NTSYSAPI NTSTATUS WINAPI
NtSetHighEventPair(HANDLE
);
2517 NTSYSAPI NTSTATUS WINAPI
NtSetHighWaitLowEventPair(HANDLE
);
2518 NTSYSAPI NTSTATUS WINAPI
NtSetHighWaitLowThread(VOID
);
2519 NTSYSAPI NTSTATUS WINAPI
NtSetInformationFile(HANDLE
,PIO_STATUS_BLOCK
,PVOID
,ULONG
,FILE_INFORMATION_CLASS
);
2520 NTSYSAPI NTSTATUS WINAPI
NtSetInformationJobObject(HANDLE
,JOBOBJECTINFOCLASS
,PVOID
,ULONG
);
2521 NTSYSAPI NTSTATUS WINAPI
NtSetInformationKey(HANDLE
,const int,PVOID
,ULONG
);
2522 NTSYSAPI NTSTATUS WINAPI
NtSetInformationObject(HANDLE
, OBJECT_INFORMATION_CLASS
, PVOID
, ULONG
);
2523 NTSYSAPI NTSTATUS WINAPI
NtSetInformationProcess(HANDLE
,PROCESS_INFORMATION_CLASS
,PVOID
,ULONG
);
2524 NTSYSAPI NTSTATUS WINAPI
NtSetInformationThread(HANDLE
,THREADINFOCLASS
,LPCVOID
,ULONG
);
2525 NTSYSAPI NTSTATUS WINAPI
NtSetInformationToken(HANDLE
,TOKEN_INFORMATION_CLASS
,PVOID
,ULONG
);
2526 NTSYSAPI NTSTATUS WINAPI
NtSetIntervalProfile(ULONG
,KPROFILE_SOURCE
);
2527 NTSYSAPI NTSTATUS WINAPI
NtSetIoCompletion(HANDLE
,ULONG_PTR
,ULONG_PTR
,NTSTATUS
,SIZE_T
);
2528 NTSYSAPI NTSTATUS WINAPI
NtSetLdtEntries(ULONG
,ULONG
,ULONG
,ULONG
,ULONG
,ULONG
);
2529 NTSYSAPI NTSTATUS WINAPI
NtSetLowEventPair(HANDLE
);
2530 NTSYSAPI NTSTATUS WINAPI
NtSetLowWaitHighEventPair(HANDLE
);
2531 NTSYSAPI NTSTATUS WINAPI
NtSetLowWaitHighThread(VOID
);
2532 NTSYSAPI NTSTATUS WINAPI
NtSetPowerRequest(HANDLE
,POWER_REQUEST_TYPE
);
2533 NTSYSAPI NTSTATUS WINAPI
NtSetSecurityObject(HANDLE
,SECURITY_INFORMATION
,PSECURITY_DESCRIPTOR
);
2534 NTSYSAPI NTSTATUS WINAPI
NtSetSystemEnvironmentValue(PUNICODE_STRING
,PUNICODE_STRING
);
2535 NTSYSAPI NTSTATUS WINAPI
NtSetSystemInformation(SYSTEM_INFORMATION_CLASS
,PVOID
,ULONG
);
2536 NTSYSAPI NTSTATUS WINAPI
NtSetSystemPowerState(POWER_ACTION
,SYSTEM_POWER_STATE
,ULONG
);
2537 NTSYSAPI NTSTATUS WINAPI
NtSetSystemTime(const LARGE_INTEGER
*,LARGE_INTEGER
*);
2538 NTSYSAPI NTSTATUS WINAPI
NtSetThreadExecutionState(EXECUTION_STATE
,EXECUTION_STATE
*);
2539 NTSYSAPI NTSTATUS WINAPI
NtSetTimer(HANDLE
, const LARGE_INTEGER
*, PTIMER_APC_ROUTINE
, PVOID
, BOOLEAN
, ULONG
, BOOLEAN
*);
2540 NTSYSAPI NTSTATUS WINAPI
NtSetTimerResolution(ULONG
,BOOLEAN
,PULONG
);
2541 NTSYSAPI NTSTATUS WINAPI
NtSetValueKey(HANDLE
,const UNICODE_STRING
*,ULONG
,ULONG
,const void *,ULONG
);
2542 NTSYSAPI NTSTATUS WINAPI
NtSetVolumeInformationFile(HANDLE
,PIO_STATUS_BLOCK
,PVOID
,ULONG
,FS_INFORMATION_CLASS
);
2543 NTSYSAPI NTSTATUS WINAPI
NtSignalAndWaitForSingleObject(HANDLE
,HANDLE
,BOOLEAN
,const LARGE_INTEGER
*);
2544 NTSYSAPI NTSTATUS WINAPI
NtShutdownSystem(SHUTDOWN_ACTION
);
2545 NTSYSAPI NTSTATUS WINAPI
NtStartProfile(HANDLE
);
2546 NTSYSAPI NTSTATUS WINAPI
NtStopProfile(HANDLE
);
2547 NTSYSAPI NTSTATUS WINAPI
NtSuspendThread(HANDLE
,PULONG
);
2548 NTSYSAPI NTSTATUS WINAPI
NtSystemDebugControl(SYSDBG_COMMAND
,PVOID
,ULONG
,PVOID
,ULONG
,PULONG
);
2549 NTSYSAPI NTSTATUS WINAPI
NtTerminateJobObject(HANDLE
,NTSTATUS
);
2550 NTSYSAPI NTSTATUS WINAPI
NtTerminateProcess(HANDLE
,LONG
);
2551 NTSYSAPI NTSTATUS WINAPI
NtTerminateThread(HANDLE
,LONG
);
2552 NTSYSAPI NTSTATUS WINAPI
NtTestAlert(VOID
);
2553 NTSYSAPI NTSTATUS WINAPI
NtUnloadDriver(const UNICODE_STRING
*);
2554 NTSYSAPI NTSTATUS WINAPI
NtUnloadKey(POBJECT_ATTRIBUTES
);
2555 NTSYSAPI NTSTATUS WINAPI
NtUnloadKeyEx(POBJECT_ATTRIBUTES
,HANDLE
);
2556 NTSYSAPI NTSTATUS WINAPI
NtUnlockFile(HANDLE
,PIO_STATUS_BLOCK
,PLARGE_INTEGER
,PLARGE_INTEGER
,PULONG
);
2557 NTSYSAPI NTSTATUS WINAPI
NtUnlockVirtualMemory(HANDLE
,PVOID
*,SIZE_T
*,ULONG
);
2558 NTSYSAPI NTSTATUS WINAPI
NtUnmapViewOfSection(HANDLE
,PVOID
);
2559 NTSYSAPI NTSTATUS WINAPI
NtVdmControl(ULONG
,PVOID
);
2560 NTSYSAPI NTSTATUS WINAPI
NtWaitForKeyedEvent(HANDLE
,const void*,BOOLEAN
,const LARGE_INTEGER
*);
2561 NTSYSAPI NTSTATUS WINAPI
NtWaitForSingleObject(HANDLE
,BOOLEAN
,const LARGE_INTEGER
*);
2562 NTSYSAPI NTSTATUS WINAPI
NtWaitForMultipleObjects(ULONG
,const HANDLE
*,BOOLEAN
,BOOLEAN
,const LARGE_INTEGER
*);
2563 NTSYSAPI NTSTATUS WINAPI
NtWaitHighEventPair(HANDLE
);
2564 NTSYSAPI NTSTATUS WINAPI
NtWaitLowEventPair(HANDLE
);
2565 NTSYSAPI NTSTATUS WINAPI
NtWriteFile(HANDLE
,HANDLE
,PIO_APC_ROUTINE
,PVOID
,PIO_STATUS_BLOCK
,const void*,ULONG
,PLARGE_INTEGER
,PULONG
);
2566 NTSYSAPI NTSTATUS WINAPI
NtWriteFileGather(HANDLE
,HANDLE
,PIO_APC_ROUTINE
,PVOID
,PIO_STATUS_BLOCK
,FILE_SEGMENT_ELEMENT
*,ULONG
,PLARGE_INTEGER
,PULONG
);
2567 NTSYSAPI NTSTATUS WINAPI
NtWriteRequestData(HANDLE
,PLPC_MESSAGE
,ULONG
,PVOID
,ULONG
,PULONG
);
2568 NTSYSAPI NTSTATUS WINAPI
NtWriteVirtualMemory(HANDLE
,void*,const void*,SIZE_T
,SIZE_T
*);
2569 NTSYSAPI NTSTATUS WINAPI
NtYieldExecution(void);
2571 NTSYSAPI
void WINAPI
RtlAcquirePebLock(void);
2572 NTSYSAPI BYTE WINAPI
RtlAcquireResourceExclusive(LPRTL_RWLOCK
,BYTE
);
2573 NTSYSAPI BYTE WINAPI
RtlAcquireResourceShared(LPRTL_RWLOCK
,BYTE
);
2574 NTSYSAPI
void WINAPI
RtlAcquireSRWLockExclusive(RTL_SRWLOCK
*);
2575 NTSYSAPI
void WINAPI
RtlAcquireSRWLockShared(RTL_SRWLOCK
*);
2576 NTSYSAPI NTSTATUS WINAPI
RtlActivateActivationContext(DWORD
,HANDLE
,ULONG_PTR
*);
2577 NTSYSAPI NTSTATUS WINAPI
RtlAddAce(PACL
,DWORD
,DWORD
,PACE_HEADER
,DWORD
);
2578 NTSYSAPI NTSTATUS WINAPI
RtlAddAccessAllowedAce(PACL
,DWORD
,DWORD
,PSID
);
2579 NTSYSAPI NTSTATUS WINAPI
RtlAddAccessAllowedAceEx(PACL
,DWORD
,DWORD
,DWORD
,PSID
);
2580 NTSYSAPI NTSTATUS WINAPI
RtlAddAccessAllowedObjectAce(PACL
,DWORD
,DWORD
,DWORD
,GUID
*,GUID
*,PSID
);
2581 NTSYSAPI NTSTATUS WINAPI
RtlAddAccessDeniedAce(PACL
,DWORD
,DWORD
,PSID
);
2582 NTSYSAPI NTSTATUS WINAPI
RtlAddAccessDeniedAceEx(PACL
,DWORD
,DWORD
,DWORD
,PSID
);
2583 NTSYSAPI NTSTATUS WINAPI
RtlAddAccessDeniedObjectAce(PACL
,DWORD
,DWORD
,DWORD
,GUID
*,GUID
*,PSID
);
2584 NTSYSAPI NTSTATUS WINAPI
RtlAddAtomToAtomTable(RTL_ATOM_TABLE
,const WCHAR
*,RTL_ATOM
*);
2585 NTSYSAPI NTSTATUS WINAPI
RtlAddAuditAccessAce(PACL
,DWORD
,DWORD
,PSID
,BOOL
,BOOL
);
2586 NTSYSAPI NTSTATUS WINAPI
RtlAddAuditAccessAceEx(PACL
,DWORD
,DWORD
,DWORD
,PSID
,BOOL
,BOOL
);
2587 NTSYSAPI NTSTATUS WINAPI
RtlAddAuditAccessObjectAce(PACL
,DWORD
,DWORD
,DWORD
,GUID
*,GUID
*,PSID
,BOOL
,BOOL
);
2588 NTSYSAPI NTSTATUS WINAPI
RtlAddMandatoryAce(PACL
,DWORD
,DWORD
,DWORD
,DWORD
,PSID
);
2589 NTSYSAPI
void WINAPI
RtlAddRefActivationContext(HANDLE
);
2590 NTSYSAPI PVOID WINAPI
RtlAddVectoredExceptionHandler(ULONG
,PVECTORED_EXCEPTION_HANDLER
);
2591 NTSYSAPI NTSTATUS WINAPI
RtlAdjustPrivilege(ULONG
,BOOLEAN
,BOOLEAN
,PBOOLEAN
);
2592 NTSYSAPI NTSTATUS WINAPI
RtlAllocateAndInitializeSid(PSID_IDENTIFIER_AUTHORITY
,BYTE
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,PSID
*);
2593 NTSYSAPI RTL_HANDLE
* WINAPI
RtlAllocateHandle(RTL_HANDLE_TABLE
*,ULONG
*);
2594 NTSYSAPI PVOID WINAPI
RtlAllocateHeap(HANDLE
,ULONG
,SIZE_T
) __WINE_ALLOC_SIZE(3);
2595 NTSYSAPI WCHAR WINAPI
RtlAnsiCharToUnicodeChar(LPSTR
*);
2596 NTSYSAPI DWORD WINAPI
RtlAnsiStringToUnicodeSize(const STRING
*);
2597 NTSYSAPI NTSTATUS WINAPI
RtlAnsiStringToUnicodeString(PUNICODE_STRING
,PCANSI_STRING
,BOOLEAN
);
2598 NTSYSAPI NTSTATUS WINAPI
RtlAppendAsciizToString(STRING
*,LPCSTR
);
2599 NTSYSAPI NTSTATUS WINAPI
RtlAppendStringToString(STRING
*,const STRING
*);
2600 NTSYSAPI NTSTATUS WINAPI
RtlAppendUnicodeStringToString(UNICODE_STRING
*,const UNICODE_STRING
*);
2601 NTSYSAPI NTSTATUS WINAPI
RtlAppendUnicodeToString(UNICODE_STRING
*,LPCWSTR
);
2602 NTSYSAPI BOOLEAN WINAPI
RtlAreAllAccessesGranted(ACCESS_MASK
,ACCESS_MASK
);
2603 NTSYSAPI BOOLEAN WINAPI
RtlAreAnyAccessesGranted(ACCESS_MASK
,ACCESS_MASK
);
2604 NTSYSAPI BOOLEAN WINAPI
RtlAreBitsSet(PCRTL_BITMAP
,ULONG
,ULONG
);
2605 NTSYSAPI BOOLEAN WINAPI
RtlAreBitsClear(PCRTL_BITMAP
,ULONG
,ULONG
);
2606 NTSYSAPI NTSTATUS WINAPI
RtlCharToInteger(PCSZ
,ULONG
,PULONG
);
2607 NTSYSAPI NTSTATUS WINAPI
RtlCheckRegistryKey(ULONG
, PWSTR
);
2608 NTSYSAPI
void WINAPI
RtlClearAllBits(PRTL_BITMAP
);
2609 NTSYSAPI
void WINAPI
RtlClearBits(PRTL_BITMAP
,ULONG
,ULONG
);
2610 NTSYSAPI NTSTATUS WINAPI
RtlCreateActivationContext(HANDLE
*,const void*);
2611 NTSYSAPI PDEBUG_BUFFER WINAPI
RtlCreateQueryDebugBuffer(ULONG
,BOOLEAN
);
2612 NTSYSAPI NTSTATUS WINAPI
RtlCreateRegistryKey(ULONG
,PWSTR
);
2613 NTSYSAPI ULONG WINAPI
RtlCompactHeap(HANDLE
,ULONG
);
2614 NTSYSAPI LONG WINAPI
RtlCompareString(const STRING
*,const STRING
*,BOOLEAN
);
2615 NTSYSAPI LONG WINAPI
RtlCompareUnicodeString(const UNICODE_STRING
*,const UNICODE_STRING
*,BOOLEAN
);
2616 NTSYSAPI LONG WINAPI
RtlCompareUnicodeStrings(const WCHAR
*,SIZE_T
,const WCHAR
*,SIZE_T
,BOOLEAN
);
2617 NTSYSAPI NTSTATUS WINAPI
RtlCompressBuffer(USHORT
,PUCHAR
,ULONG
,PUCHAR
,ULONG
,ULONG
,PULONG
,PVOID
);
2618 NTSYSAPI DWORD WINAPI
RtlComputeCrc32(DWORD
,const BYTE
*,INT
);
2619 NTSYSAPI NTSTATUS WINAPI
RtlConvertSidToUnicodeString(PUNICODE_STRING
,PSID
,BOOLEAN
);
2620 NTSYSAPI
void WINAPI
RtlCopyLuid(PLUID
,const LUID
*);
2621 NTSYSAPI
void WINAPI
RtlCopyLuidAndAttributesArray(ULONG
,const LUID_AND_ATTRIBUTES
*,PLUID_AND_ATTRIBUTES
);
2622 NTSYSAPI BOOLEAN WINAPI
RtlCopySid(DWORD
,PSID
,PSID
);
2623 NTSYSAPI NTSTATUS WINAPI
RtlCopySecurityDescriptor(PSECURITY_DESCRIPTOR
,PSECURITY_DESCRIPTOR
);
2624 NTSYSAPI
void WINAPI
RtlCopyString(STRING
*,const STRING
*);
2625 NTSYSAPI
void WINAPI
RtlCopyUnicodeString(UNICODE_STRING
*,const UNICODE_STRING
*);
2626 NTSYSAPI NTSTATUS WINAPI
RtlCreateAcl(PACL
,DWORD
,DWORD
);
2627 NTSYSAPI NTSTATUS WINAPI
RtlCreateAtomTable(ULONG
,RTL_ATOM_TABLE
*);
2628 NTSYSAPI NTSTATUS WINAPI
RtlCreateEnvironment(BOOLEAN
, PWSTR
*);
2629 NTSYSAPI HANDLE WINAPI
RtlCreateHeap(ULONG
,PVOID
,SIZE_T
,SIZE_T
,PVOID
,PRTL_HEAP_DEFINITION
);
2630 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
*);
2631 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
);
2632 NTSYSAPI NTSTATUS WINAPI
RtlCreateSecurityDescriptor(PSECURITY_DESCRIPTOR
,DWORD
);
2633 NTSYSAPI NTSTATUS WINAPI
RtlCreateTimerQueue(PHANDLE
);
2634 NTSYSAPI NTSTATUS WINAPI
RtlCreateTimer(PHANDLE
, HANDLE
, RTL_WAITORTIMERCALLBACKFUNC
, PVOID
, DWORD
, DWORD
, ULONG
);
2635 NTSYSAPI BOOLEAN WINAPI
RtlCreateUnicodeString(PUNICODE_STRING
,LPCWSTR
);
2636 NTSYSAPI BOOLEAN WINAPI
RtlCreateUnicodeStringFromAsciiz(PUNICODE_STRING
,LPCSTR
);
2637 NTSYSAPI NTSTATUS WINAPI
RtlCreateUserProcess(UNICODE_STRING
*,ULONG
,RTL_USER_PROCESS_PARAMETERS
*,SECURITY_DESCRIPTOR
*,SECURITY_DESCRIPTOR
*,HANDLE
,BOOLEAN
,HANDLE
,HANDLE
,RTL_USER_PROCESS_INFORMATION
*);
2638 NTSYSAPI NTSTATUS WINAPI
RtlCreateUserThread(HANDLE
,SECURITY_DESCRIPTOR
*,BOOLEAN
,PVOID
,SIZE_T
,SIZE_T
,PRTL_THREAD_START_ROUTINE
,void*,HANDLE
*,CLIENT_ID
*);
2639 NTSYSAPI NTSTATUS WINAPI
RtlCreateUserStack(SIZE_T
,SIZE_T
,ULONG
,SIZE_T
,SIZE_T
,INITIAL_TEB
*);
2640 NTSYSAPI
void WINAPI
RtlDeactivateActivationContext(DWORD
,ULONG_PTR
);
2641 NTSYSAPI PVOID WINAPI
RtlDecodePointer(PVOID
);
2642 NTSYSAPI NTSTATUS WINAPI
RtlDecompressBuffer(USHORT
,PUCHAR
,ULONG
,PUCHAR
,ULONG
,PULONG
);
2643 NTSYSAPI NTSTATUS WINAPI
RtlDeleteAce(PACL
,DWORD
);
2644 NTSYSAPI NTSTATUS WINAPI
RtlDeleteAtomFromAtomTable(RTL_ATOM_TABLE
,RTL_ATOM
);
2645 NTSYSAPI NTSTATUS WINAPI
RtlDeleteCriticalSection(RTL_CRITICAL_SECTION
*);
2646 NTSYSAPI NTSTATUS WINAPI
RtlDeleteRegistryValue(ULONG
, PCWSTR
, PCWSTR
);
2647 NTSYSAPI
void WINAPI
RtlDeleteResource(LPRTL_RWLOCK
);
2648 NTSYSAPI NTSTATUS WINAPI
RtlDeleteSecurityObject(PSECURITY_DESCRIPTOR
*);
2649 NTSYSAPI NTSTATUS WINAPI
RtlDeleteTimer(HANDLE
, HANDLE
, HANDLE
);
2650 NTSYSAPI NTSTATUS WINAPI
RtlDeleteTimerQueueEx(HANDLE
, HANDLE
);
2651 NTSYSAPI PRTL_USER_PROCESS_PARAMETERS WINAPI
RtlDeNormalizeProcessParams(RTL_USER_PROCESS_PARAMETERS
*);
2652 NTSYSAPI NTSTATUS WINAPI
RtlDeregisterWait(HANDLE
);
2653 NTSYSAPI NTSTATUS WINAPI
RtlDeregisterWaitEx(HANDLE
,HANDLE
);
2654 NTSYSAPI NTSTATUS WINAPI
RtlDestroyAtomTable(RTL_ATOM_TABLE
);
2655 NTSYSAPI NTSTATUS WINAPI
RtlDestroyEnvironment(PWSTR
);
2656 NTSYSAPI NTSTATUS WINAPI
RtlDestroyHandleTable(RTL_HANDLE_TABLE
*);
2657 NTSYSAPI HANDLE WINAPI
RtlDestroyHeap(HANDLE
);
2658 NTSYSAPI
void WINAPI
RtlDestroyProcessParameters(RTL_USER_PROCESS_PARAMETERS
*);
2659 NTSYSAPI NTSTATUS WINAPI
RtlDestroyQueryDebugBuffer(PDEBUG_BUFFER
);
2660 NTSYSAPI DOS_PATHNAME_TYPE WINAPI
RtlDetermineDosPathNameType_U(PCWSTR
);
2661 NTSYSAPI BOOLEAN WINAPI
RtlDllShutdownInProgress(void);
2662 NTSYSAPI BOOLEAN WINAPI
RtlDoesFileExists_U(LPCWSTR
);
2663 NTSYSAPI BOOLEAN WINAPI
RtlDosPathNameToNtPathName_U(PCWSTR
,PUNICODE_STRING
,PWSTR
*,CURDIR
*);
2664 NTSYSAPI NTSTATUS WINAPI
RtlDosPathNameToNtPathName_U_WithStatus(PCWSTR
,PUNICODE_STRING
,PWSTR
*,CURDIR
*);
2665 NTSYSAPI ULONG WINAPI
RtlDosSearchPath_U(LPCWSTR
, LPCWSTR
, LPCWSTR
, ULONG
, LPWSTR
, LPWSTR
*);
2666 NTSYSAPI WCHAR WINAPI
RtlDowncaseUnicodeChar(WCHAR
);
2667 NTSYSAPI NTSTATUS WINAPI
RtlDowncaseUnicodeString(UNICODE_STRING
*,const UNICODE_STRING
*,BOOLEAN
);
2668 NTSYSAPI
void WINAPI
RtlDumpResource(LPRTL_RWLOCK
);
2669 NTSYSAPI NTSTATUS WINAPI
RtlDuplicateUnicodeString(int,const UNICODE_STRING
*,UNICODE_STRING
*);
2670 NTSYSAPI NTSTATUS WINAPI
RtlEmptyAtomTable(RTL_ATOM_TABLE
,BOOLEAN
);
2671 NTSYSAPI PVOID WINAPI
RtlEncodePointer(PVOID
);
2672 NTSYSAPI NTSTATUS WINAPI
RtlEnterCriticalSection(RTL_CRITICAL_SECTION
*);
2673 NTSYSAPI
void WINAPI
RtlEraseUnicodeString(UNICODE_STRING
*);
2674 NTSYSAPI NTSTATUS WINAPI
RtlEqualComputerName(const UNICODE_STRING
*,const UNICODE_STRING
*);
2675 NTSYSAPI NTSTATUS WINAPI
RtlEqualDomainName(const UNICODE_STRING
*,const UNICODE_STRING
*);
2676 NTSYSAPI BOOLEAN WINAPI
RtlEqualLuid(const LUID
*,const LUID
*);
2677 NTSYSAPI BOOL WINAPI
RtlEqualPrefixSid(PSID
,PSID
);
2678 NTSYSAPI BOOL WINAPI
RtlEqualSid(PSID
,PSID
);
2679 NTSYSAPI BOOLEAN WINAPI
RtlEqualString(const STRING
*,const STRING
*,BOOLEAN
);
2680 NTSYSAPI BOOLEAN WINAPI
RtlEqualUnicodeString(const UNICODE_STRING
*,const UNICODE_STRING
*,BOOLEAN
);
2681 NTSYSAPI
void DECLSPEC_NORETURN WINAPI
RtlExitUserProcess(ULONG
);
2682 NTSYSAPI
void DECLSPEC_NORETURN WINAPI
RtlExitUserThread(ULONG
);
2683 NTSYSAPI NTSTATUS WINAPI
RtlExpandEnvironmentStrings(const WCHAR
*,WCHAR
*,SIZE_T
,WCHAR
*,SIZE_T
,SIZE_T
*);
2684 NTSYSAPI NTSTATUS WINAPI
RtlExpandEnvironmentStrings_U(PCWSTR
, const UNICODE_STRING
*, UNICODE_STRING
*, ULONG
*);
2685 NTSYSAPI NTSTATUS WINAPI
RtlFindActivationContextSectionString(ULONG
,const GUID
*,ULONG
,const UNICODE_STRING
*,PVOID
);
2686 NTSYSAPI NTSTATUS WINAPI
RtlFindActivationContextSectionGuid(ULONG
,const GUID
*,ULONG
,const GUID
*,PVOID
);
2687 NTSYSAPI NTSTATUS WINAPI
RtlFindCharInUnicodeString(int,const UNICODE_STRING
*,const UNICODE_STRING
*,USHORT
*);
2688 NTSYSAPI ULONG WINAPI
RtlFindClearBits(PCRTL_BITMAP
,ULONG
,ULONG
);
2689 NTSYSAPI ULONG WINAPI
RtlFindClearBitsAndSet(PRTL_BITMAP
,ULONG
,ULONG
);
2690 NTSYSAPI ULONG WINAPI
RtlFindClearRuns(PCRTL_BITMAP
,PRTL_BITMAP_RUN
,ULONG
,BOOLEAN
);
2691 NTSYSAPI ULONG WINAPI
RtlFindLastBackwardRunSet(PCRTL_BITMAP
,ULONG
,PULONG
);
2692 NTSYSAPI ULONG WINAPI
RtlFindLastBackwardRunClear(PCRTL_BITMAP
,ULONG
,PULONG
);
2693 NTSYSAPI CCHAR WINAPI
RtlFindLeastSignificantBit(ULONGLONG
);
2694 NTSYSAPI ULONG WINAPI
RtlFindLongestRunSet(PCRTL_BITMAP
,PULONG
);
2695 NTSYSAPI ULONG WINAPI
RtlFindLongestRunClear(PCRTL_BITMAP
,PULONG
);
2696 NTSYSAPI NTSTATUS WINAPI
RtlFindMessage(HMODULE
,ULONG
,ULONG
,ULONG
,const MESSAGE_RESOURCE_ENTRY
**);
2697 NTSYSAPI CCHAR WINAPI
RtlFindMostSignificantBit(ULONGLONG
);
2698 NTSYSAPI ULONG WINAPI
RtlFindNextForwardRunSet(PCRTL_BITMAP
,ULONG
,PULONG
);
2699 NTSYSAPI ULONG WINAPI
RtlFindNextForwardRunClear(PCRTL_BITMAP
,ULONG
,PULONG
);
2700 NTSYSAPI ULONG WINAPI
RtlFindSetBits(PCRTL_BITMAP
,ULONG
,ULONG
);
2701 NTSYSAPI ULONG WINAPI
RtlFindSetBitsAndClear(PRTL_BITMAP
,ULONG
,ULONG
);
2702 NTSYSAPI ULONG WINAPI
RtlFindSetRuns(PCRTL_BITMAP
,PRTL_BITMAP_RUN
,ULONG
,BOOLEAN
);
2703 NTSYSAPI BOOLEAN WINAPI
RtlFirstFreeAce(PACL
,PACE_HEADER
*);
2704 NTSYSAPI NTSTATUS WINAPI
RtlFormatCurrentUserKeyPath(PUNICODE_STRING
);
2705 NTSYSAPI NTSTATUS WINAPI
RtlFormatMessage(LPWSTR
,UCHAR
,BOOLEAN
,BOOLEAN
,BOOLEAN
,__ms_va_list
*,LPWSTR
,ULONG
);
2706 NTSYSAPI
void WINAPI
RtlFreeAnsiString(PANSI_STRING
);
2707 NTSYSAPI BOOLEAN WINAPI
RtlFreeHandle(RTL_HANDLE_TABLE
*,RTL_HANDLE
*);
2708 NTSYSAPI BOOLEAN WINAPI
RtlFreeHeap(HANDLE
,ULONG
,PVOID
);
2709 NTSYSAPI
void WINAPI
RtlFreeOemString(POEM_STRING
);
2710 NTSYSAPI DWORD WINAPI
RtlFreeSid(PSID
);
2711 NTSYSAPI
void WINAPI
RtlFreeThreadActivationContextStack(void);
2712 NTSYSAPI
void WINAPI
RtlFreeUnicodeString(PUNICODE_STRING
);
2713 NTSYSAPI
void WINAPI
RtlFreeUserStack(void*);
2714 NTSYSAPI NTSTATUS WINAPI
RtlGetAce(PACL
,DWORD
,LPVOID
*);
2715 NTSYSAPI NTSTATUS WINAPI
RtlGetActiveActivationContext(HANDLE
*);
2716 NTSYSAPI NTSTATUS WINAPI
RtlGetCompressionWorkSpaceSize(USHORT
,PULONG
,PULONG
);
2717 NTSYSAPI NTSTATUS WINAPI
RtlGetControlSecurityDescriptor(PSECURITY_DESCRIPTOR
, PSECURITY_DESCRIPTOR_CONTROL
,LPDWORD
);
2718 NTSYSAPI ULONG WINAPI
RtlGetCurrentDirectory_U(ULONG
, LPWSTR
);
2719 NTSYSAPI PEB
* WINAPI
RtlGetCurrentPeb(void);
2720 NTSYSAPI NTSTATUS WINAPI
RtlGetDaclSecurityDescriptor(PSECURITY_DESCRIPTOR
,PBOOLEAN
,PACL
*,PBOOLEAN
);
2721 NTSYSAPI TEB_ACTIVE_FRAME
* WINAPI
RtlGetFrame(void);
2722 NTSYSAPI ULONG WINAPI
RtlGetFullPathName_U(PCWSTR
,ULONG
,PWSTR
,PWSTR
*);
2723 NTSYSAPI NTSTATUS WINAPI
RtlGetGroupSecurityDescriptor(PSECURITY_DESCRIPTOR
,PSID
*,PBOOLEAN
);
2724 NTSYSAPI NTSTATUS WINAPI
RtlGetLastNtStatus(void);
2725 NTSYSAPI DWORD WINAPI
RtlGetLastWin32Error(void);
2726 NTSYSAPI DWORD WINAPI
RtlGetLongestNtPathLength(void);
2727 NTSYSAPI ULONG WINAPI
RtlGetNtGlobalFlags(void);
2728 NTSYSAPI BOOLEAN WINAPI
RtlGetNtProductType(LPDWORD
);
2729 NTSYSAPI NTSTATUS WINAPI
RtlGetOwnerSecurityDescriptor(PSECURITY_DESCRIPTOR
,PSID
*,PBOOLEAN
);
2730 NTSYSAPI ULONG WINAPI
RtlGetProcessHeaps(ULONG
,HANDLE
*);
2731 NTSYSAPI DWORD WINAPI
RtlGetThreadErrorMode(void);
2732 NTSYSAPI NTSTATUS WINAPI
RtlGetSaclSecurityDescriptor(PSECURITY_DESCRIPTOR
,PBOOLEAN
,PACL
*,PBOOLEAN
);
2733 NTSYSAPI LONGLONG WINAPI
RtlGetSystemTimePrecise(void);
2734 NTSYSAPI NTSTATUS WINAPI
RtlGetVersion(RTL_OSVERSIONINFOEXW
*);
2735 NTSYSAPI NTSTATUS WINAPI
RtlGUIDFromString(PUNICODE_STRING
,GUID
*);
2736 NTSYSAPI PSID_IDENTIFIER_AUTHORITY WINAPI
RtlIdentifierAuthoritySid(PSID
);
2737 NTSYSAPI PVOID WINAPI
RtlImageDirectoryEntryToData(HMODULE
,BOOL
,WORD
,ULONG
*);
2738 NTSYSAPI PIMAGE_NT_HEADERS WINAPI
RtlImageNtHeader(HMODULE
);
2739 NTSYSAPI PIMAGE_SECTION_HEADER WINAPI
RtlImageRvaToSection(const IMAGE_NT_HEADERS
*,HMODULE
,DWORD
);
2740 NTSYSAPI PVOID WINAPI
RtlImageRvaToVa(const IMAGE_NT_HEADERS
*,HMODULE
,DWORD
,IMAGE_SECTION_HEADER
**);
2741 NTSYSAPI NTSTATUS WINAPI
RtlImpersonateSelf(SECURITY_IMPERSONATION_LEVEL
);
2742 NTSYSAPI
void WINAPI
RtlInitString(PSTRING
,PCSZ
);
2743 NTSYSAPI
void WINAPI
RtlInitAnsiString(PANSI_STRING
,PCSZ
);
2744 NTSYSAPI NTSTATUS WINAPI
RtlInitAnsiStringEx(PANSI_STRING
,PCSZ
);
2745 NTSYSAPI
void WINAPI
RtlInitUnicodeString(PUNICODE_STRING
,PCWSTR
);
2746 NTSYSAPI NTSTATUS WINAPI
RtlInitUnicodeStringEx(PUNICODE_STRING
,PCWSTR
);
2747 NTSYSAPI
void WINAPI
RtlInitializeBitMap(PRTL_BITMAP
,PULONG
,ULONG
);
2748 NTSYSAPI
void WINAPI
RtlInitializeConditionVariable(RTL_CONDITION_VARIABLE
*);
2749 NTSYSAPI NTSTATUS WINAPI
RtlInitializeCriticalSection(RTL_CRITICAL_SECTION
*);
2750 NTSYSAPI NTSTATUS WINAPI
RtlInitializeCriticalSectionAndSpinCount(RTL_CRITICAL_SECTION
*,ULONG
);
2751 NTSYSAPI NTSTATUS WINAPI
RtlInitializeCriticalSectionEx(RTL_CRITICAL_SECTION
*,ULONG
,ULONG
);
2752 NTSYSAPI
void WINAPI
RtlInitializeHandleTable(ULONG
,ULONG
,RTL_HANDLE_TABLE
*);
2753 NTSYSAPI
void WINAPI
RtlInitializeResource(LPRTL_RWLOCK
);
2754 NTSYSAPI
void WINAPI
RtlInitializeSRWLock(RTL_SRWLOCK
*);
2755 NTSYSAPI BOOL WINAPI
RtlInitializeSid(PSID
,PSID_IDENTIFIER_AUTHORITY
,BYTE
);
2756 NTSYSAPI NTSTATUS WINAPI
RtlInt64ToUnicodeString(ULONGLONG
,ULONG
,UNICODE_STRING
*);
2757 NTSYSAPI NTSTATUS WINAPI
RtlIntegerToChar(ULONG
,ULONG
,ULONG
,PCHAR
);
2758 NTSYSAPI NTSTATUS WINAPI
RtlIntegerToUnicodeString(ULONG
,ULONG
,UNICODE_STRING
*);
2759 NTSYSAPI BOOLEAN WINAPI
RtlIsActivationContextActive(HANDLE
);
2760 NTSYSAPI BOOL WINAPI
RtlIsCriticalSectionLocked(RTL_CRITICAL_SECTION
*);
2761 NTSYSAPI BOOL WINAPI
RtlIsCriticalSectionLockedByThread(RTL_CRITICAL_SECTION
*);
2762 NTSYSAPI ULONG WINAPI
RtlIsDosDeviceName_U(PCWSTR
);
2763 NTSYSAPI BOOLEAN WINAPI
RtlIsNameLegalDOS8Dot3(const UNICODE_STRING
*,POEM_STRING
,PBOOLEAN
);
2764 NTSYSAPI BOOLEAN WINAPI
RtlIsProcessorFeaturePresent(UINT
);
2765 NTSYSAPI BOOLEAN WINAPI
RtlIsTextUnicode(LPCVOID
,INT
,INT
*);
2766 NTSYSAPI BOOLEAN WINAPI
RtlIsValidHandle(const RTL_HANDLE_TABLE
*, const RTL_HANDLE
*);
2767 NTSYSAPI BOOLEAN WINAPI
RtlIsValidIndexHandle(const RTL_HANDLE_TABLE
*, ULONG Index
, RTL_HANDLE
**);
2768 NTSYSAPI NTSTATUS WINAPI
RtlLeaveCriticalSection(RTL_CRITICAL_SECTION
*);
2769 NTSYSAPI DWORD WINAPI
RtlLengthRequiredSid(DWORD
);
2770 NTSYSAPI ULONG WINAPI
RtlLengthSecurityDescriptor(PSECURITY_DESCRIPTOR
);
2771 NTSYSAPI DWORD WINAPI
RtlLengthSid(PSID
);
2772 NTSYSAPI NTSTATUS WINAPI
RtlLocalTimeToSystemTime(const LARGE_INTEGER
*,PLARGE_INTEGER
);
2773 NTSYSAPI BOOLEAN WINAPI
RtlLockHeap(HANDLE
);
2774 NTSYSAPI NTSTATUS WINAPI
RtlLookupAtomInAtomTable(RTL_ATOM_TABLE
,const WCHAR
*,RTL_ATOM
*);
2775 NTSYSAPI NTSTATUS WINAPI
RtlMakeSelfRelativeSD(PSECURITY_DESCRIPTOR
,PSECURITY_DESCRIPTOR
,LPDWORD
);
2776 NTSYSAPI
void WINAPI
RtlMapGenericMask(PACCESS_MASK
,const GENERIC_MAPPING
*);
2777 NTSYSAPI NTSTATUS WINAPI
RtlMultiByteToUnicodeN(LPWSTR
,DWORD
,LPDWORD
,LPCSTR
,DWORD
);
2778 NTSYSAPI NTSTATUS WINAPI
RtlMultiByteToUnicodeSize(DWORD
*,LPCSTR
,UINT
);
2779 NTSYSAPI NTSTATUS WINAPI
RtlNewSecurityObject(PSECURITY_DESCRIPTOR
,PSECURITY_DESCRIPTOR
,PSECURITY_DESCRIPTOR
*,BOOLEAN
,HANDLE
,PGENERIC_MAPPING
);
2780 NTSYSAPI PRTL_USER_PROCESS_PARAMETERS WINAPI
RtlNormalizeProcessParams(RTL_USER_PROCESS_PARAMETERS
*);
2781 NTSYSAPI ULONG WINAPI
RtlNtStatusToDosError(NTSTATUS
);
2782 NTSYSAPI ULONG WINAPI
RtlNtStatusToDosErrorNoTeb(NTSTATUS
);
2783 NTSYSAPI ULONG WINAPI
RtlNumberOfSetBits(PCRTL_BITMAP
);
2784 NTSYSAPI ULONG WINAPI
RtlNumberOfClearBits(PCRTL_BITMAP
);
2785 NTSYSAPI UINT WINAPI
RtlOemStringToUnicodeSize(const STRING
*);
2786 NTSYSAPI NTSTATUS WINAPI
RtlOemStringToUnicodeString(UNICODE_STRING
*,const STRING
*,BOOLEAN
);
2787 NTSYSAPI NTSTATUS WINAPI
RtlOemToUnicodeN(LPWSTR
,DWORD
,LPDWORD
,LPCSTR
,DWORD
);
2788 NTSYSAPI NTSTATUS WINAPI
RtlOpenCurrentUser(ACCESS_MASK
,PHANDLE
);
2789 NTSYSAPI PVOID WINAPI
RtlPcToFileHeader(PVOID
,PVOID
*);
2790 NTSYSAPI NTSTATUS WINAPI
RtlPinAtomInAtomTable(RTL_ATOM_TABLE
,RTL_ATOM
);
2791 NTSYSAPI
void WINAPI
RtlPopFrame(TEB_ACTIVE_FRAME
*);
2792 NTSYSAPI BOOLEAN WINAPI
RtlPrefixString(const STRING
*,const STRING
*,BOOLEAN
);
2793 NTSYSAPI BOOLEAN WINAPI
RtlPrefixUnicodeString(const UNICODE_STRING
*,const UNICODE_STRING
*,BOOLEAN
);
2794 NTSYSAPI
void WINAPI
RtlPushFrame(TEB_ACTIVE_FRAME
*);
2795 NTSYSAPI NTSTATUS WINAPI
RtlQueryActivationContextApplicationSettings(DWORD
,HANDLE
,const WCHAR
*,const WCHAR
*,WCHAR
*,SIZE_T
,SIZE_T
*);
2796 NTSYSAPI NTSTATUS WINAPI
RtlQueryAtomInAtomTable(RTL_ATOM_TABLE
,RTL_ATOM
,ULONG
*,ULONG
*,WCHAR
*,ULONG
*);
2797 NTSYSAPI NTSTATUS WINAPI
RtlQueryDynamicTimeZoneInformation(RTL_DYNAMIC_TIME_ZONE_INFORMATION
*);
2798 NTSYSAPI NTSTATUS WINAPI
RtlQueryEnvironmentVariable_U(PWSTR
,PUNICODE_STRING
,PUNICODE_STRING
);
2799 NTSYSAPI NTSTATUS WINAPI
RtlQueryHeapInformation(HANDLE
,HEAP_INFORMATION_CLASS
,PVOID
,SIZE_T
,PSIZE_T
);
2800 NTSYSAPI NTSTATUS WINAPI
RtlQueryInformationAcl(PACL
,LPVOID
,DWORD
,ACL_INFORMATION_CLASS
);
2801 NTSYSAPI NTSTATUS WINAPI
RtlQueryInformationActivationContext(ULONG
,HANDLE
,PVOID
,ULONG
,PVOID
,SIZE_T
,SIZE_T
*);
2802 NTSYSAPI NTSTATUS WINAPI
RtlQueryProcessDebugInformation(ULONG
,ULONG
,PDEBUG_BUFFER
);
2803 NTSYSAPI NTSTATUS WINAPI
RtlQueryRegistryValues(ULONG
, PCWSTR
, PRTL_QUERY_REGISTRY_TABLE
, PVOID
, PVOID
);
2804 NTSYSAPI NTSTATUS WINAPI
RtlQueryTimeZoneInformation(RTL_TIME_ZONE_INFORMATION
*);
2805 NTSYSAPI NTSTATUS WINAPI
RtlQueryUnbiasedInterruptTime(ULONGLONG
*);
2806 NTSYSAPI NTSTATUS WINAPI
RtlQueueWorkItem(PRTL_WORK_ITEM_ROUTINE
,PVOID
,ULONG
);
2807 NTSYSAPI
void WINAPI
RtlRaiseException(PEXCEPTION_RECORD
);
2808 NTSYSAPI
void WINAPI
RtlRaiseStatus(NTSTATUS
);
2809 NTSYSAPI ULONG WINAPI
RtlRandom(PULONG
);
2810 NTSYSAPI PVOID WINAPI
RtlReAllocateHeap(HANDLE
,ULONG
,PVOID
,SIZE_T
);
2811 NTSYSAPI NTSTATUS WINAPI
RtlRegisterWait(PHANDLE
,HANDLE
,RTL_WAITORTIMERCALLBACKFUNC
,PVOID
,ULONG
,ULONG
);
2812 NTSYSAPI
void WINAPI
RtlReleaseActivationContext(HANDLE
);
2813 NTSYSAPI
void WINAPI
RtlReleasePebLock(void);
2814 NTSYSAPI
void WINAPI
RtlReleaseResource(LPRTL_RWLOCK
);
2815 NTSYSAPI
void WINAPI
RtlReleaseSRWLockExclusive(RTL_SRWLOCK
*);
2816 NTSYSAPI
void WINAPI
RtlReleaseSRWLockShared(RTL_SRWLOCK
*);
2817 NTSYSAPI ULONG WINAPI
RtlRemoveVectoredExceptionHandler(PVOID
);
2818 NTSYSAPI
void WINAPI
RtlRestoreLastWin32Error(DWORD
);
2819 NTSYSAPI
void WINAPI
RtlSecondsSince1970ToTime(DWORD
,LARGE_INTEGER
*);
2820 NTSYSAPI
void WINAPI
RtlSecondsSince1980ToTime(DWORD
,LARGE_INTEGER
*);
2821 NTSYSAPI NTSTATUS WINAPI
RtlSelfRelativeToAbsoluteSD(PSECURITY_DESCRIPTOR
,PSECURITY_DESCRIPTOR
,PDWORD
,PACL
,PDWORD
,PACL
,PDWORD
,PSID
,PDWORD
,PSID
,PDWORD
);
2822 NTSYSAPI
void WINAPI
RtlSetAllBits(PRTL_BITMAP
);
2823 NTSYSAPI
void WINAPI
RtlSetBits(PRTL_BITMAP
,ULONG
,ULONG
);
2824 NTSYSAPI ULONG WINAPI
RtlSetCriticalSectionSpinCount(RTL_CRITICAL_SECTION
*,ULONG
);
2825 NTSYSAPI NTSTATUS WINAPI
RtlSetControlSecurityDescriptor(PSECURITY_DESCRIPTOR
,SECURITY_DESCRIPTOR_CONTROL
,SECURITY_DESCRIPTOR_CONTROL
);
2826 NTSYSAPI NTSTATUS WINAPI
RtlSetCurrentDirectory_U(const UNICODE_STRING
*);
2827 NTSYSAPI
void WINAPI
RtlSetCurrentEnvironment(PWSTR
, PWSTR
*);
2828 NTSYSAPI NTSTATUS WINAPI
RtlSetDaclSecurityDescriptor(PSECURITY_DESCRIPTOR
,BOOLEAN
,PACL
,BOOLEAN
);
2829 NTSYSAPI NTSTATUS WINAPI
RtlSetEnvironmentVariable(PWSTR
*,PUNICODE_STRING
,PUNICODE_STRING
);
2830 NTSYSAPI NTSTATUS WINAPI
RtlSetHeapInformation(HANDLE
,HEAP_INFORMATION_CLASS
,PVOID
,SIZE_T
);
2831 NTSYSAPI NTSTATUS WINAPI
RtlSetOwnerSecurityDescriptor(PSECURITY_DESCRIPTOR
,PSID
,BOOLEAN
);
2832 NTSYSAPI NTSTATUS WINAPI
RtlSetGroupSecurityDescriptor(PSECURITY_DESCRIPTOR
,PSID
,BOOLEAN
);
2833 NTSYSAPI NTSTATUS WINAPI
RtlSetIoCompletionCallback(HANDLE
,PRTL_OVERLAPPED_COMPLETION_ROUTINE
,ULONG
);
2834 NTSYSAPI
void WINAPI
RtlSetLastWin32Error(DWORD
);
2835 NTSYSAPI
void WINAPI
RtlSetLastWin32ErrorAndNtStatusFromNtStatus(NTSTATUS
);
2836 NTSYSAPI NTSTATUS WINAPI
RtlSetSaclSecurityDescriptor(PSECURITY_DESCRIPTOR
,BOOLEAN
,PACL
,BOOLEAN
);
2837 NTSYSAPI NTSTATUS WINAPI
RtlSetThreadErrorMode(DWORD
,LPDWORD
);
2838 NTSYSAPI NTSTATUS WINAPI
RtlSetTimeZoneInformation(const RTL_TIME_ZONE_INFORMATION
*);
2839 NTSYSAPI
void WINAPI
RtlSetUnhandledExceptionFilter(PRTL_EXCEPTION_FILTER
);
2840 NTSYSAPI SIZE_T WINAPI
RtlSizeHeap(HANDLE
,ULONG
,const void*);
2841 NTSYSAPI NTSTATUS WINAPI
RtlSleepConditionVariableCS(RTL_CONDITION_VARIABLE
*,RTL_CRITICAL_SECTION
*,const LARGE_INTEGER
*);
2842 NTSYSAPI NTSTATUS WINAPI
RtlSleepConditionVariableSRW(RTL_CONDITION_VARIABLE
*,RTL_SRWLOCK
*,const LARGE_INTEGER
*,ULONG
);
2843 NTSYSAPI NTSTATUS WINAPI
RtlStringFromGUID(REFGUID
,PUNICODE_STRING
);
2844 NTSYSAPI LPDWORD WINAPI
RtlSubAuthoritySid(PSID
,DWORD
);
2845 NTSYSAPI LPBYTE WINAPI
RtlSubAuthorityCountSid(PSID
);
2846 NTSYSAPI NTSTATUS WINAPI
RtlSystemTimeToLocalTime(const LARGE_INTEGER
*,PLARGE_INTEGER
);
2847 NTSYSAPI
void WINAPI
RtlTimeToTimeFields(const LARGE_INTEGER
*,PTIME_FIELDS
);
2848 NTSYSAPI BOOLEAN WINAPI
RtlTimeFieldsToTime(PTIME_FIELDS
,PLARGE_INTEGER
);
2849 NTSYSAPI
void WINAPI
RtlTimeToElapsedTimeFields(const LARGE_INTEGER
*,PTIME_FIELDS
);
2850 NTSYSAPI BOOLEAN WINAPI
RtlTimeToSecondsSince1970(const LARGE_INTEGER
*,LPDWORD
);
2851 NTSYSAPI BOOLEAN WINAPI
RtlTimeToSecondsSince1980(const LARGE_INTEGER
*,LPDWORD
);
2852 NTSYSAPI BOOLEAN WINAPI
RtlTryAcquireSRWLockExclusive(RTL_SRWLOCK
*);
2853 NTSYSAPI BOOLEAN WINAPI
RtlTryAcquireSRWLockShared(RTL_SRWLOCK
*);
2854 NTSYSAPI BOOL WINAPI
RtlTryEnterCriticalSection(RTL_CRITICAL_SECTION
*);
2855 NTSYSAPI ULONGLONG __cdecl
RtlUlonglongByteSwap(ULONGLONG
);
2856 NTSYSAPI DWORD WINAPI
RtlUnicodeStringToAnsiSize(const UNICODE_STRING
*);
2857 NTSYSAPI NTSTATUS WINAPI
RtlUnicodeStringToAnsiString(PANSI_STRING
,PCUNICODE_STRING
,BOOLEAN
);
2858 NTSYSAPI NTSTATUS WINAPI
RtlUnicodeStringToInteger(const UNICODE_STRING
*,ULONG
,ULONG
*);
2859 NTSYSAPI DWORD WINAPI
RtlUnicodeStringToOemSize(const UNICODE_STRING
*);
2860 NTSYSAPI NTSTATUS WINAPI
RtlUnicodeStringToOemString(POEM_STRING
,PCUNICODE_STRING
,BOOLEAN
);
2861 NTSYSAPI NTSTATUS WINAPI
RtlUnicodeToMultiByteN(LPSTR
,DWORD
,LPDWORD
,LPCWSTR
,DWORD
);
2862 NTSYSAPI NTSTATUS WINAPI
RtlUnicodeToMultiByteSize(PULONG
,PCWSTR
,ULONG
);
2863 NTSYSAPI NTSTATUS WINAPI
RtlUnicodeToOemN(LPSTR
,DWORD
,LPDWORD
,LPCWSTR
,DWORD
);
2864 NTSYSAPI ULONG WINAPI
RtlUniform(PULONG
);
2865 NTSYSAPI BOOLEAN WINAPI
RtlUnlockHeap(HANDLE
);
2866 NTSYSAPI
void WINAPI
RtlUnwind(PVOID
,PVOID
,PEXCEPTION_RECORD
,PVOID
);
2868 NTSYSAPI
void WINAPI
RtlUnwindEx(PVOID
,PVOID
,PEXCEPTION_RECORD
,PVOID
,PCONTEXT
,PUNWIND_HISTORY_TABLE
);
2869 #elif defined(__ia64__)
2870 NTSYSAPI
void WINAPI
RtlUnwind2(FRAME_POINTERS
,PVOID
,PEXCEPTION_RECORD
,PVOID
,PCONTEXT
);
2871 NTSYSAPI
void WINAPI
RtlUnwindEx(FRAME_POINTERS
,PVOID
,PEXCEPTION_RECORD
,PVOID
,PCONTEXT
,PUNWIND_HISTORY_TABLE
);
2873 NTSYSAPI WCHAR WINAPI
RtlUpcaseUnicodeChar(WCHAR
);
2874 NTSYSAPI NTSTATUS WINAPI
RtlUpcaseUnicodeString(UNICODE_STRING
*,const UNICODE_STRING
*,BOOLEAN
);
2875 NTSYSAPI NTSTATUS WINAPI
RtlUpcaseUnicodeStringToAnsiString(STRING
*,const UNICODE_STRING
*,BOOLEAN
);
2876 NTSYSAPI NTSTATUS WINAPI
RtlUpcaseUnicodeStringToCountedOemString(STRING
*,const UNICODE_STRING
*,BOOLEAN
);
2877 NTSYSAPI NTSTATUS WINAPI
RtlUpcaseUnicodeStringToOemString(STRING
*,const UNICODE_STRING
*,BOOLEAN
);
2878 NTSYSAPI NTSTATUS WINAPI
RtlUpcaseUnicodeToMultiByteN(LPSTR
,DWORD
,LPDWORD
,LPCWSTR
,DWORD
);
2879 NTSYSAPI NTSTATUS WINAPI
RtlUpcaseUnicodeToOemN(LPSTR
,DWORD
,LPDWORD
,LPCWSTR
,DWORD
);
2880 NTSYSAPI NTSTATUS WINAPI
RtlUpdateTimer(HANDLE
, HANDLE
, DWORD
, DWORD
);
2881 NTSYSAPI CHAR WINAPI
RtlUpperChar(CHAR
);
2882 NTSYSAPI
void WINAPI
RtlUpperString(STRING
*,const STRING
*);
2883 NTSYSAPI NTSTATUS WINAPI
RtlValidSecurityDescriptor(PSECURITY_DESCRIPTOR
);
2884 NTSYSAPI BOOLEAN WINAPI
RtlValidRelativeSecurityDescriptor(PSECURITY_DESCRIPTOR
,ULONG
,SECURITY_INFORMATION
);
2885 NTSYSAPI BOOLEAN WINAPI
RtlValidAcl(PACL
);
2886 NTSYSAPI BOOLEAN WINAPI
RtlValidSid(PSID
);
2887 NTSYSAPI BOOLEAN WINAPI
RtlValidateHeap(HANDLE
,ULONG
,LPCVOID
);
2888 NTSYSAPI NTSTATUS WINAPI
RtlVerifyVersionInfo(const RTL_OSVERSIONINFOEXW
*,DWORD
,DWORDLONG
);
2889 NTSYSAPI NTSTATUS WINAPI
RtlWaitOnAddress(const void *,const void *,SIZE_T
,const LARGE_INTEGER
*);
2890 NTSYSAPI
void WINAPI
RtlWakeAddressAll(const void *);
2891 NTSYSAPI
void WINAPI
RtlWakeAddressSingle(const void *);
2892 NTSYSAPI
void WINAPI
RtlWakeAllConditionVariable(RTL_CONDITION_VARIABLE
*);
2893 NTSYSAPI
void WINAPI
RtlWakeConditionVariable(RTL_CONDITION_VARIABLE
*);
2894 NTSYSAPI NTSTATUS WINAPI
RtlWalkHeap(HANDLE
,PVOID
);
2895 NTSYSAPI NTSTATUS WINAPI
RtlWow64EnableFsRedirection(BOOLEAN
);
2896 NTSYSAPI NTSTATUS WINAPI
RtlWow64EnableFsRedirectionEx(ULONG
,ULONG
*);
2898 NTSYSAPI NTSTATUS WINAPI
RtlWow64GetThreadContext(HANDLE
, WOW64_CONTEXT
*);
2899 NTSYSAPI NTSTATUS WINAPI
RtlWow64SetThreadContext(HANDLE
, const WOW64_CONTEXT
*);
2901 NTSYSAPI NTSTATUS WINAPI
RtlWriteRegistryValue(ULONG
,PCWSTR
,PCWSTR
,ULONG
,PVOID
,ULONG
);
2902 NTSYSAPI NTSTATUS WINAPI
RtlZombifyActivationContext(HANDLE
);
2903 NTSYSAPI NTSTATUS WINAPI
RtlpNtCreateKey(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,ULONG
,const UNICODE_STRING
*,ULONG
,PULONG
);
2904 NTSYSAPI NTSTATUS WINAPI
RtlpNtEnumerateSubKey(HANDLE
,UNICODE_STRING
*, ULONG
);
2905 NTSYSAPI NTSTATUS WINAPI
RtlpWaitForCriticalSection(RTL_CRITICAL_SECTION
*);
2906 NTSYSAPI NTSTATUS WINAPI
RtlpUnWaitCriticalSection(RTL_CRITICAL_SECTION
*);
2907 NTSYSAPI NTSTATUS WINAPI
vDbgPrintEx(ULONG
,ULONG
,LPCSTR
,__ms_va_list
);
2908 NTSYSAPI NTSTATUS WINAPI
vDbgPrintExWithPrefix(LPCSTR
,ULONG
,ULONG
,LPCSTR
,__ms_va_list
);
2910 NTSYSAPI
int __cdecl
_strnicmp(LPCSTR
,LPCSTR
,size_t);
2912 /* 32-bit only functions */
2915 NTSYSAPI LONGLONG WINAPI
RtlConvertLongToLargeInteger(LONG
);
2916 NTSYSAPI ULONGLONG WINAPI
RtlConvertUlongToLargeInteger(ULONG
);
2917 NTSYSAPI LONGLONG WINAPI
RtlEnlargedIntegerMultiply(INT
,INT
);
2918 NTSYSAPI ULONGLONG WINAPI
RtlEnlargedUnsignedMultiply(UINT
,UINT
);
2919 NTSYSAPI UINT WINAPI
RtlEnlargedUnsignedDivide(ULONGLONG
,UINT
,UINT
*);
2920 NTSYSAPI LONGLONG WINAPI
RtlExtendedMagicDivide(LONGLONG
,LONGLONG
,INT
);
2921 NTSYSAPI LONGLONG WINAPI
RtlExtendedIntegerMultiply(LONGLONG
,INT
);
2922 NTSYSAPI LONGLONG WINAPI
RtlExtendedLargeIntegerDivide(LONGLONG
,INT
,INT
*);
2923 NTSYSAPI LONGLONG WINAPI
RtlLargeIntegerAdd(LONGLONG
,LONGLONG
);
2924 NTSYSAPI LONGLONG WINAPI
RtlLargeIntegerArithmeticShift(LONGLONG
,INT
);
2925 NTSYSAPI ULONGLONG WINAPI
RtlLargeIntegerDivide( ULONGLONG
,ULONGLONG
,ULONGLONG
*);
2926 NTSYSAPI LONGLONG WINAPI
RtlLargeIntegerNegate(LONGLONG
);
2927 NTSYSAPI LONGLONG WINAPI
RtlLargeIntegerShiftLeft(LONGLONG
,INT
);
2928 NTSYSAPI LONGLONG WINAPI
RtlLargeIntegerShiftRight(LONGLONG
,INT
);
2929 NTSYSAPI LONGLONG WINAPI
RtlLargeIntegerSubtract(LONGLONG
,LONGLONG
);
2930 NTSYSAPI NTSTATUS WINAPI
RtlLargeIntegerToChar(const ULONGLONG
*,ULONG
,ULONG
,PCHAR
);
2933 /* Threadpool functions */
2935 NTSYSAPI NTSTATUS WINAPI
TpAllocCleanupGroup(TP_CLEANUP_GROUP
**);
2936 NTSYSAPI NTSTATUS WINAPI
TpAllocPool(TP_POOL
**,PVOID
);
2937 NTSYSAPI NTSTATUS WINAPI
TpAllocTimer(TP_TIMER
**,PTP_TIMER_CALLBACK
,PVOID
,TP_CALLBACK_ENVIRON
*);
2938 NTSYSAPI NTSTATUS WINAPI
TpAllocWait(TP_WAIT
**,PTP_WAIT_CALLBACK
,PVOID
,TP_CALLBACK_ENVIRON
*);
2939 NTSYSAPI NTSTATUS WINAPI
TpAllocWork(TP_WORK
**,PTP_WORK_CALLBACK
,PVOID
,TP_CALLBACK_ENVIRON
*);
2940 NTSYSAPI
void WINAPI
TpCallbackLeaveCriticalSectionOnCompletion(TP_CALLBACK_INSTANCE
*,RTL_CRITICAL_SECTION
*);
2941 NTSYSAPI NTSTATUS WINAPI
TpCallbackMayRunLong(TP_CALLBACK_INSTANCE
*);
2942 NTSYSAPI
void WINAPI
TpCallbackReleaseMutexOnCompletion(TP_CALLBACK_INSTANCE
*,HANDLE
);
2943 NTSYSAPI
void WINAPI
TpCallbackReleaseSemaphoreOnCompletion(TP_CALLBACK_INSTANCE
*,HANDLE
,DWORD
);
2944 NTSYSAPI
void WINAPI
TpCallbackSetEventOnCompletion(TP_CALLBACK_INSTANCE
*,HANDLE
);
2945 NTSYSAPI
void WINAPI
TpCallbackUnloadDllOnCompletion(TP_CALLBACK_INSTANCE
*,HMODULE
);
2946 NTSYSAPI
void WINAPI
TpDisassociateCallback(TP_CALLBACK_INSTANCE
*);
2947 NTSYSAPI BOOL WINAPI
TpIsTimerSet(TP_TIMER
*);
2948 NTSYSAPI
void WINAPI
TpPostWork(TP_WORK
*);
2949 NTSYSAPI
void WINAPI
TpReleaseCleanupGroup(TP_CLEANUP_GROUP
*);
2950 NTSYSAPI
void WINAPI
TpReleaseCleanupGroupMembers(TP_CLEANUP_GROUP
*,BOOL
,PVOID
);
2951 NTSYSAPI
void WINAPI
TpReleasePool(TP_POOL
*);
2952 NTSYSAPI
void WINAPI
TpReleaseTimer(TP_TIMER
*);
2953 NTSYSAPI
void WINAPI
TpReleaseWait(TP_WAIT
*);
2954 NTSYSAPI
void WINAPI
TpReleaseWork(TP_WORK
*);
2955 NTSYSAPI
void WINAPI
TpSetPoolMaxThreads(TP_POOL
*,DWORD
);
2956 NTSYSAPI BOOL WINAPI
TpSetPoolMinThreads(TP_POOL
*,DWORD
);
2957 NTSYSAPI
void WINAPI
TpSetTimer(TP_TIMER
*, LARGE_INTEGER
*,LONG
,LONG
);
2958 NTSYSAPI
void WINAPI
TpSetWait(TP_WAIT
*,HANDLE
,LARGE_INTEGER
*);
2959 NTSYSAPI NTSTATUS WINAPI
TpSimpleTryPost(PTP_SIMPLE_CALLBACK
,PVOID
,TP_CALLBACK_ENVIRON
*);
2960 NTSYSAPI
void WINAPI
TpWaitForTimer(TP_TIMER
*,BOOL
);
2961 NTSYSAPI
void WINAPI
TpWaitForWait(TP_WAIT
*,BOOL
);
2962 NTSYSAPI
void WINAPI
TpWaitForWork(TP_WORK
*,BOOL
);
2964 /* Wine internal functions */
2966 NTSYSAPI NTSTATUS CDECL
wine_nt_to_unix_file_name( const UNICODE_STRING
*nameW
, ANSI_STRING
*unix_name_ret
,
2967 UINT disposition
, BOOLEAN check_case
);
2968 NTSYSAPI NTSTATUS CDECL
wine_unix_to_nt_file_name( const ANSI_STRING
*name
, UNICODE_STRING
*nt
);
2971 /***********************************************************************
2975 #define InitializeObjectAttributes(p,n,a,r,s) \
2977 (p)->Length = sizeof(OBJECT_ATTRIBUTES); \
2978 (p)->RootDirectory = r; \
2979 (p)->Attributes = a; \
2980 (p)->ObjectName = n; \
2981 (p)->SecurityDescriptor = s; \
2982 (p)->SecurityQualityOfService = NULL; \
2985 #define NtCurrentProcess() ((HANDLE)-1)
2987 #define RtlFillMemory(Destination,Length,Fill) memset((Destination),(Fill),(Length))
2988 #define RtlMoveMemory(Destination,Source,Length) memmove((Destination),(Source),(Length))
2989 #define RtlStoreUlong(p,v) do { ULONG _v = (v); memcpy((p), &_v, sizeof(_v)); } while (0)
2990 #define RtlStoreUlonglong(p,v) do { ULONGLONG _v = (v); memcpy((p), &_v, sizeof(_v)); } while (0)
2991 #define RtlRetrieveUlong(p,s) memcpy((p), (s), sizeof(ULONG))
2992 #define RtlRetrieveUlonglong(p,s) memcpy((p), (s), sizeof(ULONGLONG))
2993 #define RtlZeroMemory(Destination,Length) memset((Destination),0,(Length))
2995 static inline BOOLEAN
RtlCheckBit(PCRTL_BITMAP lpBits
, ULONG ulBit
)
2997 if (lpBits
&& ulBit
< lpBits
->SizeOfBitMap
&&
2998 lpBits
->Buffer
[ulBit
>> 5] & (1 << (ulBit
& 31)))
3003 /* These are implemented as __fastcall, so we can't let Winelib apps link with them */
3004 static inline USHORT
RtlUshortByteSwap(USHORT s
)
3006 return (s
>> 8) | (s
<< 8);
3008 static inline ULONG
RtlUlongByteSwap(ULONG i
)
3010 #if defined(__i386__) && defined(__GNUC__)
3012 __asm__("bswap %0" : "=r" (ret
) : "0" (i
) );
3015 return ((ULONG
)RtlUshortByteSwap((USHORT
)i
) << 16) | RtlUshortByteSwap((USHORT
)(i
>> 16));
3019 /* list manipulation macros */
3020 #define InitializeListHead(le) (void)((le)->Flink = (le)->Blink = (le))
3021 #define InsertHeadList(le,e) do { PLIST_ENTRY f = (le)->Flink; (e)->Flink = f; (e)->Blink = (le); f->Blink = (e); (le)->Flink = (e); } while (0)
3022 #define InsertTailList(le,e) do { PLIST_ENTRY b = (le)->Blink; (e)->Flink = (le); (e)->Blink = b; b->Flink = (e); (le)->Blink = (e); } while (0)
3023 #define IsListEmpty(le) ((le)->Flink == (le))
3024 #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)
3025 static inline PLIST_ENTRY
RemoveHeadList(PLIST_ENTRY le
)
3027 PLIST_ENTRY f
, b
, e
;
3030 f
= le
->Flink
->Flink
;
3031 b
= le
->Flink
->Blink
;
3035 if (e
!= le
) e
->Flink
= e
->Blink
= NULL
;
3038 static inline PLIST_ENTRY
RemoveTailList(PLIST_ENTRY le
)
3040 PLIST_ENTRY f
, b
, e
;
3043 f
= le
->Blink
->Flink
;
3044 b
= le
->Blink
->Blink
;
3048 if (e
!= le
) e
->Flink
= e
->Blink
= NULL
;
3055 /* The thread information for 16-bit threads */
3056 /* NtCurrentTeb()->SubSystemTib points to this */
3059 void *unknown
; /* 00 unknown */
3060 UNICODE_STRING
*exe_name
; /* 04 exe module name */
3062 /* the following fields do not exist under Windows */
3063 UNICODE_STRING exe_str
; /* exe name string pointed to by exe_name */
3064 CURDIR curdir
; /* current directory */
3065 WCHAR curdir_buffer
[MAX_PATH
];
3066 } WIN16_SUBSYSTEM_TIB
;
3068 #endif /* __WINESRC__ */
3072 #endif /* defined(__cplusplus) */
3074 #endif /* __WINE_WINTERNL_H */