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 _CLIENT_ID
120 HANDLE UniqueProcess
;
122 } CLIENT_ID
, *PCLIENT_ID
;
124 typedef struct _CURDIR
126 UNICODE_STRING DosPath
;
130 typedef struct RTL_DRIVE_LETTER_CURDIR
135 UNICODE_STRING DosPath
;
136 } RTL_DRIVE_LETTER_CURDIR
, *PRTL_DRIVE_LETTER_CURDIR
;
138 typedef struct tagRTL_BITMAP
{
139 ULONG SizeOfBitMap
; /* Number of bits in the bitmap */
140 PULONG Buffer
; /* Bitmap data, assumed sized to a DWORD boundary */
141 } RTL_BITMAP
, *PRTL_BITMAP
;
143 typedef const RTL_BITMAP
*PCRTL_BITMAP
;
145 typedef struct tagRTL_BITMAP_RUN
{
146 ULONG StartingIndex
; /* Bit position at which run starts */
147 ULONG NumberOfBits
; /* Size of the run in bits */
148 } RTL_BITMAP_RUN
, *PRTL_BITMAP_RUN
;
150 typedef const RTL_BITMAP_RUN
*PCRTL_BITMAP_RUN
;
152 typedef struct _RTL_USER_PROCESS_PARAMETERS
154 ULONG AllocationSize
;
158 HANDLE ConsoleHandle
;
163 CURDIR CurrentDirectory
;
164 UNICODE_STRING DllPath
;
165 UNICODE_STRING ImagePathName
;
166 UNICODE_STRING CommandLine
;
174 ULONG dwFillAttribute
;
177 UNICODE_STRING WindowTitle
;
178 UNICODE_STRING Desktop
;
179 UNICODE_STRING ShellInfo
;
180 UNICODE_STRING RuntimeInfo
;
181 RTL_DRIVE_LETTER_CURDIR DLCurrentDirectory
[0x20];
182 } RTL_USER_PROCESS_PARAMETERS
, *PRTL_USER_PROCESS_PARAMETERS
;
184 /* value for Flags field (FIXME: not the correct name) */
185 #define PROCESS_PARAMS_FLAG_NORMALIZED 1
187 typedef struct _PEB_LDR_DATA
192 LIST_ENTRY InLoadOrderModuleList
;
193 LIST_ENTRY InMemoryOrderModuleList
;
194 LIST_ENTRY InInitializationOrderModuleList
;
195 PVOID EntryInProgress
;
196 } PEB_LDR_DATA
, *PPEB_LDR_DATA
;
198 typedef struct _GDI_TEB_BATCH
205 typedef struct _RTL_ACTIVATION_CONTEXT_STACK_FRAME
207 struct _RTL_ACTIVATION_CONTEXT_STACK_FRAME
*Previous
;
208 struct _ACTIVATION_CONTEXT
*ActivationContext
;
210 } RTL_ACTIVATION_CONTEXT_STACK_FRAME
, *PRTL_ACTIVATION_CONTEXT_STACK_FRAME
;
212 typedef struct _ACTIVATION_CONTEXT_STACK
215 ULONG NextCookieSequenceNumber
;
216 RTL_ACTIVATION_CONTEXT_STACK_FRAME
*ActiveFrame
;
217 LIST_ENTRY FrameListCache
;
218 } ACTIVATION_CONTEXT_STACK
, *PACTIVATION_CONTEXT_STACK
;
220 /***********************************************************************
225 BOOLEAN InheritedAddressSpace
; /* 000/000 */
226 BOOLEAN ReadImageFileExecOptions
; /* 001/001 */
227 BOOLEAN BeingDebugged
; /* 002/002 */
228 BOOLEAN SpareBool
; /* 003/003 */
229 HANDLE Mutant
; /* 004/008 */
230 HMODULE ImageBaseAddress
; /* 008/010 */
231 PPEB_LDR_DATA LdrData
; /* 00c/018 */
232 RTL_USER_PROCESS_PARAMETERS
*ProcessParameters
; /* 010/020 */
233 PVOID SubSystemData
; /* 014/028 */
234 HANDLE ProcessHeap
; /* 018/030 */
235 PRTL_CRITICAL_SECTION FastPebLock
; /* 01c/038 */
236 PVOID
/*PPEBLOCKROUTINE*/ FastPebLockRoutine
; /* 020/040 */
237 PVOID
/*PPEBLOCKROUTINE*/ FastPebUnlockRoutine
; /* 024/048 */
238 ULONG EnvironmentUpdateCount
; /* 028/050 */
239 PVOID KernelCallbackTable
; /* 02c/058 */
240 ULONG Reserved
[2]; /* 030/060 */
241 PVOID
/*PPEB_FREE_BLOCK*/ FreeList
; /* 038/068 */
242 ULONG TlsExpansionCounter
; /* 03c/070 */
243 PRTL_BITMAP TlsBitmap
; /* 040/078 */
244 ULONG TlsBitmapBits
[2]; /* 044/080 */
245 PVOID ReadOnlySharedMemoryBase
; /* 04c/088 */
246 PVOID ReadOnlySharedMemoryHeap
; /* 050/090 */
247 PVOID
*ReadOnlyStaticServerData
; /* 054/098 */
248 PVOID AnsiCodePageData
; /* 058/0a0 */
249 PVOID OemCodePageData
; /* 05c/0a8 */
250 PVOID UnicodeCaseTableData
; /* 060/0b0 */
251 ULONG NumberOfProcessors
; /* 064/0b8 */
252 ULONG NtGlobalFlag
; /* 068/0bc */
253 LARGE_INTEGER CriticalSectionTimeout
; /* 070/0c0 */
254 SIZE_T HeapSegmentReserve
; /* 078/0c8 */
255 SIZE_T HeapSegmentCommit
; /* 07c/0d0 */
256 SIZE_T HeapDeCommitTotalFreeThreshold
; /* 080/0d8 */
257 SIZE_T HeapDeCommitFreeBlockThreshold
; /* 084/0e0 */
258 ULONG NumberOfHeaps
; /* 088/0e8 */
259 ULONG MaximumNumberOfHeaps
; /* 08c/0ec */
260 PVOID
*ProcessHeaps
; /* 090/0f0 */
261 PVOID GdiSharedHandleTable
; /* 094/0f8 */
262 PVOID ProcessStarterHelper
; /* 098/100 */
263 PVOID GdiDCAttributeList
; /* 09c/108 */
264 PVOID LoaderLock
; /* 0a0/110 */
265 ULONG OSMajorVersion
; /* 0a4/118 */
266 ULONG OSMinorVersion
; /* 0a8/11c */
267 ULONG OSBuildNumber
; /* 0ac/120 */
268 ULONG OSPlatformId
; /* 0b0/124 */
269 ULONG ImageSubSystem
; /* 0b4/128 */
270 ULONG ImageSubSystemMajorVersion
; /* 0b8/12c */
271 ULONG ImageSubSystemMinorVersion
; /* 0bc/130 */
272 ULONG ImageProcessAffinityMask
; /* 0c0/134 */
273 HANDLE GdiHandleBuffer
[28]; /* 0c4/138 */
274 ULONG unknown
[6]; /* 134/218 */
275 PVOID PostProcessInitRoutine
; /* 14c/230 */
276 PRTL_BITMAP TlsExpansionBitmap
; /* 150/238 */
277 ULONG TlsExpansionBitmapBits
[32]; /* 154/240 */
278 ULONG SessionId
; /* 1d4/2c0 */
279 ULARGE_INTEGER AppCompatFlags
; /* 1d8/2c8 */
280 ULARGE_INTEGER AppCompatFlagsUser
; /* 1e0/2d0 */
281 PVOID ShimData
; /* 1e8/2d8 */
282 PVOID AppCompatInfo
; /* 1ec/2e0 */
283 UNICODE_STRING CSDVersion
; /* 1f0/2e8 */
284 PVOID ActivationContextData
; /* 1f8/2f8 */
285 PVOID ProcessAssemblyStorageMap
; /* 1fc/300 */
286 PVOID SystemDefaultActivationData
; /* 200/308 */
287 PVOID SystemAssemblyStorageMap
; /* 204/310 */
288 SIZE_T MinimumStackCommit
; /* 208/318 */
289 PVOID
*FlsCallback
; /* 20c/320 */
290 LIST_ENTRY FlsListHead
; /* 210/328 */
291 PRTL_BITMAP FlsBitmap
; /* 218/338 */
292 ULONG FlsBitmapBits
[4]; /* 21c/340 */
296 /***********************************************************************
301 NT_TIB Tib
; /* 000/0000 */
302 PVOID EnvironmentPointer
; /* 01c/0038 */
303 CLIENT_ID ClientId
; /* 020/0040 */
304 PVOID ActiveRpcHandle
; /* 028/0050 */
305 PVOID ThreadLocalStoragePointer
; /* 02c/0058 */
306 PPEB Peb
; /* 030/0060 */
307 ULONG LastErrorValue
; /* 034/0068 */
308 ULONG CountOfOwnedCriticalSections
; /* 038/006c */
309 PVOID CsrClientThread
; /* 03c/0070 */
310 PVOID Win32ThreadInfo
; /* 040/0078 */
311 ULONG Win32ClientInfo
[31]; /* 044/0080 used for user32 private data in Wine */
312 PVOID WOW32Reserved
; /* 0c0/0100 */
313 ULONG CurrentLocale
; /* 0c4/0108 */
314 ULONG FpSoftwareStatusRegister
; /* 0c8/010c */
315 PVOID SystemReserved1
[54]; /* 0cc/0110 used for kernel32 private data in Wine */
316 LONG ExceptionCode
; /* 1a4/02c0 */
317 ACTIVATION_CONTEXT_STACK ActivationContextStack
; /* 1a8/02c8 */
318 BYTE SpareBytes1
[24]; /* 1bc/02e8 used for ntdll private data in Wine */
319 PVOID SystemReserved2
[10]; /* 1d4/0300 used for ntdll private data in Wine */
320 GDI_TEB_BATCH GdiTebBatch
; /* 1fc/0350 used for vm86 private data in Wine */
321 HANDLE gdiRgn
; /* 6dc/0838 */
322 HANDLE gdiPen
; /* 6e0/0840 */
323 HANDLE gdiBrush
; /* 6e4/0848 */
324 CLIENT_ID RealClientId
; /* 6e8/0850 */
325 HANDLE GdiCachedProcessHandle
; /* 6f0/0860 */
326 ULONG GdiClientPID
; /* 6f4/0868 */
327 ULONG GdiClientTID
; /* 6f8/086c */
328 PVOID GdiThreadLocaleInfo
; /* 6fc/0870 */
329 ULONG UserReserved
[5]; /* 700/0878 */
330 PVOID glDispachTable
[280]; /* 714/0890 */
331 PVOID glReserved1
[26]; /* b74/1150 */
332 PVOID glReserved2
; /* bdc/1220 */
333 PVOID glSectionInfo
; /* be0/1228 */
334 PVOID glSection
; /* be4/1230 */
335 PVOID glTable
; /* be8/1238 */
336 PVOID glCurrentRC
; /* bec/1240 */
337 PVOID glContext
; /* bf0/1248 */
338 ULONG LastStatusValue
; /* bf4/1250 */
339 UNICODE_STRING StaticUnicodeString
; /* bf8/1258 used by advapi32 */
340 WCHAR StaticUnicodeBuffer
[261]; /* c00/1268 used by advapi32 */
341 PVOID DeallocationStack
; /* e0c/1478 */
342 PVOID TlsSlots
[64]; /* e10/1480 */
343 LIST_ENTRY TlsLinks
; /* f10/1680 */
344 PVOID Vdm
; /* f18/1690 */
345 PVOID ReservedForNtRpc
; /* f1c/1698 */
346 PVOID DbgSsReserved
[2]; /* f20/16a0 */
347 ULONG HardErrorDisabled
; /* f28/16b0 */
348 PVOID Instrumentation
[16]; /* f2c/16b8 */
349 PVOID WinSockData
; /* f6c/1738 */
350 ULONG GdiBatchCount
; /* f70/1740 */
351 ULONG Spare2
; /* f74/1744 */
352 PVOID Spare3
; /* f78/1748 */
353 PVOID Spare4
; /* f7c/1750 */
354 PVOID ReservedForOle
; /* f80/1758 */
355 ULONG WaitingOnLoaderLock
; /* f84/1760 */
356 PVOID Reserved5
[3]; /* f88/1768 */
357 PVOID
*TlsExpansionSlots
; /* f94/1780 */
358 ULONG ImpersonationLocale
; /* f98/1788 */
359 ULONG IsImpersonating
; /* f9c/178c */
360 PVOID NlsCache
; /* fa0/1790 */
361 PVOID ShimData
; /* fa4/1798 */
362 ULONG HeapVirtualAffinity
; /* fa8/17a0 */
363 PVOID CurrentTransactionHandle
; /* fac/17a8 */
364 PVOID ActiveFrame
; /* fb0/17b0 */
366 PVOID unknown
[2]; /* 17b8 */
368 PVOID
*FlsSlots
; /* fb4/17c8 */
371 /***********************************************************************
375 typedef enum _FILE_INFORMATION_CLASS
{
376 FileDirectoryInformation
= 1,
377 FileFullDirectoryInformation
,
378 FileBothDirectoryInformation
,
379 FileBasicInformation
,
380 FileStandardInformation
,
381 FileInternalInformation
,
383 FileAccessInformation
,
385 FileRenameInformation
,
387 FileNamesInformation
,
388 FileDispositionInformation
,
389 FilePositionInformation
,
390 FileFullEaInformation
,
392 FileAlignmentInformation
,
394 FileAllocationInformation
,
395 FileEndOfFileInformation
,
396 FileAlternateNameInformation
,
397 FileStreamInformation
,
399 FilePipeLocalInformation
,
400 FilePipeRemoteInformation
,
401 FileMailslotQueryInformation
,
402 FileMailslotSetInformation
,
403 FileCompressionInformation
,
404 FileObjectIdInformation
,
405 FileCompletionInformation
,
406 FileMoveClusterInformation
,
407 FileQuotaInformation
,
408 FileReparsePointInformation
,
409 FileNetworkOpenInformation
,
410 FileAttributeTagInformation
,
411 FileTrackingInformation
,
412 FileIdBothDirectoryInformation
,
413 FileIdFullDirectoryInformation
,
414 FileValidDataLengthInformation
,
415 FileShortNameInformation
= 40,
416 /* 41, 42, 43 undocumented */
417 FileSfioReserveInformation
= 44,
418 FileSfioVolumeInformation
= 45,
419 FileHardLinkInformation
= 46,
420 /* 47 undocumented */
421 FileNormalizedNameInformation
= 48,
422 /* 49 undocumented */
423 FileIdGlobalTxDirectoryInformation
= 50,
424 /* 51, 52, 53 undocumented */
425 FileStandardLinkInformation
= 54,
426 FileMaximumInformation
427 } FILE_INFORMATION_CLASS
, *PFILE_INFORMATION_CLASS
;
429 typedef struct _FILE_DIRECTORY_INFORMATION
{
430 ULONG NextEntryOffset
;
432 LARGE_INTEGER CreationTime
;
433 LARGE_INTEGER LastAccessTime
;
434 LARGE_INTEGER LastWriteTime
;
435 LARGE_INTEGER ChangeTime
;
436 LARGE_INTEGER EndOfFile
;
437 LARGE_INTEGER AllocationSize
;
438 ULONG FileAttributes
;
439 ULONG FileNameLength
;
440 WCHAR FileName
[ANYSIZE_ARRAY
];
441 } FILE_DIRECTORY_INFORMATION
, *PFILE_DIRECTORY_INFORMATION
;
443 typedef struct _FILE_FULL_DIRECTORY_INFORMATION
{
444 ULONG NextEntryOffset
;
446 LARGE_INTEGER CreationTime
;
447 LARGE_INTEGER LastAccessTime
;
448 LARGE_INTEGER LastWriteTime
;
449 LARGE_INTEGER ChangeTime
;
450 LARGE_INTEGER EndOfFile
;
451 LARGE_INTEGER AllocationSize
;
452 ULONG FileAttributes
;
453 ULONG FileNameLength
;
455 WCHAR FileName
[ANYSIZE_ARRAY
];
456 } FILE_FULL_DIRECTORY_INFORMATION
, *PFILE_FULL_DIRECTORY_INFORMATION
,
457 FILE_FULL_DIR_INFORMATION
, *PFILE_FULL_DIR_INFORMATION
;
459 typedef struct _FILE_ID_FULL_DIRECTORY_INFORMATION
{
460 ULONG NextEntryOffset
;
462 LARGE_INTEGER CreationTime
;
463 LARGE_INTEGER LastAccessTime
;
464 LARGE_INTEGER LastWriteTime
;
465 LARGE_INTEGER ChangeTime
;
466 LARGE_INTEGER EndOfFile
;
467 LARGE_INTEGER AllocationSize
;
468 ULONG FileAttributes
;
469 ULONG FileNameLength
;
471 LARGE_INTEGER FileId
;
472 WCHAR FileName
[ANYSIZE_ARRAY
];
473 } FILE_ID_FULL_DIRECTORY_INFORMATION
, *PFILE_ID_FULL_DIRECTORY_INFORMATION
;
475 typedef struct _FILE_BOTH_DIRECTORY_INFORMATION
{
476 ULONG NextEntryOffset
;
478 LARGE_INTEGER CreationTime
;
479 LARGE_INTEGER LastAccessTime
;
480 LARGE_INTEGER LastWriteTime
;
481 LARGE_INTEGER ChangeTime
;
482 LARGE_INTEGER EndOfFile
;
483 LARGE_INTEGER AllocationSize
;
484 ULONG FileAttributes
;
485 ULONG FileNameLength
;
487 CHAR ShortNameLength
;
489 WCHAR FileName
[ANYSIZE_ARRAY
];
490 } FILE_BOTH_DIRECTORY_INFORMATION
, *PFILE_BOTH_DIRECTORY_INFORMATION
,
491 FILE_BOTH_DIR_INFORMATION
, *PFILE_BOTH_DIR_INFORMATION
;
493 typedef struct _FILE_ID_BOTH_DIRECTORY_INFORMATION
{
494 ULONG NextEntryOffset
;
496 LARGE_INTEGER CreationTime
;
497 LARGE_INTEGER LastAccessTime
;
498 LARGE_INTEGER LastWriteTime
;
499 LARGE_INTEGER ChangeTime
;
500 LARGE_INTEGER EndOfFile
;
501 LARGE_INTEGER AllocationSize
;
502 ULONG FileAttributes
;
503 ULONG FileNameLength
;
505 CHAR ShortNameLength
;
507 LARGE_INTEGER FileId
;
508 WCHAR FileName
[ANYSIZE_ARRAY
];
509 } FILE_ID_BOTH_DIRECTORY_INFORMATION
, *PFILE_ID_BOTH_DIRECTORY_INFORMATION
;
511 typedef struct _FILE_BASIC_INFORMATION
{
512 LARGE_INTEGER CreationTime
;
513 LARGE_INTEGER LastAccessTime
;
514 LARGE_INTEGER LastWriteTime
;
515 LARGE_INTEGER ChangeTime
;
516 ULONG FileAttributes
;
517 } FILE_BASIC_INFORMATION
, *PFILE_BASIC_INFORMATION
;
519 typedef struct _FILE_STANDARD_INFORMATION
{
520 LARGE_INTEGER AllocationSize
;
521 LARGE_INTEGER EndOfFile
;
523 BOOLEAN DeletePending
;
525 } FILE_STANDARD_INFORMATION
, *PFILE_STANDARD_INFORMATION
;
527 typedef struct _FILE_INTERNAL_INFORMATION
{
528 LARGE_INTEGER IndexNumber
;
529 } FILE_INTERNAL_INFORMATION
, *PFILE_INTERNAL_INFORMATION
;
531 typedef struct _FILE_EA_INFORMATION
{
533 } FILE_EA_INFORMATION
, *PFILE_EA_INFORMATION
;
535 typedef struct _FILE_ACCESS_INFORMATION
{
536 ACCESS_MASK AccessFlags
;
537 } FILE_ACCESS_INFORMATION
, *PFILE_ACCESS_INFORMATION
;
539 typedef struct _FILE_NAME_INFORMATION
{
540 ULONG FileNameLength
;
542 } FILE_NAME_INFORMATION
, *PFILE_NAME_INFORMATION
;
544 typedef struct _FILE_RENAME_INFORMATION
{
547 ULONG FileNameLength
;
549 } FILE_RENAME_INFORMATION
, *PFILE_RENAME_INFORMATION
;
551 typedef struct _FILE_NAMES_INFORMATION
{
552 ULONG NextEntryOffset
;
554 ULONG FileNameLength
;
556 } FILE_NAMES_INFORMATION
, *PFILE_NAMES_INFORMATION
;
558 typedef struct _FILE_DISPOSITION_INFORMATION
{
559 BOOLEAN DoDeleteFile
;
560 } FILE_DISPOSITION_INFORMATION
, *PFILE_DISPOSITION_INFORMATION
;
562 typedef struct _FILE_POSITION_INFORMATION
{
563 LARGE_INTEGER CurrentByteOffset
;
564 } FILE_POSITION_INFORMATION
, *PFILE_POSITION_INFORMATION
;
566 typedef struct _FILE_ALIGNMENT_INFORMATION
{
567 ULONG AlignmentRequirement
;
568 } FILE_ALIGNMENT_INFORMATION
, *PFILE_ALIGNMENT_INFORMATION
;
570 typedef struct _FILE_ALLOCATION_INFORMATION
{
571 LARGE_INTEGER AllocationSize
;
572 } FILE_ALLOCATION_INFORMATION
, *PFILE_ALLOCATION_INFORMATION
;
574 typedef struct _FILE_END_OF_FILE_INFORMATION
{
575 LARGE_INTEGER EndOfFile
;
576 } FILE_END_OF_FILE_INFORMATION
, *PFILE_END_OF_FILE_INFORMATION
;
578 typedef struct _FILE_NETWORK_OPEN_INFORMATION
{
579 LARGE_INTEGER CreationTime
;
580 LARGE_INTEGER LastAccessTime
;
581 LARGE_INTEGER LastWriteTime
;
582 LARGE_INTEGER ChangeTime
;
583 LARGE_INTEGER AllocationSize
;
584 LARGE_INTEGER EndOfFile
;
585 ULONG FileAttributes
;
586 } FILE_NETWORK_OPEN_INFORMATION
, *PFILE_NETWORK_OPEN_INFORMATION
;
588 typedef struct _FILE_FULL_EA_INFORMATION
{
589 ULONG NextEntryOffset
;
592 USHORT EaValueLength
;
594 } FILE_FULL_EA_INFORMATION
, *PFILE_FULL_EA_INFORMATION
;
596 typedef struct _FILE_MODE_INFORMATION
{
598 } FILE_MODE_INFORMATION
, *PFILE_MODE_INFORMATION
;
600 typedef struct _FILE_STREAM_INFORMATION
602 ULONG NextEntryOffset
;
603 ULONG StreamNameLength
;
604 LARGE_INTEGER StreamSize
;
605 LARGE_INTEGER StreamAllocationSize
;
607 } FILE_STREAM_INFORMATION
, *PFILE_STREAM_INFORMATION
;
609 typedef struct _FILE_ATTRIBUTE_TAG_INFORMATION
611 ULONG FileAttributes
;
613 } FILE_ATTRIBUTE_TAG_INFORMATION
, *PFILE_ATTRIBUTE_TAG_INFORMATION
;
615 typedef struct _FILE_MAILSLOT_QUERY_INFORMATION
{
616 ULONG MaximumMessageSize
;
618 ULONG NextMessageSize
;
619 ULONG MessagesAvailable
;
620 LARGE_INTEGER ReadTimeout
;
621 } FILE_MAILSLOT_QUERY_INFORMATION
, *PFILE_MAILSLOT_QUERY_INFORMATION
;
623 typedef struct _FILE_MAILSLOT_SET_INFORMATION
{
624 LARGE_INTEGER ReadTimeout
;
625 } FILE_MAILSLOT_SET_INFORMATION
, *PFILE_MAILSLOT_SET_INFORMATION
;
627 typedef struct _FILE_PIPE_INFORMATION
{
629 ULONG CompletionMode
;
630 } FILE_PIPE_INFORMATION
, *PFILE_PIPE_INFORMATION
;
632 typedef struct _FILE_PIPE_LOCAL_INFORMATION
{
634 ULONG NamedPipeConfiguration
;
635 ULONG MaximumInstances
;
636 ULONG CurrentInstances
;
638 ULONG ReadDataAvailable
;
640 ULONG WriteQuotaAvailable
;
641 ULONG NamedPipeState
;
643 } FILE_PIPE_LOCAL_INFORMATION
, *PFILE_PIPE_LOCAL_INFORMATION
;
645 typedef struct _FILE_ALL_INFORMATION
{
646 FILE_BASIC_INFORMATION BasicInformation
;
647 FILE_STANDARD_INFORMATION StandardInformation
;
648 FILE_INTERNAL_INFORMATION InternalInformation
;
649 FILE_EA_INFORMATION EaInformation
;
650 FILE_ACCESS_INFORMATION AccessInformation
;
651 FILE_POSITION_INFORMATION PositionInformation
;
652 FILE_MODE_INFORMATION ModeInformation
;
653 FILE_ALIGNMENT_INFORMATION AlignmentInformation
;
654 FILE_NAME_INFORMATION NameInformation
;
655 } FILE_ALL_INFORMATION
, *PFILE_ALL_INFORMATION
;
657 typedef enum _FSINFOCLASS
{
658 FileFsVolumeInformation
= 1,
659 FileFsLabelInformation
,
660 FileFsSizeInformation
,
661 FileFsDeviceInformation
,
662 FileFsAttributeInformation
,
663 FileFsControlInformation
,
664 FileFsFullSizeInformation
,
665 FileFsObjectIdInformation
,
666 FileFsMaximumInformation
667 } FS_INFORMATION_CLASS
, *PFS_INFORMATION_CLASS
;
669 typedef enum _KEY_INFORMATION_CLASS
{
674 } KEY_INFORMATION_CLASS
;
676 typedef enum _KEY_VALUE_INFORMATION_CLASS
{
677 KeyValueBasicInformation
,
678 KeyValueFullInformation
,
679 KeyValuePartialInformation
,
680 KeyValueFullInformationAlign64
,
681 KeyValuePartialInformationAlign64
682 } KEY_VALUE_INFORMATION_CLASS
;
684 typedef enum _OBJECT_INFORMATION_CLASS
{
685 ObjectBasicInformation
,
686 ObjectNameInformation
,
687 ObjectTypeInformation
,
688 ObjectAllInformation
,
689 ObjectDataInformation
690 } OBJECT_INFORMATION_CLASS
, *POBJECT_INFORMATION_CLASS
;
692 typedef enum _PROCESSINFOCLASS
{
693 ProcessBasicInformation
= 0,
694 ProcessQuotaLimits
= 1,
695 ProcessIoCounters
= 2,
696 ProcessVmCounters
= 3,
698 ProcessBasePriority
= 5,
699 ProcessRaisePriority
= 6,
700 ProcessDebugPort
= 7,
701 ProcessExceptionPort
= 8,
702 ProcessAccessToken
= 9,
703 ProcessLdtInformation
= 10,
705 ProcessDefaultHardErrorMode
= 12,
706 ProcessIoPortHandlers
= 13,
707 ProcessPooledUsageAndLimits
= 14,
708 ProcessWorkingSetWatch
= 15,
709 ProcessUserModeIOPL
= 16,
710 ProcessEnableAlignmentFaultFixup
= 17,
711 ProcessPriorityClass
= 18,
712 ProcessWx86Information
= 19,
713 ProcessHandleCount
= 20,
714 ProcessAffinityMask
= 21,
715 ProcessPriorityBoost
= 22,
716 ProcessDeviceMap
= 23,
717 ProcessSessionInformation
= 24,
718 ProcessForegroundInformation
= 25,
719 ProcessWow64Information
= 26,
720 ProcessImageFileName
= 27,
721 ProcessLUIDDeviceMapsEnabled
= 28,
722 ProcessBreakOnTermination
= 29,
723 ProcessDebugObjectHandle
= 30,
724 ProcessDebugFlags
= 31,
725 ProcessHandleTracing
= 32,
726 ProcessExecuteFlags
= 34,
728 } PROCESSINFOCLASS
, PROCESS_INFORMATION_CLASS
;
730 #define MEM_EXECUTE_OPTION_DISABLE 0x01
731 #define MEM_EXECUTE_OPTION_ENABLE 0x02
732 #define MEM_EXECUTE_OPTION_DISABLE_THUNK_EMULATION 0x04
733 #define MEM_EXECUTE_OPTION_PERMANENT 0x08
735 typedef enum _SECTION_INHERIT
{
740 typedef enum _SYSTEM_INFORMATION_CLASS
{
741 SystemBasicInformation
= 0,
742 SystemCpuInformation
= 1,
743 SystemPerformanceInformation
= 2,
744 SystemTimeOfDayInformation
= 3, /* was SystemTimeInformation */
746 SystemProcessInformation
= 5,
749 SystemProcessorPerformanceInformation
= 8,
752 SystemModuleInformation
= 11,
757 SystemHandleInformation
= 16,
759 SystemPageFileInformation
= 18,
762 SystemCacheInformation
= 21,
764 SystemInterruptInformation
= 23,
765 SystemDpcBehaviourInformation
= 24,
766 SystemFullMemoryInformation
= 25,
767 SystemNotImplemented6
= 25,
768 SystemLoadImage
= 26,
769 SystemUnloadImage
= 27,
770 SystemTimeAdjustmentInformation
= 28,
771 SystemTimeAdjustment
= 28,
772 SystemSummaryMemoryInformation
= 29,
773 SystemNotImplemented7
= 29,
774 SystemNextEventIdInformation
= 30,
775 SystemNotImplemented8
= 30,
776 SystemEventIdsInformation
= 31,
777 SystemCrashDumpInformation
= 32,
778 SystemExceptionInformation
= 33,
779 SystemCrashDumpStateInformation
= 34,
780 SystemKernelDebuggerInformation
= 35,
781 SystemContextSwitchInformation
= 36,
782 SystemRegistryQuotaInformation
= 37,
783 SystemCurrentTimeZoneInformation
= 44,
784 SystemTimeZoneInformation
= 44,
785 SystemLookasideInformation
= 45,
786 SystemSetTimeSlipEvent
= 46,
787 SystemCreateSession
= 47,
788 SystemDeleteSession
= 48,
789 SystemInvalidInfoClass4
= 49,
790 SystemRangeStartInformation
= 50,
791 SystemVerifierInformation
= 51,
792 SystemAddVerifier
= 52,
793 SystemSessionProcessesInformation
= 53,
813 SystemLogicalProcessorInformation
= 73,
814 SystemInformationClassMax
815 } SYSTEM_INFORMATION_CLASS
, *PSYSTEM_INFORMATION_CLASS
;
817 typedef enum _THREADINFOCLASS
{
818 ThreadBasicInformation
,
823 ThreadImpersonationToken
,
824 ThreadDescriptorTableEntry
,
825 ThreadEnableAlignmentFaultFixup
,
826 ThreadEventPair_Reusable
,
827 ThreadQuerySetWin32StartAddress
,
829 ThreadPerformanceCount
,
831 ThreadIdealProcessor
,
833 ThreadSetTlsArrayAddress
,
835 ThreadHideFromDebugger
,
839 typedef struct _THREAD_BASIC_INFORMATION
842 PVOID TebBaseAddress
;
844 ULONG_PTR AffinityMask
;
847 } THREAD_BASIC_INFORMATION
, *PTHREAD_BASIC_INFORMATION
;
849 typedef struct _THREAD_DESCRIPTOR_INFORMATION
853 } THREAD_DESCRIPTOR_INFORMATION
, *PTHREAD_DESCRIPTOR_INFORMATION
;
855 typedef struct _KERNEL_USER_TIMES
{
856 LARGE_INTEGER CreateTime
;
857 LARGE_INTEGER ExitTime
;
858 LARGE_INTEGER KernelTime
;
859 LARGE_INTEGER UserTime
;
860 } KERNEL_USER_TIMES
, *PKERNEL_USER_TIMES
;
862 typedef enum _WINSTATIONINFOCLASS
{
863 WinStationInformation
= 8
864 } WINSTATIONINFOCLASS
;
866 typedef enum _MEMORY_INFORMATION_CLASS
{
867 MemoryBasicInformation
,
868 MemoryWorkingSetList
,
870 MemoryBasicVlmInformation
871 } MEMORY_INFORMATION_CLASS
;
873 typedef struct _MEMORY_SECTION_NAME
875 UNICODE_STRING SectionFileName
;
876 } MEMORY_SECTION_NAME
, *PMEMORY_SECTION_NAME
;
878 typedef enum _MUTANT_INFORMATION_CLASS
880 MutantBasicInformation
881 } MUTANT_INFORMATION_CLASS
, *PMUTANT_INFORMATION_CLASS
;
883 typedef struct _MUTANT_BASIC_INFORMATION
{
885 BOOLEAN OwnedByCaller
;
886 BOOLEAN AbandonedState
;
887 } MUTANT_BASIC_INFORMATION
, *PMUTANT_BASIC_INFORMATION
;
889 typedef enum _TIMER_INFORMATION_CLASS
891 TimerBasicInformation
= 0
892 } TIMER_INFORMATION_CLASS
;
894 typedef struct _TIMER_BASIC_INFORMATION
896 LARGE_INTEGER RemainingTime
;
898 } TIMER_BASIC_INFORMATION
, *PTIMER_BASIC_INFORMATION
;
901 /* return type of RtlDetermineDosPathNameType_U (FIXME: not the correct names) */
905 UNC_PATH
, /* "//foo" */
906 ABSOLUTE_DRIVE_PATH
, /* "c:/foo" */
907 RELATIVE_DRIVE_PATH
, /* "c:foo" */
908 ABSOLUTE_PATH
, /* "/foo" */
909 RELATIVE_PATH
, /* "foo" */
910 DEVICE_PATH
, /* "//./foo" */
911 UNC_DOT_PATH
/* "//." */
915 /***********************************************************************
916 * Types and data structures
919 /* This is used by NtQuerySystemInformation */
920 typedef struct _SYSTEM_THREAD_INFORMATION
922 LARGE_INTEGER KernelTime
; /* 00/00 */
923 LARGE_INTEGER UserTime
; /* 08/08 */
924 LARGE_INTEGER CreateTime
; /* 10/10 */
925 DWORD dwTickCount
; /* 18/18 */
926 LPVOID StartAddress
; /* 1c/20 */
927 CLIENT_ID ClientId
; /* 20/28 */
928 DWORD dwCurrentPriority
; /* 28/38 */
929 DWORD dwBasePriority
; /* 2c/3c */
930 DWORD dwContextSwitches
; /* 30/40 */
931 DWORD dwThreadState
; /* 34/44 */
932 DWORD dwWaitReason
; /* 38/48 */
933 DWORD dwUnknown
; /* 3c/4c */
934 } SYSTEM_THREAD_INFORMATION
, *PSYSTEM_THREAD_INFORMATION
;
936 typedef struct _IO_STATUS_BLOCK
{
942 ULONG_PTR Information
;
943 } IO_STATUS_BLOCK
, *PIO_STATUS_BLOCK
;
945 typedef void (WINAPI
* PIO_APC_ROUTINE
)(PVOID
,PIO_STATUS_BLOCK
,ULONG
);
947 typedef struct _KEY_BASIC_INFORMATION
{
948 LARGE_INTEGER LastWriteTime
;
952 } KEY_BASIC_INFORMATION
, *PKEY_BASIC_INFORMATION
;
954 typedef struct _KEY_NODE_INFORMATION
956 LARGE_INTEGER LastWriteTime
;
963 } KEY_NODE_INFORMATION
, *PKEY_NODE_INFORMATION
;
965 typedef struct _KEY_FULL_INFORMATION
967 LARGE_INTEGER LastWriteTime
;
975 ULONG MaxValueNameLen
;
976 ULONG MaxValueDataLen
;
978 } KEY_FULL_INFORMATION
, *PKEY_FULL_INFORMATION
;
980 typedef struct _KEY_NAME_INFORMATION
{
983 } KEY_NAME_INFORMATION
, *PKEY_NAME_INFORMATION
;
985 typedef struct _KEY_VALUE_ENTRY
987 PUNICODE_STRING ValueName
;
991 } KEY_VALUE_ENTRY
, *PKEY_VALUE_ENTRY
;
993 typedef struct _KEY_VALUE_BASIC_INFORMATION
{
998 } KEY_VALUE_BASIC_INFORMATION
, *PKEY_VALUE_BASIC_INFORMATION
;
1000 typedef struct _KEY_VALUE_FULL_INFORMATION
{
1007 } KEY_VALUE_FULL_INFORMATION
, *PKEY_VALUE_FULL_INFORMATION
;
1009 typedef struct _KEY_VALUE_PARTIAL_INFORMATION
{
1014 } KEY_VALUE_PARTIAL_INFORMATION
, *PKEY_VALUE_PARTIAL_INFORMATION
;
1016 #ifndef __OBJECT_ATTRIBUTES_DEFINED__
1017 #define __OBJECT_ATTRIBUTES_DEFINED__
1018 typedef struct _OBJECT_ATTRIBUTES
{
1020 HANDLE RootDirectory
;
1021 PUNICODE_STRING ObjectName
;
1023 PVOID SecurityDescriptor
; /* type SECURITY_DESCRIPTOR */
1024 PVOID SecurityQualityOfService
; /* type SECURITY_QUALITY_OF_SERVICE */
1025 } OBJECT_ATTRIBUTES
, *POBJECT_ATTRIBUTES
;
1028 typedef struct _OBJECT_DATA_INFORMATION
{
1029 BOOLEAN InheritHandle
;
1030 BOOLEAN ProtectFromClose
;
1031 } OBJECT_DATA_INFORMATION
, *POBJECT_DATA_INFORMATION
;
1033 typedef struct _OBJECT_BASIC_INFORMATION
{
1035 ACCESS_MASK GrantedAccess
;
1038 ULONG PagedPoolUsage
;
1039 ULONG NonPagedPoolUsage
;
1041 ULONG NameInformationLength
;
1042 ULONG TypeInformationLength
;
1043 ULONG SecurityDescriptorLength
;
1044 LARGE_INTEGER CreateTime
;
1045 } OBJECT_BASIC_INFORMATION
, *POBJECT_BASIC_INFORMATION
;
1047 typedef struct _OBJECT_NAME_INFORMATION
{
1048 UNICODE_STRING Name
;
1049 } OBJECT_NAME_INFORMATION
, *POBJECT_NAME_INFORMATION
;
1051 typedef struct __OBJECT_TYPE_INFORMATION
{
1052 UNICODE_STRING TypeName
;
1053 ULONG Reserved
[22];
1054 } OBJECT_TYPE_INFORMATION
, *POBJECT_TYPE_INFORMATION
;
1056 typedef struct _PROCESS_BASIC_INFORMATION
{
1058 DWORD_PTR ExitStatus
;
1059 PPEB PebBaseAddress
;
1060 DWORD_PTR AffinityMask
;
1061 DWORD_PTR BasePriority
;
1062 ULONG_PTR UniqueProcessId
;
1063 ULONG_PTR InheritedFromUniqueProcessId
;
1066 PPEB PebBaseAddress
;
1068 ULONG_PTR UniqueProcessId
;
1071 } PROCESS_BASIC_INFORMATION
, *PPROCESS_BASIC_INFORMATION
;
1073 #define PROCESS_PRIOCLASS_IDLE 1
1074 #define PROCESS_PRIOCLASS_NORMAL 2
1075 #define PROCESS_PRIOCLASS_HIGH 3
1076 #define PROCESS_PRIOCLASS_REALTIME 4
1077 #define PROCESS_PRIOCLASS_BELOW_NORMAL 5
1078 #define PROCESS_PRIOCLASS_ABOVE_NORMAL 6
1080 typedef struct _PROCESS_PRIORITY_CLASS
{
1082 UCHAR PriorityClass
;
1083 } PROCESS_PRIORITY_CLASS
, *PPROCESS_PRIORITY_CLASS
;
1085 typedef struct _RTL_HEAP_DEFINITION
{
1086 ULONG Length
; /* = sizeof(RTL_HEAP_DEFINITION) */
1089 } RTL_HEAP_DEFINITION
, *PRTL_HEAP_DEFINITION
;
1091 typedef struct _RTL_RWLOCK
{
1092 RTL_CRITICAL_SECTION rtlCS
;
1094 HANDLE hSharedReleaseSemaphore
;
1095 UINT uSharedWaiters
;
1097 HANDLE hExclusiveReleaseSemaphore
;
1098 UINT uExclusiveWaiters
;
1101 HANDLE hOwningThreadId
;
1102 DWORD dwTimeoutBoost
;
1104 } RTL_RWLOCK
, *LPRTL_RWLOCK
;
1106 /* System Information Class 0x00 */
1108 typedef struct _SYSTEM_BASIC_INFORMATION
{
1111 ULONG KeMaximumIncrement
;
1113 ULONG MmNumberOfPhysicalPages
;
1114 ULONG MmLowestPhysicalPage
;
1115 ULONG MmHighestPhysicalPage
;
1116 ULONG_PTR AllocationGranularity
;
1117 PVOID LowestUserAddress
;
1118 PVOID HighestUserAddress
;
1119 ULONG_PTR ActiveProcessorsAffinityMask
;
1120 BYTE NumberOfProcessors
;
1124 CCHAR NumberOfProcessors
;
1126 } SYSTEM_BASIC_INFORMATION
, *PSYSTEM_BASIC_INFORMATION
;
1128 /* System Information Class 0x01 */
1130 typedef struct _SYSTEM_CPU_INFORMATION
{
1133 WORD Revision
; /* combination of CPU model and stepping */
1134 WORD Reserved
; /* always zero */
1135 DWORD FeatureSet
; /* see bit flags below */
1136 } SYSTEM_CPU_INFORMATION
, *PSYSTEM_CPU_INFORMATION
;
1138 /* definitions of bits in the Feature set for the x86 processors */
1139 #define CPU_FEATURE_VME 0x00000005 /* Virtual 86 Mode Extensions */
1140 #define CPU_FEATURE_TSC 0x00000002 /* Time Stamp Counter available */
1141 #define CPU_FEATURE_CMOV 0x00000008 /* Conditional Move instruction*/
1142 #define CPU_FEATURE_PGE 0x00000014 /* Page table Entry Global bit */
1143 #define CPU_FEATURE_PSE 0x00000024 /* Page Size Extension */
1144 #define CPU_FEATURE_MTRR 0x00000040 /* Memory Type Range Registers */
1145 #define CPU_FEATURE_CX8 0x00000080 /* Compare and eXchange 8 byte instr. */
1146 #define CPU_FEATURE_MMX 0x00000100 /* Multi Media eXtensions */
1147 #define CPU_FEATURE_X86 0x00000200 /* seems to be always ON, on the '86 */
1148 #define CPU_FEATURE_PAT 0x00000400 /* Page Attribute Table */
1149 #define CPU_FEATURE_FXSR 0x00000800 /* FXSAVE and FXSTORE instructions */
1150 #define CPU_FEATURE_SEP 0x00001000 /* SYSENTER and SYSEXIT instructions */
1151 #define CPU_FEATURE_SSE 0x00002000 /* SSE extensions (ext. MMX) */
1152 #define CPU_FEATURE_3DNOW 0x00004000 /* 3DNOW instructions available */
1153 #define CPU_FEATURE_SSE2 0x00010000 /* SSE2 extensions (XMMI64) */
1154 #define CPU_FEATURE_DS 0x00020000 /* Debug Store */
1155 #define CPU_FEATURE_HTT 0x00040000 /* Hyper Threading Technology */
1157 /* System Information Class 0x02 */
1159 /* Documented in "Windows NT/2000 Native API Reference" by Gary Nebbett. */
1160 typedef struct _SYSTEM_PERFORMANCE_INFORMATION
{
1161 LARGE_INTEGER IdleTime
;
1162 LARGE_INTEGER ReadTransferCount
;
1163 LARGE_INTEGER WriteTransferCount
;
1164 LARGE_INTEGER OtherTransferCount
;
1165 ULONG ReadOperationCount
;
1166 ULONG WriteOperationCount
;
1167 ULONG OtherOperationCount
;
1168 ULONG AvailablePages
;
1169 ULONG TotalCommittedPages
;
1170 ULONG TotalCommitLimit
;
1171 ULONG PeakCommitment
;
1173 ULONG WriteCopyFaults
;
1174 ULONG TransitionFaults
;
1176 ULONG DemandZeroFaults
;
1180 ULONG PagefilePagesWritten
;
1181 ULONG PagefilePageWriteIos
;
1182 ULONG MappedFilePagesWritten
;
1183 ULONG MappedFilePageWriteIos
;
1184 ULONG PagedPoolUsage
;
1185 ULONG NonPagedPoolUsage
;
1186 ULONG PagedPoolAllocs
;
1187 ULONG PagedPoolFrees
;
1188 ULONG NonPagedPoolAllocs
;
1189 ULONG NonPagedPoolFrees
;
1190 ULONG TotalFreeSystemPtes
;
1191 ULONG SystemCodePage
;
1192 ULONG TotalSystemDriverPages
;
1193 ULONG TotalSystemCodePages
;
1194 ULONG SmallNonPagedLookasideListAllocateHits
;
1195 ULONG SmallPagedLookasideListAllocateHits
;
1197 ULONG MmSystemCachePage
;
1198 ULONG PagedPoolPage
;
1199 ULONG SystemDriverPage
;
1200 ULONG FastReadNoWait
;
1202 ULONG FastReadResourceMiss
;
1203 ULONG FastReadNotPossible
;
1204 ULONG FastMdlReadNoWait
;
1205 ULONG FastMdlReadWait
;
1206 ULONG FastMdlReadResourceMiss
;
1207 ULONG FastMdlReadNotPossible
;
1208 ULONG MapDataNoWait
;
1210 ULONG MapDataNoWaitMiss
;
1211 ULONG MapDataWaitMiss
;
1212 ULONG PinMappedDataCount
;
1213 ULONG PinReadNoWait
;
1215 ULONG PinReadNoWaitMiss
;
1216 ULONG PinReadWaitMiss
;
1217 ULONG CopyReadNoWait
;
1219 ULONG CopyReadNoWaitMiss
;
1220 ULONG CopyReadWaitMiss
;
1221 ULONG MdlReadNoWait
;
1223 ULONG MdlReadNoWaitMiss
;
1224 ULONG MdlReadWaitMiss
;
1227 ULONG LazyWritePages
;
1230 ULONG ContextSwitches
;
1231 ULONG FirstLevelTbFills
;
1232 ULONG SecondLevelTbFills
;
1234 } SYSTEM_PERFORMANCE_INFORMATION
, *PSYSTEM_PERFORMANCE_INFORMATION
;
1236 /* System Information Class 0x03 */
1238 typedef struct _SYSTEM_TIMEOFDAY_INFORMATION
{
1240 LARGE_INTEGER liKeBootTime
;
1241 LARGE_INTEGER liKeSystemTime
;
1242 LARGE_INTEGER liExpTimeZoneBias
;
1243 ULONG uCurrentTimeZoneId
;
1244 DWORD dwUnknown1
[5];
1248 } SYSTEM_TIMEOFDAY_INFORMATION
, *PSYSTEM_TIMEOFDAY_INFORMATION
; /* was SYSTEM_TIME_INFORMATION */
1250 /* System Information Class 0x08 */
1252 typedef struct _SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION
{
1253 LARGE_INTEGER IdleTime
;
1254 LARGE_INTEGER KernelTime
;
1255 LARGE_INTEGER UserTime
;
1256 LARGE_INTEGER Reserved1
[2];
1258 } SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION
, *PSYSTEM_PROCESSOR_PERFORMANCE_INFORMATION
;
1260 /* System Information Class 0x0b */
1262 typedef struct _SYSTEM_DRIVER_INFORMATION
{
1268 char szName
[MAX_PATH
+ 1];
1269 } SYSTEM_DRIVER_INFORMATION
, *PSYSTEM_DRIVER_INFORMATION
;
1271 /* System Information Class 0x10 */
1273 typedef struct _SYSTEM_HANDLE_ENTRY
{
1278 PVOID ObjectPointer
;
1280 } SYSTEM_HANDLE_ENTRY
, *PSYSTEM_HANDLE_ENTRY
;
1282 typedef struct _SYSTEM_HANDLE_INFORMATION
{
1284 SYSTEM_HANDLE_ENTRY Handle
[1];
1285 } SYSTEM_HANDLE_INFORMATION
, *PSYSTEM_HANDLE_INFORMATION
;
1287 /* System Information Class 0x15 */
1289 typedef struct _SYSTEM_CACHE_INFORMATION
{
1292 ULONG PageFaultCount
;
1293 ULONG MinimumWorkingSet
;
1294 ULONG MaximumWorkingSet
;
1299 } SYSTEM_CACHE_INFORMATION
, *PSYSTEM_CACHE_INFORMATION
;
1301 /* System Information Class 0x17 */
1303 typedef struct _SYSTEM_INTERRUPT_INFORMATION
{
1305 } SYSTEM_INTERRUPT_INFORMATION
, *PSYSTEM_INTERRUPT_INFORMATION
;
1307 typedef struct _SYSTEM_CONFIGURATION_INFO
{
1311 WORD ProcessorArchitecture
;
1316 PVOID MinimumApplicationAddress
;
1317 PVOID MaximumApplicationAddress
;
1318 ULONG ActiveProcessorMask
;
1319 ULONG NumberOfProcessors
;
1320 ULONG ProcessorType
;
1321 ULONG AllocationGranularity
;
1322 WORD ProcessorLevel
;
1323 WORD ProcessorRevision
;
1324 } SYSTEM_CONFIGURATION_INFO
, *PSYSTEM_CONFIGURATION_INFO
;
1326 typedef struct _SYSTEM_EXCEPTION_INFORMATION
{
1328 } SYSTEM_EXCEPTION_INFORMATION
, *PSYSTEM_EXCEPTION_INFORMATION
;
1330 typedef struct _SYSTEM_LOOKASIDE_INFORMATION
{
1332 } SYSTEM_LOOKASIDE_INFORMATION
, *PSYSTEM_LOOKASIDE_INFORMATION
;
1334 typedef struct _SYSTEM_KERNEL_DEBUGGER_INFORMATION
{
1335 BOOLEAN DebuggerEnabled
;
1336 BOOLEAN DebuggerNotPresent
;
1337 } SYSTEM_KERNEL_DEBUGGER_INFORMATION
, *PSYSTEM_KERNEL_DEBUGGER_INFORMATION
;
1339 /* System Information Class 0x05 */
1341 typedef struct _VM_COUNTERS_
{
1342 SIZE_T PeakVirtualSize
;
1344 ULONG PageFaultCount
;
1345 SIZE_T PeakWorkingSetSize
;
1346 SIZE_T WorkingSetSize
;
1347 SIZE_T QuotaPeakPagedPoolUsage
;
1348 SIZE_T QuotaPagedPoolUsage
;
1349 SIZE_T QuotaPeakNonPagedPoolUsage
;
1350 SIZE_T QuotaNonPagedPoolUsage
;
1351 SIZE_T PagefileUsage
;
1352 SIZE_T PeakPagefileUsage
;
1353 SIZE_T PrivatePageCount
;
1354 } VM_COUNTERS
, *PVM_COUNTERS
;
1356 typedef struct _SYSTEM_PROCESS_INFORMATION
{
1357 #ifdef __WINESRC__ /* win32/win64 */
1358 ULONG NextEntryOffset
; /* 00/00 */
1359 DWORD dwThreadCount
; /* 04/04 */
1360 DWORD dwUnknown1
[6]; /* 08/08 */
1361 LARGE_INTEGER CreationTime
; /* 20/20 */
1362 LARGE_INTEGER UserTime
; /* 28/28 */
1363 LARGE_INTEGER KernelTime
; /* 30/30 */
1364 UNICODE_STRING ProcessName
; /* 38/38 */
1365 DWORD dwBasePriority
; /* 40/48 */
1366 HANDLE UniqueProcessId
; /* 44/50 */
1367 HANDLE ParentProcessId
; /* 48/58 */
1368 ULONG HandleCount
; /* 4c/60 */
1369 ULONG SessionId
; /* 50/64 */
1370 DWORD dwUnknown4
; /* 54/68 */
1371 VM_COUNTERS vmCounters
; /* 58/70 */
1372 IO_COUNTERS ioCounters
; /* 88/d0 */
1373 SYSTEM_THREAD_INFORMATION ti
[1]; /* b8/100 */
1375 ULONG NextEntryOffset
; /* 00/00 */
1376 BYTE Reserved1
[52]; /* 04/04 */
1377 PVOID Reserved2
[3]; /* 38/38 */
1378 HANDLE UniqueProcessId
; /* 44/50 */
1379 PVOID Reserved3
; /* 48/58 */
1380 ULONG HandleCount
; /* 4c/60 */
1381 BYTE Reserved4
[4]; /* 50/64 */
1382 PVOID Reserved5
[11]; /* 54/68 */
1383 SIZE_T PeakPagefileUsage
; /* 80/c0 */
1384 SIZE_T PrivatePageCount
; /* 84/c8 */
1385 LARGE_INTEGER Reserved6
[6]; /* 88/d0 */
1387 } SYSTEM_PROCESS_INFORMATION
, *PSYSTEM_PROCESS_INFORMATION
;
1389 typedef struct _SYSTEM_REGISTRY_QUOTA_INFORMATION
{
1390 ULONG RegistryQuotaAllowed
;
1391 ULONG RegistryQuotaUsed
;
1393 } SYSTEM_REGISTRY_QUOTA_INFORMATION
, *PSYSTEM_REGISTRY_QUOTA_INFORMATION
;
1395 typedef struct _SYSTEM_TIME_ADJUSTMENT
{
1396 ULONG TimeAdjustment
;
1397 BOOLEAN TimeAdjustmentDisabled
;
1398 } SYSTEM_TIME_ADJUSTMENT
, *PSYSTEM_TIME_ADJUSTMENT
;
1400 typedef struct _TIME_FIELDS
1407 CSHORT Milliseconds
;
1409 } TIME_FIELDS
, *PTIME_FIELDS
;
1411 typedef struct _WINSTATIONINFORMATIONW
{
1414 BYTE Reserved3
[1140];
1415 } WINSTATIONINFORMATIONW
, *PWINSTATIONINFORMATIONW
;
1417 typedef BOOLEAN (WINAPI
* PWINSTATIONQUERYINFORMATIONW
)(HANDLE
,ULONG
,WINSTATIONINFOCLASS
,PVOID
,ULONG
,PULONG
);
1419 typedef struct _LDR_RESOURCE_INFO
1424 } LDR_RESOURCE_INFO
, *PLDR_RESOURCE_INFO
;
1427 /* debug buffer definitions */
1429 typedef struct _DEBUG_BUFFER
{
1430 HANDLE SectionHandle
;
1432 PVOID RemoteSectionBase
;
1433 ULONG SectionBaseDelta
;
1434 HANDLE EventPairHandle
;
1436 HANDLE RemoteThreadHandle
;
1437 ULONG InfoClassMask
;
1439 ULONG AllocatedSize
;
1441 PVOID ModuleInformation
;
1442 PVOID BackTraceInformation
;
1443 PVOID HeapInformation
;
1444 PVOID LockInformation
;
1446 } DEBUG_BUFFER
, *PDEBUG_BUFFER
;
1448 #define PDI_MODULES 0x01
1449 #define PDI_BACKTRACE 0x02
1450 #define PDI_HEAPS 0x04
1451 #define PDI_HEAP_TAGS 0x08
1452 #define PDI_HEAP_BLOCKS 0x10
1453 #define PDI_LOCKS 0x20
1455 typedef struct _DEBUG_MODULE_INFORMATION
{
1463 USHORT ModuleNameOffset
;
1464 CHAR ImageName
[256];
1465 } DEBUG_MODULE_INFORMATION
, *PDEBUG_MODULE_INFORMATION
;
1467 typedef struct _DEBUG_HEAP_INFORMATION
{
1479 } DEBUG_HEAP_INFORMATION
, *PDEBUG_HEAP_INFORMATION
;
1481 typedef struct _DEBUG_LOCK_INFORMATION
{
1484 USHORT CreatorBackTraceIndex
;
1485 ULONG OwnerThreadId
;
1487 ULONG ContentionCount
;
1489 ULONG RecursionCount
;
1490 ULONG NumberOfSharedWaiters
;
1491 ULONG NumberOfExclusiveWaiters
;
1492 } DEBUG_LOCK_INFORMATION
, *PDEBUG_LOCK_INFORMATION
;
1494 typedef struct _PORT_MESSAGE_HEADER
{
1498 USHORT VirtualRangesOffset
;
1502 } PORT_MESSAGE_HEADER
, *PPORT_MESSAGE_HEADER
, PORT_MESSAGE
, *PPORT_MESSAGE
;
1504 typedef unsigned short RTL_ATOM
, *PRTL_ATOM
;
1506 /* Wine doesn't implement atom table as NT does:
1507 * - in NT, atom tables are user space tables, which ntdll directly accesses
1508 * - on Wine, (even local) atom tables are wineserver objects, hence a HANDLE
1510 typedef struct atom_table
*RTL_ATOM_TABLE
, **PRTL_ATOM_TABLE
;
1512 typedef enum _ATOM_INFORMATION_CLASS
{
1513 AtomBasicInformation
= 0,
1514 AtomTableInformation
= 1,
1515 } ATOM_INFORMATION_CLASS
;
1517 typedef struct _ATOM_BASIC_INFORMATION
{
1518 USHORT ReferenceCount
;
1522 } ATOM_BASIC_INFORMATION
, *PATOM_BASIC_INFORMATION
;
1524 /* FIXME: names probably not correct */
1525 typedef struct _RTL_HANDLE
1527 struct _RTL_HANDLE
* Next
;
1530 /* FIXME: names probably not correct */
1531 typedef struct _RTL_HANDLE_TABLE
1533 ULONG MaxHandleCount
; /* 0x00 */
1534 ULONG HandleSize
; /* 0x04 */
1535 ULONG Unused
[2]; /* 0x08-0x0c */
1536 PVOID NextFree
; /* 0x10 */
1537 PVOID FirstHandle
; /* 0x14 */
1538 PVOID ReservedMemory
; /* 0x18 */
1539 PVOID MaxHandle
; /* 0x1c */
1542 /***********************************************************************
1546 /* flags for NtCreateFile and NtOpenFile */
1547 #define FILE_DIRECTORY_FILE 0x00000001
1548 #define FILE_WRITE_THROUGH 0x00000002
1549 #define FILE_SEQUENTIAL_ONLY 0x00000004
1550 #define FILE_NO_INTERMEDIATE_BUFFERING 0x00000008
1551 #define FILE_SYNCHRONOUS_IO_ALERT 0x00000010
1552 #define FILE_SYNCHRONOUS_IO_NONALERT 0x00000020
1553 #define FILE_NON_DIRECTORY_FILE 0x00000040
1554 #define FILE_CREATE_TREE_CONNECTION 0x00000080
1555 #define FILE_COMPLETE_IF_OPLOCKED 0x00000100
1556 #define FILE_NO_EA_KNOWLEDGE 0x00000200
1557 #define FILE_OPEN_FOR_RECOVERY 0x00000400
1558 #define FILE_RANDOM_ACCESS 0x00000800
1559 #define FILE_DELETE_ON_CLOSE 0x00001000
1560 #define FILE_OPEN_BY_FILE_ID 0x00002000
1561 #define FILE_OPEN_FOR_BACKUP_INTENT 0x00004000
1562 #define FILE_NO_COMPRESSION 0x00008000
1563 #define FILE_RESERVE_OPFILTER 0x00100000
1564 #define FILE_TRANSACTED_MODE 0x00200000
1565 #define FILE_OPEN_OFFLINE_FILE 0x00400000
1566 #define FILE_OPEN_FOR_FREE_SPACE_QUERY 0x00800000
1568 #define FILE_ATTRIBUTE_VALID_FLAGS 0x00007fb7
1569 #define FILE_ATTRIBUTE_VALID_SET_FLAGS 0x000031a7
1571 /* status for NtCreateFile or NtOpenFile */
1572 #define FILE_SUPERSEDED 0
1573 #define FILE_OPENED 1
1574 #define FILE_CREATED 2
1575 #define FILE_OVERWRITTEN 3
1576 #define FILE_EXISTS 4
1577 #define FILE_DOES_NOT_EXIST 5
1579 /* disposition for NtCreateFile */
1580 #define FILE_SUPERSEDE 0
1582 #define FILE_CREATE 2
1583 #define FILE_OPEN_IF 3
1584 #define FILE_OVERWRITE 4
1585 #define FILE_OVERWRITE_IF 5
1586 #define FILE_MAXIMUM_DISPOSITION 5
1588 /* Characteristics of a File System */
1589 #define FILE_REMOVABLE_MEDIA 0x00000001
1590 #define FILE_READ_ONLY_DEVICE 0x00000002
1591 #define FILE_FLOPPY_DISKETTE 0x00000004
1592 #define FILE_WRITE_ONE_MEDIA 0x00000008
1593 #define FILE_REMOTE_DEVICE 0x00000010
1594 #define FILE_DEVICE_IS_MOUNTED 0x00000020
1595 #define FILE_VIRTUAL_VOLUME 0x00000040
1596 #define FILE_AUTOGENERATED_DEVICE_NAME 0x00000080
1597 #define FILE_DEVICE_SECURE_OPEN 0x00000100
1599 /* options for NtCreateNamedPipeFile */
1600 #define FILE_PIPE_INBOUND 0x00000000
1601 #define FILE_PIPE_OUTBOUND 0x00000001
1602 #define FILE_PIPE_FULL_DUPLEX 0x00000002
1604 /* options for pipe's type */
1605 #define FILE_PIPE_TYPE_MESSAGE 0x00000001
1606 #define FILE_PIPE_TYPE_BYTE 0x00000000
1607 /* options for pipe's message mode */
1608 #define FILE_PIPE_MESSAGE_MODE 0x00000001
1609 #define FILE_PIPE_BYTE_STREAM_MODE 0x00000000
1610 /* options for pipe's blocking mode */
1611 #define FILE_PIPE_COMPLETE_OPERATION 0x00000001
1612 #define FILE_PIPE_QUEUE_OPERATION 0x00000000
1613 /* and client / server end */
1614 #define FILE_PIPE_SERVER_END 0x00000001
1615 #define FILE_PIPE_CLIENT_END 0x00000000
1617 #define INTERNAL_TS_ACTIVE_CONSOLE_ID ( *((volatile ULONG*)(0x7ffe02d8)) )
1619 #define LOGONID_CURRENT ((ULONG)-1)
1621 #define OBJ_INHERIT 0x00000002
1622 #define OBJ_PERMANENT 0x00000010
1623 #define OBJ_EXCLUSIVE 0x00000020
1624 #define OBJ_CASE_INSENSITIVE 0x00000040
1625 #define OBJ_OPENIF 0x00000080
1626 #define OBJ_OPENLINK 0x00000100
1627 #define OBJ_KERNEL_HANDLE 0x00000200
1628 #define OBJ_VALID_ATTRIBUTES 0x000003F2
1630 #define SERVERNAME_CURRENT ((HANDLE)NULL)
1632 typedef void (CALLBACK
*PNTAPCFUNC
)(ULONG_PTR
,ULONG_PTR
,ULONG_PTR
); /* FIXME: not the right name */
1633 typedef void (CALLBACK
*PRTL_THREAD_START_ROUTINE
)(LPVOID
); /* FIXME: not the right name */
1634 typedef DWORD (CALLBACK
*PRTL_WORK_ITEM_ROUTINE
)(LPVOID
); /* FIXME: not the right name */
1635 typedef void (NTAPI
*RTL_WAITORTIMERCALLBACKFUNC
)(PVOID
,BOOLEAN
); /* FIXME: not the right name */
1638 /* DbgPrintEx default levels */
1639 #define DPFLTR_ERROR_LEVEL 0
1640 #define DPFLTR_WARNING_LEVEL 1
1641 #define DPFLTR_TRACE_LEVEL 2
1642 #define DPFLTR_INFO_LEVEL 3
1643 #define DPFLTR_MASK 0x8000000
1645 /* Well-known LUID values */
1646 #define SE_MIN_WELL_KNOWN_PRIVILEGE 2
1647 #define SE_CREATE_TOKEN_PRIVILEGE 2
1648 #define SE_ASSIGNPRIMARYTOKEN_PRIVILEGE 3
1649 #define SE_LOCK_MEMORY_PRIVILEGE 4
1650 #define SE_INCREASE_QUOTA_PRIVILEGE 5
1651 #define SE_UNSOLICITED_INPUT_PRIVILEGE 6 /* obsolete */
1652 #define SE_MACHINE_ACCOUNT_PRIVILEGE 6
1653 #define SE_TCB_PRIVILEGE 7
1654 #define SE_SECURITY_PRIVILEGE 8
1655 #define SE_TAKE_OWNERSHIP_PRIVILEGE 9
1656 #define SE_LOAD_DRIVER_PRIVILEGE 10
1657 #define SE_SYSTEM_PROFILE_PRIVILEGE 11
1658 #define SE_SYSTEMTIME_PRIVILEGE 12
1659 #define SE_PROF_SINGLE_PROCESS_PRIVILEGE 13
1660 #define SE_INC_BASE_PRIORITY_PRIVILEGE 14
1661 #define SE_CREATE_PAGEFILE_PRIVILEGE 15
1662 #define SE_CREATE_PERMANENT_PRIVILEGE 16
1663 #define SE_BACKUP_PRIVILEGE 17
1664 #define SE_RESTORE_PRIVILEGE 18
1665 #define SE_SHUTDOWN_PRIVILEGE 19
1666 #define SE_DEBUG_PRIVILEGE 20
1667 #define SE_AUDIT_PRIVILEGE 21
1668 #define SE_SYSTEM_ENVIRONMENT_PRIVILEGE 22
1669 #define SE_CHANGE_NOTIFY_PRIVILEGE 23
1670 #define SE_REMOTE_SHUTDOWN_PRIVILEGE 24
1671 #define SE_UNDOCK_PRIVILEGE 25
1672 #define SE_SYNC_AGENT_PRIVILEGE 26
1673 #define SE_ENABLE_DELEGATION_PRIVILEGE 27
1674 #define SE_MANAGE_VOLUME_PRIVILEGE 28
1675 #define SE_IMPERSONATE_PRIVILEGE 29
1676 #define SE_CREATE_GLOBAL_PRIVILEGE 30
1677 #define SE_MAX_WELL_KNOWN_PRIVILEGE SE_CREATE_GLOBAL_PRIVILEGE
1679 /* NtGlobalFlag bits */
1680 #define FLG_STOP_ON_EXCEPTION 0x00000001
1681 #define FLG_SHOW_LDR_SNAPS 0x00000002
1682 #define FLG_DEBUG_INITIAL_COMMAND 0x00000004
1683 #define FLG_STOP_ON_HUNG_GUI 0x00000008
1684 #define FLG_HEAP_ENABLE_TAIL_CHECK 0x00000010
1685 #define FLG_HEAP_ENABLE_FREE_CHECK 0x00000020
1686 #define FLG_HEAP_VALIDATE_PARAMETERS 0x00000040
1687 #define FLG_HEAP_VALIDATE_ALL 0x00000080
1688 #define FLG_APPLICATION_VERIFIER 0x00000100
1689 #define FLG_POOL_ENABLE_TAGGING 0x00000400
1690 #define FLG_HEAP_ENABLE_TAGGING 0x00000800
1691 #define FLG_USER_STACK_TRACE_DB 0x00001000
1692 #define FLG_KERNEL_STACK_TRACE_DB 0x00002000
1693 #define FLG_MAINTAIN_OBJECT_TYPELIST 0x00004000
1694 #define FLG_HEAP_ENABLE_TAG_BY_DLL 0x00008000
1695 #define FLG_DISABLE_STACK_EXTENSION 0x00010000
1696 #define FLG_ENABLE_CSRDEBUG 0x00020000
1697 #define FLG_ENABLE_KDEBUG_SYMBOL_LOAD 0x00040000
1698 #define FLG_DISABLE_PAGE_KERNEL_STACKS 0x00080000
1699 #define FLG_ENABLE_SYSTEM_CRIT_BREAKS 0x00100000
1700 #define FLG_HEAP_DISABLE_COALESCING 0x00200000
1701 #define FLG_ENABLE_CLOSE_EXCEPTIONS 0x00400000
1702 #define FLG_ENABLE_EXCEPTION_LOGGING 0x00800000
1703 #define FLG_ENABLE_HANDLE_TYPE_TAGGING 0x01000000
1704 #define FLG_HEAP_PAGE_ALLOCS 0x02000000
1705 #define FLG_DEBUG_INITIAL_COMMAND_EX 0x04000000
1706 #define FLG_DISABLE_DBGPRINT 0x08000000
1707 #define FLG_CRITSEC_EVENT_CREATION 0x10000000
1708 #define FLG_LDR_TOP_DOWN 0x20000000
1709 #define FLG_ENABLE_HANDLE_EXCEPTIONS 0x40000000
1710 #define FLG_DISABLE_PROTDLLS 0x80000000
1712 /* Rtl*Registry* functions structs and defines */
1713 #define RTL_REGISTRY_ABSOLUTE 0
1714 #define RTL_REGISTRY_SERVICES 1
1715 #define RTL_REGISTRY_CONTROL 2
1716 #define RTL_REGISTRY_WINDOWS_NT 3
1717 #define RTL_REGISTRY_DEVICEMAP 4
1718 #define RTL_REGISTRY_USER 5
1720 #define RTL_REGISTRY_HANDLE 0x40000000
1721 #define RTL_REGISTRY_OPTIONAL 0x80000000
1723 #define RTL_QUERY_REGISTRY_SUBKEY 0x00000001
1724 #define RTL_QUERY_REGISTRY_TOPKEY 0x00000002
1725 #define RTL_QUERY_REGISTRY_REQUIRED 0x00000004
1726 #define RTL_QUERY_REGISTRY_NOVALUE 0x00000008
1727 #define RTL_QUERY_REGISTRY_NOEXPAND 0x00000010
1728 #define RTL_QUERY_REGISTRY_DIRECT 0x00000020
1729 #define RTL_QUERY_REGISTRY_DELETE 0x00000040
1731 typedef NTSTATUS (WINAPI
*PRTL_QUERY_REGISTRY_ROUTINE
)( PCWSTR ValueName
,
1736 PVOID EntryContext
);
1738 typedef struct _RTL_QUERY_REGISTRY_TABLE
1740 PRTL_QUERY_REGISTRY_ROUTINE QueryRoutine
;
1746 ULONG DefaultLength
;
1747 } RTL_QUERY_REGISTRY_TABLE
, *PRTL_QUERY_REGISTRY_TABLE
;
1749 typedef struct _KEY_MULTIPLE_VALUE_INFORMATION
1751 PUNICODE_STRING ValueName
;
1755 } KEY_MULTIPLE_VALUE_INFORMATION
, *PKEY_MULTIPLE_VALUE_INFORMATION
;
1757 typedef VOID (CALLBACK
*PRTL_OVERLAPPED_COMPLETION_ROUTINE
)(DWORD
,DWORD
,LPVOID
);
1759 typedef VOID (CALLBACK
*PTIMER_APC_ROUTINE
) ( PVOID
, ULONG
, LONG
);
1761 typedef enum _EVENT_INFORMATION_CLASS
{
1762 EventBasicInformation
1763 } EVENT_INFORMATION_CLASS
, *PEVENT_INFORMATION_CLASS
;
1765 typedef struct _EVENT_BASIC_INFORMATION
{
1766 EVENT_TYPE EventType
;
1768 } EVENT_BASIC_INFORMATION
, *PEVENT_BASIC_INFORMATION
;
1770 typedef enum _SEMAPHORE_INFORMATION_CLASS
{
1771 SemaphoreBasicInformation
1772 } SEMAPHORE_INFORMATION_CLASS
, *PSEMAPHORE_INFORMATION_CLASS
;
1774 typedef struct _SEMAPHORE_BASIC_INFORMATION
{
1777 } SEMAPHORE_BASIC_INFORMATION
, *PSEMAPHORE_BASIC_INFORMATION
;
1779 typedef enum _SECTION_INFORMATION_CLASS
1781 SectionBasicInformation
,
1782 SectionImageInformation
,
1783 } SECTION_INFORMATION_CLASS
;
1785 typedef struct _SECTION_BASIC_INFORMATION
{
1789 } SECTION_BASIC_INFORMATION
, *PSECTION_BASIC_INFORMATION
;
1791 typedef struct _SECTION_IMAGE_INFORMATION
{
1792 PVOID TransferAddress
;
1794 SIZE_T MaximumStackSize
;
1795 SIZE_T CommittedStackSize
;
1796 ULONG SubSystemType
;
1797 WORD SubsystemVersionLow
;
1798 WORD SubsystemVersionHigh
;
1800 USHORT ImageCharacteristics
;
1801 USHORT DllCharacteristics
;
1803 BOOLEAN ImageContainsCode
;
1806 ULONG ImageFileSize
;
1808 } SECTION_IMAGE_INFORMATION
, *PSECTION_IMAGE_INFORMATION
;
1810 typedef struct _LPC_SECTION_WRITE
{
1812 HANDLE SectionHandle
;
1813 ULONG SectionOffset
;
1816 PVOID TargetViewBase
;
1817 } LPC_SECTION_WRITE
, *PLPC_SECTION_WRITE
;
1819 typedef struct _LPC_SECTION_READ
{
1823 } LPC_SECTION_READ
, *PLPC_SECTION_READ
;
1825 typedef struct _LPC_MESSAGE
{
1829 USHORT VirtualRangesOffset
;
1831 ULONG_PTR MessageId
;
1832 ULONG_PTR SectionSize
;
1833 UCHAR Data
[ANYSIZE_ARRAY
];
1834 } LPC_MESSAGE
, *PLPC_MESSAGE
;
1836 typedef enum _SHUTDOWN_ACTION
{
1840 } SHUTDOWN_ACTION
, *PSHUTDOWN_ACTION
;
1842 typedef enum _KPROFILE_SOURCE
{
1844 ProfileAlignmentFixup
,
1847 ProfileLoadInstructions
,
1848 ProfilePipelineFrozen
,
1849 ProfileBranchInstructions
,
1850 ProfileTotalNonissues
,
1851 ProfileDcacheMisses
,
1852 ProfileIcacheMisses
,
1854 ProfileBranchMispredictions
,
1855 ProfileStoreInstructions
,
1856 ProfileFpInstructions
,
1857 ProfileIntegerInstructions
,
1861 ProfileSpecialInstructions
,
1863 ProfileIcacheIssues
,
1864 ProfileDcacheAccesses
,
1865 ProfileMemoryBarrierCycles
,
1866 ProfileLoadLinkedIssues
,
1868 } KPROFILE_SOURCE
, *PKPROFILE_SOURCE
;
1870 typedef struct _DIRECTORY_BASIC_INFORMATION
{
1871 UNICODE_STRING ObjectName
;
1872 UNICODE_STRING ObjectTypeName
;
1873 } DIRECTORY_BASIC_INFORMATION
, *PDIRECTORY_BASIC_INFORMATION
;
1875 typedef struct _INITIAL_TEB
{
1879 PVOID StackCommitMax
;
1880 PVOID StackReserved
;
1881 } INITIAL_TEB
, *PINITIAL_TEB
;
1883 typedef enum _PORT_INFORMATION_CLASS
{
1885 } PORT_INFORMATION_CLASS
, *PPORT_INFORMATION_CLASS
;
1887 typedef enum _IO_COMPLETION_INFORMATION_CLASS
{
1888 IoCompletionBasicInformation
1889 } IO_COMPLETION_INFORMATION_CLASS
, *PIO_COMPLETION_INFORMATION_CLASS
;
1891 typedef struct _FILE_COMPLETION_INFORMATION
{
1892 HANDLE CompletionPort
;
1893 ULONG_PTR CompletionKey
;
1894 } FILE_COMPLETION_INFORMATION
, *PFILE_COMPLETION_INFORMATION
;
1896 #define IO_COMPLETION_QUERY_STATE 0x0001
1897 #define IO_COMPLETION_MODIFY_STATE 0x0002
1898 #define IO_COMPLETION_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED|SYNCHRONIZE|0x3)
1900 typedef enum _HARDERROR_RESPONSE_OPTION
{
1901 OptionAbortRetryIgnore
,
1907 OptionShutdownSystem
1908 } HARDERROR_RESPONSE_OPTION
, *PHARDERROR_RESPONSE_OPTION
;
1910 typedef enum _HARDERROR_RESPONSE
{
1911 ResponseReturnToCaller
,
1920 } HARDERROR_RESPONSE
, *PHARDERROR_RESPONSE
;
1922 typedef enum _SYSDBG_COMMAND
{
1923 SysDbgQueryModuleInformation
,
1924 SysDbgQueryTraceInformation
,
1925 SysDbgSetTracepoint
,
1926 SysDbgSetSpecialCall
,
1927 SysDbgClearSpecialCalls
,
1928 SysDbgQuerySpecialCalls
,
1934 SysDbgWritePhysical
,
1935 SysDbgReadControlSpace
,
1936 SysDbgWriteControlSpace
,
1943 } SYSDBG_COMMAND
, *PSYSDBG_COMMAND
;
1946 /*************************************************************************
1949 * Those are not part of standard Winternl.h
1951 typedef struct _LDR_MODULE
1953 LIST_ENTRY InLoadOrderModuleList
;
1954 LIST_ENTRY InMemoryOrderModuleList
;
1955 LIST_ENTRY InInitializationOrderModuleList
;
1959 UNICODE_STRING FullDllName
;
1960 UNICODE_STRING BaseDllName
;
1964 HANDLE SectionHandle
;
1966 ULONG TimeDateStamp
;
1967 HANDLE ActivationContext
;
1968 } LDR_MODULE
, *PLDR_MODULE
;
1970 /* those defines are (some of the) regular LDR_MODULE.Flags values */
1971 #define LDR_IMAGE_IS_DLL 0x00000004
1972 #define LDR_LOAD_IN_PROGRESS 0x00001000
1973 #define LDR_UNLOAD_IN_PROGRESS 0x00002000
1974 #define LDR_NO_DLL_CALLS 0x00040000
1975 #define LDR_PROCESS_ATTACHED 0x00080000
1976 #define LDR_MODULE_REBASED 0x00200000
1978 /* these ones is Wine specific */
1979 #define LDR_DONT_RESOLVE_REFS 0x40000000
1980 #define LDR_WINE_INTERNAL 0x80000000
1982 /* flag for LdrAddRefDll */
1983 #define LDR_ADDREF_DLL_PIN 0x00000001
1985 /* FIXME: to be checked */
1986 #define MAXIMUM_FILENAME_LENGTH 256
1988 typedef struct _SYSTEM_MODULE
1990 PVOID Reserved1
; /* 00/00 */
1991 PVOID Reserved2
; /* 04/08 */
1992 PVOID ImageBaseAddress
; /* 08/10 */
1993 ULONG ImageSize
; /* 0c/18 */
1994 ULONG Flags
; /* 10/1c */
1995 WORD Id
; /* 14/20 */
1996 WORD Rank
; /* 16/22 */
1997 WORD Unknown
; /* 18/24 */
1998 WORD NameOffset
; /* 1a/26 */
1999 BYTE Name
[MAXIMUM_FILENAME_LENGTH
]; /* 1c/28 */
2000 } SYSTEM_MODULE
, *PSYSTEM_MODULE
;
2002 typedef struct _SYSTEM_MODULE_INFORMATION
2005 SYSTEM_MODULE Modules
[1]; /* FIXME: should be Modules[0] */
2006 } SYSTEM_MODULE_INFORMATION
, *PSYSTEM_MODULE_INFORMATION
;
2008 /***********************************************************************
2009 * Function declarations
2012 #if defined(__i386__) && defined(__GNUC__)
2013 static inline void WINAPI
DbgBreakPoint(void) { __asm__
__volatile__("int3"); }
2014 static inline void WINAPI
DbgUserBreakPoint(void) { __asm__
__volatile__("int3"); }
2015 #else /* __i386__ && __GNUC__ */
2016 NTSYSAPI
void WINAPI
DbgBreakPoint(void);
2017 NTSYSAPI
void WINAPI
DbgUserBreakPoint(void);
2018 #endif /* __i386__ && __GNUC__ */
2019 NTSYSAPI NTSTATUS WINAPIV
DbgPrint(LPCSTR fmt
, ...);
2020 NTSYSAPI NTSTATUS WINAPIV
DbgPrintEx(ULONG iComponentId
, ULONG Level
, LPCSTR fmt
, ...);
2021 NTSYSAPI NTSTATUS WINAPI
LdrAccessResource(HMODULE
,const IMAGE_RESOURCE_DATA_ENTRY
*,void**,PULONG
);
2022 NTSYSAPI NTSTATUS WINAPI
LdrAddRefDll(ULONG
,HMODULE
);
2023 NTSYSAPI NTSTATUS WINAPI
LdrFindResourceDirectory_U(HMODULE
,const LDR_RESOURCE_INFO
*,ULONG
,const IMAGE_RESOURCE_DIRECTORY
**);
2024 NTSYSAPI NTSTATUS WINAPI
LdrFindResource_U(HMODULE
,const LDR_RESOURCE_INFO
*,ULONG
,const IMAGE_RESOURCE_DATA_ENTRY
**);
2025 NTSYSAPI NTSTATUS WINAPI
LdrDisableThreadCalloutsForDll(HMODULE
);
2026 NTSYSAPI NTSTATUS WINAPI
LdrFindEntryForAddress(const void*, PLDR_MODULE
*);
2027 NTSYSAPI NTSTATUS WINAPI
LdrGetDllHandle(LPCWSTR
, ULONG
, const UNICODE_STRING
*, HMODULE
*);
2028 NTSYSAPI NTSTATUS WINAPI
LdrGetProcedureAddress(HMODULE
, const ANSI_STRING
*, ULONG
, void**);
2029 NTSYSAPI
void WINAPI
LdrInitializeThunk(void*,ULONG_PTR
,ULONG_PTR
,ULONG_PTR
);
2030 NTSYSAPI NTSTATUS WINAPI
LdrLoadDll(LPCWSTR
, DWORD
, const UNICODE_STRING
*, HMODULE
*);
2031 NTSYSAPI NTSTATUS WINAPI
LdrLockLoaderLock(ULONG
,ULONG
*,ULONG_PTR
*);
2032 IMAGE_BASE_RELOCATION
* WINAPI
LdrProcessRelocationBlock(void*,UINT
,USHORT
*,INT_PTR
);
2033 NTSYSAPI NTSTATUS WINAPI
LdrQueryImageFileExecutionOptions(const UNICODE_STRING
*,LPCWSTR
,ULONG
,void*,ULONG
,ULONG
*);
2034 NTSYSAPI NTSTATUS WINAPI
LdrQueryProcessModuleInformation(SYSTEM_MODULE_INFORMATION
*, ULONG
, ULONG
*);
2035 NTSYSAPI
void WINAPI
LdrShutdownProcess(void);
2036 NTSYSAPI
void WINAPI
LdrShutdownThread(void);
2037 NTSYSAPI NTSTATUS WINAPI
LdrUnloadDll(HMODULE
);
2038 NTSYSAPI NTSTATUS WINAPI
LdrUnlockLoaderLock(ULONG
,ULONG_PTR
);
2039 NTSYSAPI NTSTATUS WINAPI
NtAcceptConnectPort(PHANDLE
,ULONG
,PLPC_MESSAGE
,BOOLEAN
,PLPC_SECTION_WRITE
,PLPC_SECTION_READ
);
2040 NTSYSAPI NTSTATUS WINAPI
NtAccessCheck(PSECURITY_DESCRIPTOR
,HANDLE
,ACCESS_MASK
,PGENERIC_MAPPING
,PPRIVILEGE_SET
,PULONG
,PULONG
,NTSTATUS
*);
2041 NTSYSAPI NTSTATUS WINAPI
NtAccessCheckAndAuditAlarm(PUNICODE_STRING
,HANDLE
,PUNICODE_STRING
,PUNICODE_STRING
,PSECURITY_DESCRIPTOR
,ACCESS_MASK
,PGENERIC_MAPPING
,BOOLEAN
,PACCESS_MASK
,PBOOLEAN
,PBOOLEAN
);
2042 NTSYSAPI NTSTATUS WINAPI
NtAddAtom(const WCHAR
*,ULONG
,RTL_ATOM
*);
2043 NTSYSAPI NTSTATUS WINAPI
NtAdjustGroupsToken(HANDLE
,BOOLEAN
,PTOKEN_GROUPS
,ULONG
,PTOKEN_GROUPS
,PULONG
);
2044 NTSYSAPI NTSTATUS WINAPI
NtAdjustPrivilegesToken(HANDLE
,BOOLEAN
,PTOKEN_PRIVILEGES
,DWORD
,PTOKEN_PRIVILEGES
,PDWORD
);
2045 NTSYSAPI NTSTATUS WINAPI
NtAlertResumeThread(HANDLE
,PULONG
);
2046 NTSYSAPI NTSTATUS WINAPI
NtAlertThread(HANDLE ThreadHandle
);
2047 NTSYSAPI NTSTATUS WINAPI
NtAllocateLocallyUniqueId(PLUID lpLuid
);
2048 NTSYSAPI NTSTATUS WINAPI
NtAllocateUuids(PULARGE_INTEGER
,PULONG
,PULONG
);
2049 NTSYSAPI NTSTATUS WINAPI
NtAllocateVirtualMemory(HANDLE
,PVOID
*,ULONG
,SIZE_T
*,ULONG
,ULONG
);
2050 NTSYSAPI NTSTATUS WINAPI
NtAreMappedFilesTheSame(PVOID
,PVOID
);
2051 NTSYSAPI NTSTATUS WINAPI
NtAssignProcessToJobObject(HANDLE
,HANDLE
);
2052 NTSYSAPI NTSTATUS WINAPI
NtCallbackReturn(PVOID
,ULONG
,NTSTATUS
);
2053 NTSYSAPI NTSTATUS WINAPI
NtCancelIoFile(HANDLE
,PIO_STATUS_BLOCK
);
2054 NTSYSAPI NTSTATUS WINAPI
NtCancelIoFileEx(HANDLE
,PIO_STATUS_BLOCK
,PIO_STATUS_BLOCK
);
2055 NTSYSAPI NTSTATUS WINAPI
NtCancelTimer(HANDLE
, BOOLEAN
*);
2056 NTSYSAPI NTSTATUS WINAPI
NtClearEvent(HANDLE
);
2057 NTSYSAPI NTSTATUS WINAPI
NtClose(HANDLE
);
2058 NTSYSAPI NTSTATUS WINAPI
NtCloseObjectAuditAlarm(PUNICODE_STRING
,HANDLE
,BOOLEAN
);
2059 NTSYSAPI NTSTATUS WINAPI
NtCompleteConnectPort(HANDLE
);
2060 NTSYSAPI NTSTATUS WINAPI
NtConnectPort(PHANDLE
,PUNICODE_STRING
,PSECURITY_QUALITY_OF_SERVICE
,PLPC_SECTION_WRITE
,PLPC_SECTION_READ
,PULONG
,PVOID
,PULONG
);
2061 NTSYSAPI NTSTATUS WINAPI
NtContinue(PCONTEXT
,BOOLEAN
);
2062 NTSYSAPI NTSTATUS WINAPI
NtCreateDirectoryObject(PHANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
);
2063 NTSYSAPI NTSTATUS WINAPI
NtCreateEvent(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,EVENT_TYPE
,BOOLEAN
);
2064 NTSYSAPI NTSTATUS WINAPI
NtCreateEventPair(PHANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
);
2065 NTSYSAPI NTSTATUS WINAPI
NtCreateFile(PHANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
,PIO_STATUS_BLOCK
,PLARGE_INTEGER
,ULONG
,ULONG
,ULONG
,ULONG
,PVOID
,ULONG
);
2066 NTSYSAPI NTSTATUS WINAPI
NtCreateIoCompletion(PHANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
,ULONG
);
2067 NTSYSAPI NTSTATUS WINAPI
NtCreateJobObject(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*);
2068 NTSYSAPI NTSTATUS WINAPI
NtCreateKey(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,ULONG
,const UNICODE_STRING
*,ULONG
,PULONG
);
2069 NTSYSAPI NTSTATUS WINAPI
NtCreateKeyedEvent(HANDLE
*,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,ULONG
);
2070 NTSYSAPI NTSTATUS WINAPI
NtCreateMailslotFile(PHANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
,PIO_STATUS_BLOCK
,ULONG
,ULONG
,ULONG
,PLARGE_INTEGER
);
2071 NTSYSAPI NTSTATUS WINAPI
NtCreateMutant(HANDLE
*,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,BOOLEAN
);
2072 NTSYSAPI NTSTATUS WINAPI
NtCreateNamedPipeFile(PHANDLE
,ULONG
,POBJECT_ATTRIBUTES
,PIO_STATUS_BLOCK
,ULONG
,ULONG
,ULONG
,ULONG
,ULONG
,ULONG
,ULONG
,ULONG
,ULONG
,PLARGE_INTEGER
);
2073 NTSYSAPI NTSTATUS WINAPI
NtCreatePagingFile(PUNICODE_STRING
,PLARGE_INTEGER
,PLARGE_INTEGER
,PLARGE_INTEGER
);
2074 NTSYSAPI NTSTATUS WINAPI
NtCreatePort(PHANDLE
,POBJECT_ATTRIBUTES
,ULONG
,ULONG
,PULONG
);
2075 NTSYSAPI NTSTATUS WINAPI
NtCreateProcess(PHANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
,HANDLE
,BOOLEAN
,HANDLE
,HANDLE
,HANDLE
);
2076 NTSYSAPI NTSTATUS WINAPI
NtCreateProfile(PHANDLE
,HANDLE
,PVOID
,ULONG
,ULONG
,PVOID
,ULONG
,KPROFILE_SOURCE
,KAFFINITY
);
2077 NTSYSAPI NTSTATUS WINAPI
NtCreateSection(HANDLE
*,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,const LARGE_INTEGER
*,ULONG
,ULONG
,HANDLE
);
2078 NTSYSAPI NTSTATUS WINAPI
NtCreateSemaphore(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,LONG
,LONG
);
2079 NTSYSAPI NTSTATUS WINAPI
NtCreateSymbolicLinkObject(PHANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
,PUNICODE_STRING
);
2080 NTSYSAPI NTSTATUS WINAPI
NtCreateThread(PHANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
,HANDLE
,PCLIENT_ID
,PCONTEXT
,PINITIAL_TEB
,BOOLEAN
);
2081 NTSYSAPI NTSTATUS WINAPI
NtCreateTimer(HANDLE
*, ACCESS_MASK
, const OBJECT_ATTRIBUTES
*, TIMER_TYPE
);
2082 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
);
2083 NTSYSAPI NTSTATUS WINAPI
NtDelayExecution(BOOLEAN
,const LARGE_INTEGER
*);
2084 NTSYSAPI NTSTATUS WINAPI
NtDeleteAtom(RTL_ATOM
);
2085 NTSYSAPI NTSTATUS WINAPI
NtDeleteFile(POBJECT_ATTRIBUTES
);
2086 NTSYSAPI NTSTATUS WINAPI
NtDeleteKey(HANDLE
);
2087 NTSYSAPI NTSTATUS WINAPI
NtDeleteValueKey(HANDLE
,const UNICODE_STRING
*);
2088 NTSYSAPI NTSTATUS WINAPI
NtDeviceIoControlFile(HANDLE
,HANDLE
,PIO_APC_ROUTINE
,PVOID
,PIO_STATUS_BLOCK
,ULONG
,PVOID
,ULONG
,PVOID
,ULONG
);
2089 NTSYSAPI NTSTATUS WINAPI
NtDisplayString(PUNICODE_STRING
);
2090 NTSYSAPI NTSTATUS WINAPI
NtDuplicateObject(HANDLE
,HANDLE
,HANDLE
,PHANDLE
,ACCESS_MASK
,ULONG
,ULONG
);
2091 NTSYSAPI NTSTATUS WINAPI
NtDuplicateToken(HANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
,SECURITY_IMPERSONATION_LEVEL
,TOKEN_TYPE
,PHANDLE
);
2092 NTSYSAPI NTSTATUS WINAPI
NtEnumerateKey(HANDLE
,ULONG
,KEY_INFORMATION_CLASS
,void *,DWORD
,DWORD
*);
2093 NTSYSAPI NTSTATUS WINAPI
NtEnumerateValueKey(HANDLE
,ULONG
,KEY_VALUE_INFORMATION_CLASS
,PVOID
,ULONG
,PULONG
);
2094 NTSYSAPI NTSTATUS WINAPI
NtExtendSection(HANDLE
,PLARGE_INTEGER
);
2095 NTSYSAPI NTSTATUS WINAPI
NtFindAtom(const WCHAR
*,ULONG
,RTL_ATOM
*);
2096 NTSYSAPI NTSTATUS WINAPI
NtFlushBuffersFile(HANDLE
,IO_STATUS_BLOCK
*);
2097 NTSYSAPI NTSTATUS WINAPI
NtFlushInstructionCache(HANDLE
,LPCVOID
,SIZE_T
);
2098 NTSYSAPI NTSTATUS WINAPI
NtFlushKey(HANDLE
);
2099 NTSYSAPI NTSTATUS WINAPI
NtFlushVirtualMemory(HANDLE
,LPCVOID
*,SIZE_T
*,ULONG
);
2100 NTSYSAPI NTSTATUS WINAPI
NtFlushWriteBuffer(VOID
);
2101 NTSYSAPI NTSTATUS WINAPI
NtFreeVirtualMemory(HANDLE
,PVOID
*,SIZE_T
*,ULONG
);
2102 NTSYSAPI NTSTATUS WINAPI
NtFsControlFile(HANDLE
,HANDLE
,PIO_APC_ROUTINE
,PVOID
,PIO_STATUS_BLOCK
,ULONG
,PVOID
,ULONG
,PVOID
,ULONG
);
2103 NTSYSAPI NTSTATUS WINAPI
NtGetContextThread(HANDLE
,CONTEXT
*);
2104 NTSYSAPI NTSTATUS WINAPI
NtGetPlugPlayEvent(ULONG
,ULONG
,PVOID
,ULONG
);
2105 NTSYSAPI ULONG WINAPI
NtGetTickCount(VOID
);
2106 NTSYSAPI NTSTATUS WINAPI
NtGetWriteWatch(HANDLE
,ULONG
,PVOID
,SIZE_T
,PVOID
*,ULONG_PTR
*,ULONG
*);
2107 NTSYSAPI NTSTATUS WINAPI
NtImpersonateAnonymousToken(HANDLE
);
2108 NTSYSAPI NTSTATUS WINAPI
NtImpersonateClientOfPort(HANDLE
,PPORT_MESSAGE
);
2109 NTSYSAPI NTSTATUS WINAPI
NtImpersonateThread(HANDLE
,HANDLE
,PSECURITY_QUALITY_OF_SERVICE
);
2110 NTSYSAPI NTSTATUS WINAPI
NtInitializeRegistry(BOOLEAN
);
2111 NTSYSAPI NTSTATUS WINAPI
NtInitiatePowerAction(POWER_ACTION
,SYSTEM_POWER_STATE
,ULONG
,BOOLEAN
);
2112 NTSYSAPI NTSTATUS WINAPI
NtIsProcessInJob(HANDLE
,HANDLE
);
2113 NTSYSAPI NTSTATUS WINAPI
NtListenPort(HANDLE
,PLPC_MESSAGE
);
2114 NTSYSAPI NTSTATUS WINAPI
NtLoadDriver(const UNICODE_STRING
*);
2115 NTSYSAPI NTSTATUS WINAPI
NtLoadKey(const OBJECT_ATTRIBUTES
*,OBJECT_ATTRIBUTES
*);
2116 NTSYSAPI NTSTATUS WINAPI
NtLockFile(HANDLE
,HANDLE
,PIO_APC_ROUTINE
,void*,PIO_STATUS_BLOCK
,PLARGE_INTEGER
,PLARGE_INTEGER
,ULONG
*,BOOLEAN
,BOOLEAN
);
2117 NTSYSAPI NTSTATUS WINAPI
NtLockVirtualMemory(HANDLE
,PVOID
*,SIZE_T
*,ULONG
);
2118 NTSYSAPI NTSTATUS WINAPI
NtMakeTemporaryObject(HANDLE
);
2119 NTSYSAPI NTSTATUS WINAPI
NtMapViewOfSection(HANDLE
,HANDLE
,PVOID
*,ULONG
,SIZE_T
,const LARGE_INTEGER
*,SIZE_T
*,SECTION_INHERIT
,ULONG
,ULONG
);
2120 NTSYSAPI NTSTATUS WINAPI
NtNotifyChangeDirectoryFile(HANDLE
,HANDLE
,PIO_APC_ROUTINE
,PVOID
,PIO_STATUS_BLOCK
,PVOID
,ULONG
,ULONG
,BOOLEAN
);
2121 NTSYSAPI NTSTATUS WINAPI
NtNotifyChangeKey(HANDLE
,HANDLE
,PIO_APC_ROUTINE
,PVOID
,PIO_STATUS_BLOCK
,ULONG
,BOOLEAN
,PVOID
,ULONG
,BOOLEAN
);
2122 NTSYSAPI NTSTATUS WINAPI
NtOpenDirectoryObject(PHANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
);
2123 NTSYSAPI NTSTATUS WINAPI
NtOpenEvent(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*);
2124 NTSYSAPI NTSTATUS WINAPI
NtOpenEventPair(PHANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
);
2125 NTSYSAPI NTSTATUS WINAPI
NtOpenFile(PHANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
,PIO_STATUS_BLOCK
,ULONG
,ULONG
);
2126 NTSYSAPI NTSTATUS WINAPI
NtOpenIoCompletion(PHANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
);
2127 NTSYSAPI NTSTATUS WINAPI
NtOpenJobObject(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*);
2128 NTSYSAPI NTSTATUS WINAPI
NtOpenKey(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*);
2129 NTSYSAPI NTSTATUS WINAPI
NtOpenKeyedEvent(HANDLE
*,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*);
2130 NTSYSAPI NTSTATUS WINAPI
NtOpenMutant(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*);
2131 NTSYSAPI NTSTATUS WINAPI
NtOpenObjectAuditAlarm(PUNICODE_STRING
,PHANDLE
,PUNICODE_STRING
,PUNICODE_STRING
,PSECURITY_DESCRIPTOR
,HANDLE
,ACCESS_MASK
,ACCESS_MASK
,PPRIVILEGE_SET
,BOOLEAN
,BOOLEAN
,PBOOLEAN
);
2132 NTSYSAPI NTSTATUS WINAPI
NtOpenProcess(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,const CLIENT_ID
*);
2133 NTSYSAPI NTSTATUS WINAPI
NtOpenProcessToken(HANDLE
,DWORD
,HANDLE
*);
2134 NTSYSAPI NTSTATUS WINAPI
NtOpenProcessTokenEx(HANDLE
,DWORD
,DWORD
,HANDLE
*);
2135 NTSYSAPI NTSTATUS WINAPI
NtOpenSection(HANDLE
*,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*);
2136 NTSYSAPI NTSTATUS WINAPI
NtOpenSemaphore(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*);
2137 NTSYSAPI NTSTATUS WINAPI
NtOpenSymbolicLinkObject(PHANDLE
,ACCESS_MASK
,POBJECT_ATTRIBUTES
);
2138 NTSYSAPI NTSTATUS WINAPI
NtOpenThread(HANDLE
*,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,const CLIENT_ID
*);
2139 NTSYSAPI NTSTATUS WINAPI
NtOpenThreadToken(HANDLE
,DWORD
,BOOLEAN
,HANDLE
*);
2140 NTSYSAPI NTSTATUS WINAPI
NtOpenThreadTokenEx(HANDLE
,DWORD
,BOOLEAN
,DWORD
,HANDLE
*);
2141 NTSYSAPI NTSTATUS WINAPI
NtOpenTimer(HANDLE
*, ACCESS_MASK
, const OBJECT_ATTRIBUTES
*);
2142 NTSYSAPI NTSTATUS WINAPI
NtPowerInformation(POWER_INFORMATION_LEVEL
,PVOID
,ULONG
,PVOID
,ULONG
);
2143 NTSYSAPI NTSTATUS WINAPI
NtPrivilegeCheck(HANDLE
,PPRIVILEGE_SET
,PBOOLEAN
);
2144 NTSYSAPI NTSTATUS WINAPI
NtPrivilegeObjectAuditAlarm(PUNICODE_STRING
,HANDLE
,HANDLE
,ULONG
,PPRIVILEGE_SET
,BOOLEAN
);
2145 NTSYSAPI NTSTATUS WINAPI
NtPrivilegedServiceAuditAlarm(PUNICODE_STRING
,PUNICODE_STRING
,HANDLE
,PPRIVILEGE_SET
,BOOLEAN
);
2146 NTSYSAPI NTSTATUS WINAPI
NtProtectVirtualMemory(HANDLE
,PVOID
*,SIZE_T
*,ULONG
,ULONG
*);
2147 NTSYSAPI NTSTATUS WINAPI
NtPulseEvent(HANDLE
,PULONG
);
2148 NTSYSAPI NTSTATUS WINAPI
NtQueueApcThread(HANDLE
,PNTAPCFUNC
,ULONG_PTR
,ULONG_PTR
,ULONG_PTR
);
2149 NTSYSAPI NTSTATUS WINAPI
NtQueryAttributesFile(const OBJECT_ATTRIBUTES
*,FILE_BASIC_INFORMATION
*);
2150 NTSYSAPI NTSTATUS WINAPI
NtQueryDefaultLocale(BOOLEAN
,LCID
*);
2151 NTSYSAPI NTSTATUS WINAPI
NtQueryDefaultUILanguage(LANGID
*);
2152 NTSYSAPI NTSTATUS WINAPI
NtQueryDirectoryFile(HANDLE
,HANDLE
,PIO_APC_ROUTINE
,PVOID
,PIO_STATUS_BLOCK
,PVOID
,ULONG
,FILE_INFORMATION_CLASS
,BOOLEAN
,PUNICODE_STRING
,BOOLEAN
);
2153 NTSYSAPI NTSTATUS WINAPI
NtQueryDirectoryObject(HANDLE
,PDIRECTORY_BASIC_INFORMATION
,ULONG
,BOOLEAN
,BOOLEAN
,PULONG
,PULONG
);
2154 NTSYSAPI NTSTATUS WINAPI
NtQueryEaFile(HANDLE
,PIO_STATUS_BLOCK
,PVOID
,ULONG
,BOOLEAN
,PVOID
,ULONG
,PULONG
,BOOLEAN
);
2155 NTSYSAPI NTSTATUS WINAPI
NtQueryEvent(HANDLE
,EVENT_INFORMATION_CLASS
,PVOID
,ULONG
,PULONG
);
2156 NTSYSAPI NTSTATUS WINAPI
NtQueryFullAttributesFile(const OBJECT_ATTRIBUTES
*,FILE_NETWORK_OPEN_INFORMATION
*);
2157 NTSYSAPI NTSTATUS WINAPI
NtQueryInformationAtom(RTL_ATOM
,ATOM_INFORMATION_CLASS
,PVOID
,ULONG
,ULONG
*);
2158 NTSYSAPI NTSTATUS WINAPI
NtQueryInformationFile(HANDLE
,PIO_STATUS_BLOCK
,PVOID
,LONG
,FILE_INFORMATION_CLASS
);
2159 NTSYSAPI NTSTATUS WINAPI
NtQueryInformationJobObject(HANDLE
,JOBOBJECTINFOCLASS
,PVOID
,ULONG
,PULONG
);
2160 NTSYSAPI NTSTATUS WINAPI
NtQueryInformationPort(HANDLE
,PORT_INFORMATION_CLASS
,PVOID
,ULONG
,PULONG
);
2161 NTSYSAPI NTSTATUS WINAPI
NtQueryInformationProcess(HANDLE
,PROCESSINFOCLASS
,PVOID
,ULONG
,PULONG
);
2162 NTSYSAPI NTSTATUS WINAPI
NtQueryInformationThread(HANDLE
,THREADINFOCLASS
,PVOID
,ULONG
,PULONG
);
2163 NTSYSAPI NTSTATUS WINAPI
NtQueryInformationToken(HANDLE
,TOKEN_INFORMATION_CLASS
,PVOID
,ULONG
,PULONG
);
2164 NTSYSAPI NTSTATUS WINAPI
NtQueryInstallUILanguage(LANGID
*);
2165 NTSYSAPI NTSTATUS WINAPI
NtQueryIntervalProfile(KPROFILE_SOURCE
,PULONG
);
2166 NTSYSAPI NTSTATUS WINAPI
NtQueryIoCompletion(HANDLE
,IO_COMPLETION_INFORMATION_CLASS
,PVOID
,ULONG
,PULONG
);
2167 NTSYSAPI NTSTATUS WINAPI
NtQueryKey(HANDLE
,KEY_INFORMATION_CLASS
,void *,DWORD
,DWORD
*);
2168 NTSYSAPI NTSTATUS WINAPI
NtQueryMultipleValueKey(HANDLE
,PKEY_MULTIPLE_VALUE_INFORMATION
,ULONG
,PVOID
,ULONG
,PULONG
);
2169 NTSYSAPI NTSTATUS WINAPI
NtQueryMutant(HANDLE
,MUTANT_INFORMATION_CLASS
,PVOID
,ULONG
,PULONG
);
2170 NTSYSAPI NTSTATUS WINAPI
NtQueryObject(HANDLE
, OBJECT_INFORMATION_CLASS
, PVOID
, ULONG
, PULONG
);
2171 NTSYSAPI NTSTATUS WINAPI
NtQueryOpenSubKeys(POBJECT_ATTRIBUTES
,PULONG
);
2172 NTSYSAPI NTSTATUS WINAPI
NtQueryPerformanceCounter(PLARGE_INTEGER
, PLARGE_INTEGER
);
2173 NTSYSAPI NTSTATUS WINAPI
NtQuerySecurityObject(HANDLE
,SECURITY_INFORMATION
,PSECURITY_DESCRIPTOR
,ULONG
,PULONG
);
2174 NTSYSAPI NTSTATUS WINAPI
NtQuerySection(HANDLE
,SECTION_INFORMATION_CLASS
,PVOID
,ULONG
,PULONG
);
2175 NTSYSAPI NTSTATUS WINAPI
NtQuerySemaphore(HANDLE
,SEMAPHORE_INFORMATION_CLASS
,PVOID
,ULONG
,PULONG
);
2176 NTSYSAPI NTSTATUS WINAPI
NtQuerySymbolicLinkObject(HANDLE
,PUNICODE_STRING
,PULONG
);
2177 NTSYSAPI NTSTATUS WINAPI
NtQuerySystemEnvironmentValue(PUNICODE_STRING
,PWCHAR
,ULONG
,PULONG
);
2178 NTSYSAPI NTSTATUS WINAPI
NtQuerySystemInformation(SYSTEM_INFORMATION_CLASS
,PVOID
,ULONG
,PULONG
);
2179 NTSYSAPI NTSTATUS WINAPI
NtQuerySystemTime(PLARGE_INTEGER
);
2180 NTSYSAPI NTSTATUS WINAPI
NtQueryTimer(HANDLE
,TIMER_INFORMATION_CLASS
,PVOID
,ULONG
,PULONG
);
2181 NTSYSAPI NTSTATUS WINAPI
NtQueryTimerResolution(PULONG
,PULONG
,PULONG
);
2182 NTSYSAPI NTSTATUS WINAPI
NtQueryValueKey(HANDLE
,const UNICODE_STRING
*,KEY_VALUE_INFORMATION_CLASS
,void *,DWORD
,DWORD
*);
2183 NTSYSAPI NTSTATUS WINAPI
NtQueryLicenseValue(const UNICODE_STRING
*,ULONG
*,PVOID
,ULONG
,ULONG
*);
2184 NTSYSAPI NTSTATUS WINAPI
NtQueryVirtualMemory(HANDLE
,LPCVOID
,MEMORY_INFORMATION_CLASS
,PVOID
,SIZE_T
,SIZE_T
*);
2185 NTSYSAPI NTSTATUS WINAPI
NtQueryVolumeInformationFile(HANDLE
,PIO_STATUS_BLOCK
,PVOID
,ULONG
,FS_INFORMATION_CLASS
);
2186 NTSYSAPI NTSTATUS WINAPI
NtRaiseException(PEXCEPTION_RECORD
,PCONTEXT
,BOOL
);
2187 NTSYSAPI NTSTATUS WINAPI
NtRaiseHardError(NTSTATUS
,ULONG
,PUNICODE_STRING
,PVOID
*,HARDERROR_RESPONSE_OPTION
,PHARDERROR_RESPONSE
);
2188 NTSYSAPI NTSTATUS WINAPI
NtReadFile(HANDLE
,HANDLE
,PIO_APC_ROUTINE
,PVOID
,PIO_STATUS_BLOCK
,PVOID
,ULONG
,PLARGE_INTEGER
,PULONG
);
2189 NTSYSAPI NTSTATUS WINAPI
NtReadFileScatter(HANDLE
,HANDLE
,PIO_APC_ROUTINE
,PVOID
,PIO_STATUS_BLOCK
,FILE_SEGMENT_ELEMENT
*,ULONG
,PLARGE_INTEGER
,PULONG
);
2190 NTSYSAPI NTSTATUS WINAPI
NtReadRequestData(HANDLE
,PLPC_MESSAGE
,ULONG
,PVOID
,ULONG
,PULONG
);
2191 NTSYSAPI NTSTATUS WINAPI
NtReadVirtualMemory(HANDLE
,const void*,void*,SIZE_T
,SIZE_T
*);
2192 NTSYSAPI NTSTATUS WINAPI
NtRegisterThreadTerminatePort(HANDLE
);
2193 NTSYSAPI NTSTATUS WINAPI
NtReleaseKeyedEvent(HANDLE
,const void*,BOOLEAN
,const LARGE_INTEGER
*);
2194 NTSYSAPI NTSTATUS WINAPI
NtReleaseMutant(HANDLE
,PLONG
);
2195 NTSYSAPI NTSTATUS WINAPI
NtReleaseSemaphore(HANDLE
,ULONG
,PULONG
);
2196 NTSYSAPI NTSTATUS WINAPI
NtRemoveIoCompletion(HANDLE
,PULONG_PTR
,PULONG_PTR
,PIO_STATUS_BLOCK
,PLARGE_INTEGER
);
2197 NTSYSAPI NTSTATUS WINAPI
NtReplaceKey(POBJECT_ATTRIBUTES
,HANDLE
,POBJECT_ATTRIBUTES
);
2198 NTSYSAPI NTSTATUS WINAPI
NtReplyPort(HANDLE
,PLPC_MESSAGE
);
2199 NTSYSAPI NTSTATUS WINAPI
NtReplyWaitReceivePort(HANDLE
,PULONG
,PLPC_MESSAGE
,PLPC_MESSAGE
);
2200 NTSYSAPI NTSTATUS WINAPI
NtReplyWaitReceivePortEx(HANDLE
,PVOID
*,PPORT_MESSAGE
,PPORT_MESSAGE
,PLARGE_INTEGER
);
2201 NTSYSAPI NTSTATUS WINAPI
NtReplyWaitReplyPort(HANDLE
,PLPC_MESSAGE
);
2202 NTSYSAPI NTSTATUS WINAPI
NtRequestPort(HANDLE
,PLPC_MESSAGE
);
2203 NTSYSAPI NTSTATUS WINAPI
NtRequestWaitReplyPort(HANDLE
,PLPC_MESSAGE
,PLPC_MESSAGE
);
2204 NTSYSAPI NTSTATUS WINAPI
NtResetEvent(HANDLE
,PULONG
);
2205 NTSYSAPI NTSTATUS WINAPI
NtResetWriteWatch(HANDLE
,PVOID
,SIZE_T
);
2206 NTSYSAPI NTSTATUS WINAPI
NtRestoreKey(HANDLE
,HANDLE
,ULONG
);
2207 NTSYSAPI NTSTATUS WINAPI
NtResumeThread(HANDLE
,PULONG
);
2208 NTSYSAPI NTSTATUS WINAPI
NtSaveKey(HANDLE
,HANDLE
);
2209 NTSYSAPI NTSTATUS WINAPI
NtSecureConnectPort(PHANDLE
,PUNICODE_STRING
,PSECURITY_QUALITY_OF_SERVICE
,PLPC_SECTION_WRITE
,PSID
,PLPC_SECTION_READ
,PULONG
,PVOID
,PULONG
);
2210 NTSYSAPI NTSTATUS WINAPI
NtSetContextThread(HANDLE
,const CONTEXT
*);
2211 NTSYSAPI NTSTATUS WINAPI
NtSetDefaultHardErrorPort(HANDLE
);
2212 NTSYSAPI NTSTATUS WINAPI
NtSetDefaultLocale(BOOLEAN
,LCID
);
2213 NTSYSAPI NTSTATUS WINAPI
NtSetDefaultUILanguage(LANGID
);
2214 NTSYSAPI NTSTATUS WINAPI
NtSetEaFile(HANDLE
,PIO_STATUS_BLOCK
,PVOID
,ULONG
);
2215 NTSYSAPI NTSTATUS WINAPI
NtSetEvent(HANDLE
,PULONG
);
2216 NTSYSAPI NTSTATUS WINAPI
NtSetHighEventPair(HANDLE
);
2217 NTSYSAPI NTSTATUS WINAPI
NtSetHighWaitLowEventPair(HANDLE
);
2218 NTSYSAPI NTSTATUS WINAPI
NtSetHighWaitLowThread(VOID
);
2219 NTSYSAPI NTSTATUS WINAPI
NtSetInformationFile(HANDLE
,PIO_STATUS_BLOCK
,PVOID
,ULONG
,FILE_INFORMATION_CLASS
);
2220 NTSYSAPI NTSTATUS WINAPI
NtSetInformationJobObject(HANDLE
,JOBOBJECTINFOCLASS
,PVOID
,ULONG
);
2221 NTSYSAPI NTSTATUS WINAPI
NtSetInformationKey(HANDLE
,const int,PVOID
,ULONG
);
2222 NTSYSAPI NTSTATUS WINAPI
NtSetInformationObject(HANDLE
, OBJECT_INFORMATION_CLASS
, PVOID
, ULONG
);
2223 NTSYSAPI NTSTATUS WINAPI
NtSetInformationProcess(HANDLE
,PROCESS_INFORMATION_CLASS
,PVOID
,ULONG
);
2224 NTSYSAPI NTSTATUS WINAPI
NtSetInformationThread(HANDLE
,THREADINFOCLASS
,LPCVOID
,ULONG
);
2225 NTSYSAPI NTSTATUS WINAPI
NtSetInformationToken(HANDLE
,TOKEN_INFORMATION_CLASS
,PVOID
,ULONG
);
2226 NTSYSAPI NTSTATUS WINAPI
NtSetIntervalProfile(ULONG
,KPROFILE_SOURCE
);
2227 NTSYSAPI NTSTATUS WINAPI
NtSetIoCompletion(HANDLE
,ULONG_PTR
,ULONG_PTR
,NTSTATUS
,SIZE_T
);
2228 NTSYSAPI NTSTATUS WINAPI
NtSetLdtEntries(ULONG
,LDT_ENTRY
,ULONG
,LDT_ENTRY
);
2229 NTSYSAPI NTSTATUS WINAPI
NtSetLowEventPair(HANDLE
);
2230 NTSYSAPI NTSTATUS WINAPI
NtSetLowWaitHighEventPair(HANDLE
);
2231 NTSYSAPI NTSTATUS WINAPI
NtSetLowWaitHighThread(VOID
);
2232 NTSYSAPI NTSTATUS WINAPI
NtSetSecurityObject(HANDLE
,SECURITY_INFORMATION
,PSECURITY_DESCRIPTOR
);
2233 NTSYSAPI NTSTATUS WINAPI
NtSetSystemEnvironmentValue(PUNICODE_STRING
,PUNICODE_STRING
);
2234 NTSYSAPI NTSTATUS WINAPI
NtSetSystemInformation(SYSTEM_INFORMATION_CLASS
,PVOID
,ULONG
);
2235 NTSYSAPI NTSTATUS WINAPI
NtSetSystemPowerState(POWER_ACTION
,SYSTEM_POWER_STATE
,ULONG
);
2236 NTSYSAPI NTSTATUS WINAPI
NtSetSystemTime(const LARGE_INTEGER
*,LARGE_INTEGER
*);
2237 NTSYSAPI NTSTATUS WINAPI
NtSetTimer(HANDLE
, const LARGE_INTEGER
*, PTIMER_APC_ROUTINE
, PVOID
, BOOLEAN
, ULONG
, BOOLEAN
*);
2238 NTSYSAPI NTSTATUS WINAPI
NtSetTimerResolution(ULONG
,BOOLEAN
,PULONG
);
2239 NTSYSAPI NTSTATUS WINAPI
NtSetValueKey(HANDLE
,const UNICODE_STRING
*,ULONG
,ULONG
,const void *,ULONG
);
2240 NTSYSAPI NTSTATUS WINAPI
NtSetVolumeInformationFile(HANDLE
,PIO_STATUS_BLOCK
,PVOID
,ULONG
,FS_INFORMATION_CLASS
);
2241 NTSYSAPI NTSTATUS WINAPI
NtSignalAndWaitForSingleObject(HANDLE
,HANDLE
,BOOLEAN
,const LARGE_INTEGER
*);
2242 NTSYSAPI NTSTATUS WINAPI
NtShutdownSystem(SHUTDOWN_ACTION
);
2243 NTSYSAPI NTSTATUS WINAPI
NtStartProfile(HANDLE
);
2244 NTSYSAPI NTSTATUS WINAPI
NtStopProfile(HANDLE
);
2245 NTSYSAPI NTSTATUS WINAPI
NtSuspendThread(HANDLE
,PULONG
);
2246 NTSYSAPI NTSTATUS WINAPI
NtSystemDebugControl(SYSDBG_COMMAND
,PVOID
,ULONG
,PVOID
,ULONG
,PULONG
);
2247 NTSYSAPI NTSTATUS WINAPI
NtTerminateJobObject(HANDLE
,NTSTATUS
);
2248 NTSYSAPI NTSTATUS WINAPI
NtTerminateProcess(HANDLE
,LONG
);
2249 NTSYSAPI NTSTATUS WINAPI
NtTerminateThread(HANDLE
,LONG
);
2250 NTSYSAPI NTSTATUS WINAPI
NtTestAlert(VOID
);
2251 NTSYSAPI NTSTATUS WINAPI
NtUnloadDriver(const UNICODE_STRING
*);
2252 NTSYSAPI NTSTATUS WINAPI
NtUnloadKey(POBJECT_ATTRIBUTES
);
2253 NTSYSAPI NTSTATUS WINAPI
NtUnloadKeyEx(POBJECT_ATTRIBUTES
,HANDLE
);
2254 NTSYSAPI NTSTATUS WINAPI
NtUnlockFile(HANDLE
,PIO_STATUS_BLOCK
,PLARGE_INTEGER
,PLARGE_INTEGER
,PULONG
);
2255 NTSYSAPI NTSTATUS WINAPI
NtUnlockVirtualMemory(HANDLE
,PVOID
*,SIZE_T
*,ULONG
);
2256 NTSYSAPI NTSTATUS WINAPI
NtUnmapViewOfSection(HANDLE
,PVOID
);
2257 NTSYSAPI NTSTATUS WINAPI
NtVdmControl(ULONG
,PVOID
);
2258 NTSYSAPI NTSTATUS WINAPI
NtWaitForKeyedEvent(HANDLE
,const void*,BOOLEAN
,const LARGE_INTEGER
*);
2259 NTSYSAPI NTSTATUS WINAPI
NtWaitForSingleObject(HANDLE
,BOOLEAN
,const LARGE_INTEGER
*);
2260 NTSYSAPI NTSTATUS WINAPI
NtWaitForMultipleObjects(ULONG
,const HANDLE
*,BOOLEAN
,BOOLEAN
,const LARGE_INTEGER
*);
2261 NTSYSAPI NTSTATUS WINAPI
NtWaitHighEventPair(HANDLE
);
2262 NTSYSAPI NTSTATUS WINAPI
NtWaitLowEventPair(HANDLE
);
2263 NTSYSAPI NTSTATUS WINAPI
NtWriteFile(HANDLE
,HANDLE
,PIO_APC_ROUTINE
,PVOID
,PIO_STATUS_BLOCK
,const void*,ULONG
,PLARGE_INTEGER
,PULONG
);
2264 NTSYSAPI NTSTATUS WINAPI
NtWriteFileGather(HANDLE
,HANDLE
,PIO_APC_ROUTINE
,PVOID
,PIO_STATUS_BLOCK
,FILE_SEGMENT_ELEMENT
*,ULONG
,PLARGE_INTEGER
,PULONG
);
2265 NTSYSAPI NTSTATUS WINAPI
NtWriteRequestData(HANDLE
,PLPC_MESSAGE
,ULONG
,PVOID
,ULONG
,PULONG
);
2266 NTSYSAPI NTSTATUS WINAPI
NtWriteVirtualMemory(HANDLE
,void*,const void*,SIZE_T
,SIZE_T
*);
2267 NTSYSAPI NTSTATUS WINAPI
NtYieldExecution(void);
2269 NTSYSAPI
void WINAPI
RtlAcquirePebLock(void);
2270 NTSYSAPI BYTE WINAPI
RtlAcquireResourceExclusive(LPRTL_RWLOCK
,BYTE
);
2271 NTSYSAPI BYTE WINAPI
RtlAcquireResourceShared(LPRTL_RWLOCK
,BYTE
);
2272 NTSYSAPI
void WINAPI
RtlAcquireSRWLockExclusive(RTL_SRWLOCK
*);
2273 NTSYSAPI
void WINAPI
RtlAcquireSRWLockShared(RTL_SRWLOCK
*);
2274 NTSYSAPI NTSTATUS WINAPI
RtlActivateActivationContext(DWORD
,HANDLE
,ULONG_PTR
*);
2275 NTSYSAPI NTSTATUS WINAPI
RtlAddAce(PACL
,DWORD
,DWORD
,PACE_HEADER
,DWORD
);
2276 NTSYSAPI NTSTATUS WINAPI
RtlAddAccessAllowedAce(PACL
,DWORD
,DWORD
,PSID
);
2277 NTSYSAPI NTSTATUS WINAPI
RtlAddAccessAllowedAceEx(PACL
,DWORD
,DWORD
,DWORD
,PSID
);
2278 NTSYSAPI NTSTATUS WINAPI
RtlAddAccessDeniedAce(PACL
,DWORD
,DWORD
,PSID
);
2279 NTSYSAPI NTSTATUS WINAPI
RtlAddAccessDeniedAceEx(PACL
,DWORD
,DWORD
,DWORD
,PSID
);
2280 NTSYSAPI NTSTATUS WINAPI
RtlAddAtomToAtomTable(RTL_ATOM_TABLE
,const WCHAR
*,RTL_ATOM
*);
2281 NTSYSAPI NTSTATUS WINAPI
RtlAddAuditAccessAce(PACL
,DWORD
,DWORD
,PSID
,BOOL
,BOOL
);
2282 NTSYSAPI NTSTATUS WINAPI
RtlAddAuditAccessAceEx(PACL
,DWORD
,DWORD
,DWORD
,PSID
,BOOL
,BOOL
);
2283 NTSYSAPI
void WINAPI
RtlAddRefActivationContext(HANDLE
);
2284 NTSYSAPI PVOID WINAPI
RtlAddVectoredExceptionHandler(ULONG
,PVECTORED_EXCEPTION_HANDLER
);
2285 NTSYSAPI NTSTATUS WINAPI
RtlAdjustPrivilege(ULONG
,BOOLEAN
,BOOLEAN
,PBOOLEAN
);
2286 NTSYSAPI NTSTATUS WINAPI
RtlAllocateAndInitializeSid(PSID_IDENTIFIER_AUTHORITY
,BYTE
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,DWORD
,PSID
*);
2287 NTSYSAPI RTL_HANDLE
* WINAPI
RtlAllocateHandle(RTL_HANDLE_TABLE
*,ULONG
*);
2288 NTSYSAPI PVOID WINAPI
RtlAllocateHeap(HANDLE
,ULONG
,SIZE_T
) __WINE_ALLOC_SIZE(3);
2289 NTSYSAPI WCHAR WINAPI
RtlAnsiCharToUnicodeChar(LPSTR
*);
2290 NTSYSAPI DWORD WINAPI
RtlAnsiStringToUnicodeSize(const STRING
*);
2291 NTSYSAPI NTSTATUS WINAPI
RtlAnsiStringToUnicodeString(PUNICODE_STRING
,PCANSI_STRING
,BOOLEAN
);
2292 NTSYSAPI NTSTATUS WINAPI
RtlAppendAsciizToString(STRING
*,LPCSTR
);
2293 NTSYSAPI NTSTATUS WINAPI
RtlAppendStringToString(STRING
*,const STRING
*);
2294 NTSYSAPI NTSTATUS WINAPI
RtlAppendUnicodeStringToString(UNICODE_STRING
*,const UNICODE_STRING
*);
2295 NTSYSAPI NTSTATUS WINAPI
RtlAppendUnicodeToString(UNICODE_STRING
*,LPCWSTR
);
2296 NTSYSAPI BOOLEAN WINAPI
RtlAreAllAccessesGranted(ACCESS_MASK
,ACCESS_MASK
);
2297 NTSYSAPI BOOLEAN WINAPI
RtlAreAnyAccessesGranted(ACCESS_MASK
,ACCESS_MASK
);
2298 NTSYSAPI BOOLEAN WINAPI
RtlAreBitsSet(PCRTL_BITMAP
,ULONG
,ULONG
);
2299 NTSYSAPI BOOLEAN WINAPI
RtlAreBitsClear(PCRTL_BITMAP
,ULONG
,ULONG
);
2300 NTSYSAPI NTSTATUS WINAPI
RtlCharToInteger(PCSZ
,ULONG
,PULONG
);
2301 NTSYSAPI NTSTATUS WINAPI
RtlCheckRegistryKey(ULONG
, PWSTR
);
2302 NTSYSAPI
void WINAPI
RtlClearAllBits(PRTL_BITMAP
);
2303 NTSYSAPI
void WINAPI
RtlClearBits(PRTL_BITMAP
,ULONG
,ULONG
);
2304 NTSYSAPI NTSTATUS WINAPI
RtlCreateActivationContext(HANDLE
*,const void*);
2305 NTSYSAPI PDEBUG_BUFFER WINAPI
RtlCreateQueryDebugBuffer(ULONG
,BOOLEAN
);
2306 NTSYSAPI ULONG WINAPI
RtlCompactHeap(HANDLE
,ULONG
);
2307 NTSYSAPI LONG WINAPI
RtlCompareString(const STRING
*,const STRING
*,BOOLEAN
);
2308 NTSYSAPI LONG WINAPI
RtlCompareUnicodeString(const UNICODE_STRING
*,const UNICODE_STRING
*,BOOLEAN
);
2309 NTSYSAPI NTSTATUS WINAPI
RtlCompressBuffer(USHORT
,PUCHAR
,ULONG
,PUCHAR
,ULONG
,ULONG
,PULONG
,PVOID
);
2310 NTSYSAPI DWORD WINAPI
RtlComputeCrc32(DWORD
,const BYTE
*,INT
);
2311 NTSYSAPI NTSTATUS WINAPI
RtlConvertSidToUnicodeString(PUNICODE_STRING
,PSID
,BOOLEAN
);
2312 NTSYSAPI
void WINAPI
RtlCopyLuid(PLUID
,const LUID
*);
2313 NTSYSAPI
void WINAPI
RtlCopyLuidAndAttributesArray(ULONG
,const LUID_AND_ATTRIBUTES
*,PLUID_AND_ATTRIBUTES
);
2314 NTSYSAPI BOOLEAN WINAPI
RtlCopySid(DWORD
,PSID
,PSID
);
2315 NTSYSAPI NTSTATUS WINAPI
RtlCopySecurityDescriptor(PSECURITY_DESCRIPTOR
,PSECURITY_DESCRIPTOR
);
2316 NTSYSAPI
void WINAPI
RtlCopyString(STRING
*,const STRING
*);
2317 NTSYSAPI
void WINAPI
RtlCopyUnicodeString(UNICODE_STRING
*,const UNICODE_STRING
*);
2318 NTSYSAPI NTSTATUS WINAPI
RtlCreateAcl(PACL
,DWORD
,DWORD
);
2319 NTSYSAPI NTSTATUS WINAPI
RtlCreateAtomTable(ULONG
,RTL_ATOM_TABLE
*);
2320 NTSYSAPI NTSTATUS WINAPI
RtlCreateEnvironment(BOOLEAN
, PWSTR
*);
2321 NTSYSAPI HANDLE WINAPI
RtlCreateHeap(ULONG
,PVOID
,SIZE_T
,SIZE_T
,PVOID
,PRTL_HEAP_DEFINITION
);
2322 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
*);
2323 NTSYSAPI NTSTATUS WINAPI
RtlCreateSecurityDescriptor(PSECURITY_DESCRIPTOR
,DWORD
);
2324 NTSYSAPI NTSTATUS WINAPI
RtlCreateTimerQueue(PHANDLE
);
2325 NTSYSAPI NTSTATUS WINAPI
RtlCreateTimer(PHANDLE
, HANDLE
, RTL_WAITORTIMERCALLBACKFUNC
, PVOID
, DWORD
, DWORD
, ULONG
);
2326 NTSYSAPI BOOLEAN WINAPI
RtlCreateUnicodeString(PUNICODE_STRING
,LPCWSTR
);
2327 NTSYSAPI BOOLEAN WINAPI
RtlCreateUnicodeStringFromAsciiz(PUNICODE_STRING
,LPCSTR
);
2328 NTSYSAPI NTSTATUS WINAPI
RtlCreateUserThread(HANDLE
,const SECURITY_DESCRIPTOR
*,BOOLEAN
,PVOID
,SIZE_T
,SIZE_T
,PRTL_THREAD_START_ROUTINE
,void*,HANDLE
*,CLIENT_ID
*);
2329 NTSYSAPI
void WINAPI
RtlDeactivateActivationContext(DWORD
,ULONG_PTR
);
2330 NTSYSAPI PVOID WINAPI
RtlDecodePointer(PVOID
);
2331 NTSYSAPI NTSTATUS WINAPI
RtlDecompressBuffer(USHORT
,PUCHAR
,ULONG
,PUCHAR
,ULONG
,PULONG
);
2332 NTSYSAPI NTSTATUS WINAPI
RtlDeleteAce(PACL
,DWORD
);
2333 NTSYSAPI NTSTATUS WINAPI
RtlDeleteAtomFromAtomTable(RTL_ATOM_TABLE
,RTL_ATOM
);
2334 NTSYSAPI NTSTATUS WINAPI
RtlDeleteCriticalSection(RTL_CRITICAL_SECTION
*);
2335 NTSYSAPI NTSTATUS WINAPI
RtlDeleteRegistryValue(ULONG
, PCWSTR
, PCWSTR
);
2336 NTSYSAPI
void WINAPI
RtlDeleteResource(LPRTL_RWLOCK
);
2337 NTSYSAPI NTSTATUS WINAPI
RtlDeleteSecurityObject(PSECURITY_DESCRIPTOR
*);
2338 NTSYSAPI NTSTATUS WINAPI
RtlDeleteTimer(HANDLE
, HANDLE
, HANDLE
);
2339 NTSYSAPI NTSTATUS WINAPI
RtlDeleteTimerQueueEx(HANDLE
, HANDLE
);
2340 NTSYSAPI PRTL_USER_PROCESS_PARAMETERS WINAPI
RtlDeNormalizeProcessParams(RTL_USER_PROCESS_PARAMETERS
*);
2341 NTSYSAPI NTSTATUS WINAPI
RtlDeregisterWait(HANDLE
);
2342 NTSYSAPI NTSTATUS WINAPI
RtlDeregisterWaitEx(HANDLE
,HANDLE
);
2343 NTSYSAPI NTSTATUS WINAPI
RtlDestroyAtomTable(RTL_ATOM_TABLE
);
2344 NTSYSAPI NTSTATUS WINAPI
RtlDestroyEnvironment(PWSTR
);
2345 NTSYSAPI NTSTATUS WINAPI
RtlDestroyHandleTable(RTL_HANDLE_TABLE
*);
2346 NTSYSAPI HANDLE WINAPI
RtlDestroyHeap(HANDLE
);
2347 NTSYSAPI
void WINAPI
RtlDestroyProcessParameters(RTL_USER_PROCESS_PARAMETERS
*);
2348 NTSYSAPI NTSTATUS WINAPI
RtlDestroyQueryDebugBuffer(PDEBUG_BUFFER
);
2349 NTSYSAPI DOS_PATHNAME_TYPE WINAPI
RtlDetermineDosPathNameType_U(PCWSTR
);
2350 NTSYSAPI BOOLEAN WINAPI
RtlDllShutdownInProgress(void);
2351 NTSYSAPI BOOLEAN WINAPI
RtlDoesFileExists_U(LPCWSTR
);
2352 NTSYSAPI BOOLEAN WINAPI
RtlDosPathNameToNtPathName_U(PCWSTR
,PUNICODE_STRING
,PWSTR
*,CURDIR
*);
2353 NTSYSAPI ULONG WINAPI
RtlDosSearchPath_U(LPCWSTR
, LPCWSTR
, LPCWSTR
, ULONG
, LPWSTR
, LPWSTR
*);
2354 NTSYSAPI WCHAR WINAPI
RtlDowncaseUnicodeChar(WCHAR
);
2355 NTSYSAPI NTSTATUS WINAPI
RtlDowncaseUnicodeString(UNICODE_STRING
*,const UNICODE_STRING
*,BOOLEAN
);
2356 NTSYSAPI
void WINAPI
RtlDumpResource(LPRTL_RWLOCK
);
2357 NTSYSAPI NTSTATUS WINAPI
RtlDuplicateUnicodeString(int,const UNICODE_STRING
*,UNICODE_STRING
*);
2358 NTSYSAPI NTSTATUS WINAPI
RtlEmptyAtomTable(RTL_ATOM_TABLE
,BOOLEAN
);
2359 NTSYSAPI PVOID WINAPI
RtlEncodePointer(PVOID
);
2360 NTSYSAPI NTSTATUS WINAPI
RtlEnterCriticalSection(RTL_CRITICAL_SECTION
*);
2361 NTSYSAPI
void WINAPI
RtlEraseUnicodeString(UNICODE_STRING
*);
2362 NTSYSAPI NTSTATUS WINAPI
RtlEqualComputerName(const UNICODE_STRING
*,const UNICODE_STRING
*);
2363 NTSYSAPI NTSTATUS WINAPI
RtlEqualDomainName(const UNICODE_STRING
*,const UNICODE_STRING
*);
2364 NTSYSAPI BOOLEAN WINAPI
RtlEqualLuid(const LUID
*,const LUID
*);
2365 NTSYSAPI BOOL WINAPI
RtlEqualPrefixSid(PSID
,PSID
);
2366 NTSYSAPI BOOL WINAPI
RtlEqualSid(PSID
,PSID
);
2367 NTSYSAPI BOOLEAN WINAPI
RtlEqualString(const STRING
*,const STRING
*,BOOLEAN
);
2368 NTSYSAPI BOOLEAN WINAPI
RtlEqualUnicodeString(const UNICODE_STRING
*,const UNICODE_STRING
*,BOOLEAN
);
2369 NTSYSAPI
void DECLSPEC_NORETURN WINAPI
RtlExitUserProcess(ULONG
);
2370 NTSYSAPI
void DECLSPEC_NORETURN WINAPI
RtlExitUserThread(ULONG
);
2371 NTSYSAPI NTSTATUS WINAPI
RtlExpandEnvironmentStrings_U(PCWSTR
, const UNICODE_STRING
*, UNICODE_STRING
*, ULONG
*);
2372 NTSYSAPI NTSTATUS WINAPI
RtlFindActivationContextSectionString(ULONG
,const GUID
*,ULONG
,const UNICODE_STRING
*,PVOID
);
2373 NTSYSAPI NTSTATUS WINAPI
RtlFindActivationContextSectionGuid(ULONG
,const GUID
*,ULONG
,const GUID
*,PVOID
);
2374 NTSYSAPI NTSTATUS WINAPI
RtlFindCharInUnicodeString(int,const UNICODE_STRING
*,const UNICODE_STRING
*,USHORT
*);
2375 NTSYSAPI ULONG WINAPI
RtlFindClearBits(PCRTL_BITMAP
,ULONG
,ULONG
);
2376 NTSYSAPI ULONG WINAPI
RtlFindClearBitsAndSet(PRTL_BITMAP
,ULONG
,ULONG
);
2377 NTSYSAPI ULONG WINAPI
RtlFindClearRuns(PCRTL_BITMAP
,PRTL_BITMAP_RUN
,ULONG
,BOOLEAN
);
2378 NTSYSAPI ULONG WINAPI
RtlFindLastBackwardRunSet(PCRTL_BITMAP
,ULONG
,PULONG
);
2379 NTSYSAPI ULONG WINAPI
RtlFindLastBackwardRunClear(PCRTL_BITMAP
,ULONG
,PULONG
);
2380 NTSYSAPI CCHAR WINAPI
RtlFindLeastSignificantBit(ULONGLONG
);
2381 NTSYSAPI ULONG WINAPI
RtlFindLongestRunSet(PCRTL_BITMAP
,PULONG
);
2382 NTSYSAPI ULONG WINAPI
RtlFindLongestRunClear(PCRTL_BITMAP
,PULONG
);
2383 NTSYSAPI NTSTATUS WINAPI
RtlFindMessage(HMODULE
,ULONG
,ULONG
,ULONG
,const MESSAGE_RESOURCE_ENTRY
**);
2384 NTSYSAPI CCHAR WINAPI
RtlFindMostSignificantBit(ULONGLONG
);
2385 NTSYSAPI ULONG WINAPI
RtlFindNextForwardRunSet(PCRTL_BITMAP
,ULONG
,PULONG
);
2386 NTSYSAPI ULONG WINAPI
RtlFindNextForwardRunClear(PCRTL_BITMAP
,ULONG
,PULONG
);
2387 NTSYSAPI ULONG WINAPI
RtlFindSetBits(PCRTL_BITMAP
,ULONG
,ULONG
);
2388 NTSYSAPI ULONG WINAPI
RtlFindSetBitsAndClear(PRTL_BITMAP
,ULONG
,ULONG
);
2389 NTSYSAPI ULONG WINAPI
RtlFindSetRuns(PCRTL_BITMAP
,PRTL_BITMAP_RUN
,ULONG
,BOOLEAN
);
2390 NTSYSAPI BOOLEAN WINAPI
RtlFirstFreeAce(PACL
,PACE_HEADER
*);
2391 NTSYSAPI NTSTATUS WINAPI
RtlFormatCurrentUserKeyPath(PUNICODE_STRING
);
2392 NTSYSAPI NTSTATUS WINAPI
RtlFormatMessage(LPWSTR
,UCHAR
,BOOLEAN
,BOOLEAN
,BOOLEAN
,__ms_va_list
*,LPWSTR
,ULONG
);
2393 NTSYSAPI
void WINAPI
RtlFreeAnsiString(PANSI_STRING
);
2394 NTSYSAPI BOOLEAN WINAPI
RtlFreeHandle(RTL_HANDLE_TABLE
*,RTL_HANDLE
*);
2395 NTSYSAPI BOOLEAN WINAPI
RtlFreeHeap(HANDLE
,ULONG
,PVOID
);
2396 NTSYSAPI
void WINAPI
RtlFreeOemString(POEM_STRING
);
2397 NTSYSAPI DWORD WINAPI
RtlFreeSid(PSID
);
2398 NTSYSAPI
void WINAPI
RtlFreeThreadActivationContextStack(void);
2399 NTSYSAPI
void WINAPI
RtlFreeUnicodeString(PUNICODE_STRING
);
2400 NTSYSAPI NTSTATUS WINAPI
RtlGetAce(PACL
,DWORD
,LPVOID
*);
2401 NTSYSAPI NTSTATUS WINAPI
RtlGetActiveActivationContext(HANDLE
*);
2402 NTSYSAPI NTSTATUS WINAPI
RtlGetCompressionWorkSpaceSize(USHORT
,PULONG
,PULONG
);
2403 NTSYSAPI NTSTATUS WINAPI
RtlGetControlSecurityDescriptor(PSECURITY_DESCRIPTOR
, PSECURITY_DESCRIPTOR_CONTROL
,LPDWORD
);
2404 NTSYSAPI NTSTATUS WINAPI
RtlGetCurrentDirectory_U(ULONG
, LPWSTR
);
2405 NTSYSAPI PEB
* WINAPI
RtlGetCurrentPeb(void);
2406 NTSYSAPI NTSTATUS WINAPI
RtlGetDaclSecurityDescriptor(PSECURITY_DESCRIPTOR
,PBOOLEAN
,PACL
*,PBOOLEAN
);
2407 NTSYSAPI ULONG WINAPI
RtlGetFullPathName_U(PCWSTR
,ULONG
,PWSTR
,PWSTR
*);
2408 NTSYSAPI NTSTATUS WINAPI
RtlGetGroupSecurityDescriptor(PSECURITY_DESCRIPTOR
,PSID
*,PBOOLEAN
);
2409 NTSYSAPI NTSTATUS WINAPI
RtlGetLastNtStatus(void);
2410 NTSYSAPI DWORD WINAPI
RtlGetLastWin32Error(void);
2411 NTSYSAPI DWORD WINAPI
RtlGetLongestNtPathLength(void);
2412 NTSYSAPI ULONG WINAPI
RtlGetNtGlobalFlags(void);
2413 NTSYSAPI BOOLEAN WINAPI
RtlGetNtProductType(LPDWORD
);
2414 NTSYSAPI NTSTATUS WINAPI
RtlGetOwnerSecurityDescriptor(PSECURITY_DESCRIPTOR
,PSID
*,PBOOLEAN
);
2415 NTSYSAPI ULONG WINAPI
RtlGetProcessHeaps(ULONG
,HANDLE
*);
2416 NTSYSAPI DWORD WINAPI
RtlGetThreadErrorMode(void);
2417 NTSYSAPI NTSTATUS WINAPI
RtlGetSaclSecurityDescriptor(PSECURITY_DESCRIPTOR
,PBOOLEAN
,PACL
*,PBOOLEAN
);
2418 NTSYSAPI NTSTATUS WINAPI
RtlGetVersion(RTL_OSVERSIONINFOEXW
*);
2419 NTSYSAPI NTSTATUS WINAPI
RtlGUIDFromString(PUNICODE_STRING
,GUID
*);
2420 NTSYSAPI PSID_IDENTIFIER_AUTHORITY WINAPI
RtlIdentifierAuthoritySid(PSID
);
2421 NTSYSAPI PVOID WINAPI
RtlImageDirectoryEntryToData(HMODULE
,BOOL
,WORD
,ULONG
*);
2422 NTSYSAPI PIMAGE_NT_HEADERS WINAPI
RtlImageNtHeader(HMODULE
);
2423 NTSYSAPI PIMAGE_SECTION_HEADER WINAPI
RtlImageRvaToSection(const IMAGE_NT_HEADERS
*,HMODULE
,DWORD
);
2424 NTSYSAPI PVOID WINAPI
RtlImageRvaToVa(const IMAGE_NT_HEADERS
*,HMODULE
,DWORD
,IMAGE_SECTION_HEADER
**);
2425 NTSYSAPI NTSTATUS WINAPI
RtlImpersonateSelf(SECURITY_IMPERSONATION_LEVEL
);
2426 NTSYSAPI
void WINAPI
RtlInitString(PSTRING
,PCSZ
);
2427 NTSYSAPI
void WINAPI
RtlInitAnsiString(PANSI_STRING
,PCSZ
);
2428 NTSYSAPI NTSTATUS WINAPI
RtlInitAnsiStringEx(PANSI_STRING
,PCSZ
);
2429 NTSYSAPI
void WINAPI
RtlInitUnicodeString(PUNICODE_STRING
,PCWSTR
);
2430 NTSYSAPI NTSTATUS WINAPI
RtlInitUnicodeStringEx(PUNICODE_STRING
,PCWSTR
);
2431 NTSYSAPI
void WINAPI
RtlInitializeBitMap(PRTL_BITMAP
,PULONG
,ULONG
);
2432 NTSYSAPI
void WINAPI
RtlInitializeConditionVariable(RTL_CONDITION_VARIABLE
*);
2433 NTSYSAPI NTSTATUS WINAPI
RtlInitializeCriticalSection(RTL_CRITICAL_SECTION
*);
2434 NTSYSAPI NTSTATUS WINAPI
RtlInitializeCriticalSectionAndSpinCount(RTL_CRITICAL_SECTION
*,ULONG
);
2435 NTSYSAPI NTSTATUS WINAPI
RtlInitializeCriticalSectionEx(RTL_CRITICAL_SECTION
*,ULONG
,ULONG
);
2436 NTSYSAPI
void WINAPI
RtlInitializeHandleTable(ULONG
,ULONG
,RTL_HANDLE_TABLE
*);
2437 NTSYSAPI
void WINAPI
RtlInitializeResource(LPRTL_RWLOCK
);
2438 NTSYSAPI
void WINAPI
RtlInitializeSRWLock(RTL_SRWLOCK
*);
2439 NTSYSAPI BOOL WINAPI
RtlInitializeSid(PSID
,PSID_IDENTIFIER_AUTHORITY
,BYTE
);
2440 NTSYSAPI NTSTATUS WINAPI
RtlInt64ToUnicodeString(ULONGLONG
,ULONG
,UNICODE_STRING
*);
2441 NTSYSAPI NTSTATUS WINAPI
RtlIntegerToChar(ULONG
,ULONG
,ULONG
,PCHAR
);
2442 NTSYSAPI NTSTATUS WINAPI
RtlIntegerToUnicodeString(ULONG
,ULONG
,UNICODE_STRING
*);
2443 NTSYSAPI BOOLEAN WINAPI
RtlIsActivationContextActive(HANDLE
);
2444 NTSYSAPI ULONG WINAPI
RtlIsDosDeviceName_U(PCWSTR
);
2445 NTSYSAPI BOOLEAN WINAPI
RtlIsNameLegalDOS8Dot3(const UNICODE_STRING
*,POEM_STRING
,PBOOLEAN
);
2446 NTSYSAPI BOOLEAN WINAPI
RtlIsTextUnicode(LPCVOID
,INT
,INT
*);
2447 NTSYSAPI BOOLEAN WINAPI
RtlIsValidHandle(const RTL_HANDLE_TABLE
*, const RTL_HANDLE
*);
2448 NTSYSAPI BOOLEAN WINAPI
RtlIsValidIndexHandle(const RTL_HANDLE_TABLE
*, ULONG Index
, RTL_HANDLE
**);
2449 NTSYSAPI NTSTATUS WINAPI
RtlLeaveCriticalSection(RTL_CRITICAL_SECTION
*);
2450 NTSYSAPI DWORD WINAPI
RtlLengthRequiredSid(DWORD
);
2451 NTSYSAPI ULONG WINAPI
RtlLengthSecurityDescriptor(PSECURITY_DESCRIPTOR
);
2452 NTSYSAPI DWORD WINAPI
RtlLengthSid(PSID
);
2453 NTSYSAPI NTSTATUS WINAPI
RtlLocalTimeToSystemTime(const LARGE_INTEGER
*,PLARGE_INTEGER
);
2454 NTSYSAPI BOOLEAN WINAPI
RtlLockHeap(HANDLE
);
2455 NTSYSAPI NTSTATUS WINAPI
RtlLookupAtomInAtomTable(RTL_ATOM_TABLE
,const WCHAR
*,RTL_ATOM
*);
2456 NTSYSAPI NTSTATUS WINAPI
RtlMakeSelfRelativeSD(PSECURITY_DESCRIPTOR
,PSECURITY_DESCRIPTOR
,LPDWORD
);
2457 NTSYSAPI
void WINAPI
RtlMapGenericMask(PACCESS_MASK
,const GENERIC_MAPPING
*);
2458 NTSYSAPI NTSTATUS WINAPI
RtlMultiByteToUnicodeN(LPWSTR
,DWORD
,LPDWORD
,LPCSTR
,DWORD
);
2459 NTSYSAPI NTSTATUS WINAPI
RtlMultiByteToUnicodeSize(DWORD
*,LPCSTR
,UINT
);
2460 NTSYSAPI NTSTATUS WINAPI
RtlNewSecurityObject(PSECURITY_DESCRIPTOR
,PSECURITY_DESCRIPTOR
,PSECURITY_DESCRIPTOR
*,BOOLEAN
,HANDLE
,PGENERIC_MAPPING
);
2461 NTSYSAPI PRTL_USER_PROCESS_PARAMETERS WINAPI
RtlNormalizeProcessParams(RTL_USER_PROCESS_PARAMETERS
*);
2462 NTSYSAPI ULONG WINAPI
RtlNtStatusToDosError(NTSTATUS
);
2463 NTSYSAPI ULONG WINAPI
RtlNtStatusToDosErrorNoTeb(NTSTATUS
);
2464 NTSYSAPI ULONG WINAPI
RtlNumberOfSetBits(PCRTL_BITMAP
);
2465 NTSYSAPI ULONG WINAPI
RtlNumberOfClearBits(PCRTL_BITMAP
);
2466 NTSYSAPI UINT WINAPI
RtlOemStringToUnicodeSize(const STRING
*);
2467 NTSYSAPI NTSTATUS WINAPI
RtlOemStringToUnicodeString(UNICODE_STRING
*,const STRING
*,BOOLEAN
);
2468 NTSYSAPI NTSTATUS WINAPI
RtlOemToUnicodeN(LPWSTR
,DWORD
,LPDWORD
,LPCSTR
,DWORD
);
2469 NTSYSAPI NTSTATUS WINAPI
RtlOpenCurrentUser(ACCESS_MASK
,PHANDLE
);
2470 NTSYSAPI PVOID WINAPI
RtlPcToFileHeader(PVOID
,PVOID
*);
2471 NTSYSAPI NTSTATUS WINAPI
RtlPinAtomInAtomTable(RTL_ATOM_TABLE
,RTL_ATOM
);
2472 NTSYSAPI BOOLEAN WINAPI
RtlPrefixString(const STRING
*,const STRING
*,BOOLEAN
);
2473 NTSYSAPI BOOLEAN WINAPI
RtlPrefixUnicodeString(const UNICODE_STRING
*,const UNICODE_STRING
*,BOOLEAN
);
2474 NTSYSAPI NTSTATUS WINAPI
RtlQueryAtomInAtomTable(RTL_ATOM_TABLE
,RTL_ATOM
,ULONG
*,ULONG
*,WCHAR
*,ULONG
*);
2475 NTSYSAPI NTSTATUS WINAPI
RtlQueryEnvironmentVariable_U(PWSTR
,PUNICODE_STRING
,PUNICODE_STRING
);
2476 NTSYSAPI NTSTATUS WINAPI
RtlQueryHeapInformation(HANDLE
,HEAP_INFORMATION_CLASS
,PVOID
,SIZE_T
,PSIZE_T
);
2477 NTSYSAPI NTSTATUS WINAPI
RtlQueryInformationAcl(PACL
,LPVOID
,DWORD
,ACL_INFORMATION_CLASS
);
2478 NTSYSAPI NTSTATUS WINAPI
RtlQueryInformationActivationContext(ULONG
,HANDLE
,PVOID
,ULONG
,PVOID
,SIZE_T
,SIZE_T
*);
2479 NTSYSAPI NTSTATUS WINAPI
RtlQueryProcessDebugInformation(ULONG
,ULONG
,PDEBUG_BUFFER
);
2480 NTSYSAPI NTSTATUS WINAPI
RtlQueryRegistryValues(ULONG
, PCWSTR
, PRTL_QUERY_REGISTRY_TABLE
, PVOID
, PVOID
);
2481 NTSYSAPI NTSTATUS WINAPI
RtlQueryTimeZoneInformation(RTL_TIME_ZONE_INFORMATION
*);
2482 NTSYSAPI NTSTATUS WINAPI
RtlQueryUnbiasedInterruptTime(ULONGLONG
*);
2483 NTSYSAPI NTSTATUS WINAPI
RtlQueueWorkItem(PRTL_WORK_ITEM_ROUTINE
,PVOID
,ULONG
);
2484 NTSYSAPI
void WINAPI
RtlRaiseException(PEXCEPTION_RECORD
);
2485 NTSYSAPI
void WINAPI
RtlRaiseStatus(NTSTATUS
);
2486 NTSYSAPI ULONG WINAPI
RtlRandom(PULONG
);
2487 NTSYSAPI PVOID WINAPI
RtlReAllocateHeap(HANDLE
,ULONG
,PVOID
,SIZE_T
);
2488 NTSYSAPI NTSTATUS WINAPI
RtlRegisterWait(PHANDLE
,HANDLE
,RTL_WAITORTIMERCALLBACKFUNC
,PVOID
,ULONG
,ULONG
);
2489 NTSYSAPI
void WINAPI
RtlReleaseActivationContext(HANDLE
);
2490 NTSYSAPI
void WINAPI
RtlReleasePebLock(void);
2491 NTSYSAPI
void WINAPI
RtlReleaseResource(LPRTL_RWLOCK
);
2492 NTSYSAPI
void WINAPI
RtlReleaseSRWLockExclusive(RTL_SRWLOCK
*);
2493 NTSYSAPI
void WINAPI
RtlReleaseSRWLockShared(RTL_SRWLOCK
*);
2494 NTSYSAPI ULONG WINAPI
RtlRemoveVectoredExceptionHandler(PVOID
);
2495 NTSYSAPI
void WINAPI
RtlRestoreLastWin32Error(DWORD
);
2496 NTSYSAPI
void WINAPI
RtlSecondsSince1970ToTime(DWORD
,LARGE_INTEGER
*);
2497 NTSYSAPI
void WINAPI
RtlSecondsSince1980ToTime(DWORD
,LARGE_INTEGER
*);
2498 NTSYSAPI NTSTATUS WINAPI
RtlSelfRelativeToAbsoluteSD(PSECURITY_DESCRIPTOR
,PSECURITY_DESCRIPTOR
,PDWORD
,PACL
,PDWORD
,PACL
,PDWORD
,PSID
,PDWORD
,PSID
,PDWORD
);
2499 NTSYSAPI
void WINAPI
RtlSetAllBits(PRTL_BITMAP
);
2500 NTSYSAPI
void WINAPI
RtlSetBits(PRTL_BITMAP
,ULONG
,ULONG
);
2501 NTSYSAPI ULONG WINAPI
RtlSetCriticalSectionSpinCount(RTL_CRITICAL_SECTION
*,ULONG
);
2502 NTSYSAPI NTSTATUS WINAPI
RtlSetControlSecurityDescriptor(PSECURITY_DESCRIPTOR
,SECURITY_DESCRIPTOR_CONTROL
,SECURITY_DESCRIPTOR_CONTROL
);
2503 NTSYSAPI NTSTATUS WINAPI
RtlSetCurrentDirectory_U(const UNICODE_STRING
*);
2504 NTSYSAPI
void WINAPI
RtlSetCurrentEnvironment(PWSTR
, PWSTR
*);
2505 NTSYSAPI NTSTATUS WINAPI
RtlSetDaclSecurityDescriptor(PSECURITY_DESCRIPTOR
,BOOLEAN
,PACL
,BOOLEAN
);
2506 NTSYSAPI NTSTATUS WINAPI
RtlSetEnvironmentVariable(PWSTR
*,PUNICODE_STRING
,PUNICODE_STRING
);
2507 NTSYSAPI NTSTATUS WINAPI
RtlSetHeapInformation(HANDLE
,HEAP_INFORMATION_CLASS
,PVOID
,SIZE_T
);
2508 NTSYSAPI NTSTATUS WINAPI
RtlSetOwnerSecurityDescriptor(PSECURITY_DESCRIPTOR
,PSID
,BOOLEAN
);
2509 NTSYSAPI NTSTATUS WINAPI
RtlSetGroupSecurityDescriptor(PSECURITY_DESCRIPTOR
,PSID
,BOOLEAN
);
2510 NTSYSAPI NTSTATUS WINAPI
RtlSetIoCompletionCallback(HANDLE
,PRTL_OVERLAPPED_COMPLETION_ROUTINE
,ULONG
);
2511 NTSYSAPI
void WINAPI
RtlSetLastWin32Error(DWORD
);
2512 NTSYSAPI
void WINAPI
RtlSetLastWin32ErrorAndNtStatusFromNtStatus(NTSTATUS
);
2513 NTSYSAPI NTSTATUS WINAPI
RtlSetSaclSecurityDescriptor(PSECURITY_DESCRIPTOR
,BOOLEAN
,PACL
,BOOLEAN
);
2514 NTSYSAPI NTSTATUS WINAPI
RtlSetThreadErrorMode(DWORD
,LPDWORD
);
2515 NTSYSAPI NTSTATUS WINAPI
RtlSetTimeZoneInformation(const RTL_TIME_ZONE_INFORMATION
*);
2516 NTSYSAPI SIZE_T WINAPI
RtlSizeHeap(HANDLE
,ULONG
,const void*);
2517 NTSYSAPI NTSTATUS WINAPI
RtlSleepConditionVariableCS(RTL_CONDITION_VARIABLE
*,RTL_CRITICAL_SECTION
*,const LARGE_INTEGER
*);
2518 NTSYSAPI NTSTATUS WINAPI
RtlSleepConditionVariableSRW(RTL_CONDITION_VARIABLE
*,RTL_SRWLOCK
*,const LARGE_INTEGER
*,ULONG
);
2519 NTSYSAPI NTSTATUS WINAPI
RtlStringFromGUID(REFGUID
,PUNICODE_STRING
);
2520 NTSYSAPI LPDWORD WINAPI
RtlSubAuthoritySid(PSID
,DWORD
);
2521 NTSYSAPI LPBYTE WINAPI
RtlSubAuthorityCountSid(PSID
);
2522 NTSYSAPI NTSTATUS WINAPI
RtlSystemTimeToLocalTime(const LARGE_INTEGER
*,PLARGE_INTEGER
);
2523 NTSYSAPI
void WINAPI
RtlTimeToTimeFields(const LARGE_INTEGER
*,PTIME_FIELDS
);
2524 NTSYSAPI BOOLEAN WINAPI
RtlTimeFieldsToTime(PTIME_FIELDS
,PLARGE_INTEGER
);
2525 NTSYSAPI
void WINAPI
RtlTimeToElapsedTimeFields(const LARGE_INTEGER
*,PTIME_FIELDS
);
2526 NTSYSAPI BOOLEAN WINAPI
RtlTimeToSecondsSince1970(const LARGE_INTEGER
*,LPDWORD
);
2527 NTSYSAPI BOOLEAN WINAPI
RtlTimeToSecondsSince1980(const LARGE_INTEGER
*,LPDWORD
);
2528 NTSYSAPI BOOLEAN WINAPI
RtlTryAcquireSRWLockExclusive(RTL_SRWLOCK
*);
2529 NTSYSAPI BOOLEAN WINAPI
RtlTryAcquireSRWLockShared(RTL_SRWLOCK
*);
2530 NTSYSAPI BOOL WINAPI
RtlTryEnterCriticalSection(RTL_CRITICAL_SECTION
*);
2531 NTSYSAPI ULONGLONG __cdecl
RtlUlonglongByteSwap(ULONGLONG
);
2532 NTSYSAPI DWORD WINAPI
RtlUnicodeStringToAnsiSize(const UNICODE_STRING
*);
2533 NTSYSAPI NTSTATUS WINAPI
RtlUnicodeStringToAnsiString(PANSI_STRING
,PCUNICODE_STRING
,BOOLEAN
);
2534 NTSYSAPI NTSTATUS WINAPI
RtlUnicodeStringToInteger(const UNICODE_STRING
*,ULONG
,ULONG
*);
2535 NTSYSAPI DWORD WINAPI
RtlUnicodeStringToOemSize(const UNICODE_STRING
*);
2536 NTSYSAPI NTSTATUS WINAPI
RtlUnicodeStringToOemString(POEM_STRING
,PCUNICODE_STRING
,BOOLEAN
);
2537 NTSYSAPI NTSTATUS WINAPI
RtlUnicodeToMultiByteN(LPSTR
,DWORD
,LPDWORD
,LPCWSTR
,DWORD
);
2538 NTSYSAPI NTSTATUS WINAPI
RtlUnicodeToMultiByteSize(PULONG
,PCWSTR
,ULONG
);
2539 NTSYSAPI NTSTATUS WINAPI
RtlUnicodeToOemN(LPSTR
,DWORD
,LPDWORD
,LPCWSTR
,DWORD
);
2540 NTSYSAPI ULONG WINAPI
RtlUniform(PULONG
);
2541 NTSYSAPI BOOLEAN WINAPI
RtlUnlockHeap(HANDLE
);
2542 NTSYSAPI
void WINAPI
RtlUnwind(PVOID
,PVOID
,PEXCEPTION_RECORD
,PVOID
);
2544 NTSYSAPI
void WINAPI
RtlUnwindEx(PVOID
,PVOID
,PEXCEPTION_RECORD
,PVOID
,PCONTEXT
,PUNWIND_HISTORY_TABLE
);
2545 #elif defined(__ia64__)
2546 NTSYSAPI
void WINAPI
RtlUnwind2(FRAME_POINTERS
,PVOID
,PEXCEPTION_RECORD
,PVOID
,PCONTEXT
);
2547 NTSYSAPI
void WINAPI
RtlUnwindEx(FRAME_POINTERS
,PVOID
,PEXCEPTION_RECORD
,PVOID
,PCONTEXT
,PUNWIND_HISTORY_TABLE
);
2549 NTSYSAPI WCHAR WINAPI
RtlUpcaseUnicodeChar(WCHAR
);
2550 NTSYSAPI NTSTATUS WINAPI
RtlUpcaseUnicodeString(UNICODE_STRING
*,const UNICODE_STRING
*,BOOLEAN
);
2551 NTSYSAPI NTSTATUS WINAPI
RtlUpcaseUnicodeStringToAnsiString(STRING
*,const UNICODE_STRING
*,BOOLEAN
);
2552 NTSYSAPI NTSTATUS WINAPI
RtlUpcaseUnicodeStringToCountedOemString(STRING
*,const UNICODE_STRING
*,BOOLEAN
);
2553 NTSYSAPI NTSTATUS WINAPI
RtlUpcaseUnicodeStringToOemString(STRING
*,const UNICODE_STRING
*,BOOLEAN
);
2554 NTSYSAPI NTSTATUS WINAPI
RtlUpcaseUnicodeToMultiByteN(LPSTR
,DWORD
,LPDWORD
,LPCWSTR
,DWORD
);
2555 NTSYSAPI NTSTATUS WINAPI
RtlUpcaseUnicodeToOemN(LPSTR
,DWORD
,LPDWORD
,LPCWSTR
,DWORD
);
2556 NTSYSAPI NTSTATUS WINAPI
RtlUpdateTimer(HANDLE
, HANDLE
, DWORD
, DWORD
);
2557 NTSYSAPI CHAR WINAPI
RtlUpperChar(CHAR
);
2558 NTSYSAPI
void WINAPI
RtlUpperString(STRING
*,const STRING
*);
2559 NTSYSAPI NTSTATUS WINAPI
RtlValidSecurityDescriptor(PSECURITY_DESCRIPTOR
);
2560 NTSYSAPI BOOLEAN WINAPI
RtlValidAcl(PACL
);
2561 NTSYSAPI BOOLEAN WINAPI
RtlValidSid(PSID
);
2562 NTSYSAPI BOOLEAN WINAPI
RtlValidateHeap(HANDLE
,ULONG
,LPCVOID
);
2563 NTSYSAPI NTSTATUS WINAPI
RtlVerifyVersionInfo(const RTL_OSVERSIONINFOEXW
*,DWORD
,DWORDLONG
);
2564 NTSYSAPI
void WINAPI
RtlWakeAllConditionVariable(RTL_CONDITION_VARIABLE
*);
2565 NTSYSAPI
void WINAPI
RtlWakeConditionVariable(RTL_CONDITION_VARIABLE
*);
2566 NTSYSAPI NTSTATUS WINAPI
RtlWalkHeap(HANDLE
,PVOID
);
2567 NTSYSAPI NTSTATUS WINAPI
RtlWow64EnableFsRedirection(BOOLEAN
);
2568 NTSYSAPI NTSTATUS WINAPI
RtlWow64EnableFsRedirectionEx(ULONG
,ULONG
*);
2569 NTSYSAPI NTSTATUS WINAPI
RtlWriteRegistryValue(ULONG
,PCWSTR
,PCWSTR
,ULONG
,PVOID
,ULONG
);
2570 NTSYSAPI NTSTATUS WINAPI
RtlZombifyActivationContext(HANDLE
);
2571 NTSYSAPI NTSTATUS WINAPI
RtlpNtCreateKey(PHANDLE
,ACCESS_MASK
,const OBJECT_ATTRIBUTES
*,ULONG
,const UNICODE_STRING
*,ULONG
,PULONG
);
2572 NTSYSAPI NTSTATUS WINAPI
RtlpNtEnumerateSubKey(HANDLE
,UNICODE_STRING
*, ULONG
);
2573 NTSYSAPI NTSTATUS WINAPI
RtlpWaitForCriticalSection(RTL_CRITICAL_SECTION
*);
2574 NTSYSAPI NTSTATUS WINAPI
RtlpUnWaitCriticalSection(RTL_CRITICAL_SECTION
*);
2575 NTSYSAPI NTSTATUS WINAPI
vDbgPrintEx(ULONG
,ULONG
,LPCSTR
,__ms_va_list
);
2576 NTSYSAPI NTSTATUS WINAPI
vDbgPrintExWithPrefix(LPCSTR
,ULONG
,ULONG
,LPCSTR
,__ms_va_list
);
2578 /* 32-bit only functions */
2581 NTSYSAPI LONGLONG WINAPI
RtlConvertLongToLargeInteger(LONG
);
2582 NTSYSAPI ULONGLONG WINAPI
RtlConvertUlongToLargeInteger(ULONG
);
2583 NTSYSAPI LONGLONG WINAPI
RtlEnlargedIntegerMultiply(INT
,INT
);
2584 NTSYSAPI ULONGLONG WINAPI
RtlEnlargedUnsignedMultiply(UINT
,UINT
);
2585 NTSYSAPI UINT WINAPI
RtlEnlargedUnsignedDivide(ULONGLONG
,UINT
,UINT
*);
2586 NTSYSAPI LONGLONG WINAPI
RtlExtendedMagicDivide(LONGLONG
,LONGLONG
,INT
);
2587 NTSYSAPI LONGLONG WINAPI
RtlExtendedIntegerMultiply(LONGLONG
,INT
);
2588 NTSYSAPI LONGLONG WINAPI
RtlExtendedLargeIntegerDivide(LONGLONG
,INT
,INT
*);
2589 NTSYSAPI LONGLONG WINAPI
RtlLargeIntegerAdd(LONGLONG
,LONGLONG
);
2590 NTSYSAPI LONGLONG WINAPI
RtlLargeIntegerArithmeticShift(LONGLONG
,INT
);
2591 NTSYSAPI ULONGLONG WINAPI
RtlLargeIntegerDivide( ULONGLONG
,ULONGLONG
,ULONGLONG
*);
2592 NTSYSAPI LONGLONG WINAPI
RtlLargeIntegerNegate(LONGLONG
);
2593 NTSYSAPI LONGLONG WINAPI
RtlLargeIntegerShiftLeft(LONGLONG
,INT
);
2594 NTSYSAPI LONGLONG WINAPI
RtlLargeIntegerShiftRight(LONGLONG
,INT
);
2595 NTSYSAPI LONGLONG WINAPI
RtlLargeIntegerSubtract(LONGLONG
,LONGLONG
);
2596 NTSYSAPI NTSTATUS WINAPI
RtlLargeIntegerToChar(const ULONGLONG
*,ULONG
,ULONG
,PCHAR
);
2599 /* Wine internal functions */
2601 NTSYSAPI NTSTATUS CDECL
wine_nt_to_unix_file_name( const UNICODE_STRING
*nameW
, ANSI_STRING
*unix_name_ret
,
2602 UINT disposition
, BOOLEAN check_case
);
2603 NTSYSAPI NTSTATUS CDECL
wine_unix_to_nt_file_name( const ANSI_STRING
*name
, UNICODE_STRING
*nt
);
2606 /***********************************************************************
2610 #define InitializeObjectAttributes(p,n,a,r,s) \
2612 (p)->Length = sizeof(OBJECT_ATTRIBUTES); \
2613 (p)->RootDirectory = r; \
2614 (p)->Attributes = a; \
2615 (p)->ObjectName = n; \
2616 (p)->SecurityDescriptor = s; \
2617 (p)->SecurityQualityOfService = NULL; \
2620 #define NtCurrentProcess() ((HANDLE)-1)
2622 #define RtlFillMemory(Destination,Length,Fill) memset((Destination),(Fill),(Length))
2623 #define RtlMoveMemory(Destination,Source,Length) memmove((Destination),(Source),(Length))
2624 #define RtlStoreUlong(p,v) do { ULONG _v = (v); memcpy((p), &_v, sizeof(_v)); } while (0)
2625 #define RtlStoreUlonglong(p,v) do { ULONGLONG _v = (v); memcpy((p), &_v, sizeof(_v)); } while (0)
2626 #define RtlRetrieveUlong(p,s) memcpy((p), (s), sizeof(ULONG))
2627 #define RtlRetrieveUlonglong(p,s) memcpy((p), (s), sizeof(ULONGLONG))
2628 #define RtlZeroMemory(Destination,Length) memset((Destination),0,(Length))
2630 static inline BOOLEAN
RtlCheckBit(PCRTL_BITMAP lpBits
, ULONG ulBit
)
2632 if (lpBits
&& ulBit
< lpBits
->SizeOfBitMap
&&
2633 lpBits
->Buffer
[ulBit
>> 5] & (1 << (ulBit
& 31)))
2638 /* These are implemented as __fastcall, so we can't let Winelib apps link with them */
2639 static inline USHORT
RtlUshortByteSwap(USHORT s
)
2641 return (s
>> 8) | (s
<< 8);
2643 static inline ULONG
RtlUlongByteSwap(ULONG i
)
2645 #if defined(__i386__) && defined(__GNUC__)
2647 __asm__("bswap %0" : "=r" (ret
) : "0" (i
) );
2650 return ((ULONG
)RtlUshortByteSwap((USHORT
)i
) << 16) | RtlUshortByteSwap((USHORT
)(i
>> 16));
2654 /* list manipulation macros */
2655 #define InitializeListHead(le) (void)((le)->Flink = (le)->Blink = (le))
2656 #define InsertHeadList(le,e) do { PLIST_ENTRY f = (le)->Flink; (e)->Flink = f; (e)->Blink = (le); f->Blink = (e); (le)->Flink = (e); } while (0)
2657 #define InsertTailList(le,e) do { PLIST_ENTRY b = (le)->Blink; (e)->Flink = (le); (e)->Blink = b; b->Flink = (e); (le)->Blink = (e); } while (0)
2658 #define IsListEmpty(le) ((le)->Flink == (le))
2659 #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)
2660 static inline PLIST_ENTRY
RemoveHeadList(PLIST_ENTRY le
)
2662 PLIST_ENTRY f
, b
, e
;
2665 f
= le
->Flink
->Flink
;
2666 b
= le
->Flink
->Blink
;
2670 if (e
!= le
) e
->Flink
= e
->Blink
= NULL
;
2673 static inline PLIST_ENTRY
RemoveTailList(PLIST_ENTRY le
)
2675 PLIST_ENTRY f
, b
, e
;
2678 f
= le
->Blink
->Flink
;
2679 b
= le
->Blink
->Blink
;
2683 if (e
!= le
) e
->Flink
= e
->Blink
= NULL
;
2690 /* FIXME: private structure for vm86 mode, stored in teb->GdiTebBatch */
2695 } WINE_VM86_TEB_INFO
;
2697 static inline WINE_VM86_TEB_INFO
*get_vm86_teb_info(void)
2699 return (WINE_VM86_TEB_INFO
*)&NtCurrentTeb()->GdiTebBatch
;
2702 /* The thread information for 16-bit threads */
2703 /* NtCurrentTeb()->SubSystemTib points to this */
2706 void *unknown
; /* 00 unknown */
2707 UNICODE_STRING
*exe_name
; /* 04 exe module name */
2709 /* the following fields do not exist under Windows */
2710 UNICODE_STRING exe_str
; /* exe name string pointed to by exe_name */
2711 CURDIR curdir
; /* current directory */
2712 WCHAR curdir_buffer
[MAX_PATH
];
2713 } WIN16_SUBSYSTEM_TIB
;
2715 #endif /* __WINESRC__ */
2719 #endif /* defined(__cplusplus) */
2721 #endif /* __WINE_WINTERNL_H */