2002-09-10 00:33:34 +00:00
|
|
|
/*
|
|
|
|
* Internal NT APIs and data structures
|
|
|
|
*
|
|
|
|
* Copyright (C) the Wine project
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
2004-09-01 01:29:18 +00:00
|
|
|
#ifndef __WINE_WINTERNL_H
|
|
|
|
#define __WINE_WINTERNL_H
|
2002-09-10 00:33:34 +00:00
|
|
|
|
2003-08-28 21:43:34 +00:00
|
|
|
#include <windef.h>
|
2002-09-10 00:33:34 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* defined(__cplusplus) */
|
|
|
|
|
|
|
|
|
|
|
|
/**********************************************************************
|
2002-09-12 22:07:02 +00:00
|
|
|
* Fundamental types and data structures
|
2002-09-10 00:33:34 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
typedef LONG NTSTATUS;
|
|
|
|
|
|
|
|
typedef CONST char *PCSZ;
|
|
|
|
|
2002-09-12 22:07:02 +00:00
|
|
|
typedef short CSHORT;
|
|
|
|
typedef CSHORT *PCSHORT;
|
|
|
|
|
2002-09-10 00:33:34 +00:00
|
|
|
typedef struct _STRING {
|
|
|
|
USHORT Length;
|
|
|
|
USHORT MaximumLength;
|
|
|
|
PCHAR Buffer;
|
|
|
|
} STRING, *PSTRING;
|
|
|
|
|
|
|
|
typedef STRING ANSI_STRING;
|
|
|
|
typedef PSTRING PANSI_STRING;
|
2002-09-12 22:07:02 +00:00
|
|
|
typedef const STRING *PCANSI_STRING;
|
2002-09-10 00:33:34 +00:00
|
|
|
|
|
|
|
typedef STRING OEM_STRING;
|
|
|
|
typedef PSTRING POEM_STRING;
|
|
|
|
typedef const STRING *PCOEM_STRING;
|
|
|
|
|
|
|
|
typedef struct _UNICODE_STRING {
|
2002-09-12 22:07:02 +00:00
|
|
|
USHORT Length; /* bytes */
|
|
|
|
USHORT MaximumLength; /* bytes */
|
2002-09-10 00:33:34 +00:00
|
|
|
PWSTR Buffer;
|
|
|
|
} UNICODE_STRING, *PUNICODE_STRING;
|
|
|
|
|
|
|
|
typedef const UNICODE_STRING *PCUNICODE_STRING;
|
|
|
|
|
2003-04-04 22:26:34 +00:00
|
|
|
typedef struct _CLIENT_ID
|
|
|
|
{
|
|
|
|
HANDLE UniqueProcess;
|
|
|
|
HANDLE UniqueThread;
|
|
|
|
} CLIENT_ID, *PCLIENT_ID;
|
|
|
|
|
2003-05-15 04:20:42 +00:00
|
|
|
typedef struct _CURDIR
|
|
|
|
{
|
|
|
|
UNICODE_STRING DosPath;
|
|
|
|
PVOID Handle;
|
|
|
|
} CURDIR, *PCURDIR;
|
|
|
|
|
2003-05-22 03:44:01 +00:00
|
|
|
typedef struct RTL_DRIVE_LETTER_CURDIR
|
|
|
|
{
|
|
|
|
USHORT Flags;
|
|
|
|
USHORT Length;
|
|
|
|
ULONG TimeStamp;
|
|
|
|
UNICODE_STRING DosPath;
|
|
|
|
} RTL_DRIVE_LETTER_CURDIR, *PRTL_DRIVE_LETTER_CURDIR;
|
|
|
|
|
2003-10-09 19:58:56 +00:00
|
|
|
typedef struct tagRTL_BITMAP {
|
|
|
|
ULONG SizeOfBitMap; /* Number of bits in the bitmap */
|
2004-08-23 18:52:54 +00:00
|
|
|
PULONG Buffer; /* Bitmap data, assumed sized to a DWORD boundary */
|
2003-10-09 19:58:56 +00:00
|
|
|
} RTL_BITMAP, *PRTL_BITMAP;
|
|
|
|
|
|
|
|
typedef const RTL_BITMAP *PCRTL_BITMAP;
|
|
|
|
|
|
|
|
typedef struct tagRTL_BITMAP_RUN {
|
2004-08-23 18:52:54 +00:00
|
|
|
ULONG StartingIndex; /* Bit position at which run starts */
|
|
|
|
ULONG NumberOfBits; /* Size of the run in bits */
|
2003-10-09 19:58:56 +00:00
|
|
|
} RTL_BITMAP_RUN, *PRTL_BITMAP_RUN;
|
|
|
|
|
|
|
|
typedef const RTL_BITMAP_RUN *PCRTL_BITMAP_RUN;
|
|
|
|
|
2003-05-22 03:44:01 +00:00
|
|
|
typedef struct _RTL_USER_PROCESS_PARAMETERS
|
|
|
|
{
|
|
|
|
ULONG AllocationSize;
|
|
|
|
ULONG Size;
|
|
|
|
ULONG Flags;
|
|
|
|
ULONG DebugFlags;
|
2004-09-08 01:25:05 +00:00
|
|
|
HANDLE ConsoleHandle;
|
|
|
|
ULONG ConsoleFlags;
|
2003-05-22 03:44:01 +00:00
|
|
|
HANDLE hStdInput;
|
|
|
|
HANDLE hStdOutput;
|
|
|
|
HANDLE hStdError;
|
2004-04-16 05:00:46 +00:00
|
|
|
CURDIR CurrentDirectory;
|
2003-05-22 03:44:01 +00:00
|
|
|
UNICODE_STRING DllPath;
|
|
|
|
UNICODE_STRING ImagePathName;
|
|
|
|
UNICODE_STRING CommandLine;
|
|
|
|
PWSTR Environment;
|
|
|
|
ULONG dwX;
|
|
|
|
ULONG dwY;
|
|
|
|
ULONG dwXSize;
|
|
|
|
ULONG dwYSize;
|
|
|
|
ULONG dwXCountChars;
|
|
|
|
ULONG dwYCountChars;
|
|
|
|
ULONG dwFillAttribute;
|
|
|
|
ULONG dwFlags;
|
|
|
|
ULONG wShowWindow;
|
|
|
|
UNICODE_STRING WindowTitle;
|
2003-06-18 03:23:22 +00:00
|
|
|
UNICODE_STRING Desktop;
|
2003-05-22 03:44:01 +00:00
|
|
|
UNICODE_STRING ShellInfo;
|
|
|
|
UNICODE_STRING RuntimeInfo;
|
|
|
|
RTL_DRIVE_LETTER_CURDIR DLCurrentDirectory[0x20];
|
|
|
|
} RTL_USER_PROCESS_PARAMETERS, *PRTL_USER_PROCESS_PARAMETERS;
|
|
|
|
|
2003-10-04 03:11:57 +00:00
|
|
|
/* value for Flags field (FIXME: not the correct name) */
|
|
|
|
#define PROCESS_PARAMS_FLAG_NORMALIZED 1
|
2003-05-22 03:44:01 +00:00
|
|
|
|
2003-07-01 03:38:56 +00:00
|
|
|
typedef struct _PEB_LDR_DATA
|
|
|
|
{
|
|
|
|
ULONG Length;
|
|
|
|
BOOLEAN Initialized;
|
|
|
|
PVOID SsHandle;
|
|
|
|
LIST_ENTRY InLoadOrderModuleList;
|
|
|
|
LIST_ENTRY InMemoryOrderModuleList;
|
|
|
|
LIST_ENTRY InInitializationOrderModuleList;
|
|
|
|
} PEB_LDR_DATA, *PPEB_LDR_DATA;
|
|
|
|
|
2003-05-22 03:44:01 +00:00
|
|
|
/***********************************************************************
|
|
|
|
* PEB data structure
|
|
|
|
*/
|
|
|
|
typedef struct _PEB
|
|
|
|
{
|
2004-09-10 21:13:55 +00:00
|
|
|
BOOLEAN InheritedAddressSpace; /* 00 */
|
|
|
|
BOOLEAN ReadImageFileExecOptions; /* 01 */
|
|
|
|
BOOLEAN BeingDebugged; /* 02 */
|
|
|
|
BOOLEAN SpareBool; /* 03 */
|
|
|
|
HANDLE Mutant; /* 04 */
|
|
|
|
HMODULE ImageBaseAddress; /* 08 */
|
|
|
|
PPEB_LDR_DATA LdrData; /* 0c */
|
|
|
|
RTL_USER_PROCESS_PARAMETERS *ProcessParameters; /* 10 */
|
|
|
|
PVOID SubSystemData; /* 14 */
|
|
|
|
HANDLE ProcessHeap; /* 18 */
|
|
|
|
PRTL_CRITICAL_SECTION FastPebLock; /* 1c */
|
|
|
|
PVOID /*PPEBLOCKROUTINE*/ FastPebLockRoutine; /* 20 */
|
|
|
|
PVOID /*PPEBLOCKROUTINE*/ FastPebUnlockRoutine; /* 24 */
|
|
|
|
ULONG EnvironmentUpdateCount; /* 28 */
|
|
|
|
PVOID KernelCallbackTable; /* 2c */
|
|
|
|
PVOID EventLogSection; /* 30 */
|
|
|
|
PVOID EventLog; /* 34 */
|
|
|
|
PVOID /*PPEB_FREE_BLOCK*/ FreeList; /* 38 */
|
|
|
|
ULONG TlsExpansionCounter; /* 3c */
|
|
|
|
PRTL_BITMAP TlsBitmap; /* 40 */
|
|
|
|
ULONG TlsBitmapBits[2]; /* 44 */
|
|
|
|
PVOID ReadOnlySharedMemoryBase; /* 4c */
|
|
|
|
PVOID ReadOnlySharedMemoryHeap; /* 50 */
|
|
|
|
PVOID *ReadOnlyStaticServerData; /* 54 */
|
|
|
|
PVOID AnsiCodePageData; /* 58 */
|
|
|
|
PVOID OemCodePageData; /* 5c */
|
|
|
|
PVOID UnicodeCaseTableData; /* 60 */
|
|
|
|
ULONG NumberOfProcessors; /* 64 */
|
|
|
|
ULONG NtGlobalFlag; /* 68 */
|
|
|
|
BYTE Spare2[4]; /* 6c */
|
|
|
|
LARGE_INTEGER CriticalSectionTimeout; /* 70 */
|
|
|
|
ULONG HeapSegmentReserve; /* 78 */
|
|
|
|
ULONG HeapSegmentCommit; /* 7c */
|
|
|
|
ULONG HeapDeCommitTotalFreeThreshold; /* 80 */
|
|
|
|
ULONG HeapDeCommitFreeBlockThreshold; /* 84 */
|
|
|
|
ULONG NumberOfHeaps; /* 88 */
|
|
|
|
ULONG MaximumNumberOfHeaps; /* 8c */
|
|
|
|
PVOID *ProcessHeaps; /* 90 */
|
|
|
|
PVOID GdiSharedHandleTable; /* 94 */
|
|
|
|
PVOID ProcessStarterHelper; /* 98 */
|
|
|
|
PVOID GdiDCAttributeList; /* 9c */
|
|
|
|
PVOID LoaderLock; /* a0 */
|
|
|
|
ULONG OSMajorVersion; /* a4 */
|
|
|
|
ULONG OSMinorVersion; /* a8 */
|
|
|
|
ULONG OSBuildNumber; /* ac */
|
|
|
|
ULONG OSPlatformId; /* b0 */
|
|
|
|
ULONG ImageSubSystem; /* b4 */
|
|
|
|
ULONG ImageSubSystemMajorVersion; /* b8 */
|
|
|
|
ULONG ImageSubSystemMinorVersion; /* bc */
|
|
|
|
ULONG ImageProcessAffinityMask; /* c0 */
|
|
|
|
ULONG GdiHandleBuffer[34]; /* c4 */
|
|
|
|
ULONG PostProcessInitRoutine; /* 14c */
|
2005-03-19 17:14:12 +00:00
|
|
|
PRTL_BITMAP TlsExpansionBitmap; /* 150 */
|
2004-09-10 21:13:55 +00:00
|
|
|
ULONG TlsExpansionBitmapBits[32]; /* 154 */
|
|
|
|
ULONG SessionId; /* 1d4 */
|
2003-05-22 03:44:01 +00:00
|
|
|
} PEB, *PPEB;
|
|
|
|
|
|
|
|
|
2003-08-28 19:57:35 +00:00
|
|
|
/***********************************************************************
|
|
|
|
* TEB data structure
|
|
|
|
*/
|
|
|
|
#if defined(_NTSYSTEM_) || defined(_KERNEL32_) /* hack, should go away */
|
|
|
|
# define WINE_NO_TEB
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef WINE_NO_TEB /* don't define TEB if included from thread.h */
|
|
|
|
# ifndef WINE_TEB_DEFINED
|
|
|
|
# define WINE_TEB_DEFINED
|
|
|
|
typedef struct _TEB
|
|
|
|
{
|
|
|
|
NT_TIB Tib; /* 000 */
|
|
|
|
PVOID EnvironmentPointer; /* 01c */
|
|
|
|
CLIENT_ID ClientId; /* 020 */
|
|
|
|
PVOID ActiveRpcHandle; /* 028 */
|
|
|
|
PVOID ThreadLocalStoragePointer; /* 02c */
|
|
|
|
PPEB Peb; /* 030 */
|
|
|
|
ULONG LastErrorValue; /* 034 */
|
|
|
|
BYTE __pad038[140]; /* 038 */
|
|
|
|
ULONG CurrentLocale; /* 0c4 */
|
|
|
|
BYTE __pad0c8[1752]; /* 0c8 */
|
2005-01-04 12:09:32 +00:00
|
|
|
PVOID Reserved2[277]; /* 7a0 */
|
|
|
|
ULONG LastStatusValue; /* bf4 */
|
2003-08-28 19:57:35 +00:00
|
|
|
UNICODE_STRING StaticUnicodeString; /* bf8 used by advapi32 */
|
|
|
|
WCHAR StaticUnicodeBuffer[261]; /* c00 used by advapi32 */
|
|
|
|
PVOID DeallocationStack; /* e0c */
|
|
|
|
PVOID TlsSlots[64]; /* e10 */
|
2003-09-08 19:02:01 +00:00
|
|
|
LIST_ENTRY TlsLinks; /* f10 */
|
2003-08-28 19:57:35 +00:00
|
|
|
PVOID Reserved4[26]; /* f18 */
|
|
|
|
PVOID ReservedForOle; /* f80 Windows 2000 only */
|
|
|
|
PVOID Reserved5[4]; /* f84 */
|
2005-03-19 17:14:12 +00:00
|
|
|
PVOID *TlsExpansionSlots; /* f94 */
|
2003-08-28 19:57:35 +00:00
|
|
|
} TEB, *PTEB;
|
|
|
|
# endif /* WINE_TEB_DEFINED */
|
|
|
|
#endif /* WINE_NO_TEB */
|
|
|
|
|
2002-09-12 22:07:02 +00:00
|
|
|
/***********************************************************************
|
|
|
|
* Enums
|
|
|
|
*/
|
2002-09-10 00:33:34 +00:00
|
|
|
|
2002-09-12 22:07:02 +00:00
|
|
|
typedef enum _FILE_INFORMATION_CLASS {
|
|
|
|
FileDirectoryInformation = 1,
|
|
|
|
FileFullDirectoryInformation,
|
|
|
|
FileBothDirectoryInformation,
|
|
|
|
FileBasicInformation,
|
|
|
|
FileStandardInformation,
|
|
|
|
FileInternalInformation,
|
|
|
|
FileEaInformation,
|
|
|
|
FileAccessInformation,
|
|
|
|
FileNameInformation,
|
|
|
|
FileRenameInformation,
|
|
|
|
FileLinkInformation,
|
|
|
|
FileNamesInformation,
|
|
|
|
FileDispositionInformation,
|
|
|
|
FilePositionInformation,
|
|
|
|
FileFullEaInformation,
|
|
|
|
FileModeInformation,
|
|
|
|
FileAlignmentInformation,
|
|
|
|
FileAllInformation,
|
|
|
|
FileAllocationInformation,
|
|
|
|
FileEndOfFileInformation,
|
|
|
|
FileAlternateNameInformation,
|
|
|
|
FileStreamInformation,
|
|
|
|
FilePipeInformation,
|
|
|
|
FilePipeLocalInformation,
|
|
|
|
FilePipeRemoteInformation,
|
|
|
|
FileMailslotQueryInformation,
|
|
|
|
FileMailslotSetInformation,
|
|
|
|
FileCompressionInformation,
|
|
|
|
FileObjectIdInformation,
|
|
|
|
FileCompletionInformation,
|
|
|
|
FileMoveClusterInformation,
|
|
|
|
FileQuotaInformation,
|
|
|
|
FileReparsePointInformation,
|
|
|
|
FileNetworkOpenInformation,
|
|
|
|
FileAttributeTagInformation,
|
|
|
|
FileTrackingInformation,
|
|
|
|
FileMaximumInformation
|
|
|
|
} FILE_INFORMATION_CLASS, *PFILE_INFORMATION_CLASS;
|
2002-09-10 00:33:34 +00:00
|
|
|
|
2004-03-16 01:32:02 +00:00
|
|
|
typedef struct _FILE_DIRECTORY_INFORMATION {
|
|
|
|
ULONG NextEntryOffset;
|
|
|
|
ULONG FileIndex;
|
|
|
|
LARGE_INTEGER CreationTime;
|
|
|
|
LARGE_INTEGER LastAccessTime;
|
|
|
|
LARGE_INTEGER LastWriteTime;
|
|
|
|
LARGE_INTEGER ChangeTime;
|
|
|
|
LARGE_INTEGER EndOfFile;
|
|
|
|
LARGE_INTEGER AllocationSize;
|
|
|
|
ULONG FileAttributes;
|
|
|
|
ULONG FileNameLength;
|
|
|
|
WCHAR FileName[ANYSIZE_ARRAY];
|
|
|
|
} FILE_DIRECTORY_INFORMATION, *PFILE_DIRECTORY_INFORMATION;
|
|
|
|
|
|
|
|
typedef struct _FILE_FULL_DIRECTORY_INFORMATION {
|
|
|
|
ULONG NextEntryOffset;
|
|
|
|
ULONG FileIndex;
|
|
|
|
LARGE_INTEGER CreationTime;
|
|
|
|
LARGE_INTEGER LastAccessTime;
|
|
|
|
LARGE_INTEGER LastWriteTime;
|
|
|
|
LARGE_INTEGER ChangeTime;
|
|
|
|
LARGE_INTEGER EndOfFile;
|
|
|
|
LARGE_INTEGER AllocationSize;
|
|
|
|
ULONG FileAttributes;
|
|
|
|
ULONG FileNameLength;
|
|
|
|
ULONG EaSize;
|
|
|
|
WCHAR FileName[ANYSIZE_ARRAY];
|
|
|
|
} FILE_FULL_DIRECTORY_INFORMATION, *PFILE_FULL_DIRECTORY_INFORMATION,
|
|
|
|
FILE_FULL_DIR_INFORMATION, *PFILE_FULL_DIR_INFORMATION;
|
|
|
|
|
|
|
|
typedef struct _FILE_BOTH_DIRECTORY_INFORMATION {
|
|
|
|
ULONG NextEntryOffset;
|
|
|
|
ULONG FileIndex;
|
|
|
|
LARGE_INTEGER CreationTime;
|
|
|
|
LARGE_INTEGER LastAccessTime;
|
|
|
|
LARGE_INTEGER LastWriteTime;
|
|
|
|
LARGE_INTEGER ChangeTime;
|
|
|
|
LARGE_INTEGER EndOfFile;
|
|
|
|
LARGE_INTEGER AllocationSize;
|
|
|
|
ULONG FileAttributes;
|
|
|
|
ULONG FileNameLength;
|
|
|
|
ULONG EaSize;
|
|
|
|
CHAR ShortNameLength;
|
|
|
|
WCHAR ShortName[12];
|
|
|
|
WCHAR FileName[ANYSIZE_ARRAY];
|
|
|
|
} FILE_BOTH_DIRECTORY_INFORMATION, *PFILE_BOTH_DIRECTORY_INFORMATION,
|
|
|
|
FILE_BOTH_DIR_INFORMATION, *PFILE_BOTH_DIR_INFORMATION;
|
|
|
|
|
2002-11-18 19:44:17 +00:00
|
|
|
typedef struct _FILE_BASIC_INFORMATION {
|
|
|
|
LARGE_INTEGER CreationTime;
|
|
|
|
LARGE_INTEGER LastAccessTime;
|
|
|
|
LARGE_INTEGER LastWriteTime;
|
|
|
|
LARGE_INTEGER ChangeTime;
|
|
|
|
ULONG FileAttributes;
|
|
|
|
} FILE_BASIC_INFORMATION, *PFILE_BASIC_INFORMATION;
|
|
|
|
|
|
|
|
typedef struct _FILE_STANDARD_INFORMATION {
|
|
|
|
LARGE_INTEGER AllocationSize;
|
|
|
|
LARGE_INTEGER EndOfFile;
|
|
|
|
ULONG NumberOfLinks;
|
|
|
|
BOOLEAN DeletePending;
|
|
|
|
BOOLEAN Directory;
|
|
|
|
} FILE_STANDARD_INFORMATION, *PFILE_STANDARD_INFORMATION;
|
|
|
|
|
2004-04-30 21:03:09 +00:00
|
|
|
typedef struct _FILE_INTERNAL_INFORMATION {
|
|
|
|
LARGE_INTEGER IndexNumber;
|
|
|
|
} FILE_INTERNAL_INFORMATION, *PFILE_INTERNAL_INFORMATION;
|
|
|
|
|
|
|
|
typedef struct _FILE_EA_INFORMATION {
|
|
|
|
ULONG EaSize;
|
|
|
|
} FILE_EA_INFORMATION, *PFILE_EA_INFORMATION;
|
|
|
|
|
|
|
|
typedef struct _FILE_ACCESS_INFORMATION {
|
|
|
|
ACCESS_MASK AccessFlags;
|
|
|
|
} FILE_ACCESS_INFORMATION, *PFILE_ACCESS_INFORMATION;
|
|
|
|
|
|
|
|
typedef struct _FILE_NAME_INFORMATION {
|
|
|
|
ULONG FileNameLength;
|
|
|
|
WCHAR FileName[1];
|
|
|
|
} FILE_NAME_INFORMATION, *PFILE_NAME_INFORMATION;
|
|
|
|
|
|
|
|
typedef struct _FILE_RENAME_INFORMATION {
|
|
|
|
BOOLEAN Replace;
|
|
|
|
HANDLE RootDir;
|
|
|
|
ULONG FileNameLength;
|
|
|
|
WCHAR FileName[1];
|
|
|
|
} FILE_RENAME_INFORMATION, *PFILE_RENAME_INFORMATION;
|
|
|
|
|
|
|
|
typedef struct _FILE_NAMES_INFORMATION {
|
|
|
|
ULONG NextEntryOffset;
|
|
|
|
ULONG FileIndex;
|
|
|
|
ULONG FileNameLength;
|
|
|
|
WCHAR FileName[1];
|
|
|
|
} FILE_NAMES_INFORMATION, *PFILE_NAMES_INFORMATION;
|
|
|
|
|
|
|
|
typedef struct _FILE_DISPOSITION_INFORMATION {
|
|
|
|
BOOLEAN DoDeleteFile;
|
|
|
|
} FILE_DISPOSITION_INFORMATION, *PFILE_DISPOSITION_INFORMATION;
|
|
|
|
|
2002-11-18 19:44:17 +00:00
|
|
|
typedef struct _FILE_POSITION_INFORMATION {
|
|
|
|
LARGE_INTEGER CurrentByteOffset;
|
|
|
|
} FILE_POSITION_INFORMATION, *PFILE_POSITION_INFORMATION;
|
|
|
|
|
|
|
|
typedef struct _FILE_ALIGNMENT_INFORMATION {
|
|
|
|
ULONG AlignmentRequirement;
|
|
|
|
} FILE_ALIGNMENT_INFORMATION, *PFILE_ALIGNMENT_INFORMATION;
|
|
|
|
|
2004-04-30 21:03:09 +00:00
|
|
|
typedef struct _FILE_ALLOCATION_INFORMATION {
|
|
|
|
LARGE_INTEGER AllocationSize;
|
|
|
|
} FILE_ALLOCATION_INFORMATION, *PFILE_ALLOCATION_INFORMATION;
|
|
|
|
|
|
|
|
typedef struct _FILE_END_OF_FILE_INFORMATION {
|
|
|
|
LARGE_INTEGER EndOfFile;
|
|
|
|
} FILE_END_OF_FILE_INFORMATION, *PFILE_END_OF_FILE_INFORMATION;
|
|
|
|
|
2002-11-18 19:44:17 +00:00
|
|
|
typedef struct _FILE_NETWORK_OPEN_INFORMATION {
|
|
|
|
LARGE_INTEGER CreationTime;
|
|
|
|
LARGE_INTEGER LastAccessTime;
|
|
|
|
LARGE_INTEGER LastWriteTime;
|
|
|
|
LARGE_INTEGER ChangeTime;
|
|
|
|
LARGE_INTEGER AllocationSize;
|
|
|
|
LARGE_INTEGER EndOfFile;
|
|
|
|
ULONG FileAttributes;
|
|
|
|
} FILE_NETWORK_OPEN_INFORMATION, *PFILE_NETWORK_OPEN_INFORMATION;
|
|
|
|
|
|
|
|
typedef struct _FILE_FULL_EA_INFORMATION {
|
|
|
|
ULONG NextEntryOffset;
|
|
|
|
UCHAR Flags;
|
|
|
|
UCHAR EaNameLength;
|
|
|
|
USHORT EaValueLength;
|
|
|
|
CHAR EaName[1];
|
|
|
|
} FILE_FULL_EA_INFORMATION, *PFILE_FULL_EA_INFORMATION;
|
|
|
|
|
2004-04-30 21:03:09 +00:00
|
|
|
typedef struct _FILE_MODE_INFORMATION {
|
|
|
|
ULONG Mode;
|
|
|
|
} FILE_MODE_INFORMATION, *PFILE_MODE_INFORMATION;
|
|
|
|
|
2002-11-18 19:44:17 +00:00
|
|
|
typedef struct _FILE_STREAM_INFORMATION
|
|
|
|
{
|
|
|
|
ULONG NextEntryOffset;
|
|
|
|
ULONG StreamNameLength;
|
|
|
|
LARGE_INTEGER StreamSize;
|
|
|
|
LARGE_INTEGER StreamAllocationSize;
|
|
|
|
WCHAR StreamName[1];
|
|
|
|
} FILE_STREAM_INFORMATION, *PFILE_STREAM_INFORMATION;
|
|
|
|
|
2004-05-10 19:58:15 +00:00
|
|
|
typedef struct _FILE_ATTRIBUTE_TAG_INFORMATION
|
2002-11-18 19:44:17 +00:00
|
|
|
{
|
|
|
|
ULONG FileAttributes;
|
|
|
|
ULONG ReparseTag;
|
|
|
|
} FILE_ATTRIBUTE_TAG_INFORMATION, *PFILE_ATTRIBUTE_TAG_INFORMATION;
|
|
|
|
|
2005-04-11 14:20:49 +00:00
|
|
|
typedef struct _FILE_MAILSLOT_QUERY_INFORMATION {
|
|
|
|
ULONG MaximumMessageSize;
|
|
|
|
ULONG MailslotQuota;
|
|
|
|
ULONG NextMessageSize;
|
|
|
|
ULONG MessagesAvailable;
|
|
|
|
LARGE_INTEGER ReadTimeout;
|
|
|
|
} FILE_MAILSLOT_QUERY_INFORMATION, *PFILE_MAILSLOT_QUERY_INFORMATION;
|
|
|
|
|
|
|
|
typedef struct _FILE_MAILSLOT_SET_INFORMATION {
|
|
|
|
LARGE_INTEGER ReadTimeout;
|
|
|
|
} FILE_MAILSLOT_SET_INFORMATION, *PFILE_MAILSLOT_SET_INFORMATION;
|
|
|
|
|
2004-04-30 21:03:09 +00:00
|
|
|
typedef struct _FILE_ALL_INFORMATION
|
|
|
|
{
|
|
|
|
FILE_BASIC_INFORMATION BasicInformation;
|
|
|
|
FILE_STANDARD_INFORMATION StandardInformation;
|
|
|
|
FILE_INTERNAL_INFORMATION InternalInformation;
|
|
|
|
FILE_EA_INFORMATION EaInformation;
|
|
|
|
FILE_ACCESS_INFORMATION AccessInformation;
|
|
|
|
FILE_POSITION_INFORMATION PositionInformation;
|
|
|
|
FILE_MODE_INFORMATION ModeInformation;
|
|
|
|
FILE_ALIGNMENT_INFORMATION AlignmentInformation;
|
|
|
|
FILE_NAME_INFORMATION NameInformation;
|
|
|
|
} FILE_ALL_INFORMATION, *PFILE_ALL_INFORMATION;
|
|
|
|
|
2002-09-12 22:07:02 +00:00
|
|
|
typedef enum _FSINFOCLASS {
|
|
|
|
FileFsVolumeInformation = 1,
|
|
|
|
FileFsLabelInformation,
|
|
|
|
FileFsSizeInformation,
|
|
|
|
FileFsDeviceInformation,
|
|
|
|
FileFsAttributeInformation,
|
|
|
|
FileFsControlInformation,
|
|
|
|
FileFsFullSizeInformation,
|
|
|
|
FileFsObjectIdInformation,
|
|
|
|
FileFsMaximumInformation
|
|
|
|
} FS_INFORMATION_CLASS, *PFS_INFORMATION_CLASS;
|
2002-09-10 00:33:34 +00:00
|
|
|
|
2002-09-12 22:07:02 +00:00
|
|
|
typedef enum _KEY_INFORMATION_CLASS {
|
|
|
|
KeyBasicInformation,
|
|
|
|
KeyNodeInformation,
|
|
|
|
KeyFullInformation
|
|
|
|
} KEY_INFORMATION_CLASS;
|
|
|
|
|
|
|
|
typedef enum _KEY_VALUE_INFORMATION_CLASS {
|
|
|
|
KeyValueBasicInformation,
|
|
|
|
KeyValueFullInformation,
|
|
|
|
KeyValuePartialInformation,
|
|
|
|
KeyValueFullInformationAlign64,
|
|
|
|
KeyValuePartialInformationAlign64
|
|
|
|
} KEY_VALUE_INFORMATION_CLASS;
|
|
|
|
|
|
|
|
typedef enum _OBJECT_INFORMATION_CLASS {
|
2003-05-20 19:20:42 +00:00
|
|
|
ObjectBasicInformation,
|
|
|
|
ObjectNameInformation,
|
|
|
|
ObjectTypeInformation,
|
|
|
|
ObjectAllInformation,
|
|
|
|
ObjectDataInformation
|
2002-09-12 22:07:02 +00:00
|
|
|
} OBJECT_INFORMATION_CLASS, *POBJECT_INFORMATION_CLASS;
|
|
|
|
|
|
|
|
typedef enum _PROCESSINFOCLASS {
|
|
|
|
ProcessBasicInformation = 0,
|
|
|
|
ProcessQuotaLimits = 1,
|
|
|
|
ProcessIoCounters = 2,
|
|
|
|
ProcessVmCounters = 3,
|
|
|
|
ProcessTimes = 4,
|
|
|
|
ProcessBasePriority = 5,
|
|
|
|
ProcessRaisePriority = 6,
|
|
|
|
ProcessDebugPort = 7,
|
|
|
|
ProcessExceptionPort = 8,
|
|
|
|
ProcessAccessToken = 9,
|
|
|
|
ProcessLdtInformation = 10,
|
|
|
|
ProcessLdtSize = 11,
|
|
|
|
ProcessDefaultHardErrorMode = 12,
|
|
|
|
ProcessIoPortHandlers = 13,
|
|
|
|
ProcessPooledUsageAndLimits = 14,
|
|
|
|
ProcessWorkingSetWatch = 15,
|
|
|
|
ProcessUserModeIOPL = 16,
|
|
|
|
ProcessEnableAlignmentFaultFixup = 17,
|
|
|
|
ProcessPriorityClass = 18,
|
|
|
|
ProcessWx86Information = 19,
|
|
|
|
ProcessHandleCount = 20,
|
|
|
|
ProcessAffinityMask = 21,
|
|
|
|
ProcessPriorityBoost = 22,
|
|
|
|
ProcessDeviceMap = 23,
|
|
|
|
ProcessSessionInformation = 24,
|
|
|
|
ProcessForegroundInformation = 25,
|
|
|
|
ProcessWow64Information = 26,
|
|
|
|
MaxProcessInfoClass
|
|
|
|
} PROCESSINFOCLASS;
|
|
|
|
|
|
|
|
typedef enum _SECTION_INHERIT {
|
|
|
|
ViewShare = 1,
|
|
|
|
ViewUnmap = 2
|
|
|
|
} SECTION_INHERIT;
|
|
|
|
|
2004-08-31 17:32:29 +00:00
|
|
|
typedef enum _SYSTEM_INFORMATION_CLASS {
|
2002-09-12 22:07:02 +00:00
|
|
|
SystemBasicInformation = 0,
|
2005-01-28 12:34:20 +00:00
|
|
|
SystemCpuInformation = 1,
|
2002-09-12 22:07:02 +00:00
|
|
|
SystemPerformanceInformation = 2,
|
|
|
|
SystemTimeOfDayInformation = 3, /* was SystemTimeInformation */
|
|
|
|
Unknown4,
|
|
|
|
SystemProcessInformation = 5,
|
|
|
|
Unknown6,
|
|
|
|
Unknown7,
|
|
|
|
SystemProcessorPerformanceInformation = 8,
|
|
|
|
Unknown9,
|
|
|
|
Unknown10,
|
|
|
|
SystemDriverInformation,
|
|
|
|
Unknown12,
|
|
|
|
Unknown13,
|
|
|
|
Unknown14,
|
|
|
|
Unknown15,
|
|
|
|
SystemHandleList,
|
|
|
|
Unknown17,
|
|
|
|
Unknown18,
|
|
|
|
Unknown19,
|
|
|
|
Unknown20,
|
|
|
|
SystemCacheInformation,
|
|
|
|
Unknown22,
|
|
|
|
SystemInterruptInformation = 23,
|
2004-04-21 22:21:35 +00:00
|
|
|
SystemDpcBehaviourInformation = 24,
|
|
|
|
SystemFullMemoryInformation = 25,
|
|
|
|
SystemNotImplemented6 = 25,
|
|
|
|
SystemLoadImage = 26,
|
|
|
|
SystemUnloadImage = 27,
|
|
|
|
SystemTimeAdjustmentInformation = 28,
|
|
|
|
SystemTimeAdjustment = 28,
|
|
|
|
SystemSummaryMemoryInformation = 29,
|
|
|
|
SystemNotImplemented7 = 29,
|
|
|
|
SystemNextEventIdInformation = 30,
|
|
|
|
SystemNotImplemented8 = 30,
|
|
|
|
SystemEventIdsInformation = 31,
|
|
|
|
SystemCrashDumpInformation = 32,
|
2002-09-12 22:07:02 +00:00
|
|
|
SystemExceptionInformation = 33,
|
2004-04-21 22:21:35 +00:00
|
|
|
SystemCrashDumpStateInformation = 34,
|
|
|
|
SystemKernelDebuggerInformation = 35,
|
|
|
|
SystemContextSwitchInformation = 36,
|
2002-09-12 22:07:02 +00:00
|
|
|
SystemRegistryQuotaInformation = 37,
|
2004-04-21 22:21:35 +00:00
|
|
|
SystemCurrentTimeZoneInformation = 44,
|
|
|
|
SystemTimeZoneInformation = 44,
|
|
|
|
SystemLookasideInformation = 45,
|
|
|
|
SystemSetTimeSlipEvent = 46,
|
|
|
|
SystemCreateSession = 47,
|
|
|
|
SystemDeleteSession = 48,
|
|
|
|
SystemInvalidInfoClass4 = 49,
|
|
|
|
SystemRangeStartInformation = 50,
|
|
|
|
SystemVerifierInformation = 51,
|
|
|
|
SystemAddVerifier = 52,
|
|
|
|
SystemSessionProcessesInformation = 53,
|
|
|
|
SystemInformationClassMax
|
2002-09-12 22:07:02 +00:00
|
|
|
} SYSTEM_INFORMATION_CLASS, *PSYSTEM_INFORMATION_CLASS;
|
|
|
|
|
|
|
|
typedef enum _TIMER_TYPE {
|
|
|
|
NotificationTimer,
|
|
|
|
SynchronizationTimer
|
|
|
|
} TIMER_TYPE;
|
|
|
|
|
|
|
|
typedef enum _THREADINFOCLASS {
|
|
|
|
ThreadBasicInformation,
|
|
|
|
ThreadTimes,
|
|
|
|
ThreadPriority,
|
|
|
|
ThreadBasePriority,
|
|
|
|
ThreadAffinityMask,
|
|
|
|
ThreadImpersonationToken,
|
|
|
|
ThreadDescriptorTableEntry,
|
|
|
|
ThreadEnableAlignmentFaultFixup,
|
|
|
|
ThreadEventPair_Reusable,
|
|
|
|
ThreadQuerySetWin32StartAddress,
|
|
|
|
ThreadZeroTlsCell,
|
|
|
|
ThreadPerformanceCount,
|
|
|
|
ThreadAmILastThread,
|
|
|
|
ThreadIdealProcessor,
|
|
|
|
ThreadPriorityBoost,
|
|
|
|
ThreadSetTlsArrayAddress,
|
|
|
|
ThreadIsIoPending,
|
|
|
|
MaxThreadInfoClass
|
|
|
|
} THREADINFOCLASS;
|
|
|
|
|
2003-07-09 02:57:57 +00:00
|
|
|
typedef struct _THREAD_BASIC_INFORMATION
|
|
|
|
{
|
|
|
|
NTSTATUS ExitStatus;
|
|
|
|
PVOID TebBaseAddress;
|
|
|
|
CLIENT_ID ClientId;
|
|
|
|
ULONG AffinityMask;
|
|
|
|
LONG Priority;
|
|
|
|
LONG BasePriority;
|
|
|
|
} THREAD_BASIC_INFORMATION, *PTHREAD_BASIC_INFORMATION;
|
|
|
|
|
|
|
|
|
2002-09-12 22:07:02 +00:00
|
|
|
typedef enum _WINSTATIONINFOCLASS {
|
|
|
|
WinStationInformation = 8
|
|
|
|
} WINSTATIONINFOCLASS;
|
2002-09-10 00:33:34 +00:00
|
|
|
|
2005-01-20 19:59:48 +00:00
|
|
|
typedef enum _MEMORY_INFORMATION_CLASS {
|
|
|
|
MemoryBasicInformation,
|
|
|
|
MemoryWorkingSetList,
|
|
|
|
MemorySectionName,
|
|
|
|
MemoryBasicVlmInformation
|
2002-09-17 18:54:42 +00:00
|
|
|
} MEMORY_INFORMATION_CLASS;
|
|
|
|
|
2004-12-02 18:05:37 +00:00
|
|
|
typedef enum _MUTANT_INFORMATION_CLASS
|
|
|
|
{
|
|
|
|
MutantBasicInformation
|
|
|
|
} MUTANT_INFORMATION_CLASS, *PMUTANT_INFORMATION_CLASS;
|
|
|
|
|
|
|
|
typedef struct _MUTANT_BASIC_INFORMATION {
|
|
|
|
LONG CurrentCount;
|
|
|
|
BOOLEAN OwnedByCaller;
|
|
|
|
BOOLEAN AbandonedState;
|
|
|
|
} MUTANT_BASIC_INFORMATION, *PMUTANT_BASIC_INFORMATION;
|
|
|
|
|
2004-12-13 21:10:58 +00:00
|
|
|
typedef enum _TIMER_INFORMATION_CLASS
|
|
|
|
{
|
|
|
|
TimerBasicInformation = 0
|
|
|
|
} TIMER_INFORMATION_CLASS;
|
|
|
|
|
|
|
|
typedef struct _TIMER_BASIC_INFORMATION
|
|
|
|
{
|
|
|
|
LARGE_INTEGER RemainingTime;
|
|
|
|
BOOLEAN TimerState;
|
|
|
|
} TIMER_BASIC_INFORMATION, *PTIMER_BASIC_INFORMATION;
|
2004-12-02 18:05:37 +00:00
|
|
|
|
|
|
|
|
2003-04-12 00:10:13 +00:00
|
|
|
/* return type of RtlDetermineDosPathNameType_U (FIXME: not the correct names) */
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
INVALID_PATH = 0,
|
|
|
|
UNC_PATH, /* "//foo" */
|
|
|
|
ABSOLUTE_DRIVE_PATH, /* "c:/foo" */
|
|
|
|
RELATIVE_DRIVE_PATH, /* "c:foo" */
|
|
|
|
ABSOLUTE_PATH, /* "/foo" */
|
|
|
|
RELATIVE_PATH, /* "foo" */
|
|
|
|
DEVICE_PATH, /* "//./foo" */
|
|
|
|
UNC_DOT_PATH /* "//." */
|
|
|
|
} DOS_PATHNAME_TYPE;
|
|
|
|
|
2002-09-10 00:33:34 +00:00
|
|
|
/***********************************************************************
|
|
|
|
* IA64 specific types and data structures
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef __ia64__
|
|
|
|
|
|
|
|
typedef struct _FRAME_POINTERS {
|
|
|
|
ULONGLONG MemoryStackFp;
|
|
|
|
ULONGLONG BackingStoreFp;
|
|
|
|
} FRAME_POINTERS, *PFRAME_POINTERS;
|
|
|
|
|
|
|
|
#define UNWIND_HISTORY_TABLE_SIZE 12
|
|
|
|
|
|
|
|
typedef struct _RUNTIME_FUNCTION {
|
|
|
|
ULONG BeginAddress;
|
|
|
|
ULONG EndAddress;
|
|
|
|
ULONG UnwindInfoAddress;
|
|
|
|
} RUNTIME_FUNCTION, *PRUNTIME_FUNCTION;
|
|
|
|
|
|
|
|
typedef struct _UNWIND_HISTORY_TABLE_ENTRY {
|
|
|
|
ULONG64 ImageBase;
|
|
|
|
ULONG64 Gp;
|
|
|
|
PRUNTIME_FUNCTION FunctionEntry;
|
|
|
|
} UNWIND_HISTORY_TABLE_ENTRY, *PUNWIND_HISTORY_TABLE_ENTRY;
|
|
|
|
|
|
|
|
typedef struct _UNWIND_HISTORY_TABLE {
|
|
|
|
ULONG Count;
|
|
|
|
UCHAR Search;
|
|
|
|
ULONG64 LowAddress;
|
|
|
|
ULONG64 HighAddress;
|
|
|
|
UNWIND_HISTORY_TABLE_ENTRY Entry[UNWIND_HISTORY_TABLE_SIZE];
|
|
|
|
} UNWIND_HISTORY_TABLE, *PUNWIND_HISTORY_TABLE;
|
|
|
|
|
|
|
|
#endif /* defined(__ia64__) */
|
|
|
|
|
|
|
|
/***********************************************************************
|
2002-09-12 22:07:02 +00:00
|
|
|
* Types and data structures
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* This is used by NtQuerySystemInformation */
|
|
|
|
/* FIXME: Isn't THREAD_INFO and THREADINFO the same structure? */
|
|
|
|
typedef struct {
|
2003-09-16 01:07:21 +00:00
|
|
|
FILETIME ftKernelTime;
|
|
|
|
FILETIME ftUserTime;
|
|
|
|
FILETIME ftCreateTime;
|
|
|
|
DWORD dwTickCount;
|
|
|
|
DWORD dwStartAddress;
|
|
|
|
DWORD dwOwningPID;
|
|
|
|
DWORD dwThreadID;
|
|
|
|
DWORD dwCurrentPriority;
|
|
|
|
DWORD dwBasePriority;
|
|
|
|
DWORD dwContextSwitches;
|
|
|
|
DWORD dwThreadState;
|
|
|
|
DWORD dwWaitReason;
|
2002-09-12 22:07:02 +00:00
|
|
|
} THREADINFO, *PTHREADINFO;
|
|
|
|
|
|
|
|
/* FIXME: Isn't THREAD_INFO and THREADINFO the same structure? */
|
|
|
|
typedef struct _THREAD_INFO{
|
|
|
|
DWORD Unknown1[6];
|
|
|
|
DWORD ThreadID;
|
|
|
|
DWORD Unknown2[3];
|
|
|
|
DWORD Status;
|
|
|
|
DWORD WaitReason;
|
|
|
|
DWORD Unknown3[4];
|
|
|
|
} THREAD_INFO, PTHREAD_INFO;
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* Types and data structures
|
2002-09-10 00:33:34 +00:00
|
|
|
*/
|
|
|
|
|
2002-09-12 22:07:02 +00:00
|
|
|
typedef struct _IO_STATUS_BLOCK {
|
|
|
|
union {
|
|
|
|
NTSTATUS Status;
|
|
|
|
PVOID Pointer;
|
|
|
|
} DUMMYUNIONNAME;
|
|
|
|
|
|
|
|
ULONG_PTR Information;
|
|
|
|
} IO_STATUS_BLOCK, *PIO_STATUS_BLOCK;
|
|
|
|
|
|
|
|
typedef void (WINAPI * PIO_APC_ROUTINE)(PVOID,PIO_STATUS_BLOCK,ULONG);
|
|
|
|
|
|
|
|
typedef struct _KEY_BASIC_INFORMATION {
|
|
|
|
LARGE_INTEGER LastWriteTime;
|
|
|
|
ULONG TitleIndex;
|
|
|
|
ULONG NameLength;
|
|
|
|
WCHAR Name[1];
|
|
|
|
} KEY_BASIC_INFORMATION, *PKEY_BASIC_INFORMATION;
|
|
|
|
|
|
|
|
typedef struct _KEY_NODE_INFORMATION
|
|
|
|
{
|
|
|
|
LARGE_INTEGER LastWriteTime;
|
|
|
|
ULONG TitleIndex;
|
|
|
|
ULONG ClassOffset;
|
|
|
|
ULONG ClassLength;
|
|
|
|
ULONG NameLength;
|
|
|
|
WCHAR Name[1];
|
|
|
|
/* Class[1]; */
|
|
|
|
} KEY_NODE_INFORMATION, *PKEY_NODE_INFORMATION;
|
|
|
|
|
|
|
|
typedef struct _KEY_FULL_INFORMATION
|
|
|
|
{
|
|
|
|
LARGE_INTEGER LastWriteTime;
|
|
|
|
ULONG TitleIndex;
|
|
|
|
ULONG ClassOffset;
|
|
|
|
ULONG ClassLength;
|
|
|
|
ULONG SubKeys;
|
|
|
|
ULONG MaxNameLen;
|
|
|
|
ULONG MaxClassLen;
|
|
|
|
ULONG Values;
|
|
|
|
ULONG MaxValueNameLen;
|
|
|
|
ULONG MaxValueDataLen;
|
|
|
|
WCHAR Class[1];
|
|
|
|
} KEY_FULL_INFORMATION, *PKEY_FULL_INFORMATION;
|
|
|
|
|
|
|
|
typedef struct _KEY_VALUE_ENTRY
|
|
|
|
{
|
|
|
|
PUNICODE_STRING ValueName;
|
|
|
|
ULONG DataLength;
|
|
|
|
ULONG DataOffset;
|
|
|
|
ULONG Type;
|
|
|
|
} KEY_VALUE_ENTRY, *PKEY_VALUE_ENTRY;
|
|
|
|
|
|
|
|
typedef struct _KEY_VALUE_BASIC_INFORMATION {
|
|
|
|
ULONG TitleIndex;
|
|
|
|
ULONG Type;
|
|
|
|
ULONG NameLength;
|
|
|
|
WCHAR Name[1];
|
|
|
|
} KEY_VALUE_BASIC_INFORMATION, *PKEY_VALUE_BASIC_INFORMATION;
|
|
|
|
|
|
|
|
typedef struct _KEY_VALUE_FULL_INFORMATION {
|
|
|
|
ULONG TitleIndex;
|
|
|
|
ULONG Type;
|
|
|
|
ULONG DataOffset;
|
|
|
|
ULONG DataLength;
|
|
|
|
ULONG NameLength;
|
|
|
|
WCHAR Name[1];
|
|
|
|
} KEY_VALUE_FULL_INFORMATION, *PKEY_VALUE_FULL_INFORMATION;
|
|
|
|
|
|
|
|
typedef struct _KEY_VALUE_PARTIAL_INFORMATION {
|
|
|
|
ULONG TitleIndex;
|
|
|
|
ULONG Type;
|
|
|
|
ULONG DataLength;
|
|
|
|
UCHAR Data[1];
|
|
|
|
} KEY_VALUE_PARTIAL_INFORMATION, *PKEY_VALUE_PARTIAL_INFORMATION;
|
|
|
|
|
|
|
|
typedef struct _OBJECT_ATTRIBUTES {
|
|
|
|
ULONG Length;
|
|
|
|
HANDLE RootDirectory;
|
|
|
|
PUNICODE_STRING ObjectName;
|
|
|
|
ULONG Attributes;
|
|
|
|
PVOID SecurityDescriptor; /* type SECURITY_DESCRIPTOR */
|
|
|
|
PVOID SecurityQualityOfService; /* type SECURITY_QUALITY_OF_SERVICE */
|
|
|
|
} OBJECT_ATTRIBUTES, *POBJECT_ATTRIBUTES;
|
|
|
|
|
2003-05-20 19:20:42 +00:00
|
|
|
typedef struct _OBJECT_DATA_INFORMATION {
|
|
|
|
BOOLEAN InheritHandle;
|
|
|
|
BOOLEAN ProtectFromClose;
|
|
|
|
} OBJECT_DATA_INFORMATION, *POBJECT_DATA_INFORMATION;
|
|
|
|
|
2002-09-10 00:33:34 +00:00
|
|
|
typedef struct _PROCESS_BASIC_INFORMATION {
|
2003-01-04 00:52:18 +00:00
|
|
|
#ifdef __WINESRC__
|
2002-09-12 22:07:02 +00:00
|
|
|
DWORD ExitStatus;
|
|
|
|
DWORD PebBaseAddress;
|
|
|
|
DWORD AffinityMask;
|
|
|
|
DWORD BasePriority;
|
|
|
|
ULONG UniqueProcessId;
|
|
|
|
ULONG InheritedFromUniqueProcessId;
|
|
|
|
#else
|
2002-09-10 00:33:34 +00:00
|
|
|
PVOID Reserved1;
|
|
|
|
PPEB PebBaseAddress;
|
|
|
|
PVOID Reserved2[2];
|
|
|
|
ULONG_PTR UniqueProcessId;
|
|
|
|
PVOID Reserved3;
|
2002-09-12 22:07:02 +00:00
|
|
|
#endif
|
2002-09-10 00:33:34 +00:00
|
|
|
} PROCESS_BASIC_INFORMATION, *PPROCESS_BASIC_INFORMATION;
|
|
|
|
|
2002-09-12 22:07:02 +00:00
|
|
|
typedef struct _PROCESS_INFO {
|
|
|
|
DWORD Offset; /* 00 offset to next PROCESS_INFO ok*/
|
|
|
|
DWORD ThreadCount; /* 04 number of ThreadInfo member ok */
|
|
|
|
DWORD Unknown1[6];
|
|
|
|
FILETIME CreationTime; /* 20 */
|
|
|
|
DWORD Unknown2[5];
|
|
|
|
PWCHAR ProcessName; /* 3c ok */
|
|
|
|
DWORD BasePriority;
|
|
|
|
DWORD ProcessID; /* 44 ok*/
|
|
|
|
DWORD ParentProcessID;
|
|
|
|
DWORD HandleCount;
|
|
|
|
DWORD Unknown3[2]; /* 50 */
|
|
|
|
ULONG PeakVirtualSize;
|
|
|
|
ULONG VirtualSize;
|
|
|
|
ULONG PageFaultCount;
|
|
|
|
ULONG PeakWorkingSetSize;
|
|
|
|
ULONG WorkingSetSize;
|
|
|
|
ULONG QuotaPeakPagedPoolUsage;
|
|
|
|
ULONG QuotaPagedPoolUsage;
|
|
|
|
ULONG QuotaPeakNonPagedPoolUsage;
|
|
|
|
ULONG QuotaNonPagedPoolUsage;
|
|
|
|
ULONG PagefileUsage;
|
|
|
|
ULONG PeakPagefileUsage;
|
|
|
|
DWORD PrivateBytes;
|
|
|
|
DWORD Unknown6[4];
|
|
|
|
THREAD_INFO ati[ANYSIZE_ARRAY]; /* 94 size=0x40*/
|
|
|
|
} PROCESS_INFO, PPROCESS_INFO;
|
|
|
|
|
|
|
|
typedef struct _RTL_HEAP_DEFINITION {
|
|
|
|
ULONG Length; /* = sizeof(RTL_HEAP_DEFINITION) */
|
|
|
|
|
|
|
|
ULONG Unknown[11];
|
|
|
|
} RTL_HEAP_DEFINITION, *PRTL_HEAP_DEFINITION;
|
|
|
|
|
|
|
|
typedef struct _RTL_RWLOCK {
|
|
|
|
RTL_CRITICAL_SECTION rtlCS;
|
|
|
|
|
|
|
|
HANDLE hSharedReleaseSemaphore;
|
|
|
|
UINT uSharedWaiters;
|
|
|
|
|
|
|
|
HANDLE hExclusiveReleaseSemaphore;
|
|
|
|
UINT uExclusiveWaiters;
|
|
|
|
|
|
|
|
INT iNumberActive;
|
|
|
|
HANDLE hOwningThreadId;
|
|
|
|
DWORD dwTimeoutBoost;
|
|
|
|
PVOID pDebugInfo;
|
|
|
|
} RTL_RWLOCK, *LPRTL_RWLOCK;
|
|
|
|
|
|
|
|
/* System Information Class 0x00 */
|
|
|
|
typedef struct _SYSTEM_BASIC_INFORMATION {
|
2003-01-04 00:52:18 +00:00
|
|
|
#ifdef __WINESRC__
|
2002-09-12 22:07:02 +00:00
|
|
|
DWORD dwUnknown1;
|
|
|
|
ULONG uKeMaximumIncrement;
|
|
|
|
ULONG uPageSize;
|
|
|
|
ULONG uMmNumberOfPhysicalPages;
|
|
|
|
ULONG uMmLowestPhysicalPage;
|
|
|
|
ULONG uMmHighestPhysicalPage;
|
|
|
|
ULONG uAllocationGranularity;
|
|
|
|
PVOID pLowestUserAddress;
|
|
|
|
PVOID pMmHighestUserAddress;
|
|
|
|
ULONG uKeActiveProcessors;
|
|
|
|
BYTE bKeNumberProcessors;
|
|
|
|
BYTE bUnknown2;
|
|
|
|
WORD wUnknown3;
|
|
|
|
#else
|
|
|
|
BYTE Reserved1[24];
|
|
|
|
PVOID Reserved2[4];
|
|
|
|
CCHAR NumberOfProcessors;
|
|
|
|
#endif
|
|
|
|
} SYSTEM_BASIC_INFORMATION, *PSYSTEM_BASIC_INFORMATION;
|
|
|
|
|
2005-01-28 12:34:20 +00:00
|
|
|
/* CPU Information Class 0x01 */
|
|
|
|
typedef struct {
|
|
|
|
WORD Architecture;
|
|
|
|
WORD Level;
|
|
|
|
WORD Revision; /* combination of CPU model and stepping */
|
|
|
|
WORD Reserved; /* always zero */
|
|
|
|
DWORD FeatureSet; /* see bit flags below */
|
|
|
|
} SYSTEM_CPU_INFORMATION;
|
|
|
|
|
|
|
|
/* definitions of bits in the Feature set for the x86 processors */
|
|
|
|
#define CPU_FEATURE_VME 0x00000005 /* Virtual 86 Mode Extensions */
|
|
|
|
#define CPU_FEATURE_TSC 0x00000002 /* Time Stamp Counter available */
|
|
|
|
#define CPU_FEATURE_CMOV 0x00000008 /* Conditional Move instruction*/
|
|
|
|
#define CPU_FEATURE_PGE 0x00000014 /* Page table Entry Global bit */
|
|
|
|
#define CPU_FEATURE_PSE 0x00000024 /* Page Size Extension */
|
|
|
|
#define CPU_FEATURE_MTRR 0x00000040 /* Memory Type Range Registers */
|
|
|
|
#define CPU_FEATURE_CX8 0x00000080 /* Compare and eXchange 8 byte instr. */
|
|
|
|
#define CPU_FEATURE_MMX 0x00000100 /* Multi Media eXtensions */
|
|
|
|
#define CPU_FEATURE_X86 0x00000200 /* seems to be alway ON, on the '86 */
|
|
|
|
#define CPU_FEATURE_PAT 0x00000400 /* Page Attribute Table */
|
|
|
|
#define CPU_FEATURE_FXSR 0x00000800 /* FXSAVE and FXSTORE instructions */
|
|
|
|
#define CPU_FEATURE_SEP 0x00001000 /* SYSENTER and SYSEXIT instructions */
|
|
|
|
#define CPU_FEATURE_SSE 0x00002000 /* SSE extenstions (ext. MMX) */
|
|
|
|
#define CPU_FEATURE_3DNOW 0x00008000 /* 3DNOW instructions available
|
|
|
|
(FIXME: needs to be confirmed) */
|
|
|
|
#define CPU_FEATURE_SSE2 0x00010000 /* SSE2 extensions (XMMI64) */
|
|
|
|
#define CPU_FEATURE_DS 0x00020000 /* Debug Store */
|
|
|
|
#define CPU_FEATURE_HTT 0x00040000 /* Hyper Threading Technology */
|
|
|
|
|
2002-09-12 22:07:02 +00:00
|
|
|
/* System Information Class 0x15 */
|
|
|
|
typedef struct {
|
|
|
|
ULONG CurrentSize;
|
|
|
|
ULONG PeakSize;
|
|
|
|
ULONG PageFaultCount;
|
|
|
|
ULONG MinimumWorkingSet;
|
|
|
|
ULONG MaximumWorkingSet;
|
|
|
|
ULONG unused[4];
|
|
|
|
} SYSTEM_CACHE_INFORMATION;
|
|
|
|
|
|
|
|
typedef struct _SYSTEM_CONFIGURATION_INFO {
|
|
|
|
union {
|
|
|
|
ULONG OemId;
|
|
|
|
struct {
|
|
|
|
WORD ProcessorArchitecture;
|
|
|
|
WORD Reserved;
|
|
|
|
} tag1;
|
|
|
|
} tag2;
|
|
|
|
ULONG PageSize;
|
|
|
|
PVOID MinimumApplicationAddress;
|
|
|
|
PVOID MaximumApplicationAddress;
|
|
|
|
ULONG ActiveProcessorMask;
|
|
|
|
ULONG NumberOfProcessors;
|
|
|
|
ULONG ProcessorType;
|
|
|
|
ULONG AllocationGranularity;
|
|
|
|
WORD ProcessorLevel;
|
|
|
|
WORD ProcessorRevision;
|
|
|
|
} SYSTEM_CONFIGURATION_INFO, *PSYSTEM_CONFIGURATION_INFO;
|
|
|
|
|
|
|
|
/* System Information Class 0x0b */
|
|
|
|
typedef struct {
|
|
|
|
PVOID pvAddress;
|
|
|
|
DWORD dwUnknown1;
|
|
|
|
DWORD dwUnknown2;
|
|
|
|
DWORD dwEntryIndex;
|
|
|
|
DWORD dwUnknown3;
|
|
|
|
char szName[MAX_PATH + 1];
|
|
|
|
} SYSTEM_DRIVER_INFORMATION;
|
|
|
|
|
|
|
|
typedef struct _SYSTEM_EXCEPTION_INFORMATION {
|
|
|
|
BYTE Reserved1[16];
|
|
|
|
} SYSTEM_EXCEPTION_INFORMATION, *PSYSTEM_EXCEPTION_INFORMATION;
|
|
|
|
|
|
|
|
typedef struct _SYSTEM_LOOKASIDE_INFORMATION {
|
|
|
|
BYTE Reserved1[32];
|
|
|
|
} SYSTEM_LOOKASIDE_INFORMATION, *PSYSTEM_LOOKASIDE_INFORMATION;
|
|
|
|
|
|
|
|
typedef struct _SYSTEM_INTERRUPT_INFORMATION {
|
|
|
|
BYTE Reserved1[24];
|
|
|
|
} SYSTEM_INTERRUPT_INFORMATION, *PSYSTEM_INTERRUPT_INFORMATION;
|
|
|
|
|
2004-04-21 22:21:35 +00:00
|
|
|
typedef struct _SYSTEM_KERNEL_DEBUGGER_INFORMATION {
|
|
|
|
BOOLEAN DebuggerEnabled;
|
|
|
|
BOOLEAN DebuggerNotPresent;
|
|
|
|
} SYSTEM_KERNEL_DEBUGGER_INFORMATION, *PSYSTEM_KERNEL_DEBUGGER_INFORMATION;
|
|
|
|
|
2002-09-12 22:07:02 +00:00
|
|
|
/* System Information Class 0x10 */
|
|
|
|
typedef struct {
|
|
|
|
USHORT dwPID;
|
|
|
|
USHORT dwCreatorBackTraceIndex;
|
|
|
|
BYTE bObjectType;
|
|
|
|
BYTE bHandleAttributes;
|
|
|
|
USHORT usHandleOffset;
|
|
|
|
DWORD dwKeObject;
|
|
|
|
ULONG ulGrantedAccess;
|
|
|
|
} HANDLEINFO, *PHANDLEINFO; /* FIXME: SYSTEM_HANDLE_INFORMATION? */
|
|
|
|
|
|
|
|
typedef struct _SYSTEM_PERFORMANCE_INFORMATION {
|
|
|
|
BYTE Reserved1[312];
|
|
|
|
} SYSTEM_PERFORMANCE_INFORMATION, *PSYSTEM_PERFORMANCE_INFORMATION;
|
|
|
|
|
|
|
|
/* System Information Class 0x02 */
|
2002-09-10 00:33:34 +00:00
|
|
|
typedef struct _SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION {
|
2003-01-04 00:52:18 +00:00
|
|
|
#ifdef __WINESRC__
|
2002-09-12 22:07:02 +00:00
|
|
|
LARGE_INTEGER liIdleTime;
|
2003-09-16 01:07:21 +00:00
|
|
|
DWORD dwSpare[10];
|
2002-09-12 22:07:02 +00:00
|
|
|
#else
|
2002-09-10 00:33:34 +00:00
|
|
|
LARGE_INTEGER IdleTime;
|
|
|
|
LARGE_INTEGER KernelTime;
|
|
|
|
LARGE_INTEGER UserTime;
|
|
|
|
LARGE_INTEGER Reserved1[2];
|
|
|
|
ULONG Reserved2;
|
2002-09-12 22:07:02 +00:00
|
|
|
#endif
|
2002-09-10 00:33:34 +00:00
|
|
|
} SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION, *PSYSTEM_PROCESSOR_PERFORMANCE_INFORMATION;
|
|
|
|
|
2002-09-12 22:07:02 +00:00
|
|
|
/* System Information Class 0x05 */
|
2002-09-10 00:33:34 +00:00
|
|
|
typedef struct _SYSTEM_PROCESS_INFORMATION {
|
2003-01-04 00:52:18 +00:00
|
|
|
#ifdef __WINESRC__
|
2002-09-12 22:07:02 +00:00
|
|
|
DWORD dwOffset;
|
|
|
|
DWORD dwThreadCount;
|
|
|
|
DWORD dwUnknown1[6];
|
|
|
|
FILETIME ftCreationTime;
|
|
|
|
DWORD dwUnknown2[5];
|
|
|
|
WCHAR *pszProcessName;
|
|
|
|
DWORD dwBasePriority;
|
|
|
|
DWORD dwProcessID;
|
|
|
|
DWORD dwParentProcessID;
|
|
|
|
DWORD dwHandleCount;
|
|
|
|
DWORD dwUnknown3;
|
|
|
|
DWORD dwUnknown4;
|
|
|
|
DWORD dwVirtualBytesPeak;
|
|
|
|
DWORD dwVirtualBytes;
|
|
|
|
DWORD dwPageFaults;
|
|
|
|
DWORD dwWorkingSetPeak;
|
|
|
|
DWORD dwWorkingSet;
|
|
|
|
DWORD dwUnknown5;
|
|
|
|
DWORD dwPagedPool;
|
|
|
|
DWORD dwUnknown6;
|
|
|
|
DWORD dwNonPagedPool;
|
|
|
|
DWORD dwPageFileBytesPeak;
|
|
|
|
DWORD dwPrivateBytes;
|
|
|
|
DWORD dwPageFileBytes;
|
|
|
|
DWORD dwUnknown7[4];
|
|
|
|
THREADINFO ti[1];
|
|
|
|
#else
|
2002-09-10 00:33:34 +00:00
|
|
|
ULONG NextEntryOffset;
|
|
|
|
BYTE Reserved1[52];
|
|
|
|
PVOID Reserved2[3];
|
|
|
|
HANDLE UniqueProcessId;
|
|
|
|
PVOID Reserved3;
|
|
|
|
ULONG HandleCount;
|
|
|
|
BYTE Reserved4[4];
|
|
|
|
PVOID Reserved5[11];
|
|
|
|
SIZE_T PeakPagefileUsage;
|
|
|
|
SIZE_T PrivatePageCount;
|
|
|
|
LARGE_INTEGER Reserved6[6];
|
2002-09-12 22:07:02 +00:00
|
|
|
#endif
|
2002-09-10 00:33:34 +00:00
|
|
|
} SYSTEM_PROCESS_INFORMATION, *PSYSTEM_PROCESS_INFORMATION;
|
|
|
|
|
|
|
|
typedef struct _SYSTEM_REGISTRY_QUOTA_INFORMATION {
|
|
|
|
ULONG RegistryQuotaAllowed;
|
|
|
|
ULONG RegistryQuotaUsed;
|
|
|
|
PVOID Reserved1;
|
|
|
|
} SYSTEM_REGISTRY_QUOTA_INFORMATION, *PSYSTEM_REGISTRY_QUOTA_INFORMATION;
|
|
|
|
|
2002-09-12 22:07:02 +00:00
|
|
|
typedef struct _SYSTEM_TIME_ADJUSTMENT {
|
|
|
|
ULONG TimeAdjustment;
|
|
|
|
BOOLEAN TimeAdjustmentDisabled;
|
|
|
|
} SYSTEM_TIME_ADJUSTMENT, *PSYSTEM_TIME_ADJUSTMENT;
|
2002-09-10 00:33:34 +00:00
|
|
|
|
2002-09-12 22:07:02 +00:00
|
|
|
/* System Information Class 0x03 */
|
2002-09-10 00:33:34 +00:00
|
|
|
typedef struct _SYSTEM_TIMEOFDAY_INFORMATION {
|
2003-01-04 00:52:18 +00:00
|
|
|
#ifdef __WINESRC__
|
2002-09-12 22:07:02 +00:00
|
|
|
LARGE_INTEGER liKeBootTime;
|
|
|
|
LARGE_INTEGER liKeSystemTime;
|
|
|
|
LARGE_INTEGER liExpTimeZoneBias;
|
|
|
|
ULONG uCurrentTimeZoneId;
|
|
|
|
DWORD dwReserved;
|
|
|
|
#else
|
2002-09-10 00:33:34 +00:00
|
|
|
BYTE Reserved1[48];
|
2002-09-12 22:07:02 +00:00
|
|
|
#endif
|
|
|
|
} SYSTEM_TIMEOFDAY_INFORMATION, *PSYSTEM_TIMEOFDAY_INFORMATION; /* was SYSTEM_TIME_INFORMATION */
|
2002-09-10 00:33:34 +00:00
|
|
|
|
2002-09-12 22:07:02 +00:00
|
|
|
typedef struct _TIME_FIELDS
|
|
|
|
{ CSHORT Year;
|
|
|
|
CSHORT Month;
|
|
|
|
CSHORT Day;
|
|
|
|
CSHORT Hour;
|
|
|
|
CSHORT Minute;
|
|
|
|
CSHORT Second;
|
|
|
|
CSHORT Milliseconds;
|
|
|
|
CSHORT Weekday;
|
|
|
|
} TIME_FIELDS, *PTIME_FIELDS;
|
2002-09-10 00:33:34 +00:00
|
|
|
|
2002-09-12 22:07:02 +00:00
|
|
|
typedef struct _WINSTATIONINFORMATIONW {
|
|
|
|
BYTE Reserved2[70];
|
|
|
|
ULONG LogonId;
|
|
|
|
BYTE Reserved3[1140];
|
|
|
|
} WINSTATIONINFORMATIONW, *PWINSTATIONINFORMATIONW;
|
2002-09-10 00:33:34 +00:00
|
|
|
|
2002-09-12 22:07:02 +00:00
|
|
|
typedef struct _VM_COUNTERS_ {
|
2004-08-31 17:32:29 +00:00
|
|
|
SIZE_T PeakVirtualSize;
|
|
|
|
SIZE_T VirtualSize;
|
|
|
|
ULONG PageFaultCount;
|
|
|
|
SIZE_T PeakWorkingSetSize;
|
|
|
|
SIZE_T WorkingSetSize;
|
|
|
|
SIZE_T QuotaPeakPagedPoolUsage;
|
|
|
|
SIZE_T QuotaPagedPoolUsage;
|
|
|
|
SIZE_T QuotaPeakNonPagedPoolUsage;
|
|
|
|
SIZE_T QuotaNonPagedPoolUsage;
|
|
|
|
SIZE_T PagefileUsage;
|
|
|
|
SIZE_T PeakPagefileUsage;
|
2002-09-12 22:07:02 +00:00
|
|
|
} VM_COUNTERS, *PVM_COUNTERS;
|
2002-09-10 00:33:34 +00:00
|
|
|
|
2002-09-12 22:07:02 +00:00
|
|
|
typedef BOOLEAN (WINAPI * PWINSTATIONQUERYINFORMATIONW)(HANDLE,ULONG,WINSTATIONINFOCLASS,PVOID,ULONG,PULONG);
|
2002-09-10 00:33:34 +00:00
|
|
|
|
2003-04-29 23:00:48 +00:00
|
|
|
typedef struct _LDR_RESOURCE_INFO
|
|
|
|
{
|
|
|
|
ULONG Type;
|
|
|
|
ULONG Name;
|
|
|
|
ULONG Language;
|
|
|
|
} LDR_RESOURCE_INFO, *PLDR_RESOURCE_INFO;
|
|
|
|
|
2004-03-18 02:08:43 +00:00
|
|
|
|
|
|
|
/* debug buffer definitions */
|
|
|
|
|
|
|
|
typedef struct _DEBUG_BUFFER {
|
|
|
|
HANDLE SectionHandle;
|
|
|
|
PVOID SectionBase;
|
|
|
|
PVOID RemoteSectionBase;
|
|
|
|
ULONG SectionBaseDelta;
|
|
|
|
HANDLE EventPairHandle;
|
|
|
|
ULONG Unknown[2];
|
|
|
|
HANDLE RemoteThreadHandle;
|
|
|
|
ULONG InfoClassMask;
|
|
|
|
ULONG SizeOfInfo;
|
|
|
|
ULONG AllocatedSize;
|
|
|
|
ULONG SectionSize;
|
|
|
|
PVOID ModuleInformation;
|
|
|
|
PVOID BackTraceInformation;
|
|
|
|
PVOID HeapInformation;
|
|
|
|
PVOID LockInformation;
|
|
|
|
PVOID Reserved[8];
|
|
|
|
} DEBUG_BUFFER, *PDEBUG_BUFFER;
|
|
|
|
|
|
|
|
#define PDI_MODULES 0x01
|
|
|
|
#define PDI_BACKTRACE 0x02
|
|
|
|
#define PDI_HEAPS 0x04
|
|
|
|
#define PDI_HEAP_TAGS 0x08
|
|
|
|
#define PDI_HEAP_BLOCKS 0x10
|
|
|
|
#define PDI_LOCKS 0x20
|
|
|
|
|
|
|
|
typedef struct _DEBUG_MODULE_INFORMATION {
|
|
|
|
ULONG Reserved[2];
|
|
|
|
ULONG Base;
|
|
|
|
ULONG Size;
|
|
|
|
ULONG Flags;
|
|
|
|
USHORT Index;
|
|
|
|
USHORT Unknown;
|
|
|
|
USHORT LoadCount;
|
|
|
|
USHORT ModuleNameOffset;
|
|
|
|
CHAR ImageName[256];
|
|
|
|
} DEBUG_MODULE_INFORMATION, *PDEBUG_MODULE_INFORMATION;
|
|
|
|
|
|
|
|
typedef struct _DEBUG_HEAP_INFORMATION {
|
|
|
|
ULONG Base;
|
|
|
|
ULONG Flags;
|
|
|
|
USHORT Granularity;
|
|
|
|
USHORT Unknown;
|
|
|
|
ULONG Allocated;
|
|
|
|
ULONG Committed;
|
|
|
|
ULONG TagCount;
|
|
|
|
ULONG BlockCount;
|
|
|
|
ULONG Reserved[7];
|
|
|
|
PVOID Tags;
|
|
|
|
PVOID Blocks;
|
|
|
|
} DEBUG_HEAP_INFORMATION, *PDEBUG_HEAP_INFORMATION;
|
|
|
|
|
|
|
|
typedef struct _DEBUG_LOCK_INFORMATION {
|
|
|
|
PVOID Address;
|
|
|
|
USHORT Type;
|
|
|
|
USHORT CreatorBackTraceIndex;
|
|
|
|
ULONG OwnerThreadId;
|
|
|
|
ULONG ActiveCount;
|
|
|
|
ULONG ContentionCount;
|
|
|
|
ULONG EntryCount;
|
|
|
|
ULONG RecursionCount;
|
|
|
|
ULONG NumberOfSharedWaiters;
|
|
|
|
ULONG NumberOfExclusiveWaiters;
|
|
|
|
} DEBUG_LOCK_INFORMATION, *PDEBUG_LOCK_INFORMATION;
|
|
|
|
|
2004-04-07 19:05:34 +00:00
|
|
|
typedef struct _PORT_MESSAGE_HEADER {
|
|
|
|
USHORT DataSize;
|
|
|
|
USHORT MessageSize;
|
|
|
|
USHORT MessageType;
|
|
|
|
USHORT VirtualRangesOffset;
|
|
|
|
CLIENT_ID ClientId;
|
|
|
|
ULONG MessageId;
|
|
|
|
ULONG SectionSize;
|
|
|
|
} PORT_MESSAGE_HEADER, *PPORT_MESSAGE_HEADER, PORT_MESSAGE, *PPORT_MESSAGE;
|
2004-03-18 02:08:43 +00:00
|
|
|
|
2004-12-07 14:47:13 +00:00
|
|
|
/* FIXME: names probably not correct */
|
|
|
|
typedef struct _RTL_HANDLE
|
|
|
|
{
|
|
|
|
struct _RTL_HANDLE * Next;
|
|
|
|
} RTL_HANDLE;
|
|
|
|
|
|
|
|
/* FIXME: names probably not correct */
|
|
|
|
typedef struct _RTL_HANDLE_TABLE
|
|
|
|
{
|
|
|
|
ULONG MaxHandleCount; /* 0x00 */
|
|
|
|
ULONG HandleSize; /* 0x04 */
|
|
|
|
ULONG Unused[2]; /* 0x08-0x0c */
|
|
|
|
PVOID NextFree; /* 0x10 */
|
|
|
|
PVOID FirstHandle; /* 0x14 */
|
|
|
|
PVOID ReservedMemory; /* 0x18 */
|
|
|
|
PVOID MaxHandle; /* 0x1c */
|
|
|
|
} RTL_HANDLE_TABLE;
|
|
|
|
|
2002-09-10 00:33:34 +00:00
|
|
|
/***********************************************************************
|
2002-09-12 22:07:02 +00:00
|
|
|
* Defines
|
2002-09-10 00:33:34 +00:00
|
|
|
*/
|
|
|
|
|
2002-09-12 22:07:02 +00:00
|
|
|
/* flags for NtCreateFile and NtOpenFile */
|
2004-03-12 01:56:49 +00:00
|
|
|
#define FILE_DIRECTORY_FILE 0x00000001
|
|
|
|
#define FILE_WRITE_THROUGH 0x00000002
|
|
|
|
#define FILE_SEQUENTIAL_ONLY 0x00000004
|
|
|
|
#define FILE_NO_INTERMEDIATE_BUFFERING 0x00000008
|
|
|
|
#define FILE_SYNCHRONOUS_IO_ALERT 0x00000010
|
|
|
|
#define FILE_SYNCHRONOUS_IO_NONALERT 0x00000020
|
|
|
|
#define FILE_NON_DIRECTORY_FILE 0x00000040
|
|
|
|
#define FILE_CREATE_TREE_CONNECTION 0x00000080
|
|
|
|
#define FILE_COMPLETE_IF_OPLOCKED 0x00000100
|
|
|
|
#define FILE_NO_EA_KNOWLEDGE 0x00000200
|
|
|
|
#define FILE_OPEN_FOR_RECOVERY 0x00000400
|
|
|
|
#define FILE_RANDOM_ACCESS 0x00000800
|
|
|
|
#define FILE_DELETE_ON_CLOSE 0x00001000
|
|
|
|
#define FILE_OPEN_BY_FILE_ID 0x00002000
|
|
|
|
#define FILE_OPEN_FOR_BACKUP_INTENT 0x00004000
|
|
|
|
#define FILE_NO_COMPRESSION 0x00008000
|
|
|
|
#define FILE_RESERVE_OPFILTER 0x00100000
|
|
|
|
#define FILE_TRANSACTED_MODE 0x00200000
|
|
|
|
#define FILE_OPEN_OFFLINE_FILE 0x00400000
|
2004-08-31 17:32:29 +00:00
|
|
|
#define FILE_OPEN_FOR_FREE_SPACE_QUERY 0x00800000
|
2004-03-12 01:56:49 +00:00
|
|
|
|
|
|
|
#define FILE_ATTRIBUTE_VALID_FLAGS 0x00007fb7
|
|
|
|
#define FILE_ATTRIBUTE_VALID_SET_FLAGS 0x000031a7
|
2002-09-10 00:33:34 +00:00
|
|
|
|
2002-09-12 22:07:02 +00:00
|
|
|
/* status for NtCreateFile or NtOpenFile */
|
2004-03-12 01:56:49 +00:00
|
|
|
#define FILE_SUPERSEDED 0
|
|
|
|
#define FILE_OPENED 1
|
|
|
|
#define FILE_CREATED 2
|
|
|
|
#define FILE_OVERWRITTEN 3
|
|
|
|
#define FILE_EXISTS 4
|
|
|
|
#define FILE_DOES_NOT_EXIST 5
|
|
|
|
|
|
|
|
/* disposition for NtCreateFile */
|
|
|
|
#define FILE_SUPERSEDE 0
|
|
|
|
#define FILE_OPEN 1
|
|
|
|
#define FILE_CREATE 2
|
|
|
|
#define FILE_OPEN_IF 3
|
|
|
|
#define FILE_OVERWRITE 4
|
|
|
|
#define FILE_OVERWRITE_IF 5
|
|
|
|
#define FILE_MAXIMUM_DISPOSITION 5
|
|
|
|
|
|
|
|
/* Characteristics of a File System */
|
|
|
|
#define FILE_REMOVABLE_MEDIA 0x00000001
|
|
|
|
#define FILE_READ_ONLY_DEVICE 0x00000002
|
|
|
|
#define FILE_FLOPPY_DISKETTE 0x00000004
|
|
|
|
#define FILE_WRITE_ONE_MEDIA 0x00000008
|
|
|
|
#define FILE_REMOTE_DEVICE 0x00000010
|
|
|
|
#define FILE_DEVICE_IS_MOUNTED 0x00000020
|
|
|
|
#define FILE_VIRTUAL_VOLUME 0x00000040
|
2004-08-31 17:32:29 +00:00
|
|
|
#define FILE_AUTOGENERATED_DEVICE_NAME 0x00000080
|
|
|
|
#define FILE_DEVICE_SECURE_OPEN 0x00000100
|
2002-09-10 00:33:34 +00:00
|
|
|
|
|
|
|
#if (_WIN32_WINNT >= 0x0501)
|
|
|
|
#define INTERNAL_TS_ACTIVE_CONSOLE_ID ( *((volatile ULONG*)(0x7ffe02d8)) )
|
|
|
|
#endif /* (_WIN32_WINNT >= 0x0501) */
|
|
|
|
|
2002-09-12 22:07:02 +00:00
|
|
|
#define LOGONID_CURRENT ((ULONG)-1)
|
2002-09-10 00:33:34 +00:00
|
|
|
|
2002-09-12 22:07:02 +00:00
|
|
|
#define OBJ_INHERIT 0x00000002L
|
|
|
|
#define OBJ_PERMANENT 0x00000010L
|
|
|
|
#define OBJ_EXCLUSIVE 0x00000020L
|
|
|
|
#define OBJ_CASE_INSENSITIVE 0x00000040L
|
|
|
|
#define OBJ_OPENIF 0x00000080L
|
|
|
|
#define OBJ_OPENLINK 0x00000100L
|
|
|
|
#define OBJ_KERNEL_HANDLE 0x00000200L
|
|
|
|
#define OBJ_VALID_ATTRIBUTES 0x000003F2L
|
|
|
|
|
|
|
|
#define SERVERNAME_CURRENT ((HANDLE)NULL)
|
2002-09-10 00:33:34 +00:00
|
|
|
|
2003-04-04 22:26:34 +00:00
|
|
|
typedef void (CALLBACK *PNTAPCFUNC)(ULONG_PTR,ULONG_PTR,ULONG_PTR); /* FIXME: not the right name */
|
2003-10-31 00:16:20 +00:00
|
|
|
typedef void (CALLBACK *PRTL_THREAD_START_ROUTINE)(LPVOID); /* FIXME: not the right name */
|
2003-04-04 22:26:34 +00:00
|
|
|
|
2004-04-07 19:05:34 +00:00
|
|
|
|
|
|
|
/* DbgPrintEx default levels */
|
|
|
|
#define DPFLTR_ERROR_LEVEL 0
|
|
|
|
#define DPFLTR_WARNING_LEVEL 1
|
|
|
|
#define DPFLTR_TRACE_LEVEL 2
|
|
|
|
#define DPFLTR_INFO_LEVEL 3
|
|
|
|
#define DPFLTR_MASK 0x8000000
|
|
|
|
|
2004-11-04 04:52:17 +00:00
|
|
|
/* Well-known LUID values */
|
|
|
|
#define SE_MIN_WELL_KNOWN_PRIVILEGE 2L
|
|
|
|
#define SE_CREATE_TOKEN_PRIVILEGE 2L
|
|
|
|
#define SE_ASSIGNPRIMARYTOKEN_PRIVILEGE 3L
|
|
|
|
#define SE_LOCK_MEMORY_PRIVILEGE 4L
|
|
|
|
#define SE_INCREASE_QUOTA_PRIVILEGE 5L
|
|
|
|
#define SE_UNSOLICITED_INPUT_PRIVILEGE 6L /* obsolete */
|
|
|
|
#define SE_MACHINE_ACCOUNT_PRIVILEGE 6L
|
|
|
|
#define SE_TCB_PRIVILEGE 7L
|
|
|
|
#define SE_SECURITY_PRIVILEGE 8L
|
|
|
|
#define SE_TAKE_OWNERSHIP_PRIVILEGE 9L
|
|
|
|
#define SE_LOAD_DRIVER_PRIVILEGE 10L
|
|
|
|
#define SE_SYSTEM_PROFILE_PRIVILEGE 11L
|
|
|
|
#define SE_SYSTEMTIME_PRIVILEGE 12L
|
|
|
|
#define SE_PROF_SINGLE_PROCESS_PRIVILEGE 13L
|
|
|
|
#define SE_INC_BASE_PRIORITY_PRIVILEGE 14L
|
|
|
|
#define SE_CREATE_PAGEFILE_PRIVILEGE 15L
|
|
|
|
#define SE_CREATE_PERMANENT_PRIVILEGE 16L
|
|
|
|
#define SE_BACKUP_PRIVILEGE 17L
|
|
|
|
#define SE_RESTORE_PRIVILEGE 18L
|
|
|
|
#define SE_SHUTDOWN_PRIVILEGE 19L
|
|
|
|
#define SE_DEBUG_PRIVILEGE 20L
|
|
|
|
#define SE_AUDIT_PRIVILEGE 21L
|
|
|
|
#define SE_SYSTEM_ENVIRONMENT_PRIVILEGE 22L
|
|
|
|
#define SE_CHANGE_NOTIFY_PRIVILLEGE 23L
|
|
|
|
#define SE_REMOTE_SHUTDOWN_PRIVILEGE 24L
|
|
|
|
#define SE_UNDOCK_PRIVILEGE 25L
|
|
|
|
#define SE_SYNC_AGENT_PRIVILEGE 26L
|
|
|
|
#define SE_ENABLE_DELEGATION_PRIVILEGE 27L
|
|
|
|
#define SE_MANAGE_VOLUME_PRIVILEGE 28L
|
|
|
|
#define SE_IMPERSONATE_PRIVILEGE 29L
|
|
|
|
#define SE_CREATE_GLOBAL_PRIVILEGE 30L
|
|
|
|
#define SE_MAX_WELL_KNOWN_PRIVILEGE SE_CREATE_GLOBAL_PRIVILEGE
|
|
|
|
|
2005-02-15 20:47:24 +00:00
|
|
|
|
|
|
|
/* Rtl*Registry* functions structs and defines */
|
|
|
|
#define RTL_REGISTRY_ABSOLUTE 0
|
|
|
|
#define RTL_REGISTRY_SERVICES 1
|
|
|
|
#define RTL_REGISTRY_CONTROL 2
|
|
|
|
#define RTL_REGISTRY_WINDOWS_NT 3
|
|
|
|
#define RTL_REGISTRY_DEVICEMAP 4
|
|
|
|
#define RTL_REGISTRY_USER 5
|
|
|
|
|
|
|
|
#define RTL_REGISTRY_HANDLE 0x40000000
|
|
|
|
#define RTL_REGISTRY_OPTIONAL 0x80000000
|
|
|
|
|
|
|
|
#define RTL_QUERY_REGISTRY_SUBKEY 0x00000001
|
|
|
|
#define RTL_QUERY_REGISTRY_TOPKEY 0x00000002
|
|
|
|
#define RTL_QUERY_REGISTRY_REQUIRED 0x00000004
|
|
|
|
#define RTL_QUERY_REGISTRY_NOVALUE 0x00000008
|
|
|
|
#define RTL_QUERY_REGISTRY_NOEXPAND 0x00000010
|
|
|
|
#define RTL_QUERY_REGISTRY_DIRECT 0x00000020
|
|
|
|
#define RTL_QUERY_REGISTRY_DELETE 0x00000040
|
|
|
|
|
|
|
|
typedef NTSTATUS (WINAPI *PRTL_QUERY_REGISTRY_ROUTINE)( PCWSTR ValueName,
|
|
|
|
ULONG ValueType,
|
|
|
|
PVOID ValueData,
|
|
|
|
ULONG ValueLength,
|
|
|
|
PVOID Context,
|
|
|
|
PVOID EntryContext);
|
|
|
|
|
|
|
|
typedef struct _RTL_QUERY_REGISTRY_TABLE
|
|
|
|
{
|
|
|
|
PRTL_QUERY_REGISTRY_ROUTINE QueryRoutine;
|
|
|
|
ULONG Flags;
|
|
|
|
PWSTR Name;
|
|
|
|
PVOID EntryContext;
|
|
|
|
ULONG DefaultType;
|
|
|
|
PVOID DefaultData;
|
|
|
|
ULONG DefaultLength;
|
|
|
|
} RTL_QUERY_REGISTRY_TABLE, *PRTL_QUERY_REGISTRY_TABLE;
|
|
|
|
|
|
|
|
|
2002-09-10 00:33:34 +00:00
|
|
|
/***********************************************************************
|
|
|
|
* Function declarations
|
|
|
|
*/
|
|
|
|
|
2002-09-12 22:07:02 +00:00
|
|
|
extern LPSTR _strlwr(LPSTR str); /* FIXME: Doesn't belong here */
|
|
|
|
extern LPSTR _strupr(LPSTR str); /* FIXME: Doesn't belong here */
|
|
|
|
|
|
|
|
#if defined(__i386__) && defined(__GNUC__)
|
|
|
|
static inline void WINAPI DbgBreakPoint(void) { __asm__ __volatile__("int3"); }
|
|
|
|
static inline void WINAPI DbgUserBreakPoint(void) { __asm__ __volatile__("int3"); }
|
|
|
|
#else /* __i386__ && __GNUC__ */
|
|
|
|
void WINAPI DbgBreakPoint(void);
|
|
|
|
void WINAPI DbgUserBreakPoint(void);
|
|
|
|
#endif /* __i386__ && __GNUC__ */
|
2004-04-07 19:05:34 +00:00
|
|
|
NTSTATUS WINAPIV DbgPrint(LPCSTR fmt, ...);
|
|
|
|
NTSTATUS WINAPIV DbgPrintEx(ULONG iComponentId, ULONG Level, LPCSTR fmt, ...);
|
2002-09-12 22:07:02 +00:00
|
|
|
|
2003-04-29 23:00:48 +00:00
|
|
|
NTSTATUS WINAPI LdrAccessResource(HMODULE,const IMAGE_RESOURCE_DATA_ENTRY*,void**,PULONG);
|
2003-05-07 03:21:26 +00:00
|
|
|
NTSTATUS WINAPI LdrFindResourceDirectory_U(HMODULE,const LDR_RESOURCE_INFO*,ULONG,const IMAGE_RESOURCE_DIRECTORY**);
|
2003-04-29 23:00:48 +00:00
|
|
|
NTSTATUS WINAPI LdrFindResource_U(HMODULE,const LDR_RESOURCE_INFO*,ULONG,const IMAGE_RESOURCE_DATA_ENTRY**);
|
2003-09-29 20:42:24 +00:00
|
|
|
NTSTATUS WINAPI LdrGetDllHandle(ULONG, ULONG, const UNICODE_STRING*, HMODULE*);
|
|
|
|
NTSTATUS WINAPI LdrGetProcedureAddress(HMODULE, const ANSI_STRING*, ULONG, void**);
|
2004-02-07 01:11:54 +00:00
|
|
|
void WINAPI LdrInitializeThunk(HANDLE,ULONG,ULONG,ULONG);
|
2003-09-29 20:42:24 +00:00
|
|
|
NTSTATUS WINAPI LdrLoadDll(LPCWSTR, DWORD, const UNICODE_STRING*, HMODULE*);
|
2003-05-08 04:13:26 +00:00
|
|
|
void WINAPI LdrShutdownProcess(void);
|
|
|
|
void WINAPI LdrShutdownThread(void);
|
2004-12-22 15:31:16 +00:00
|
|
|
NTSTATUS WINAPI NtAccessCheck(PSECURITY_DESCRIPTOR,HANDLE,ACCESS_MASK,PGENERIC_MAPPING,PPRIVILEGE_SET,PULONG,PULONG,NTSTATUS*);
|
2004-08-27 19:11:37 +00:00
|
|
|
NTSTATUS WINAPI NtAdjustGroupsToken(HANDLE,BOOLEAN,PTOKEN_GROUPS,ULONG,PTOKEN_GROUPS,PULONG);
|
2002-09-12 22:07:02 +00:00
|
|
|
NTSTATUS WINAPI NtAdjustPrivilegesToken(HANDLE,BOOLEAN,PTOKEN_PRIVILEGES,DWORD,PTOKEN_PRIVILEGES,PDWORD);
|
2004-08-27 19:11:37 +00:00
|
|
|
NTSTATUS WINAPI NtAlertThread(HANDLE ThreadHandle);
|
2004-11-04 04:52:17 +00:00
|
|
|
NTSTATUS WINAPI NtAllocateLocallyUniqueId(PLUID lpLuid);
|
2004-10-11 20:59:06 +00:00
|
|
|
NTSTATUS WINAPI NtAllocateVirtualMemory(HANDLE,PVOID*,ULONG,ULONG*,ULONG,ULONG);
|
2004-08-27 19:11:37 +00:00
|
|
|
NTSTATUS WINAPI NtCancelIoFile(HANDLE,PIO_STATUS_BLOCK);
|
2003-05-20 04:00:42 +00:00
|
|
|
NTSTATUS WINAPI NtCancelTimer(HANDLE, BOOLEAN*);
|
2002-09-12 22:07:02 +00:00
|
|
|
NTSTATUS WINAPI NtClearEvent(HANDLE);
|
|
|
|
NTSTATUS WINAPI NtClose(HANDLE);
|
|
|
|
NTSTATUS WINAPI NtCreateEvent(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES *,BOOLEAN,BOOLEAN);
|
|
|
|
NTSTATUS WINAPI NtCreateFile(PHANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES,PIO_STATUS_BLOCK,PLARGE_INTEGER,ULONG,ULONG,ULONG,ULONG,PVOID,ULONG);
|
2004-08-20 19:24:33 +00:00
|
|
|
NTSTATUS WINAPI NtCreateIoCompletion(PHANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES,ULONG);
|
2002-10-25 19:14:29 +00:00
|
|
|
NTSTATUS WINAPI NtCreateKey(PHKEY,ACCESS_MASK,const OBJECT_ATTRIBUTES*,ULONG,const UNICODE_STRING*,ULONG,PULONG);
|
2005-03-28 10:03:56 +00:00
|
|
|
NTSTATUS WINAPI NtCreateMailslotFile(PHANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES,PIO_STATUS_BLOCK,ULONG,ULONG,ULONG,PLARGE_INTEGER);
|
2004-12-02 18:05:37 +00:00
|
|
|
NTSTATUS WINAPI NtCreateMutant(HANDLE*,ACCESS_MASK,const OBJECT_ATTRIBUTES*,BOOLEAN);
|
2004-08-16 21:08:38 +00:00
|
|
|
NTSTATUS WINAPI NtCreateNamedPipeFile(PHANDLE,ULONG,POBJECT_ATTRIBUTES,PIO_STATUS_BLOCK,ULONG,ULONG,ULONG,ULONG,ULONG,ULONG,ULONG,ULONG,ULONG,PLARGE_INTEGER);
|
2002-09-17 18:54:42 +00:00
|
|
|
NTSTATUS WINAPI NtCreateSection(HANDLE*,ACCESS_MASK,const OBJECT_ATTRIBUTES*,const LARGE_INTEGER*,ULONG,ULONG,HANDLE);
|
2004-12-02 18:05:37 +00:00
|
|
|
NTSTATUS WINAPI NtCreateSemaphore(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES*,LONG,LONG);
|
2003-05-20 04:00:42 +00:00
|
|
|
NTSTATUS WINAPI NtCreateTimer(HANDLE*, ACCESS_MASK, const OBJECT_ATTRIBUTES*, TIMER_TYPE);
|
2003-06-30 21:00:15 +00:00
|
|
|
NTSTATUS WINAPI NtDelayExecution(BOOLEAN,const LARGE_INTEGER*);
|
2004-08-27 19:11:37 +00:00
|
|
|
NTSTATUS WINAPI NtDeleteFile(POBJECT_ATTRIBUTES);
|
2002-10-25 19:14:29 +00:00
|
|
|
NTSTATUS WINAPI NtDeleteKey(HKEY);
|
|
|
|
NTSTATUS WINAPI NtDeleteValueKey(HKEY,const UNICODE_STRING *);
|
2002-09-12 22:07:02 +00:00
|
|
|
NTSTATUS WINAPI NtDeviceIoControlFile(HANDLE,HANDLE,PIO_APC_ROUTINE,PVOID,PIO_STATUS_BLOCK,ULONG,PVOID,ULONG,PVOID,ULONG);
|
2002-09-16 19:32:50 +00:00
|
|
|
NTSTATUS WINAPI NtDuplicateObject(HANDLE,HANDLE,HANDLE,PHANDLE,ACCESS_MASK,ULONG,ULONG);
|
2005-02-11 11:52:06 +00:00
|
|
|
NTSTATUS WINAPI NtDuplicateToken(HANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES,SECURITY_IMPERSONATION_LEVEL,TOKEN_TYPE,PHANDLE);
|
2002-10-25 19:14:29 +00:00
|
|
|
NTSTATUS WINAPI NtEnumerateKey(HKEY,ULONG,KEY_INFORMATION_CLASS,void *,DWORD,DWORD *);
|
|
|
|
NTSTATUS WINAPI NtEnumerateValueKey(HKEY,ULONG,KEY_VALUE_INFORMATION_CLASS,PVOID,ULONG,PULONG);
|
2003-04-22 04:04:17 +00:00
|
|
|
NTSTATUS WINAPI NtFlushBuffersFile(HANDLE,IO_STATUS_BLOCK*);
|
2004-08-04 18:15:04 +00:00
|
|
|
NTSTATUS WINAPI NtFlushInstructionCache(HANDLE,LPCVOID,ULONG);
|
2002-10-25 19:14:29 +00:00
|
|
|
NTSTATUS WINAPI NtFlushKey(HKEY);
|
2002-09-17 18:54:42 +00:00
|
|
|
NTSTATUS WINAPI NtFlushVirtualMemory(HANDLE,LPCVOID*,ULONG*,ULONG);
|
|
|
|
NTSTATUS WINAPI NtFreeVirtualMemory(HANDLE,PVOID*,ULONG*,ULONG);
|
2003-04-04 22:26:34 +00:00
|
|
|
NTSTATUS WINAPI NtGetContextThread(HANDLE,CONTEXT*);
|
2004-04-07 19:05:34 +00:00
|
|
|
NTSTATUS WINAPI NtImpersonateAnonymousToken(HANDLE);
|
|
|
|
NTSTATUS WINAPI NtImpersonateClientOfPort(HANDLE,PPORT_MESSAGE);
|
|
|
|
NTSTATUS WINAPI NtImpersonateThread(HANDLE,HANDLE,PSECURITY_QUALITY_OF_SERVICE);
|
2005-01-24 12:49:53 +00:00
|
|
|
NTSTATUS WINAPI NtLoadDriver(const UNICODE_STRING *);
|
2005-03-29 11:38:58 +00:00
|
|
|
NTSTATUS WINAPI NtLoadKey(const OBJECT_ATTRIBUTES *,OBJECT_ATTRIBUTES *);
|
2003-06-24 02:32:01 +00:00
|
|
|
NTSTATUS WINAPI NtLockFile(HANDLE,HANDLE,PIO_APC_ROUTINE,void*,PIO_STATUS_BLOCK,PLARGE_INTEGER,PLARGE_INTEGER,ULONG*,BOOLEAN,BOOLEAN);
|
2002-09-17 18:54:42 +00:00
|
|
|
NTSTATUS WINAPI NtLockVirtualMemory(HANDLE,PVOID*,ULONG*,ULONG);
|
|
|
|
NTSTATUS WINAPI NtMapViewOfSection(HANDLE,HANDLE,PVOID*,ULONG,ULONG,const LARGE_INTEGER*,ULONG*,SECTION_INHERIT,ULONG,ULONG);
|
2002-10-25 19:14:29 +00:00
|
|
|
NTSTATUS WINAPI NtNotifyChangeKey(HKEY,HANDLE,PIO_APC_ROUTINE,PVOID,PIO_STATUS_BLOCK,ULONG,BOOLEAN,PVOID,ULONG,BOOLEAN);
|
2002-09-12 22:07:02 +00:00
|
|
|
NTSTATUS WINAPI NtOpenEvent(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES *);
|
|
|
|
NTSTATUS WINAPI NtOpenFile(PHANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES,PIO_STATUS_BLOCK,ULONG,ULONG);
|
2004-08-20 19:24:33 +00:00
|
|
|
NTSTATUS WINAPI NtOpenIoCompletion(PHANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES);
|
2002-10-25 19:14:29 +00:00
|
|
|
NTSTATUS WINAPI NtOpenKey(PHKEY,ACCESS_MASK,const OBJECT_ATTRIBUTES *);
|
2004-12-02 18:05:37 +00:00
|
|
|
NTSTATUS WINAPI NtOpenMutant(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES*);
|
2002-09-12 22:07:02 +00:00
|
|
|
NTSTATUS WINAPI NtOpenProcessToken(HANDLE,DWORD,HANDLE *);
|
2002-09-17 18:54:42 +00:00
|
|
|
NTSTATUS WINAPI NtOpenSection(HANDLE*,ACCESS_MASK,const OBJECT_ATTRIBUTES*);
|
2004-12-02 18:05:37 +00:00
|
|
|
NTSTATUS WINAPI NtOpenSemaphore(PHANDLE,ACCESS_MASK,const OBJECT_ATTRIBUTES*);
|
2003-04-04 22:26:34 +00:00
|
|
|
NTSTATUS WINAPI NtOpenThread(HANDLE*,ACCESS_MASK,const OBJECT_ATTRIBUTES*,const CLIENT_ID*);
|
2002-09-12 22:07:02 +00:00
|
|
|
NTSTATUS WINAPI NtOpenThreadToken(HANDLE,DWORD,BOOLEAN,HANDLE *);
|
2003-05-20 04:00:42 +00:00
|
|
|
NTSTATUS WINAPI NtOpenTimer(HANDLE*, ACCESS_MASK, const OBJECT_ATTRIBUTES*);
|
2002-09-17 18:54:42 +00:00
|
|
|
NTSTATUS WINAPI NtProtectVirtualMemory(HANDLE,PVOID*,ULONG*,ULONG,ULONG*);
|
2002-09-12 22:07:02 +00:00
|
|
|
NTSTATUS WINAPI NtPulseEvent(HANDLE,PULONG);
|
2003-04-04 22:26:34 +00:00
|
|
|
NTSTATUS WINAPI NtQueueApcThread(HANDLE,PNTAPCFUNC,ULONG_PTR,ULONG_PTR,ULONG_PTR);
|
2004-04-20 00:36:29 +00:00
|
|
|
NTSTATUS WINAPI NtQueryAttributesFile(const OBJECT_ATTRIBUTES*,FILE_BASIC_INFORMATION*);
|
2003-04-29 23:00:48 +00:00
|
|
|
NTSTATUS WINAPI NtQueryDefaultLocale(BOOLEAN,LCID*);
|
2004-07-30 01:45:16 +00:00
|
|
|
NTSTATUS WINAPI NtQueryDefaultUILanguage(LANGID*);
|
2004-03-16 01:32:02 +00:00
|
|
|
NTSTATUS WINAPI NtQueryDirectoryFile(HANDLE,HANDLE,PIO_APC_ROUTINE,PVOID,PIO_STATUS_BLOCK,PVOID,ULONG,FILE_INFORMATION_CLASS,BOOLEAN,PUNICODE_STRING,BOOLEAN);
|
2004-08-20 19:24:33 +00:00
|
|
|
NTSTATUS WINAPI NtQueryEaFile(HANDLE,PIO_STATUS_BLOCK,PVOID,ULONG,BOOLEAN,PVOID,ULONG,PVOID,BOOLEAN);
|
2004-04-20 04:06:49 +00:00
|
|
|
NTSTATUS WINAPI NtQueryFullAttributesFile(const OBJECT_ATTRIBUTES*,FILE_NETWORK_OPEN_INFORMATION*);
|
2003-06-24 02:32:01 +00:00
|
|
|
NTSTATUS WINAPI NtQueryInformationFile(HANDLE,PIO_STATUS_BLOCK,PVOID,LONG,FILE_INFORMATION_CLASS);
|
2002-09-12 22:07:02 +00:00
|
|
|
NTSTATUS WINAPI NtQueryInformationProcess(HANDLE,PROCESSINFOCLASS,PVOID,ULONG,PULONG);
|
|
|
|
NTSTATUS WINAPI NtQueryInformationThread(HANDLE,THREADINFOCLASS,PVOID,ULONG,PULONG);
|
|
|
|
NTSTATUS WINAPI NtQueryInformationToken(HANDLE,DWORD,LPVOID,DWORD,LPDWORD);
|
2004-07-30 01:45:16 +00:00
|
|
|
NTSTATUS WINAPI NtQueryInstallUILanguage(LANGID*);
|
2002-10-25 19:14:29 +00:00
|
|
|
NTSTATUS WINAPI NtQueryKey(HKEY,KEY_INFORMATION_CLASS,void *,DWORD,DWORD *);
|
|
|
|
NTSTATUS WINAPI NtQueryMultipleValueKey(HKEY,PVALENTW,ULONG,PVOID,ULONG,PULONG);
|
2003-05-20 19:20:42 +00:00
|
|
|
NTSTATUS WINAPI NtQueryObject(HANDLE, OBJECT_INFORMATION_CLASS, PVOID, ULONG, PULONG);
|
2005-01-26 20:41:36 +00:00
|
|
|
NTSTATUS WINAPI NtQueryPerformanceCounter(PLARGE_INTEGER, PLARGE_INTEGER);
|
2002-09-12 22:07:02 +00:00
|
|
|
NTSTATUS WINAPI NtQuerySecurityObject(HANDLE,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,ULONG,PULONG);
|
|
|
|
NTSTATUS WINAPI NtQuerySystemInformation(SYSTEM_INFORMATION_CLASS,PVOID,ULONG,PULONG);
|
|
|
|
NTSTATUS WINAPI NtQuerySystemTime(PLARGE_INTEGER);
|
2004-12-13 21:10:58 +00:00
|
|
|
NTSTATUS WINAPI NtQueryTimer(HANDLE,TIMER_INFORMATION_CLASS,PVOID,ULONG,PULONG);
|
2002-10-25 19:14:29 +00:00
|
|
|
NTSTATUS WINAPI NtQueryValueKey(HKEY,const UNICODE_STRING *,KEY_VALUE_INFORMATION_CLASS,void *,DWORD,DWORD *);
|
2002-09-17 18:54:42 +00:00
|
|
|
NTSTATUS WINAPI NtQueryVirtualMemory(HANDLE,LPCVOID,MEMORY_INFORMATION_CLASS,PVOID,ULONG,ULONG*);
|
2004-04-06 23:13:47 +00:00
|
|
|
NTSTATUS WINAPI NtQueryVolumeInformationFile(HANDLE,PIO_STATUS_BLOCK,PVOID,ULONG,FS_INFORMATION_CLASS);
|
2002-09-12 22:07:02 +00:00
|
|
|
void WINAPI NtRaiseException(PEXCEPTION_RECORD,PCONTEXT,BOOL);
|
|
|
|
NTSTATUS WINAPI NtReadFile(HANDLE,HANDLE,PIO_APC_ROUTINE,PVOID,PIO_STATUS_BLOCK,PVOID,ULONG,PLARGE_INTEGER,PULONG);
|
2003-07-08 21:18:45 +00:00
|
|
|
NTSTATUS WINAPI NtReadVirtualMemory(HANDLE,const void*,void*,SIZE_T,SIZE_T*);
|
2004-12-02 18:05:37 +00:00
|
|
|
NTSTATUS WINAPI NtReleaseMutant(HANDLE,PLONG);
|
2002-09-12 22:07:02 +00:00
|
|
|
NTSTATUS WINAPI NtReleaseSemaphore(HANDLE,ULONG,PULONG);
|
2004-08-20 19:24:33 +00:00
|
|
|
NTSTATUS WINAPI NtRemoveIoCompletion(HANDLE,PULONG,PULONG,PIO_STATUS_BLOCK,PLARGE_INTEGER);
|
2003-04-04 22:26:34 +00:00
|
|
|
NTSTATUS WINAPI NtReplaceKey(POBJECT_ATTRIBUTES,HKEY,POBJECT_ATTRIBUTES);
|
2002-09-12 22:07:02 +00:00
|
|
|
NTSTATUS WINAPI NtResetEvent(HANDLE,PULONG);
|
2002-10-25 19:14:29 +00:00
|
|
|
NTSTATUS WINAPI NtRestoreKey(HKEY,HANDLE,ULONG);
|
2003-04-04 22:26:34 +00:00
|
|
|
NTSTATUS WINAPI NtResumeThread(HANDLE,PULONG);
|
2002-10-25 19:14:29 +00:00
|
|
|
NTSTATUS WINAPI NtSaveKey(HKEY,HANDLE);
|
2003-04-04 22:26:34 +00:00
|
|
|
NTSTATUS WINAPI NtSetContextThread(HANDLE,const CONTEXT*);
|
2003-04-29 23:00:48 +00:00
|
|
|
NTSTATUS WINAPI NtSetDefaultLocale(BOOLEAN,LCID);
|
2004-07-30 01:45:16 +00:00
|
|
|
NTSTATUS WINAPI NtSetDefaultUILanguage(LANGID);
|
2004-08-20 19:24:33 +00:00
|
|
|
NTSTATUS WINAPI NtSetEaFile(HANDLE,PIO_STATUS_BLOCK,PVOID,ULONG);
|
2002-09-12 22:07:02 +00:00
|
|
|
NTSTATUS WINAPI NtSetEvent(HANDLE,PULONG);
|
2003-06-24 02:32:01 +00:00
|
|
|
NTSTATUS WINAPI NtSetInformationFile(HANDLE,PIO_STATUS_BLOCK,PVOID,ULONG,FILE_INFORMATION_CLASS);
|
2002-10-25 19:14:29 +00:00
|
|
|
NTSTATUS WINAPI NtSetInformationKey(HKEY,const int,PVOID,ULONG);
|
2003-05-20 19:20:42 +00:00
|
|
|
NTSTATUS WINAPI NtSetInformationObject(HANDLE, OBJECT_INFORMATION_CLASS, PVOID, ULONG);
|
2003-09-08 19:02:01 +00:00
|
|
|
NTSTATUS WINAPI NtSetInformationThread(HANDLE,THREADINFOCLASS,LPCVOID,ULONG);
|
2004-08-17 22:09:55 +00:00
|
|
|
NTSTATUS WINAPI NtSetInformationToken(HANDLE,TOKEN_INFORMATION_CLASS,PVOID,ULONG);
|
2004-08-20 19:24:33 +00:00
|
|
|
NTSTATUS WINAPI NtSetIoCompletion(HANDLE,ULONG,ULONG,NTSTATUS,ULONG);
|
2002-09-12 22:07:02 +00:00
|
|
|
NTSTATUS WINAPI NtSetSecurityObject(HANDLE,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR);
|
2002-11-25 01:12:39 +00:00
|
|
|
NTSTATUS WINAPI NtSetSystemTime(const LARGE_INTEGER*,LARGE_INTEGER*);
|
2003-05-20 04:00:42 +00:00
|
|
|
NTSTATUS WINAPI NtSetTimer(HANDLE, const LARGE_INTEGER*, PTIMERAPCROUTINE, PVOID, BOOLEAN, ULONG, BOOLEAN*);
|
2002-10-25 19:14:29 +00:00
|
|
|
NTSTATUS WINAPI NtSetValueKey(HKEY,const UNICODE_STRING *,ULONG,ULONG,const void *,ULONG);
|
2003-04-04 22:26:34 +00:00
|
|
|
NTSTATUS WINAPI NtSuspendThread(HANDLE,PULONG);
|
2002-09-12 22:07:02 +00:00
|
|
|
NTSTATUS WINAPI NtTerminateProcess(HANDLE,LONG);
|
|
|
|
NTSTATUS WINAPI NtTerminateThread(HANDLE,LONG);
|
2005-01-24 12:49:53 +00:00
|
|
|
NTSTATUS WINAPI NtUnloadDriver(const UNICODE_STRING *);
|
2002-10-25 19:14:29 +00:00
|
|
|
NTSTATUS WINAPI NtUnloadKey(HKEY);
|
2003-06-24 02:32:01 +00:00
|
|
|
NTSTATUS WINAPI NtUnlockFile(HANDLE,PIO_STATUS_BLOCK,PLARGE_INTEGER,PLARGE_INTEGER,PULONG);
|
2002-09-17 18:54:42 +00:00
|
|
|
NTSTATUS WINAPI NtUnlockVirtualMemory(HANDLE,PVOID*,ULONG*,ULONG);
|
|
|
|
NTSTATUS WINAPI NtUnmapViewOfSection(HANDLE,PVOID);
|
2003-06-30 21:00:15 +00:00
|
|
|
NTSTATUS WINAPI NtWaitForSingleObject(HANDLE,BOOLEAN,const LARGE_INTEGER*);
|
|
|
|
NTSTATUS WINAPI NtWaitForMultipleObjects(ULONG,const HANDLE*,BOOLEAN,BOOLEAN,const LARGE_INTEGER*);
|
2003-06-26 02:08:17 +00:00
|
|
|
NTSTATUS WINAPI NtWriteFile(HANDLE,HANDLE,PIO_APC_ROUTINE,PVOID,PIO_STATUS_BLOCK,const void*,ULONG,PLARGE_INTEGER,PULONG);
|
2003-07-08 21:18:45 +00:00
|
|
|
NTSTATUS WINAPI NtWriteVirtualMemory(HANDLE,void*,const void*,SIZE_T,SIZE_T*);
|
2004-10-11 20:11:01 +00:00
|
|
|
NTSTATUS WINAPI NtYieldExecution(void);
|
2002-09-12 22:07:02 +00:00
|
|
|
|
|
|
|
void WINAPI RtlAcquirePebLock(void);
|
|
|
|
BYTE WINAPI RtlAcquireResourceExclusive(LPRTL_RWLOCK,BYTE);
|
|
|
|
BYTE WINAPI RtlAcquireResourceShared(LPRTL_RWLOCK,BYTE);
|
|
|
|
NTSTATUS WINAPI RtlAddAce(PACL,DWORD,DWORD,PACE_HEADER,DWORD);
|
2003-05-01 00:29:26 +00:00
|
|
|
NTSTATUS WINAPI RtlAddAccessAllowedAce(PACL,DWORD,DWORD,PSID);
|
2003-06-16 19:44:06 +00:00
|
|
|
NTSTATUS WINAPI RtlAddAccessAllowedAceEx(PACL,DWORD,DWORD,DWORD,PSID);
|
2003-05-01 00:29:26 +00:00
|
|
|
NTSTATUS WINAPI RtlAddAccessDeniedAce(PACL,DWORD,DWORD,PSID);
|
2003-06-16 19:44:06 +00:00
|
|
|
NTSTATUS WINAPI RtlAddAccessDeniedAceEx(PACL,DWORD,DWORD,DWORD,PSID);
|
2003-10-28 21:22:50 +00:00
|
|
|
PVOID WINAPI RtlAddVectoredExceptionHandler(ULONG,PVECTORED_EXCEPTION_HANDLER);
|
2002-09-12 22:07:02 +00:00
|
|
|
DWORD WINAPI RtlAdjustPrivilege(DWORD,DWORD,DWORD,DWORD);
|
2004-12-22 15:31:16 +00:00
|
|
|
NTSTATUS WINAPI RtlAllocateAndInitializeSid(PSID_IDENTIFIER_AUTHORITY,BYTE,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,PSID *);
|
2004-12-07 14:47:13 +00:00
|
|
|
RTL_HANDLE * WINAPI RtlAllocateHandle(RTL_HANDLE_TABLE *,ULONG *);
|
2002-09-12 22:07:02 +00:00
|
|
|
PVOID WINAPI RtlAllocateHeap(HANDLE,ULONG,ULONG);
|
|
|
|
DWORD WINAPI RtlAnsiStringToUnicodeSize(const STRING *);
|
|
|
|
NTSTATUS WINAPI RtlAnsiStringToUnicodeString(PUNICODE_STRING,PCANSI_STRING,BOOLEAN);
|
|
|
|
NTSTATUS WINAPI RtlAppendAsciizToString(STRING *,LPCSTR);
|
|
|
|
NTSTATUS WINAPI RtlAppendStringToString(STRING *,const STRING *);
|
|
|
|
NTSTATUS WINAPI RtlAppendUnicodeStringToString(UNICODE_STRING *,const UNICODE_STRING *);
|
|
|
|
NTSTATUS WINAPI RtlAppendUnicodeToString(UNICODE_STRING *,LPCWSTR);
|
Implemented RtlRandom, RtlAreAllAccessesGranted,
RtlAreAnyAccessesGranted, RtlCopyLuid, RtlEqualLuid, RtlMapGenericMask
and RtlCopyLuidAndAttributesArray.
Documentation updates for RtlExtendedMagicDivide, RtlUniform,
RtlUnicodeStringToAnsiString, RtlAppendAsciizToString,
RtlAppendStringToString, RtlAppendUnicodeToString and
RtlAppendUnicodeStringToString.
2003-04-08 00:55:36 +00:00
|
|
|
BOOLEAN WINAPI RtlAreAllAccessesGranted(ACCESS_MASK,ACCESS_MASK);
|
|
|
|
BOOLEAN WINAPI RtlAreAnyAccessesGranted(ACCESS_MASK,ACCESS_MASK);
|
2002-09-12 22:07:02 +00:00
|
|
|
BOOLEAN WINAPI RtlAreBitsSet(PCRTL_BITMAP,ULONG,ULONG);
|
|
|
|
BOOLEAN WINAPI RtlAreBitsClear(PCRTL_BITMAP,ULONG,ULONG);
|
|
|
|
|
|
|
|
NTSTATUS WINAPI RtlCharToInteger(PCSZ,ULONG,PULONG);
|
2005-02-15 20:47:24 +00:00
|
|
|
NTSTATUS WINAPI RtlCheckRegistryKey(ULONG, PWSTR);
|
2002-09-12 22:07:02 +00:00
|
|
|
void WINAPI RtlClearAllBits(PRTL_BITMAP);
|
|
|
|
void WINAPI RtlClearBits(PRTL_BITMAP,ULONG,ULONG);
|
|
|
|
ULONG WINAPI RtlCompactHeap(HANDLE,ULONG);
|
|
|
|
LONG WINAPI RtlCompareString(const STRING*,const STRING*,BOOLEAN);
|
|
|
|
LONG WINAPI RtlCompareUnicodeString(const UNICODE_STRING*,const UNICODE_STRING*,BOOLEAN);
|
2003-03-18 20:12:07 +00:00
|
|
|
DWORD WINAPI RtlComputeCrc32(DWORD,PBYTE,INT);
|
2002-09-12 22:07:02 +00:00
|
|
|
NTSTATUS WINAPI RtlConvertSidToUnicodeString(PUNICODE_STRING,PSID,BOOLEAN);
|
|
|
|
LONGLONG WINAPI RtlConvertLongToLargeInteger(LONG);
|
|
|
|
ULONGLONG WINAPI RtlConvertUlongToLargeInteger(ULONG);
|
Implemented RtlRandom, RtlAreAllAccessesGranted,
RtlAreAnyAccessesGranted, RtlCopyLuid, RtlEqualLuid, RtlMapGenericMask
and RtlCopyLuidAndAttributesArray.
Documentation updates for RtlExtendedMagicDivide, RtlUniform,
RtlUnicodeStringToAnsiString, RtlAppendAsciizToString,
RtlAppendStringToString, RtlAppendUnicodeToString and
RtlAppendUnicodeStringToString.
2003-04-08 00:55:36 +00:00
|
|
|
void WINAPI RtlCopyLuid(PLUID,const LUID*);
|
|
|
|
void WINAPI RtlCopyLuidAndAttributesArray(ULONG,const LUID_AND_ATTRIBUTES*,PLUID_AND_ATTRIBUTES);
|
Stub implementations for AdjustTokenGroups, AreAllAccessesGranted,
CreatePrivateObjectSecurity, CreateProcessAsUser{A,W},
DestroyPrivateObjectSecurity, DuplicateToken{,Ex},
EnumDependentServices{A,W}, GetEffectiveRightsFromAcl{A,W},
ConvertStringSecurityDescriptorToSecurityDescriptorA. Implementations
for BuildExplicitAccessWithName{A,W},
BuildTrusteeWithObjectsAndName{A,W},
BuildTrusteeWithObjectsAndSid{A,W}.
Correct prototype for InitializeAcl, RtlCopySid and RtlGetAce.
Use the CallWin32ToNt macro only with functions that return an
NTSTATUS.
2004-12-21 16:16:10 +00:00
|
|
|
BOOLEAN WINAPI RtlCopySid(DWORD,PSID,PSID);
|
2002-09-12 22:07:02 +00:00
|
|
|
void WINAPI RtlCopyString(STRING*,const STRING*);
|
|
|
|
void WINAPI RtlCopyUnicodeString(UNICODE_STRING*,const UNICODE_STRING*);
|
|
|
|
NTSTATUS WINAPI RtlCreateAcl(PACL,DWORD,DWORD);
|
2003-05-08 03:47:00 +00:00
|
|
|
NTSTATUS WINAPI RtlCreateEnvironment(BOOLEAN, PWSTR*);
|
2002-09-12 22:07:02 +00:00
|
|
|
HANDLE WINAPI RtlCreateHeap(ULONG,PVOID,ULONG,ULONG,PVOID,PRTL_HEAP_DEFINITION);
|
2003-10-04 03:11:57 +00:00
|
|
|
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*);
|
2002-09-12 22:07:02 +00:00
|
|
|
NTSTATUS WINAPI RtlCreateSecurityDescriptor(PSECURITY_DESCRIPTOR,DWORD);
|
|
|
|
BOOLEAN WINAPI RtlCreateUnicodeString(PUNICODE_STRING,LPCWSTR);
|
|
|
|
BOOLEAN WINAPI RtlCreateUnicodeStringFromAsciiz(PUNICODE_STRING,LPCSTR);
|
2003-10-31 00:16:20 +00:00
|
|
|
NTSTATUS WINAPI RtlCreateUserThread(HANDLE,const SECURITY_DESCRIPTOR*,BOOLEAN,PVOID,SIZE_T,SIZE_T,PRTL_THREAD_START_ROUTINE,void*,HANDLE*,CLIENT_ID*);
|
2002-09-12 22:07:02 +00:00
|
|
|
|
2003-11-11 22:03:24 +00:00
|
|
|
NTSTATUS WINAPI RtlDeleteAce(PACL,DWORD);
|
2002-09-12 22:07:02 +00:00
|
|
|
NTSTATUS WINAPI RtlDeleteCriticalSection(RTL_CRITICAL_SECTION *);
|
2005-02-15 20:47:24 +00:00
|
|
|
NTSTATUS WINAPI RtlDeleteRegistryValue(ULONG, PCWSTR, PCWSTR);
|
2002-09-12 22:07:02 +00:00
|
|
|
void WINAPI RtlDeleteResource(LPRTL_RWLOCK);
|
|
|
|
DWORD WINAPI RtlDeleteSecurityObject(DWORD);
|
2003-10-04 03:11:57 +00:00
|
|
|
PRTL_USER_PROCESS_PARAMETERS WINAPI RtlDeNormalizeProcessParams(RTL_USER_PROCESS_PARAMETERS*);
|
2003-05-08 03:47:00 +00:00
|
|
|
NTSTATUS WINAPI RtlDestroyEnvironment(PWSTR);
|
2004-12-07 14:47:13 +00:00
|
|
|
NTSTATUS WINAPI RtlDestroyHandleTable(RTL_HANDLE_TABLE *);
|
2002-09-12 22:07:02 +00:00
|
|
|
HANDLE WINAPI RtlDestroyHeap(HANDLE);
|
2003-10-04 03:11:57 +00:00
|
|
|
void WINAPI RtlDestroyProcessParameters(RTL_USER_PROCESS_PARAMETERS*);
|
2003-04-12 00:10:13 +00:00
|
|
|
DOS_PATHNAME_TYPE WINAPI RtlDetermineDosPathNameType_U(PCWSTR);
|
2003-06-16 01:24:30 +00:00
|
|
|
BOOLEAN WINAPI RtlDoesFileExists_U(LPCWSTR);
|
2004-04-05 20:21:16 +00:00
|
|
|
BOOLEAN WINAPI RtlDosPathNameToNtPathName_U(PCWSTR,PUNICODE_STRING,PWSTR*,CURDIR*);
|
2003-06-16 01:24:30 +00:00
|
|
|
ULONG WINAPI RtlDosSearchPath_U(LPCWSTR, LPCWSTR, LPCWSTR, ULONG, LPWSTR, LPWSTR*);
|
2003-03-18 20:12:07 +00:00
|
|
|
WCHAR WINAPI RtlDowncaseUnicodeChar(WCHAR);
|
- Implement RtlDowncaseUnicodeString, RtlUniform, iswdigit, iswlower,
iswspace, iswxdigit.
- Fixed RtlInt64ToUnicodeString and RtlIntegerToUnicodeString.
- According to tests RtlAppendUnicodeStringToString leaves the
destination unchanged when the source length is 0 (FIXED).
- Documentation updates in RtlExtendedMagicDivide,
RtlLargeIntegerToChar, RtlInt64ToUnicodeString, RtlUpperChar,
RtlUpperString, RtlUpcaseUnicodeChar, RtlCharToInteger,
RtlIntegerToChar, RtlUnicodeStringToInteger,
RtlIntegerToUnicodeString, _ultoa, _ltoa, _itoa, _ui64toa, _i64toa,
_atoi64, _ultow, _ltow, _itow, _ui64tow, _i64tow, _wtol, _wtoi,
_wtoi64.
2003-03-22 00:20:58 +00:00
|
|
|
NTSTATUS WINAPI RtlDowncaseUnicodeString(UNICODE_STRING*,const UNICODE_STRING*,BOOLEAN);
|
2002-09-12 22:07:02 +00:00
|
|
|
void WINAPI RtlDumpResource(LPRTL_RWLOCK);
|
2003-05-06 18:27:40 +00:00
|
|
|
NTSTATUS WINAPI RtlDuplicateUnicodeString(int,const UNICODE_STRING*,UNICODE_STRING*);
|
2002-09-12 22:07:02 +00:00
|
|
|
|
|
|
|
LONGLONG WINAPI RtlEnlargedIntegerMultiply(INT,INT);
|
|
|
|
ULONGLONG WINAPI RtlEnlargedUnsignedMultiply(UINT,UINT);
|
|
|
|
UINT WINAPI RtlEnlargedUnsignedDivide(ULONGLONG,UINT,UINT *);
|
|
|
|
NTSTATUS WINAPI RtlEnterCriticalSection(RTL_CRITICAL_SECTION *);
|
|
|
|
void WINAPI RtlEraseUnicodeString(UNICODE_STRING*);
|
2003-03-18 20:12:07 +00:00
|
|
|
NTSTATUS WINAPI RtlEqualComputerName(const UNICODE_STRING*,const UNICODE_STRING*);
|
|
|
|
NTSTATUS WINAPI RtlEqualDomainName(const UNICODE_STRING*,const UNICODE_STRING*);
|
Implemented RtlRandom, RtlAreAllAccessesGranted,
RtlAreAnyAccessesGranted, RtlCopyLuid, RtlEqualLuid, RtlMapGenericMask
and RtlCopyLuidAndAttributesArray.
Documentation updates for RtlExtendedMagicDivide, RtlUniform,
RtlUnicodeStringToAnsiString, RtlAppendAsciizToString,
RtlAppendStringToString, RtlAppendUnicodeToString and
RtlAppendUnicodeStringToString.
2003-04-08 00:55:36 +00:00
|
|
|
BOOLEAN WINAPI RtlEqualLuid(const LUID*,const LUID*);
|
2002-09-12 22:07:02 +00:00
|
|
|
BOOL WINAPI RtlEqualPrefixSid(PSID,PSID);
|
|
|
|
BOOL WINAPI RtlEqualSid(PSID,PSID);
|
|
|
|
BOOLEAN WINAPI RtlEqualString(const STRING*,const STRING*,BOOLEAN);
|
|
|
|
BOOLEAN WINAPI RtlEqualUnicodeString(const UNICODE_STRING*,const UNICODE_STRING*,BOOLEAN);
|
2003-05-13 04:45:50 +00:00
|
|
|
NTSTATUS WINAPI RtlExpandEnvironmentStrings_U(PWSTR, const UNICODE_STRING*, UNICODE_STRING*, ULONG*);
|
2002-09-12 22:07:02 +00:00
|
|
|
LONGLONG WINAPI RtlExtendedMagicDivide(LONGLONG,LONGLONG,INT);
|
|
|
|
LONGLONG WINAPI RtlExtendedIntegerMultiply(LONGLONG,INT);
|
|
|
|
LONGLONG WINAPI RtlExtendedLargeIntegerDivide(LONGLONG,INT,INT *);
|
|
|
|
|
2003-05-06 18:27:40 +00:00
|
|
|
NTSTATUS WINAPI RtlFindCharInUnicodeString(int,const UNICODE_STRING*,const UNICODE_STRING*,USHORT*);
|
2002-09-12 22:07:02 +00:00
|
|
|
ULONG WINAPI RtlFindClearBits(PCRTL_BITMAP,ULONG,ULONG);
|
|
|
|
ULONG WINAPI RtlFindClearBitsAndSet(PRTL_BITMAP,ULONG,ULONG);
|
|
|
|
ULONG WINAPI RtlFindClearRuns(PCRTL_BITMAP,PRTL_BITMAP_RUN,ULONG,BOOLEAN);
|
|
|
|
ULONG WINAPI RtlFindLastBackwardRunSet(PCRTL_BITMAP,ULONG,PULONG);
|
|
|
|
ULONG WINAPI RtlFindLastBackwardRunClear(PCRTL_BITMAP,ULONG,PULONG);
|
|
|
|
CCHAR WINAPI RtlFindLeastSignificantBit(ULONGLONG);
|
|
|
|
ULONG WINAPI RtlFindLongestRunSet(PCRTL_BITMAP,PULONG);
|
|
|
|
ULONG WINAPI RtlFindLongestRunClear(PCRTL_BITMAP,PULONG);
|
2003-04-29 23:00:48 +00:00
|
|
|
NTSTATUS WINAPI RtlFindMessage(HMODULE,ULONG,ULONG,ULONG,const MESSAGE_RESOURCE_ENTRY**);
|
2002-09-12 22:07:02 +00:00
|
|
|
CCHAR WINAPI RtlFindMostSignificantBit(ULONGLONG);
|
|
|
|
ULONG WINAPI RtlFindNextForwardRunSet(PCRTL_BITMAP,ULONG,PULONG);
|
|
|
|
ULONG WINAPI RtlFindNextForwardRunClear(PCRTL_BITMAP,ULONG,PULONG);
|
|
|
|
ULONG WINAPI RtlFindSetBits(PCRTL_BITMAP,ULONG,ULONG);
|
|
|
|
ULONG WINAPI RtlFindSetBitsAndClear(PRTL_BITMAP,ULONG,ULONG);
|
|
|
|
ULONG WINAPI RtlFindSetRuns(PCRTL_BITMAP,PRTL_BITMAP_RUN,ULONG,BOOLEAN);
|
|
|
|
BOOLEAN WINAPI RtlFirstFreeAce(PACL,PACE_HEADER *);
|
|
|
|
NTSTATUS WINAPI RtlFormatCurrentUserKeyPath(PUNICODE_STRING);
|
2004-04-20 01:07:23 +00:00
|
|
|
NTSTATUS WINAPI RtlFormatMessage(LPWSTR,UCHAR,BOOLEAN,BOOLEAN,BOOLEAN,va_list *,LPWSTR,ULONG);
|
2002-09-12 22:07:02 +00:00
|
|
|
void WINAPI RtlFreeAnsiString(PANSI_STRING);
|
2004-12-07 14:47:13 +00:00
|
|
|
BOOLEAN WINAPI RtlFreeHandle(RTL_HANDLE_TABLE *,RTL_HANDLE *);
|
2002-09-12 22:07:02 +00:00
|
|
|
BOOLEAN WINAPI RtlFreeHeap(HANDLE,ULONG,PVOID);
|
|
|
|
void WINAPI RtlFreeOemString(POEM_STRING);
|
|
|
|
DWORD WINAPI RtlFreeSid(PSID);
|
|
|
|
void WINAPI RtlFreeUnicodeString(PUNICODE_STRING);
|
|
|
|
|
Stub implementations for AdjustTokenGroups, AreAllAccessesGranted,
CreatePrivateObjectSecurity, CreateProcessAsUser{A,W},
DestroyPrivateObjectSecurity, DuplicateToken{,Ex},
EnumDependentServices{A,W}, GetEffectiveRightsFromAcl{A,W},
ConvertStringSecurityDescriptorToSecurityDescriptorA. Implementations
for BuildExplicitAccessWithName{A,W},
BuildTrusteeWithObjectsAndName{A,W},
BuildTrusteeWithObjectsAndSid{A,W}.
Correct prototype for InitializeAcl, RtlCopySid and RtlGetAce.
Use the CallWin32ToNt macro only with functions that return an
NTSTATUS.
2004-12-21 16:16:10 +00:00
|
|
|
NTSTATUS WINAPI RtlGetAce(PACL,DWORD,LPVOID *);
|
2002-09-12 22:07:02 +00:00
|
|
|
NTSTATUS WINAPI RtlGetControlSecurityDescriptor(PSECURITY_DESCRIPTOR, PSECURITY_DESCRIPTOR_CONTROL,LPDWORD);
|
2003-05-15 04:20:42 +00:00
|
|
|
NTSTATUS WINAPI RtlGetCurrentDirectory_U(ULONG, LPWSTR);
|
2003-04-12 00:10:13 +00:00
|
|
|
NTSTATUS WINAPI RtlGetDaclSecurityDescriptor(PSECURITY_DESCRIPTOR,PBOOLEAN,PACL *,PBOOLEAN);
|
|
|
|
ULONG WINAPI RtlGetFullPathName_U(PCWSTR,ULONG,PWSTR,PWSTR*);
|
2002-09-12 22:07:02 +00:00
|
|
|
NTSTATUS WINAPI RtlGetGroupSecurityDescriptor(PSECURITY_DESCRIPTOR,PSID *,PBOOLEAN);
|
2005-01-04 12:09:32 +00:00
|
|
|
NTSTATUS WINAPI RtlGetLastNtStatus(void);
|
2003-12-10 00:35:44 +00:00
|
|
|
DWORD WINAPI RtlGetLastWin32Error(void);
|
2003-05-15 04:20:42 +00:00
|
|
|
DWORD WINAPI RtlGetLongestNtPathLength(void);
|
2002-09-12 22:07:02 +00:00
|
|
|
BOOLEAN WINAPI RtlGetNtProductType(LPDWORD);
|
|
|
|
NTSTATUS WINAPI RtlGetOwnerSecurityDescriptor(PSECURITY_DESCRIPTOR,PSID *,PBOOLEAN);
|
|
|
|
ULONG WINAPI RtlGetProcessHeaps(ULONG,HANDLE*);
|
|
|
|
NTSTATUS WINAPI RtlGetSaclSecurityDescriptor(PSECURITY_DESCRIPTOR,PBOOLEAN,PACL *,PBOOLEAN);
|
2003-09-24 05:26:00 +00:00
|
|
|
NTSTATUS WINAPI RtlGetVersion(RTL_OSVERSIONINFOEXW*);
|
2002-09-12 22:07:02 +00:00
|
|
|
|
|
|
|
PSID_IDENTIFIER_AUTHORITY WINAPI RtlIdentifierAuthoritySid(PSID);
|
|
|
|
PVOID WINAPI RtlImageDirectoryEntryToData(HMODULE,BOOL,WORD,ULONG *);
|
|
|
|
PIMAGE_NT_HEADERS WINAPI RtlImageNtHeader(HMODULE);
|
|
|
|
PIMAGE_SECTION_HEADER WINAPI RtlImageRvaToSection(const IMAGE_NT_HEADERS *,HMODULE,DWORD);
|
|
|
|
PVOID WINAPI RtlImageRvaToVa(const IMAGE_NT_HEADERS *,HMODULE,DWORD,IMAGE_SECTION_HEADER **);
|
|
|
|
BOOL WINAPI RtlImpersonateSelf(SECURITY_IMPERSONATION_LEVEL);
|
|
|
|
void WINAPI RtlInitString(PSTRING,PCSZ);
|
|
|
|
void WINAPI RtlInitAnsiString(PANSI_STRING,PCSZ);
|
|
|
|
void WINAPI RtlInitUnicodeString(PUNICODE_STRING,PCWSTR);
|
2003-05-06 18:27:40 +00:00
|
|
|
NTSTATUS WINAPI RtlInitUnicodeStringEx(PUNICODE_STRING,PCWSTR);
|
2002-09-12 22:07:02 +00:00
|
|
|
NTSTATUS WINAPI RtlInitializeCriticalSection(RTL_CRITICAL_SECTION *);
|
|
|
|
NTSTATUS WINAPI RtlInitializeCriticalSectionAndSpinCount(RTL_CRITICAL_SECTION *,DWORD);
|
2004-08-23 18:52:54 +00:00
|
|
|
void WINAPI RtlInitializeBitMap(PRTL_BITMAP,PULONG,ULONG);
|
2004-12-07 14:47:13 +00:00
|
|
|
void WINAPI RtlInitializeHandleTable(ULONG,ULONG,RTL_HANDLE_TABLE *);
|
2002-09-12 22:07:02 +00:00
|
|
|
void WINAPI RtlInitializeResource(LPRTL_RWLOCK);
|
|
|
|
BOOL WINAPI RtlInitializeSid(PSID,PSID_IDENTIFIER_AUTHORITY,BYTE);
|
|
|
|
|
2003-02-19 03:39:46 +00:00
|
|
|
NTSTATUS WINAPI RtlInt64ToUnicodeString(ULONGLONG,ULONG,UNICODE_STRING *);
|
|
|
|
NTSTATUS WINAPI RtlIntegerToChar(ULONG,ULONG,ULONG,PCHAR);
|
|
|
|
NTSTATUS WINAPI RtlIntegerToUnicodeString(ULONG,ULONG,UNICODE_STRING *);
|
2003-04-12 00:10:13 +00:00
|
|
|
ULONG WINAPI RtlIsDosDeviceName_U(PCWSTR);
|
2003-04-16 23:15:29 +00:00
|
|
|
BOOLEAN WINAPI RtlIsNameLegalDOS8Dot3(const UNICODE_STRING*,POEM_STRING,PBOOLEAN);
|
2002-09-12 22:07:02 +00:00
|
|
|
DWORD WINAPI RtlIsTextUnicode(LPVOID,DWORD,DWORD *);
|
2004-12-07 14:47:13 +00:00
|
|
|
BOOLEAN WINAPI RtlIsValidHandle(const RTL_HANDLE_TABLE *, const RTL_HANDLE *);
|
|
|
|
BOOLEAN WINAPI RtlIsValidIndexHandle(const RTL_HANDLE_TABLE *, ULONG Index, RTL_HANDLE **);
|
2002-09-12 22:07:02 +00:00
|
|
|
|
|
|
|
LONGLONG WINAPI RtlLargeIntegerAdd(LONGLONG,LONGLONG);
|
|
|
|
LONGLONG WINAPI RtlLargeIntegerArithmeticShift(LONGLONG,INT);
|
|
|
|
ULONGLONG WINAPI RtlLargeIntegerDivide( ULONGLONG,ULONGLONG,ULONGLONG *);
|
|
|
|
LONGLONG WINAPI RtlLargeIntegerNegate(LONGLONG);
|
|
|
|
LONGLONG WINAPI RtlLargeIntegerShiftLeft(LONGLONG,INT);
|
|
|
|
LONGLONG WINAPI RtlLargeIntegerShiftRight(LONGLONG,INT);
|
|
|
|
LONGLONG WINAPI RtlLargeIntegerSubtract(LONGLONG,LONGLONG);
|
2003-02-19 03:39:46 +00:00
|
|
|
NTSTATUS WINAPI RtlLargeIntegerToChar(const ULONGLONG *,ULONG,ULONG,PCHAR);
|
2002-09-12 22:07:02 +00:00
|
|
|
NTSTATUS WINAPI RtlLeaveCriticalSection(RTL_CRITICAL_SECTION *);
|
|
|
|
DWORD WINAPI RtlLengthRequiredSid(DWORD);
|
|
|
|
ULONG WINAPI RtlLengthSecurityDescriptor(PSECURITY_DESCRIPTOR);
|
|
|
|
DWORD WINAPI RtlLengthSid(PSID);
|
2002-12-11 00:19:56 +00:00
|
|
|
NTSTATUS WINAPI RtlLocalTimeToSystemTime(const LARGE_INTEGER*,PLARGE_INTEGER);
|
2002-09-12 22:07:02 +00:00
|
|
|
BOOLEAN WINAPI RtlLockHeap(HANDLE);
|
|
|
|
|
|
|
|
NTSTATUS WINAPI RtlMakeSelfRelativeSD(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR,LPDWORD);
|
Implemented RtlRandom, RtlAreAllAccessesGranted,
RtlAreAnyAccessesGranted, RtlCopyLuid, RtlEqualLuid, RtlMapGenericMask
and RtlCopyLuidAndAttributesArray.
Documentation updates for RtlExtendedMagicDivide, RtlUniform,
RtlUnicodeStringToAnsiString, RtlAppendAsciizToString,
RtlAppendStringToString, RtlAppendUnicodeToString and
RtlAppendUnicodeStringToString.
2003-04-08 00:55:36 +00:00
|
|
|
void WINAPI RtlMapGenericMask(PACCESS_MASK,const GENERIC_MAPPING*);
|
2002-09-12 22:07:02 +00:00
|
|
|
NTSTATUS WINAPI RtlMultiByteToUnicodeN(LPWSTR,DWORD,LPDWORD,LPCSTR,DWORD);
|
|
|
|
NTSTATUS WINAPI RtlMultiByteToUnicodeSize(DWORD*,LPCSTR,UINT);
|
|
|
|
|
|
|
|
DWORD WINAPI RtlNewSecurityObject(DWORD,DWORD,DWORD,DWORD,DWORD,DWORD);
|
2003-10-04 03:11:57 +00:00
|
|
|
PRTL_USER_PROCESS_PARAMETERS WINAPI RtlNormalizeProcessParams(RTL_USER_PROCESS_PARAMETERS*);
|
2002-09-12 22:07:02 +00:00
|
|
|
ULONG WINAPI RtlNtStatusToDosError(NTSTATUS);
|
2003-12-10 00:35:44 +00:00
|
|
|
ULONG WINAPI RtlNtStatusToDosErrorNoTeb(NTSTATUS);
|
2002-09-12 22:07:02 +00:00
|
|
|
ULONG WINAPI RtlNumberOfSetBits(PCRTL_BITMAP);
|
|
|
|
ULONG WINAPI RtlNumberOfClearBits(PCRTL_BITMAP);
|
2002-09-10 00:33:34 +00:00
|
|
|
|
2002-09-12 22:07:02 +00:00
|
|
|
UINT WINAPI RtlOemStringToUnicodeSize(const STRING*);
|
|
|
|
NTSTATUS WINAPI RtlOemStringToUnicodeString(UNICODE_STRING*,const STRING*,BOOLEAN);
|
|
|
|
NTSTATUS WINAPI RtlOemToUnicodeN(LPWSTR,DWORD,LPDWORD,LPCSTR,DWORD);
|
2002-10-25 19:14:29 +00:00
|
|
|
DWORD WINAPI RtlOpenCurrentUser(ACCESS_MASK,PHKEY);
|
2002-09-12 22:07:02 +00:00
|
|
|
|
|
|
|
BOOLEAN WINAPI RtlPrefixString(const STRING*,const STRING*,BOOLEAN);
|
|
|
|
BOOLEAN WINAPI RtlPrefixUnicodeString(const UNICODE_STRING*,const UNICODE_STRING*,BOOLEAN);
|
|
|
|
|
2003-05-08 03:47:00 +00:00
|
|
|
NTSTATUS WINAPI RtlQueryEnvironmentVariable_U(PWSTR,PUNICODE_STRING,PUNICODE_STRING);
|
2003-11-11 22:03:24 +00:00
|
|
|
NTSTATUS WINAPI RtlQueryInformationAcl(PACL,LPVOID,DWORD,ACL_INFORMATION_CLASS);
|
2005-02-15 20:47:24 +00:00
|
|
|
NTSTATUS WINAPI RtlQueryRegistryValues(ULONG, PCWSTR, PRTL_QUERY_REGISTRY_TABLE, PVOID, PVOID);
|
2002-11-25 01:12:39 +00:00
|
|
|
NTSTATUS WINAPI RtlQueryTimeZoneInformation(LPTIME_ZONE_INFORMATION);
|
Implemented RtlRandom, RtlAreAllAccessesGranted,
RtlAreAnyAccessesGranted, RtlCopyLuid, RtlEqualLuid, RtlMapGenericMask
and RtlCopyLuidAndAttributesArray.
Documentation updates for RtlExtendedMagicDivide, RtlUniform,
RtlUnicodeStringToAnsiString, RtlAppendAsciizToString,
RtlAppendStringToString, RtlAppendUnicodeToString and
RtlAppendUnicodeStringToString.
2003-04-08 00:55:36 +00:00
|
|
|
|
2002-09-12 22:07:02 +00:00
|
|
|
void WINAPI RtlRaiseException(PEXCEPTION_RECORD);
|
|
|
|
void WINAPI RtlRaiseStatus(NTSTATUS);
|
Implemented RtlRandom, RtlAreAllAccessesGranted,
RtlAreAnyAccessesGranted, RtlCopyLuid, RtlEqualLuid, RtlMapGenericMask
and RtlCopyLuidAndAttributesArray.
Documentation updates for RtlExtendedMagicDivide, RtlUniform,
RtlUnicodeStringToAnsiString, RtlAppendAsciizToString,
RtlAppendStringToString, RtlAppendUnicodeToString and
RtlAppendUnicodeStringToString.
2003-04-08 00:55:36 +00:00
|
|
|
ULONG WINAPI RtlRandom(PULONG);
|
2002-09-12 22:07:02 +00:00
|
|
|
PVOID WINAPI RtlReAllocateHeap(HANDLE,ULONG,PVOID,ULONG);
|
|
|
|
void WINAPI RtlReleasePebLock(void);
|
|
|
|
void WINAPI RtlReleaseResource(LPRTL_RWLOCK);
|
2003-10-28 21:22:50 +00:00
|
|
|
ULONG WINAPI RtlRemoveVectoredExceptionHandler(PVOID);
|
2003-12-12 05:56:44 +00:00
|
|
|
void WINAPI RtlRestoreLastWin32Error(DWORD);
|
2002-09-12 22:07:02 +00:00
|
|
|
|
|
|
|
void WINAPI RtlSecondsSince1970ToTime(DWORD,LARGE_INTEGER *);
|
|
|
|
void WINAPI RtlSecondsSince1980ToTime(DWORD,LARGE_INTEGER *);
|
2003-11-11 22:03:24 +00:00
|
|
|
NTSTATUS WINAPI RtlSelfRelativeToAbsoluteSD(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR,
|
|
|
|
PDWORD,PACL,PDWORD,PACL,PDWORD,PSID,PDWORD,PSID,PDWORD);
|
2002-09-12 22:07:02 +00:00
|
|
|
void WINAPI RtlSetAllBits(PRTL_BITMAP);
|
|
|
|
void WINAPI RtlSetBits(PRTL_BITMAP,ULONG,ULONG);
|
2004-06-15 00:52:03 +00:00
|
|
|
ULONG WINAPI RtlSetCriticalSectionSpinCount(RTL_CRITICAL_SECTION*,ULONG);
|
2003-05-15 04:20:42 +00:00
|
|
|
NTSTATUS WINAPI RtlSetCurrentDirectory_U(const UNICODE_STRING*);
|
2003-05-08 03:47:00 +00:00
|
|
|
void WINAPI RtlSetCurrentEnvironment(PWSTR, PWSTR*);
|
2002-09-12 22:07:02 +00:00
|
|
|
NTSTATUS WINAPI RtlSetDaclSecurityDescriptor(PSECURITY_DESCRIPTOR,BOOLEAN,PACL,BOOLEAN);
|
2003-05-08 03:47:00 +00:00
|
|
|
NTSTATUS WINAPI RtlSetEnvironmentVariable(PWSTR*,PUNICODE_STRING,PUNICODE_STRING);
|
2002-09-12 22:07:02 +00:00
|
|
|
NTSTATUS WINAPI RtlSetOwnerSecurityDescriptor(PSECURITY_DESCRIPTOR,PSID,BOOLEAN);
|
|
|
|
NTSTATUS WINAPI RtlSetGroupSecurityDescriptor(PSECURITY_DESCRIPTOR,PSID,BOOLEAN);
|
2003-12-12 05:56:44 +00:00
|
|
|
void WINAPI RtlSetLastWin32Error(DWORD);
|
2005-01-04 12:09:32 +00:00
|
|
|
void WINAPI RtlSetLastWin32ErrorAndNtStatusFromNtStatus(NTSTATUS);
|
2002-09-12 22:07:02 +00:00
|
|
|
NTSTATUS WINAPI RtlSetSaclSecurityDescriptor(PSECURITY_DESCRIPTOR,BOOLEAN,PACL,BOOLEAN);
|
2002-11-25 01:12:39 +00:00
|
|
|
NTSTATUS WINAPI RtlSetTimeZoneInformation(const TIME_ZONE_INFORMATION*);
|
2002-09-12 22:07:02 +00:00
|
|
|
ULONG WINAPI RtlSizeHeap(HANDLE,ULONG,PVOID);
|
|
|
|
LPDWORD WINAPI RtlSubAuthoritySid(PSID,DWORD);
|
|
|
|
LPBYTE WINAPI RtlSubAuthorityCountSid(PSID);
|
2002-12-11 00:19:56 +00:00
|
|
|
NTSTATUS WINAPI RtlSystemTimeToLocalTime(const LARGE_INTEGER*,PLARGE_INTEGER);
|
2002-09-12 22:07:02 +00:00
|
|
|
|
2002-11-25 01:12:39 +00:00
|
|
|
void WINAPI RtlTimeToTimeFields(const LARGE_INTEGER*,PTIME_FIELDS);
|
2002-09-12 22:07:02 +00:00
|
|
|
BOOLEAN WINAPI RtlTimeFieldsToTime(PTIME_FIELDS,PLARGE_INTEGER);
|
2002-12-18 02:31:33 +00:00
|
|
|
void WINAPI RtlTimeToElapsedTimeFields(const LARGE_INTEGER *,PTIME_FIELDS);
|
2003-08-19 00:56:34 +00:00
|
|
|
BOOLEAN WINAPI RtlTimeToSecondsSince1970(const LARGE_INTEGER *,LPDWORD);
|
2002-09-12 22:07:02 +00:00
|
|
|
BOOLEAN WINAPI RtlTimeToSecondsSince1980(const LARGE_INTEGER *,LPDWORD);
|
|
|
|
BOOL WINAPI RtlTryEnterCriticalSection(RTL_CRITICAL_SECTION *);
|
|
|
|
|
2003-03-19 00:09:57 +00:00
|
|
|
ULONGLONG __cdecl RtlUlonglongByteSwap(ULONGLONG);
|
2002-09-12 22:07:02 +00:00
|
|
|
DWORD WINAPI RtlUnicodeStringToAnsiSize(const UNICODE_STRING*);
|
|
|
|
NTSTATUS WINAPI RtlUnicodeStringToAnsiString(PANSI_STRING,PCUNICODE_STRING,BOOLEAN);
|
2003-02-19 03:39:46 +00:00
|
|
|
NTSTATUS WINAPI RtlUnicodeStringToInteger(const UNICODE_STRING *,ULONG,ULONG *);
|
2002-09-12 22:07:02 +00:00
|
|
|
DWORD WINAPI RtlUnicodeStringToOemSize(const UNICODE_STRING*);
|
|
|
|
NTSTATUS WINAPI RtlUnicodeStringToOemString(POEM_STRING,PCUNICODE_STRING,BOOLEAN);
|
|
|
|
NTSTATUS WINAPI RtlUnicodeToMultiByteN(LPSTR,DWORD,LPDWORD,LPCWSTR,DWORD);
|
|
|
|
NTSTATUS WINAPI RtlUnicodeToMultiByteSize(PULONG,PCWSTR,ULONG);
|
|
|
|
NTSTATUS WINAPI RtlUnicodeToOemN(LPSTR,DWORD,LPDWORD,LPCWSTR,DWORD);
|
|
|
|
ULONG WINAPI RtlUniform(PULONG);
|
|
|
|
BOOLEAN WINAPI RtlUnlockHeap(HANDLE);
|
|
|
|
void WINAPI RtlUnwind(PVOID,PVOID,PEXCEPTION_RECORD,PVOID);
|
2002-09-10 00:33:34 +00:00
|
|
|
#ifdef __ia64__
|
2002-09-12 22:07:02 +00:00
|
|
|
void WINAPI RtlUnwind2(FRAME_POINTERS,PVOID,PEXCEPTION_RECORD,PVOID,PCONTEXT);
|
|
|
|
void WINAPI RtlUnwindEx(FRAME_POINTERS,PVOID,PEXCEPTION_RECORD,PVOID,PCONTEXT,PUNWIND_HISTORY_TABLE);
|
2002-09-10 00:33:34 +00:00
|
|
|
#endif
|
2003-02-19 03:39:46 +00:00
|
|
|
WCHAR WINAPI RtlUpcaseUnicodeChar(WCHAR);
|
2002-09-12 22:07:02 +00:00
|
|
|
NTSTATUS WINAPI RtlUpcaseUnicodeString(UNICODE_STRING*,const UNICODE_STRING *,BOOLEAN);
|
|
|
|
NTSTATUS WINAPI RtlUpcaseUnicodeStringToAnsiString(STRING*,const UNICODE_STRING*,BOOLEAN);
|
2003-04-16 23:15:29 +00:00
|
|
|
NTSTATUS WINAPI RtlUpcaseUnicodeStringToCountedOemString(STRING*,const UNICODE_STRING*,BOOLEAN);
|
2002-09-12 22:07:02 +00:00
|
|
|
NTSTATUS WINAPI RtlUpcaseUnicodeStringToOemString(STRING*,const UNICODE_STRING*,BOOLEAN);
|
|
|
|
NTSTATUS WINAPI RtlUpcaseUnicodeToMultiByteN(LPSTR,DWORD,LPDWORD,LPCWSTR,DWORD);
|
|
|
|
NTSTATUS WINAPI RtlUpcaseUnicodeToOemN(LPSTR,DWORD,LPDWORD,LPCWSTR,DWORD);
|
2003-02-19 03:39:46 +00:00
|
|
|
CHAR WINAPI RtlUpperChar(CHAR);
|
|
|
|
void WINAPI RtlUpperString(STRING *,const STRING *);
|
2002-09-12 22:07:02 +00:00
|
|
|
|
|
|
|
NTSTATUS WINAPI RtlValidSecurityDescriptor(PSECURITY_DESCRIPTOR);
|
2003-05-01 00:29:26 +00:00
|
|
|
BOOLEAN WINAPI RtlValidAcl(PACL);
|
|
|
|
BOOLEAN WINAPI RtlValidSid(PSID);
|
2002-09-17 01:35:09 +00:00
|
|
|
BOOLEAN WINAPI RtlValidateHeap(HANDLE,ULONG,LPCVOID);
|
2003-09-24 05:26:00 +00:00
|
|
|
NTSTATUS WINAPI RtlVerifyVersionInfo(const RTL_OSVERSIONINFOEXW*,DWORD,DWORDLONG);
|
2002-09-12 22:07:02 +00:00
|
|
|
|
|
|
|
NTSTATUS WINAPI RtlWalkHeap(HANDLE,PVOID);
|
|
|
|
|
|
|
|
NTSTATUS WINAPI RtlpWaitForCriticalSection(RTL_CRITICAL_SECTION *);
|
|
|
|
NTSTATUS WINAPI RtlpUnWaitCriticalSection(RTL_CRITICAL_SECTION *);
|
2002-09-10 00:33:34 +00:00
|
|
|
|
2004-04-23 02:46:18 +00:00
|
|
|
/* Wine internal functions */
|
|
|
|
|
|
|
|
extern NTSTATUS wine_nt_to_unix_file_name( const UNICODE_STRING *nameW, ANSI_STRING *unix_name_ret,
|
2004-04-27 02:15:52 +00:00
|
|
|
UINT disposition, BOOLEAN check_case );
|
2004-04-23 02:46:18 +00:00
|
|
|
|
2002-09-10 00:33:34 +00:00
|
|
|
/***********************************************************************
|
2002-09-12 22:07:02 +00:00
|
|
|
* Inline functions
|
2002-09-10 00:33:34 +00:00
|
|
|
*/
|
|
|
|
|
2002-09-12 22:07:02 +00:00
|
|
|
#define InitializeObjectAttributes(p,n,a,r,s) \
|
|
|
|
do { \
|
|
|
|
(p)->Length = sizeof(OBJECT_ATTRIBUTES); \
|
|
|
|
(p)->RootDirectory = r; \
|
|
|
|
(p)->Attributes = a; \
|
|
|
|
(p)->ObjectName = n; \
|
|
|
|
(p)->SecurityDescriptor = s; \
|
|
|
|
(p)->SecurityQualityOfService = NULL; \
|
|
|
|
} while (0)
|
2002-09-10 00:33:34 +00:00
|
|
|
|
2002-09-12 22:07:02 +00:00
|
|
|
#define NtCurrentProcess() ((HANDLE)-1)
|
2002-09-10 00:33:34 +00:00
|
|
|
|
2002-09-12 22:07:02 +00:00
|
|
|
#define RtlFillMemory(Destination,Length,Fill) memset((Destination),(Fill),(Length))
|
|
|
|
#define RtlMoveMemory(Destination,Source,Length) memmove((Destination),(Source),(Length))
|
|
|
|
#define RtlStoreUlong(p,v) do { ULONG _v = (v); memcpy((p), &_v, sizeof(_v)); } while (0)
|
|
|
|
#define RtlStoreUlonglong(p,v) do { ULONGLONG _v = (v); memcpy((p), &_v, sizeof(_v)); } while (0)
|
|
|
|
#define RtlRetrieveUlong(p,s) memcpy((p), (s), sizeof(ULONG))
|
|
|
|
#define RtlRetrieveUlonglong(p,s) memcpy((p), (s), sizeof(ULONGLONG))
|
|
|
|
#define RtlZeroMemory(Destination,Length) memset((Destination),0,(Length))
|
2002-09-10 00:33:34 +00:00
|
|
|
|
2002-09-12 22:07:02 +00:00
|
|
|
inline static BOOLEAN RtlCheckBit(PCRTL_BITMAP lpBits, ULONG ulBit)
|
|
|
|
{
|
|
|
|
if (lpBits && ulBit < lpBits->SizeOfBitMap &&
|
2004-08-23 18:52:54 +00:00
|
|
|
lpBits->Buffer[ulBit >> 5] & (1 << (ulBit & 31)))
|
2002-09-12 22:07:02 +00:00
|
|
|
return TRUE;
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
2003-03-19 00:09:57 +00:00
|
|
|
/* These are implemented as __fastcall, so we can't let Winelib apps link with them */
|
|
|
|
inline static USHORT RtlUshortByteSwap(USHORT s)
|
|
|
|
{
|
|
|
|
return (s >> 8) | (s << 8);
|
|
|
|
}
|
|
|
|
inline static ULONG RtlUlongByteSwap(ULONG i)
|
|
|
|
{
|
|
|
|
#if defined(__i386__) && defined(__GNUC__)
|
|
|
|
ULONG ret;
|
|
|
|
__asm__("bswap %0" : "=r" (ret) : "0" (i) );
|
|
|
|
return ret;
|
|
|
|
#else
|
2003-07-18 22:55:02 +00:00
|
|
|
return ((ULONG)RtlUshortByteSwap((USHORT)i) << 16) | RtlUshortByteSwap((USHORT)(i >> 16));
|
2003-03-19 00:09:57 +00:00
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2003-03-04 04:36:56 +00:00
|
|
|
/*************************************************************************
|
|
|
|
* Loader functions and structures.
|
|
|
|
*
|
|
|
|
* Those are not part of standard Winternl.h
|
|
|
|
*/
|
|
|
|
typedef struct _LDR_MODULE
|
|
|
|
{
|
|
|
|
LIST_ENTRY InLoadOrderModuleList;
|
|
|
|
LIST_ENTRY InMemoryOrderModuleList;
|
|
|
|
LIST_ENTRY InInitializationOrderModuleList;
|
|
|
|
void* BaseAddress;
|
2003-03-14 05:01:20 +00:00
|
|
|
void* EntryPoint;
|
2003-03-04 04:36:56 +00:00
|
|
|
ULONG SizeOfImage;
|
|
|
|
UNICODE_STRING FullDllName;
|
|
|
|
UNICODE_STRING BaseDllName;
|
|
|
|
ULONG Flags;
|
|
|
|
SHORT LoadCount;
|
|
|
|
SHORT TlsIndex;
|
|
|
|
HANDLE SectionHandle;
|
|
|
|
ULONG CheckSum;
|
|
|
|
ULONG TimeDateStamp;
|
|
|
|
} LDR_MODULE, *PLDR_MODULE;
|
|
|
|
|
2003-03-20 23:40:08 +00:00
|
|
|
/* those defines are (some of the) regular LDR_MODULE.Flags values */
|
|
|
|
#define LDR_IMAGE_IS_DLL 0x00000004
|
|
|
|
#define LDR_LOAD_IN_PROGRESS 0x00001000
|
|
|
|
#define LDR_UNLOAD_IN_PROGRESS 0x00002000
|
|
|
|
#define LDR_NO_DLL_CALLS 0x00040000
|
|
|
|
#define LDR_PROCESS_ATTACHED 0x00080000
|
|
|
|
#define LDR_MODULE_REBASED 0x00200000
|
|
|
|
|
|
|
|
/* these ones is Wine specific */
|
|
|
|
#define LDR_DONT_RESOLVE_REFS 0x40000000
|
|
|
|
#define LDR_WINE_INTERNAL 0x80000000
|
|
|
|
|
2003-03-04 04:36:56 +00:00
|
|
|
/* FIXME: to be checked */
|
|
|
|
#define MAXIMUM_FILENAME_LENGTH 256
|
|
|
|
|
|
|
|
typedef struct _SYSTEM_MODULE
|
|
|
|
{
|
|
|
|
ULONG Reserved1;
|
|
|
|
ULONG Reserved2;
|
|
|
|
PVOID ImageBaseAddress;
|
|
|
|
ULONG ImageSize;
|
|
|
|
ULONG Flags;
|
|
|
|
WORD Id;
|
|
|
|
WORD Rank;
|
|
|
|
WORD Unknown;
|
|
|
|
WORD NameOffset;
|
|
|
|
BYTE Name[MAXIMUM_FILENAME_LENGTH];
|
|
|
|
} SYSTEM_MODULE, *PSYSTEM_MODULE;
|
|
|
|
|
|
|
|
typedef struct _SYSTEM_MODULE_INFORMATION
|
|
|
|
{
|
|
|
|
ULONG ModulesCount;
|
|
|
|
SYSTEM_MODULE Modules[1]; /* FIXME: should be Modules[0] */
|
|
|
|
} SYSTEM_MODULE_INFORMATION, *PSYSTEM_MODULE_INFORMATION;
|
|
|
|
|
|
|
|
NTSTATUS WINAPI LdrDisableThreadCalloutsForDll(HMODULE);
|
2003-03-18 18:29:13 +00:00
|
|
|
NTSTATUS WINAPI LdrFindEntryForAddress(const void*, PLDR_MODULE*);
|
2003-03-20 04:29:21 +00:00
|
|
|
NTSTATUS WINAPI LdrLockLoaderLock(ULONG,ULONG*,ULONG*);
|
2003-03-21 00:34:36 +00:00
|
|
|
NTSTATUS WINAPI LdrQueryProcessModuleInformation(SYSTEM_MODULE_INFORMATION*, ULONG, ULONG*);
|
2003-03-04 04:36:56 +00:00
|
|
|
NTSTATUS WINAPI LdrUnloadDll(HMODULE);
|
2003-03-20 04:29:21 +00:00
|
|
|
NTSTATUS WINAPI LdrUnlockLoaderLock(ULONG,ULONG);
|
2003-03-04 04:36:56 +00:00
|
|
|
|
2003-07-01 03:38:56 +00:00
|
|
|
/* list manipulation macros */
|
|
|
|
#define InitializeListHead(le) (void)((le)->Flink = (le)->Blink = (le))
|
|
|
|
#define InsertHeadList(le,e) do { PLIST_ENTRY f = (le)->Flink; (e)->Flink = f; (e)->Blink = (le); f->Blink = (e); (le)->Flink = (e); } while (0)
|
|
|
|
#define InsertTailList(le,e) do { PLIST_ENTRY b = (le)->Blink; (e)->Flink = (le); (e)->Blink = b; b->Flink = (e); (le)->Blink = (e); } while (0)
|
|
|
|
#define IsListEmpty(le) ((le)->Flink == (le))
|
|
|
|
#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)
|
|
|
|
static inline PLIST_ENTRY RemoveHeadList(PLIST_ENTRY le)
|
|
|
|
{
|
|
|
|
PLIST_ENTRY f, b, e;
|
|
|
|
|
|
|
|
e = le->Flink;
|
|
|
|
f = le->Flink->Flink;
|
|
|
|
b = le->Flink->Blink;
|
|
|
|
f->Blink = b;
|
|
|
|
b->Flink = f;
|
|
|
|
|
|
|
|
if (e != le) e->Flink = e->Blink = NULL;
|
|
|
|
return e;
|
|
|
|
}
|
|
|
|
static inline PLIST_ENTRY RemoveTailList(PLIST_ENTRY le)
|
|
|
|
{
|
|
|
|
PLIST_ENTRY f, b, e;
|
|
|
|
|
|
|
|
e = le->Blink;
|
|
|
|
f = le->Blink->Flink;
|
|
|
|
b = le->Blink->Blink;
|
|
|
|
f->Blink = b;
|
|
|
|
b->Flink = f;
|
|
|
|
|
|
|
|
if (e != le) e->Flink = e->Blink = NULL;
|
|
|
|
return e;
|
|
|
|
}
|
|
|
|
|
2002-09-10 00:33:34 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern "C" */
|
|
|
|
#endif /* defined(__cplusplus) */
|
|
|
|
|
2004-09-01 01:29:18 +00:00
|
|
|
#endif /* __WINE_WINTERNL_H */
|