2010-03-13 00:34:48 +00:00
|
|
|
/******************************************************************************
|
|
|
|
* Runtime Library Types *
|
|
|
|
******************************************************************************/
|
|
|
|
|
2010-03-23 00:27:32 +00:00
|
|
|
$if (_WDMDDK_)
|
2010-03-13 00:34:48 +00:00
|
|
|
#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_MAXIMUM 6
|
|
|
|
#define RTL_REGISTRY_HANDLE 0x40000000
|
|
|
|
#define RTL_REGISTRY_OPTIONAL 0x80000000
|
|
|
|
|
|
|
|
/* RTL_QUERY_REGISTRY_TABLE.Flags */
|
|
|
|
#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
|
|
|
|
|
|
|
|
#define HASH_STRING_ALGORITHM_DEFAULT 0
|
|
|
|
#define HASH_STRING_ALGORITHM_X65599 1
|
|
|
|
#define HASH_STRING_ALGORITHM_INVALID 0xffffffff
|
|
|
|
|
|
|
|
typedef struct _RTL_BITMAP {
|
2010-03-18 22:45:30 +00:00
|
|
|
ULONG SizeOfBitMap;
|
|
|
|
PULONG Buffer;
|
2010-03-13 00:34:48 +00:00
|
|
|
} RTL_BITMAP, *PRTL_BITMAP;
|
|
|
|
|
|
|
|
typedef struct _RTL_BITMAP_RUN {
|
2010-03-18 22:45:30 +00:00
|
|
|
ULONG StartingIndex;
|
|
|
|
ULONG NumberOfBits;
|
2010-03-13 00:34:48 +00:00
|
|
|
} RTL_BITMAP_RUN, *PRTL_BITMAP_RUN;
|
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_Function_class_(RTL_QUERY_REGISTRY_ROUTINE)
|
|
|
|
_IRQL_requires_max_(PASSIVE_LEVEL)
|
|
|
|
_IRQL_requires_same_
|
2010-03-13 00:34:48 +00:00
|
|
|
typedef NTSTATUS
|
2010-03-18 22:48:53 +00:00
|
|
|
(NTAPI *PRTL_QUERY_REGISTRY_ROUTINE)(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_z_ PWSTR ValueName,
|
|
|
|
_In_ ULONG ValueType,
|
|
|
|
_In_reads_bytes_opt_(ValueLength) PVOID ValueData,
|
|
|
|
_In_ ULONG ValueLength,
|
|
|
|
_In_opt_ PVOID Context,
|
|
|
|
_In_opt_ PVOID EntryContext);
|
2010-03-13 00:34:48 +00:00
|
|
|
|
|
|
|
typedef struct _RTL_QUERY_REGISTRY_TABLE {
|
2010-03-18 22:45:30 +00:00
|
|
|
PRTL_QUERY_REGISTRY_ROUTINE QueryRoutine;
|
|
|
|
ULONG Flags;
|
|
|
|
PCWSTR Name;
|
|
|
|
PVOID EntryContext;
|
|
|
|
ULONG DefaultType;
|
|
|
|
PVOID DefaultData;
|
|
|
|
ULONG DefaultLength;
|
2010-03-13 00:34:48 +00:00
|
|
|
} RTL_QUERY_REGISTRY_TABLE, *PRTL_QUERY_REGISTRY_TABLE;
|
|
|
|
|
|
|
|
typedef struct _TIME_FIELDS {
|
2010-03-18 22:45:30 +00:00
|
|
|
CSHORT Year;
|
|
|
|
CSHORT Month;
|
|
|
|
CSHORT Day;
|
|
|
|
CSHORT Hour;
|
|
|
|
CSHORT Minute;
|
|
|
|
CSHORT Second;
|
|
|
|
CSHORT Milliseconds;
|
|
|
|
CSHORT Weekday;
|
2010-03-13 00:34:48 +00:00
|
|
|
} TIME_FIELDS, *PTIME_FIELDS;
|
|
|
|
|
|
|
|
/* Slist Header */
|
|
|
|
#ifndef _SLIST_HEADER_
|
|
|
|
#define _SLIST_HEADER_
|
|
|
|
|
|
|
|
#if defined(_WIN64)
|
[XDK]
- Move several definitions to their appropriate places.
- Add DEVICE_FLAGS, InitializeListHead32, AppendTailList, RTL_QUERY_REGISTRY_NOSTRING, NT_VERIFY, NT_VERIFYMSG, NT_VERIFYMSGW, SLIST_ENTRY32, SLIST_HEADER32 and several missing SERVICE_*, CM_*, EISA_* and IRQ_*.
- Update SLIST_HEADER.
[WDM]
- Update wdm.h to reflect XDK changes.
svn path=/branches/header-work/; revision=46273
2010-03-19 14:10:13 +00:00
|
|
|
|
2010-03-13 00:34:48 +00:00
|
|
|
typedef struct DECLSPEC_ALIGN(16) _SLIST_ENTRY {
|
2010-03-24 01:39:36 +00:00
|
|
|
struct _SLIST_ENTRY *Next;
|
[XDK]
- Move several definitions to their appropriate places.
- Add DEVICE_FLAGS, InitializeListHead32, AppendTailList, RTL_QUERY_REGISTRY_NOSTRING, NT_VERIFY, NT_VERIFYMSG, NT_VERIFYMSGW, SLIST_ENTRY32, SLIST_HEADER32 and several missing SERVICE_*, CM_*, EISA_* and IRQ_*.
- Update SLIST_HEADER.
[WDM]
- Update wdm.h to reflect XDK changes.
svn path=/branches/header-work/; revision=46273
2010-03-19 14:10:13 +00:00
|
|
|
} SLIST_ENTRY, *PSLIST_ENTRY;
|
|
|
|
|
|
|
|
typedef struct _SLIST_ENTRY32 {
|
|
|
|
ULONG Next;
|
|
|
|
} SLIST_ENTRY32, *PSLIST_ENTRY32;
|
|
|
|
|
2010-03-13 00:34:48 +00:00
|
|
|
typedef union DECLSPEC_ALIGN(16) _SLIST_HEADER {
|
2010-04-23 10:50:19 +00:00
|
|
|
_ANONYMOUS_STRUCT struct {
|
2010-03-18 22:45:30 +00:00
|
|
|
ULONGLONG Alignment;
|
|
|
|
ULONGLONG Region;
|
|
|
|
} DUMMYSTRUCTNAME;
|
|
|
|
struct {
|
|
|
|
ULONGLONG Depth:16;
|
|
|
|
ULONGLONG Sequence:9;
|
|
|
|
ULONGLONG NextEntry:39;
|
|
|
|
ULONGLONG HeaderType:1;
|
|
|
|
ULONGLONG Init:1;
|
|
|
|
ULONGLONG Reserved:59;
|
|
|
|
ULONGLONG Region:3;
|
|
|
|
} Header8;
|
|
|
|
struct {
|
|
|
|
ULONGLONG Depth:16;
|
|
|
|
ULONGLONG Sequence:48;
|
|
|
|
ULONGLONG HeaderType:1;
|
|
|
|
ULONGLONG Init:1;
|
|
|
|
ULONGLONG Reserved:2;
|
|
|
|
ULONGLONG NextEntry:60;
|
|
|
|
} Header16;
|
[XDK]
- Move several definitions to their appropriate places.
- Add DEVICE_FLAGS, InitializeListHead32, AppendTailList, RTL_QUERY_REGISTRY_NOSTRING, NT_VERIFY, NT_VERIFYMSG, NT_VERIFYMSGW, SLIST_ENTRY32, SLIST_HEADER32 and several missing SERVICE_*, CM_*, EISA_* and IRQ_*.
- Update SLIST_HEADER.
[WDM]
- Update wdm.h to reflect XDK changes.
svn path=/branches/header-work/; revision=46273
2010-03-19 14:10:13 +00:00
|
|
|
struct {
|
|
|
|
ULONGLONG Depth:16;
|
|
|
|
ULONGLONG Sequence:48;
|
|
|
|
ULONGLONG HeaderType:1;
|
|
|
|
ULONGLONG Reserved:3;
|
|
|
|
ULONGLONG NextEntry:60;
|
|
|
|
} HeaderX64;
|
2010-03-13 00:34:48 +00:00
|
|
|
} SLIST_HEADER, *PSLIST_HEADER;
|
[XDK]
- Move several definitions to their appropriate places.
- Add DEVICE_FLAGS, InitializeListHead32, AppendTailList, RTL_QUERY_REGISTRY_NOSTRING, NT_VERIFY, NT_VERIFYMSG, NT_VERIFYMSGW, SLIST_ENTRY32, SLIST_HEADER32 and several missing SERVICE_*, CM_*, EISA_* and IRQ_*.
- Update SLIST_HEADER.
[WDM]
- Update wdm.h to reflect XDK changes.
svn path=/branches/header-work/; revision=46273
2010-03-19 14:10:13 +00:00
|
|
|
|
|
|
|
typedef union _SLIST_HEADER32 {
|
|
|
|
ULONGLONG Alignment;
|
2010-04-23 10:50:19 +00:00
|
|
|
_ANONYMOUS_STRUCT struct {
|
[XDK]
- Move several definitions to their appropriate places.
- Add DEVICE_FLAGS, InitializeListHead32, AppendTailList, RTL_QUERY_REGISTRY_NOSTRING, NT_VERIFY, NT_VERIFYMSG, NT_VERIFYMSGW, SLIST_ENTRY32, SLIST_HEADER32 and several missing SERVICE_*, CM_*, EISA_* and IRQ_*.
- Update SLIST_HEADER.
[WDM]
- Update wdm.h to reflect XDK changes.
svn path=/branches/header-work/; revision=46273
2010-03-19 14:10:13 +00:00
|
|
|
SLIST_ENTRY32 Next;
|
|
|
|
USHORT Depth;
|
|
|
|
USHORT Sequence;
|
|
|
|
} DUMMYSTRUCTNAME;
|
|
|
|
} SLIST_HEADER32, *PSLIST_HEADER32;
|
|
|
|
|
2010-03-13 00:34:48 +00:00
|
|
|
#else
|
[XDK]
- Move several definitions to their appropriate places.
- Add DEVICE_FLAGS, InitializeListHead32, AppendTailList, RTL_QUERY_REGISTRY_NOSTRING, NT_VERIFY, NT_VERIFYMSG, NT_VERIFYMSGW, SLIST_ENTRY32, SLIST_HEADER32 and several missing SERVICE_*, CM_*, EISA_* and IRQ_*.
- Update SLIST_HEADER.
[WDM]
- Update wdm.h to reflect XDK changes.
svn path=/branches/header-work/; revision=46273
2010-03-19 14:10:13 +00:00
|
|
|
|
2010-03-13 00:34:48 +00:00
|
|
|
#define SLIST_ENTRY SINGLE_LIST_ENTRY
|
|
|
|
#define _SLIST_ENTRY _SINGLE_LIST_ENTRY
|
|
|
|
#define PSLIST_ENTRY PSINGLE_LIST_ENTRY
|
[XDK]
- Move several definitions to their appropriate places.
- Add DEVICE_FLAGS, InitializeListHead32, AppendTailList, RTL_QUERY_REGISTRY_NOSTRING, NT_VERIFY, NT_VERIFYMSG, NT_VERIFYMSGW, SLIST_ENTRY32, SLIST_HEADER32 and several missing SERVICE_*, CM_*, EISA_* and IRQ_*.
- Update SLIST_HEADER.
[WDM]
- Update wdm.h to reflect XDK changes.
svn path=/branches/header-work/; revision=46273
2010-03-19 14:10:13 +00:00
|
|
|
|
|
|
|
typedef SLIST_ENTRY SLIST_ENTRY32, *PSLIST_ENTRY32;
|
|
|
|
|
2010-03-13 00:34:48 +00:00
|
|
|
typedef union _SLIST_HEADER {
|
2010-03-18 22:45:30 +00:00
|
|
|
ULONGLONG Alignment;
|
2010-04-23 10:50:19 +00:00
|
|
|
_ANONYMOUS_STRUCT struct {
|
2010-03-18 22:45:30 +00:00
|
|
|
SLIST_ENTRY Next;
|
|
|
|
USHORT Depth;
|
|
|
|
USHORT Sequence;
|
|
|
|
} DUMMYSTRUCTNAME;
|
2010-03-13 00:34:48 +00:00
|
|
|
} SLIST_HEADER, *PSLIST_HEADER;
|
[XDK]
- Move several definitions to their appropriate places.
- Add DEVICE_FLAGS, InitializeListHead32, AppendTailList, RTL_QUERY_REGISTRY_NOSTRING, NT_VERIFY, NT_VERIFYMSG, NT_VERIFYMSGW, SLIST_ENTRY32, SLIST_HEADER32 and several missing SERVICE_*, CM_*, EISA_* and IRQ_*.
- Update SLIST_HEADER.
[WDM]
- Update wdm.h to reflect XDK changes.
svn path=/branches/header-work/; revision=46273
2010-03-19 14:10:13 +00:00
|
|
|
|
|
|
|
typedef SLIST_HEADER SLIST_HEADER32, *PSLIST_HEADER32;
|
|
|
|
|
|
|
|
#endif /* defined(_WIN64) */
|
2010-03-13 00:34:48 +00:00
|
|
|
|
|
|
|
#endif /* _SLIST_HEADER_ */
|
|
|
|
|
2012-09-09 10:42:32 +00:00
|
|
|
/* Exception record flags */
|
|
|
|
#define EXCEPTION_NONCONTINUABLE 0x01
|
|
|
|
#define EXCEPTION_UNWINDING 0x02
|
|
|
|
#define EXCEPTION_EXIT_UNWIND 0x04
|
|
|
|
#define EXCEPTION_STACK_INVALID 0x08
|
|
|
|
#define EXCEPTION_NESTED_CALL 0x10
|
|
|
|
#define EXCEPTION_TARGET_UNWIND 0x20
|
|
|
|
#define EXCEPTION_COLLIDED_UNWIND 0x40
|
|
|
|
#define EXCEPTION_UNWIND (EXCEPTION_UNWINDING | EXCEPTION_EXIT_UNWIND | \
|
|
|
|
EXCEPTION_TARGET_UNWIND | EXCEPTION_COLLIDED_UNWIND)
|
|
|
|
|
|
|
|
#define IS_UNWINDING(Flag) ((Flag & EXCEPTION_UNWIND) != 0)
|
|
|
|
#define IS_DISPATCHING(Flag) ((Flag & EXCEPTION_UNWIND) == 0)
|
|
|
|
#define IS_TARGET_UNWIND(Flag) (Flag & EXCEPTION_TARGET_UNWIND)
|
|
|
|
|
|
|
|
#define EXCEPTION_MAXIMUM_PARAMETERS 15
|
|
|
|
|
|
|
|
/* Exception records */
|
|
|
|
typedef struct _EXCEPTION_RECORD {
|
|
|
|
NTSTATUS ExceptionCode;
|
|
|
|
ULONG ExceptionFlags;
|
|
|
|
struct _EXCEPTION_RECORD *ExceptionRecord;
|
|
|
|
PVOID ExceptionAddress;
|
|
|
|
ULONG NumberParameters;
|
|
|
|
ULONG_PTR ExceptionInformation[EXCEPTION_MAXIMUM_PARAMETERS];
|
|
|
|
} EXCEPTION_RECORD, *PEXCEPTION_RECORD;
|
|
|
|
|
|
|
|
typedef struct _EXCEPTION_RECORD32 {
|
|
|
|
NTSTATUS ExceptionCode;
|
|
|
|
ULONG ExceptionFlags;
|
|
|
|
ULONG ExceptionRecord;
|
|
|
|
ULONG ExceptionAddress;
|
|
|
|
ULONG NumberParameters;
|
|
|
|
ULONG ExceptionInformation[EXCEPTION_MAXIMUM_PARAMETERS];
|
|
|
|
} EXCEPTION_RECORD32, *PEXCEPTION_RECORD32;
|
|
|
|
|
|
|
|
typedef struct _EXCEPTION_RECORD64 {
|
|
|
|
NTSTATUS ExceptionCode;
|
|
|
|
ULONG ExceptionFlags;
|
|
|
|
ULONG64 ExceptionRecord;
|
|
|
|
ULONG64 ExceptionAddress;
|
|
|
|
ULONG NumberParameters;
|
|
|
|
ULONG __unusedAlignment;
|
|
|
|
ULONG64 ExceptionInformation[EXCEPTION_MAXIMUM_PARAMETERS];
|
|
|
|
} EXCEPTION_RECORD64, *PEXCEPTION_RECORD64;
|
|
|
|
|
|
|
|
typedef struct _EXCEPTION_POINTERS {
|
|
|
|
PEXCEPTION_RECORD ExceptionRecord;
|
|
|
|
PCONTEXT ContextRecord;
|
|
|
|
} EXCEPTION_POINTERS, *PEXCEPTION_POINTERS;
|
|
|
|
|
2014-05-11 23:11:16 +00:00
|
|
|
#ifdef _NTSYSTEM_
|
|
|
|
extern BOOLEAN NlsMbCodePageTag;
|
2010-03-13 00:34:48 +00:00
|
|
|
#define NLS_MB_CODE_PAGE_TAG NlsMbCodePageTag
|
2014-05-11 23:11:16 +00:00
|
|
|
extern BOOLEAN NlsMbOemCodePageTag;
|
2010-03-13 00:34:48 +00:00
|
|
|
#define NLS_MB_OEM_CODE_PAGE_TAG NlsMbOemCodePageTag
|
2014-05-11 23:11:16 +00:00
|
|
|
#else
|
|
|
|
__CREATE_NTOS_DATA_IMPORT_ALIAS(NlsMbCodePageTag)
|
2014-09-14 15:19:20 +00:00
|
|
|
extern BOOLEAN *NlsMbCodePageTag;
|
2014-05-11 23:11:16 +00:00
|
|
|
#define NLS_MB_CODE_PAGE_TAG (*NlsMbCodePageTag)
|
|
|
|
__CREATE_NTOS_DATA_IMPORT_ALIAS(NlsMbOemCodePageTag)
|
2014-09-14 15:19:20 +00:00
|
|
|
extern BOOLEAN *NlsMbOemCodePageTag;
|
2014-05-11 23:11:16 +00:00
|
|
|
#define NLS_MB_OEM_CODE_PAGE_TAG (*NlsMbOemCodePageTag)
|
|
|
|
#endif
|
2010-03-13 00:34:48 +00:00
|
|
|
|
[EXT2FSD]
- Remove a couple of duplicate definitions (that exist now in wdm.h).
[XDK]
- Move several definitions to their appropriate places.
- Group some related definitions.
- Add vKdPrintEx, DEFINE_GUIDEX, STATICGUIDOF, RTLVERLIB_DDI, LOWBYTE_MASK, FIRSTBYTE, SECONDBYTE, THIRDBYTE, FOURTHBYTE and several missing TRANSACTIONMANAGER_*, TRANSACTION_*, RESOURCEMANAGER_*, ENLISTMENT_*, PFN_NT_*, Nt*, SHORT_*, LONG_*, PFN_RTL_*, LONGLONG_* and Rtl* definitions.
- Fix RtlCheckBit definition.
[WDM]
- Update wdm.h to reflect XDK changes.
svn path=/branches/header-work/; revision=46276
2010-03-19 20:01:04 +00:00
|
|
|
#define SHORT_LEAST_SIGNIFICANT_BIT 0
|
|
|
|
#define SHORT_MOST_SIGNIFICANT_BIT 1
|
|
|
|
|
|
|
|
#define LONG_LEAST_SIGNIFICANT_BIT 0
|
|
|
|
#define LONG_3RD_MOST_SIGNIFICANT_BIT 1
|
|
|
|
#define LONG_2ND_MOST_SIGNIFICANT_BIT 2
|
|
|
|
#define LONG_MOST_SIGNIFICANT_BIT 3
|
|
|
|
|
|
|
|
#define RTLVERLIB_DDI(x) Wdmlib##x
|
|
|
|
|
|
|
|
typedef BOOLEAN
|
|
|
|
(*PFN_RTL_IS_NTDDI_VERSION_AVAILABLE)(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ ULONG Version);
|
[EXT2FSD]
- Remove a couple of duplicate definitions (that exist now in wdm.h).
[XDK]
- Move several definitions to their appropriate places.
- Group some related definitions.
- Add vKdPrintEx, DEFINE_GUIDEX, STATICGUIDOF, RTLVERLIB_DDI, LOWBYTE_MASK, FIRSTBYTE, SECONDBYTE, THIRDBYTE, FOURTHBYTE and several missing TRANSACTIONMANAGER_*, TRANSACTION_*, RESOURCEMANAGER_*, ENLISTMENT_*, PFN_NT_*, Nt*, SHORT_*, LONG_*, PFN_RTL_*, LONGLONG_* and Rtl* definitions.
- Fix RtlCheckBit definition.
[WDM]
- Update wdm.h to reflect XDK changes.
svn path=/branches/header-work/; revision=46276
2010-03-19 20:01:04 +00:00
|
|
|
|
|
|
|
typedef BOOLEAN
|
|
|
|
(*PFN_RTL_IS_SERVICE_PACK_VERSION_INSTALLED)(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ ULONG Version);
|
[EXT2FSD]
- Remove a couple of duplicate definitions (that exist now in wdm.h).
[XDK]
- Move several definitions to their appropriate places.
- Group some related definitions.
- Add vKdPrintEx, DEFINE_GUIDEX, STATICGUIDOF, RTLVERLIB_DDI, LOWBYTE_MASK, FIRSTBYTE, SECONDBYTE, THIRDBYTE, FOURTHBYTE and several missing TRANSACTIONMANAGER_*, TRANSACTION_*, RESOURCEMANAGER_*, ENLISTMENT_*, PFN_NT_*, Nt*, SHORT_*, LONG_*, PFN_RTL_*, LONGLONG_* and Rtl* definitions.
- Fix RtlCheckBit definition.
[WDM]
- Update wdm.h to reflect XDK changes.
svn path=/branches/header-work/; revision=46276
2010-03-19 20:01:04 +00:00
|
|
|
|
2013-01-13 14:49:21 +00:00
|
|
|
typedef struct _OSVERSIONINFOA {
|
|
|
|
ULONG dwOSVersionInfoSize;
|
|
|
|
ULONG dwMajorVersion;
|
|
|
|
ULONG dwMinorVersion;
|
|
|
|
ULONG dwBuildNumber;
|
|
|
|
ULONG dwPlatformId;
|
|
|
|
CHAR szCSDVersion[128];
|
|
|
|
} OSVERSIONINFOA, *POSVERSIONINFOA, *LPOSVERSIONINFOA;
|
|
|
|
|
|
|
|
typedef struct _OSVERSIONINFOW {
|
|
|
|
ULONG dwOSVersionInfoSize;
|
|
|
|
ULONG dwMajorVersion;
|
|
|
|
ULONG dwMinorVersion;
|
|
|
|
ULONG dwBuildNumber;
|
|
|
|
ULONG dwPlatformId;
|
|
|
|
WCHAR szCSDVersion[128];
|
|
|
|
} OSVERSIONINFOW, *POSVERSIONINFOW, *LPOSVERSIONINFOW, RTL_OSVERSIONINFOW, *PRTL_OSVERSIONINFOW;
|
|
|
|
|
|
|
|
typedef struct _OSVERSIONINFOEXA {
|
|
|
|
ULONG dwOSVersionInfoSize;
|
|
|
|
ULONG dwMajorVersion;
|
|
|
|
ULONG dwMinorVersion;
|
|
|
|
ULONG dwBuildNumber;
|
|
|
|
ULONG dwPlatformId;
|
|
|
|
CHAR szCSDVersion[128];
|
|
|
|
USHORT wServicePackMajor;
|
|
|
|
USHORT wServicePackMinor;
|
|
|
|
USHORT wSuiteMask;
|
|
|
|
UCHAR wProductType;
|
|
|
|
UCHAR wReserved;
|
|
|
|
} OSVERSIONINFOEXA, *POSVERSIONINFOEXA, *LPOSVERSIONINFOEXA;
|
|
|
|
|
|
|
|
typedef struct _OSVERSIONINFOEXW {
|
|
|
|
ULONG dwOSVersionInfoSize;
|
|
|
|
ULONG dwMajorVersion;
|
|
|
|
ULONG dwMinorVersion;
|
|
|
|
ULONG dwBuildNumber;
|
|
|
|
ULONG dwPlatformId;
|
|
|
|
WCHAR szCSDVersion[128];
|
|
|
|
USHORT wServicePackMajor;
|
|
|
|
USHORT wServicePackMinor;
|
|
|
|
USHORT wSuiteMask;
|
|
|
|
UCHAR wProductType;
|
|
|
|
UCHAR wReserved;
|
|
|
|
} OSVERSIONINFOEXW, *POSVERSIONINFOEXW, *LPOSVERSIONINFOEXW, RTL_OSVERSIONINFOEXW, *PRTL_OSVERSIONINFOEXW;
|
|
|
|
|
|
|
|
#ifdef UNICODE
|
|
|
|
typedef OSVERSIONINFOEXW OSVERSIONINFOEX;
|
|
|
|
typedef POSVERSIONINFOEXW POSVERSIONINFOEX;
|
|
|
|
typedef LPOSVERSIONINFOEXW LPOSVERSIONINFOEX;
|
|
|
|
typedef OSVERSIONINFOW OSVERSIONINFO;
|
|
|
|
typedef POSVERSIONINFOW POSVERSIONINFO;
|
|
|
|
typedef LPOSVERSIONINFOW LPOSVERSIONINFO;
|
|
|
|
#else
|
|
|
|
typedef OSVERSIONINFOEXA OSVERSIONINFOEX;
|
|
|
|
typedef POSVERSIONINFOEXA POSVERSIONINFOEX;
|
|
|
|
typedef LPOSVERSIONINFOEXA LPOSVERSIONINFOEX;
|
|
|
|
typedef OSVERSIONINFOA OSVERSIONINFO;
|
|
|
|
typedef POSVERSIONINFOA POSVERSIONINFO;
|
|
|
|
typedef LPOSVERSIONINFOA LPOSVERSIONINFO;
|
|
|
|
#endif /* UNICODE */
|
|
|
|
|
2010-03-27 15:31:25 +00:00
|
|
|
$endif (_WDMDDK_)
|
2010-03-23 00:27:32 +00:00
|
|
|
$if (_NTDDK_)
|
|
|
|
|
|
|
|
#ifndef _RTL_RUN_ONCE_DEF
|
|
|
|
#define _RTL_RUN_ONCE_DEF
|
|
|
|
|
|
|
|
#define RTL_RUN_ONCE_INIT {0}
|
|
|
|
|
|
|
|
#define RTL_RUN_ONCE_CHECK_ONLY 0x00000001UL
|
|
|
|
#define RTL_RUN_ONCE_ASYNC 0x00000002UL
|
|
|
|
#define RTL_RUN_ONCE_INIT_FAILED 0x00000004UL
|
|
|
|
|
|
|
|
#define RTL_RUN_ONCE_CTX_RESERVED_BITS 2
|
|
|
|
|
|
|
|
#define RTL_HASH_ALLOCATED_HEADER 0x00000001
|
|
|
|
|
|
|
|
#define RTL_HASH_RESERVED_SIGNATURE 0
|
|
|
|
|
|
|
|
/* RtlVerifyVersionInfo() ComparisonType */
|
|
|
|
|
|
|
|
#define VER_EQUAL 1
|
|
|
|
#define VER_GREATER 2
|
|
|
|
#define VER_GREATER_EQUAL 3
|
|
|
|
#define VER_LESS 4
|
|
|
|
#define VER_LESS_EQUAL 5
|
|
|
|
#define VER_AND 6
|
|
|
|
#define VER_OR 7
|
|
|
|
|
|
|
|
#define VER_CONDITION_MASK 7
|
|
|
|
#define VER_NUM_BITS_PER_CONDITION_MASK 3
|
|
|
|
|
|
|
|
/* RtlVerifyVersionInfo() TypeMask */
|
|
|
|
|
|
|
|
#define VER_MINORVERSION 0x0000001
|
|
|
|
#define VER_MAJORVERSION 0x0000002
|
|
|
|
#define VER_BUILDNUMBER 0x0000004
|
|
|
|
#define VER_PLATFORMID 0x0000008
|
|
|
|
#define VER_SERVICEPACKMINOR 0x0000010
|
|
|
|
#define VER_SERVICEPACKMAJOR 0x0000020
|
|
|
|
#define VER_SUITENAME 0x0000040
|
|
|
|
#define VER_PRODUCT_TYPE 0x0000080
|
|
|
|
|
|
|
|
#define VER_NT_WORKSTATION 0x0000001
|
|
|
|
#define VER_NT_DOMAIN_CONTROLLER 0x0000002
|
|
|
|
#define VER_NT_SERVER 0x0000003
|
|
|
|
|
|
|
|
#define VER_PLATFORM_WIN32s 0
|
|
|
|
#define VER_PLATFORM_WIN32_WINDOWS 1
|
|
|
|
#define VER_PLATFORM_WIN32_NT 2
|
|
|
|
|
|
|
|
typedef union _RTL_RUN_ONCE {
|
|
|
|
PVOID Ptr;
|
|
|
|
} RTL_RUN_ONCE, *PRTL_RUN_ONCE;
|
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_Function_class_(RTL_RUN_ONCE_INIT_FN)
|
|
|
|
_IRQL_requires_same_
|
2010-03-23 00:27:32 +00:00
|
|
|
typedef ULONG /* LOGICAL */
|
|
|
|
(NTAPI *PRTL_RUN_ONCE_INIT_FN) (
|
2012-01-22 14:43:53 +00:00
|
|
|
_Inout_ PRTL_RUN_ONCE RunOnce,
|
|
|
|
_Inout_opt_ PVOID Parameter,
|
|
|
|
_Inout_opt_ PVOID *Context);
|
2010-03-23 00:27:32 +00:00
|
|
|
|
|
|
|
#endif /* _RTL_RUN_ONCE_DEF */
|
|
|
|
|
|
|
|
typedef enum _TABLE_SEARCH_RESULT {
|
|
|
|
TableEmptyTree,
|
|
|
|
TableFoundNode,
|
|
|
|
TableInsertAsLeft,
|
|
|
|
TableInsertAsRight
|
|
|
|
} TABLE_SEARCH_RESULT;
|
|
|
|
|
|
|
|
typedef enum _RTL_GENERIC_COMPARE_RESULTS {
|
|
|
|
GenericLessThan,
|
|
|
|
GenericGreaterThan,
|
|
|
|
GenericEqual
|
|
|
|
} RTL_GENERIC_COMPARE_RESULTS;
|
|
|
|
|
|
|
|
// Forwarder
|
|
|
|
struct _RTL_AVL_TABLE;
|
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_same_
|
|
|
|
_Function_class_(RTL_AVL_COMPARE_ROUTINE)
|
2010-03-23 00:27:32 +00:00
|
|
|
typedef RTL_GENERIC_COMPARE_RESULTS
|
2011-08-05 01:20:28 +00:00
|
|
|
(NTAPI RTL_AVL_COMPARE_ROUTINE) (
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ struct _RTL_AVL_TABLE *Table,
|
|
|
|
_In_ PVOID FirstStruct,
|
|
|
|
_In_ PVOID SecondStruct);
|
2011-08-05 01:20:28 +00:00
|
|
|
typedef RTL_AVL_COMPARE_ROUTINE *PRTL_AVL_COMPARE_ROUTINE;
|
2010-03-23 00:27:32 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_same_
|
|
|
|
_Function_class_(RTL_AVL_ALLOCATE_ROUTINE)
|
|
|
|
__drv_allocatesMem(Mem)
|
2010-03-23 00:27:32 +00:00
|
|
|
typedef PVOID
|
2011-08-05 01:20:28 +00:00
|
|
|
(NTAPI RTL_AVL_ALLOCATE_ROUTINE) (
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ struct _RTL_AVL_TABLE *Table,
|
|
|
|
_In_ CLONG ByteSize);
|
2011-08-05 01:20:28 +00:00
|
|
|
typedef RTL_AVL_ALLOCATE_ROUTINE *PRTL_AVL_ALLOCATE_ROUTINE;
|
2010-03-23 00:27:32 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_same_
|
|
|
|
_Function_class_(RTL_AVL_FREE_ROUTINE)
|
2010-03-23 00:27:32 +00:00
|
|
|
typedef VOID
|
2011-08-05 01:20:28 +00:00
|
|
|
(NTAPI RTL_AVL_FREE_ROUTINE) (
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ struct _RTL_AVL_TABLE *Table,
|
|
|
|
_In_ __drv_freesMem(Mem) _Post_invalid_ PVOID Buffer);
|
2011-08-05 01:20:28 +00:00
|
|
|
typedef RTL_AVL_FREE_ROUTINE *PRTL_AVL_FREE_ROUTINE;
|
2010-03-23 00:27:32 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_same_
|
|
|
|
_Function_class_(RTL_AVL_MATCH_FUNCTION)
|
2010-03-23 00:27:32 +00:00
|
|
|
typedef NTSTATUS
|
2011-08-05 01:20:28 +00:00
|
|
|
(NTAPI RTL_AVL_MATCH_FUNCTION) (
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ struct _RTL_AVL_TABLE *Table,
|
|
|
|
_In_ PVOID UserData,
|
|
|
|
_In_ PVOID MatchData);
|
2011-08-05 01:20:28 +00:00
|
|
|
typedef RTL_AVL_MATCH_FUNCTION *PRTL_AVL_MATCH_FUNCTION;
|
2010-03-23 00:27:32 +00:00
|
|
|
|
|
|
|
typedef struct _RTL_BALANCED_LINKS {
|
|
|
|
struct _RTL_BALANCED_LINKS *Parent;
|
|
|
|
struct _RTL_BALANCED_LINKS *LeftChild;
|
|
|
|
struct _RTL_BALANCED_LINKS *RightChild;
|
|
|
|
CHAR Balance;
|
|
|
|
UCHAR Reserved[3];
|
|
|
|
} RTL_BALANCED_LINKS, *PRTL_BALANCED_LINKS;
|
|
|
|
|
|
|
|
typedef struct _RTL_AVL_TABLE {
|
|
|
|
RTL_BALANCED_LINKS BalancedRoot;
|
|
|
|
PVOID OrderedPointer;
|
|
|
|
ULONG WhichOrderedElement;
|
|
|
|
ULONG NumberGenericTableElements;
|
|
|
|
ULONG DepthOfTree;
|
|
|
|
PRTL_BALANCED_LINKS RestartKey;
|
|
|
|
ULONG DeleteCount;
|
|
|
|
PRTL_AVL_COMPARE_ROUTINE CompareRoutine;
|
|
|
|
PRTL_AVL_ALLOCATE_ROUTINE AllocateRoutine;
|
|
|
|
PRTL_AVL_FREE_ROUTINE FreeRoutine;
|
|
|
|
PVOID TableContext;
|
|
|
|
} RTL_AVL_TABLE, *PRTL_AVL_TABLE;
|
|
|
|
|
2011-08-05 01:20:28 +00:00
|
|
|
typedef struct _RTL_SPLAY_LINKS {
|
|
|
|
struct _RTL_SPLAY_LINKS *Parent;
|
|
|
|
struct _RTL_SPLAY_LINKS *LeftChild;
|
|
|
|
struct _RTL_SPLAY_LINKS *RightChild;
|
|
|
|
} RTL_SPLAY_LINKS, *PRTL_SPLAY_LINKS;
|
|
|
|
|
2010-03-23 00:27:32 +00:00
|
|
|
#ifndef RTL_USE_AVL_TABLES
|
|
|
|
|
|
|
|
struct _RTL_GENERIC_TABLE;
|
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_same_
|
|
|
|
_Function_class_(RTL_GENERIC_COMPARE_ROUTINE)
|
2010-03-23 00:27:32 +00:00
|
|
|
typedef RTL_GENERIC_COMPARE_RESULTS
|
2011-08-05 01:20:28 +00:00
|
|
|
(NTAPI RTL_GENERIC_COMPARE_ROUTINE) (
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ struct _RTL_GENERIC_TABLE *Table,
|
|
|
|
_In_ PVOID FirstStruct,
|
|
|
|
_In_ PVOID SecondStruct);
|
2011-08-05 01:20:28 +00:00
|
|
|
typedef RTL_GENERIC_COMPARE_ROUTINE *PRTL_GENERIC_COMPARE_ROUTINE;
|
2010-03-23 00:27:32 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_same_
|
|
|
|
_Function_class_(RTL_GENERIC_ALLOCATE_ROUTINE)
|
|
|
|
__drv_allocatesMem(Mem)
|
2010-03-23 00:27:32 +00:00
|
|
|
typedef PVOID
|
2011-08-05 01:20:28 +00:00
|
|
|
(NTAPI RTL_GENERIC_ALLOCATE_ROUTINE) (
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ struct _RTL_GENERIC_TABLE *Table,
|
|
|
|
_In_ CLONG ByteSize);
|
2011-08-05 01:20:28 +00:00
|
|
|
typedef RTL_GENERIC_ALLOCATE_ROUTINE *PRTL_GENERIC_ALLOCATE_ROUTINE;
|
2010-03-23 00:27:32 +00:00
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_IRQL_requires_same_
|
|
|
|
_Function_class_(RTL_GENERIC_FREE_ROUTINE)
|
2010-03-23 00:27:32 +00:00
|
|
|
typedef VOID
|
2011-08-05 01:20:28 +00:00
|
|
|
(NTAPI RTL_GENERIC_FREE_ROUTINE) (
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ struct _RTL_GENERIC_TABLE *Table,
|
|
|
|
_In_ __drv_freesMem(Mem) _Post_invalid_ PVOID Buffer);
|
2011-08-05 01:20:28 +00:00
|
|
|
typedef RTL_GENERIC_FREE_ROUTINE *PRTL_GENERIC_FREE_ROUTINE;
|
2010-03-23 00:27:32 +00:00
|
|
|
|
|
|
|
typedef struct _RTL_GENERIC_TABLE {
|
|
|
|
PRTL_SPLAY_LINKS TableRoot;
|
|
|
|
LIST_ENTRY InsertOrderList;
|
|
|
|
PLIST_ENTRY OrderedPointer;
|
|
|
|
ULONG WhichOrderedElement;
|
|
|
|
ULONG NumberGenericTableElements;
|
|
|
|
PRTL_GENERIC_COMPARE_ROUTINE CompareRoutine;
|
|
|
|
PRTL_GENERIC_ALLOCATE_ROUTINE AllocateRoutine;
|
|
|
|
PRTL_GENERIC_FREE_ROUTINE FreeRoutine;
|
|
|
|
PVOID TableContext;
|
|
|
|
} RTL_GENERIC_TABLE, *PRTL_GENERIC_TABLE;
|
|
|
|
|
|
|
|
#endif /* !RTL_USE_AVL_TABLES */
|
|
|
|
|
|
|
|
#ifdef RTL_USE_AVL_TABLES
|
|
|
|
|
2011-08-05 01:20:28 +00:00
|
|
|
#undef RTL_GENERIC_COMPARE_ROUTINE
|
2010-03-23 00:27:32 +00:00
|
|
|
#undef PRTL_GENERIC_COMPARE_ROUTINE
|
2011-08-05 01:20:28 +00:00
|
|
|
#undef RTL_GENERIC_ALLOCATE_ROUTINE
|
2010-03-23 00:27:32 +00:00
|
|
|
#undef PRTL_GENERIC_ALLOCATE_ROUTINE
|
2011-08-05 01:20:28 +00:00
|
|
|
#undef RTL_GENERIC_FREE_ROUTINE
|
2010-03-23 00:27:32 +00:00
|
|
|
#undef PRTL_GENERIC_FREE_ROUTINE
|
2011-08-05 01:20:28 +00:00
|
|
|
#undef RTL_GENERIC_TABLE
|
2010-03-23 00:27:32 +00:00
|
|
|
#undef PRTL_GENERIC_TABLE
|
|
|
|
|
2011-08-05 01:20:28 +00:00
|
|
|
#define RTL_GENERIC_COMPARE_ROUTINE RTL_AVL_COMPARE_ROUTINE
|
|
|
|
#define PRTL_GENERIC_COMPARE_ROUTINE PRTL_AVL_COMPARE_ROUTINE
|
|
|
|
#define RTL_GENERIC_ALLOCATE_ROUTINE RTL_AVL_ALLOCATE_ROUTINE
|
|
|
|
#define PRTL_GENERIC_ALLOCATE_ROUTINE PRTL_AVL_ALLOCATE_ROUTINE
|
|
|
|
#define RTL_GENERIC_FREE_ROUTINE RTL_AVL_FREE_ROUTINE
|
|
|
|
#define PRTL_GENERIC_FREE_ROUTINE PRTL_AVL_FREE_ROUTINE
|
|
|
|
#define RTL_GENERIC_TABLE RTL_AVL_TABLE
|
|
|
|
#define PRTL_GENERIC_TABLE PRTL_AVL_TABLE
|
2010-03-23 00:27:32 +00:00
|
|
|
|
|
|
|
#endif /* RTL_USE_AVL_TABLES */
|
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
#define RTL_HASH_ALLOCATED_HEADER 0x00000001
|
|
|
|
|
2010-03-23 00:27:32 +00:00
|
|
|
typedef struct _RTL_DYNAMIC_HASH_TABLE_ENTRY {
|
|
|
|
LIST_ENTRY Linkage;
|
|
|
|
ULONG_PTR Signature;
|
|
|
|
} RTL_DYNAMIC_HASH_TABLE_ENTRY, *PRTL_DYNAMIC_HASH_TABLE_ENTRY;
|
|
|
|
|
|
|
|
typedef struct _RTL_DYNAMIC_HASH_TABLE_CONTEXT {
|
|
|
|
PLIST_ENTRY ChainHead;
|
|
|
|
PLIST_ENTRY PrevLinkage;
|
|
|
|
ULONG_PTR Signature;
|
|
|
|
} RTL_DYNAMIC_HASH_TABLE_CONTEXT, *PRTL_DYNAMIC_HASH_TABLE_CONTEXT;
|
|
|
|
|
|
|
|
typedef struct _RTL_DYNAMIC_HASH_TABLE_ENUMERATOR {
|
|
|
|
RTL_DYNAMIC_HASH_TABLE_ENTRY HashEntry;
|
|
|
|
PLIST_ENTRY ChainHead;
|
|
|
|
ULONG BucketIndex;
|
|
|
|
} RTL_DYNAMIC_HASH_TABLE_ENUMERATOR, *PRTL_DYNAMIC_HASH_TABLE_ENUMERATOR;
|
|
|
|
|
|
|
|
typedef struct _RTL_DYNAMIC_HASH_TABLE {
|
|
|
|
ULONG Flags;
|
|
|
|
ULONG Shift;
|
|
|
|
ULONG TableSize;
|
|
|
|
ULONG Pivot;
|
|
|
|
ULONG DivisorMask;
|
|
|
|
ULONG NumEntries;
|
|
|
|
ULONG NonEmptyBuckets;
|
|
|
|
ULONG NumEnumerators;
|
|
|
|
PVOID Directory;
|
|
|
|
} RTL_DYNAMIC_HASH_TABLE, *PRTL_DYNAMIC_HASH_TABLE;
|
|
|
|
|
|
|
|
#define HASH_ENTRY_KEY(x) ((x)->Signature)
|
|
|
|
|
2010-03-27 15:31:25 +00:00
|
|
|
$endif (_NTDDK_)
|
|
|
|
$if (_NTIFS_)
|
|
|
|
|
|
|
|
#define RTL_SYSTEM_VOLUME_INFORMATION_FOLDER L"System Volume Information"
|
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_Function_class_(RTL_ALLOCATE_STRING_ROUTINE)
|
|
|
|
_IRQL_requires_max_(PASSIVE_LEVEL)
|
|
|
|
__drv_allocatesMem(Mem)
|
2010-03-27 15:31:25 +00:00
|
|
|
typedef PVOID
|
|
|
|
(NTAPI *PRTL_ALLOCATE_STRING_ROUTINE)(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ SIZE_T NumberOfBytes);
|
2010-03-27 15:31:25 +00:00
|
|
|
|
|
|
|
#if _WIN32_WINNT >= 0x0600
|
2012-01-22 14:43:53 +00:00
|
|
|
_Function_class_(RTL_REALLOCATE_STRING_ROUTINE)
|
|
|
|
_IRQL_requires_max_(PASSIVE_LEVEL)
|
|
|
|
__drv_allocatesMem(Mem)
|
2010-03-27 15:31:25 +00:00
|
|
|
typedef PVOID
|
|
|
|
(NTAPI *PRTL_REALLOCATE_STRING_ROUTINE)(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ SIZE_T NumberOfBytes,
|
2010-03-27 15:31:25 +00:00
|
|
|
IN PVOID Buffer);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef VOID
|
|
|
|
(NTAPI *PRTL_FREE_STRING_ROUTINE)(
|
2012-01-22 14:43:53 +00:00
|
|
|
_In_ __drv_freesMem(Mem) _Post_invalid_ PVOID Buffer);
|
2010-03-27 15:31:25 +00:00
|
|
|
|
2014-10-03 19:36:22 +00:00
|
|
|
extern NTKERNELAPI const PRTL_ALLOCATE_STRING_ROUTINE RtlAllocateStringRoutine;
|
|
|
|
extern NTKERNELAPI const PRTL_FREE_STRING_ROUTINE RtlFreeStringRoutine;
|
2010-03-27 15:31:25 +00:00
|
|
|
|
|
|
|
#if _WIN32_WINNT >= 0x0600
|
2014-10-03 19:36:22 +00:00
|
|
|
extern NTKERNELAPI const PRTL_REALLOCATE_STRING_ROUTINE RtlReallocateStringRoutine;
|
2010-03-27 15:31:25 +00:00
|
|
|
#endif
|
|
|
|
|
2012-01-22 14:43:53 +00:00
|
|
|
_Function_class_(RTL_HEAP_COMMIT_ROUTINE)
|
|
|
|
_IRQL_requires_same_
|
2010-03-27 15:31:25 +00:00
|
|
|
typedef NTSTATUS
|
2012-01-22 14:43:53 +00:00
|
|
|
(NTAPI *PRTL_HEAP_COMMIT_ROUTINE) (
|
|
|
|
_In_ PVOID Base,
|
|
|
|
_Inout_ PVOID *CommitAddress,
|
|
|
|
_Inout_ PSIZE_T CommitSize);
|
2010-03-27 15:31:25 +00:00
|
|
|
|
|
|
|
typedef struct _RTL_HEAP_PARAMETERS {
|
|
|
|
ULONG Length;
|
|
|
|
SIZE_T SegmentReserve;
|
|
|
|
SIZE_T SegmentCommit;
|
|
|
|
SIZE_T DeCommitFreeBlockThreshold;
|
|
|
|
SIZE_T DeCommitTotalFreeThreshold;
|
|
|
|
SIZE_T MaximumAllocationSize;
|
|
|
|
SIZE_T VirtualMemoryThreshold;
|
|
|
|
SIZE_T InitialCommit;
|
|
|
|
SIZE_T InitialReserve;
|
|
|
|
PRTL_HEAP_COMMIT_ROUTINE CommitRoutine;
|
|
|
|
SIZE_T Reserved[2];
|
|
|
|
} RTL_HEAP_PARAMETERS, *PRTL_HEAP_PARAMETERS;
|
|
|
|
|
|
|
|
#if (NTDDI_VERSION >= NTDDI_WIN2K)
|
|
|
|
|
|
|
|
typedef struct _GENERATE_NAME_CONTEXT {
|
|
|
|
USHORT Checksum;
|
|
|
|
BOOLEAN CheckSumInserted;
|
2012-01-22 14:43:53 +00:00
|
|
|
_Field_range_(<=, 8) UCHAR NameLength;
|
2010-03-27 15:31:25 +00:00
|
|
|
WCHAR NameBuffer[8];
|
2012-01-22 14:43:53 +00:00
|
|
|
_Field_range_(<=, 4) ULONG ExtensionLength;
|
2010-03-27 15:31:25 +00:00
|
|
|
WCHAR ExtensionBuffer[4];
|
|
|
|
ULONG LastIndexValue;
|
|
|
|
} GENERATE_NAME_CONTEXT, *PGENERATE_NAME_CONTEXT;
|
|
|
|
|
|
|
|
typedef struct _PREFIX_TABLE_ENTRY {
|
|
|
|
CSHORT NodeTypeCode;
|
|
|
|
CSHORT NameLength;
|
|
|
|
struct _PREFIX_TABLE_ENTRY *NextPrefixTree;
|
|
|
|
RTL_SPLAY_LINKS Links;
|
|
|
|
PSTRING Prefix;
|
|
|
|
} PREFIX_TABLE_ENTRY, *PPREFIX_TABLE_ENTRY;
|
|
|
|
|
|
|
|
typedef struct _PREFIX_TABLE {
|
|
|
|
CSHORT NodeTypeCode;
|
|
|
|
CSHORT NameLength;
|
|
|
|
PPREFIX_TABLE_ENTRY NextPrefixTree;
|
|
|
|
} PREFIX_TABLE, *PPREFIX_TABLE;
|
|
|
|
|
|
|
|
typedef struct _UNICODE_PREFIX_TABLE_ENTRY {
|
|
|
|
CSHORT NodeTypeCode;
|
|
|
|
CSHORT NameLength;
|
|
|
|
struct _UNICODE_PREFIX_TABLE_ENTRY *NextPrefixTree;
|
|
|
|
struct _UNICODE_PREFIX_TABLE_ENTRY *CaseMatch;
|
|
|
|
RTL_SPLAY_LINKS Links;
|
|
|
|
PUNICODE_STRING Prefix;
|
|
|
|
} UNICODE_PREFIX_TABLE_ENTRY, *PUNICODE_PREFIX_TABLE_ENTRY;
|
|
|
|
|
|
|
|
typedef struct _UNICODE_PREFIX_TABLE {
|
|
|
|
CSHORT NodeTypeCode;
|
|
|
|
CSHORT NameLength;
|
|
|
|
PUNICODE_PREFIX_TABLE_ENTRY NextPrefixTree;
|
|
|
|
PUNICODE_PREFIX_TABLE_ENTRY LastNextEntry;
|
|
|
|
} UNICODE_PREFIX_TABLE, *PUNICODE_PREFIX_TABLE;
|
|
|
|
|
|
|
|
#endif /* (NTDDI_VERSION >= NTDDI_WIN2K) */
|
|
|
|
|
|
|
|
#if (NTDDI_VERSION >= NTDDI_WINXP)
|
|
|
|
typedef struct _COMPRESSED_DATA_INFO {
|
|
|
|
USHORT CompressionFormatAndEngine;
|
|
|
|
UCHAR CompressionUnitShift;
|
|
|
|
UCHAR ChunkShift;
|
|
|
|
UCHAR ClusterShift;
|
|
|
|
UCHAR Reserved;
|
|
|
|
USHORT NumberOfChunks;
|
|
|
|
ULONG CompressedChunkSizes[ANYSIZE_ARRAY];
|
|
|
|
} COMPRESSED_DATA_INFO, *PCOMPRESSED_DATA_INFO;
|
|
|
|
#endif
|
2012-01-13 17:45:26 +00:00
|
|
|
$endif (_NTIFS_)
|