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