mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 16:43:04 +00:00
[FREELDR] Define _BLDR_ for WDK header compatibility
[HAL] Define _NTHALDLL_ for WDK header compatibility, get rif of DECLSPEC_IMPORT header hack [NDK/RTL] Fix some Rtl prototypes (PCHAR -> PCCH) [NDK] Fix ZwOpenEvent prototype [NTIFS] Fix definition of NTKERNELAPI, move some types, fix PRTL_ALLOCATE_STRING_ROUTINE, PRTL_REALLOCATE_STRING_ROUTINE, PRTL_FREE_STRING_ROUTINE, define CTL_CODE, DEVICE_TYPE_FROM_CTL_CODE, FILE_ANY_ACCESS, FILE_SPECIAL_ACCESS, FILE_READ_ACCESS, FILE_WRITE_ACCESS identical to wdm.h, remove duplicate RtlGenerate8dot3Name, remove ZwOpenEvent [NTPOAPI] Guard some types with #ifndef _PO_DDK_ [WDM] Create reactos compatible definition of NTKERNELAPI, add KDPC_WATCHDOG_INFORMATION, BATTERY_REPORTING_SCALE, fix ALIGN_UP_POINTER_BY, guard some types with #ifndef _PO_DDK_, update POWER_INFORMATION_LEVEL, make some FILE_DEVICE_ definitions identical to ntifs.h, fix HalAllocateCommonBuffer svn path=/branches/header-work/; revision=46050
This commit is contained in:
parent
ce0d1d6fe7
commit
e0c972bf4e
16 changed files with 299 additions and 242 deletions
|
@ -6,6 +6,7 @@
|
||||||
<include base="ntoskrnl">include</include>
|
<include base="ntoskrnl">include</include>
|
||||||
<include base="ReactOS">include/reactos/libs</include>
|
<include base="ReactOS">include/reactos/libs</include>
|
||||||
<include base="ReactOS">include/reactos/elf</include>
|
<include base="ReactOS">include/reactos/elf</include>
|
||||||
|
<define name="_BLDR_" />
|
||||||
<define name="_NTHAL_" />
|
<define name="_NTHAL_" />
|
||||||
<define name="_NTSYSTEM_" />
|
<define name="_NTSYSTEM_" />
|
||||||
<directory name="arch">
|
<directory name="arch">
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
<include base="freeldr_base">cache</include>
|
<include base="freeldr_base">cache</include>
|
||||||
<include base="cmlib">.</include>
|
<include base="cmlib">.</include>
|
||||||
<include base="ntoskrnl">include</include>
|
<include base="ntoskrnl">include</include>
|
||||||
|
<define name="_BLDR_" />
|
||||||
<define name="_NTHAL_" />
|
<define name="_NTHAL_" />
|
||||||
<define name="_NTSYSTEM_" />
|
<define name="_NTSYSTEM_" />
|
||||||
<directory name="arcemul">
|
<directory name="arcemul">
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
<bootstrap installbase="$(CDOUTPUT)" />
|
<bootstrap installbase="$(CDOUTPUT)" />
|
||||||
<include>include</include>
|
<include>include</include>
|
||||||
<include base="ntoskrnl">include</include>
|
<include base="ntoskrnl">include</include>
|
||||||
|
<define name="_NTHALDLL_" />
|
||||||
<define name="_NTHAL_" />
|
<define name="_NTHAL_" />
|
||||||
<library>hal_generic</library>
|
<library>hal_generic</library>
|
||||||
<library>hal_generic_up</library>
|
<library>hal_generic_up</library>
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
<module name="hal_generic" type="objectlibrary">
|
<module name="hal_generic" type="objectlibrary">
|
||||||
<include>include</include>
|
<include>include</include>
|
||||||
<include base="ntoskrnl">include</include>
|
<include base="ntoskrnl">include</include>
|
||||||
|
<define name="_NTHALDLL_" />
|
||||||
<define name="_NTHAL_" />
|
<define name="_NTHAL_" />
|
||||||
<directory name="generic">
|
<directory name="generic">
|
||||||
<directory name="bus">
|
<directory name="bus">
|
||||||
|
@ -38,8 +39,9 @@
|
||||||
<module name="mini_hal" type="objectlibrary">
|
<module name="mini_hal" type="objectlibrary">
|
||||||
<include>include</include>
|
<include>include</include>
|
||||||
<include base="ntoskrnl">include</include>
|
<include base="ntoskrnl">include</include>
|
||||||
|
<define name="_NTHALDLL_" />
|
||||||
<define name="_NTHAL_" />
|
<define name="_NTHAL_" />
|
||||||
<define name="_NTSYSTEM_" />
|
<define name="_BLDR_" />
|
||||||
<define name="_MINIHAL_" />
|
<define name="_MINIHAL_" />
|
||||||
<directory name="generic">
|
<directory name="generic">
|
||||||
<directory name="bus">
|
<directory name="bus">
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
<module name="hal_generic_mp" type="objectlibrary">
|
<module name="hal_generic_mp" type="objectlibrary">
|
||||||
<include>include</include>
|
<include>include</include>
|
||||||
<include base="ntoskrnl">include</include>
|
<include base="ntoskrnl">include</include>
|
||||||
|
<define name="_NTHALDLL_" />
|
||||||
<define name="_NTHAL_" />
|
<define name="_NTHAL_" />
|
||||||
<define name="CONFIG_SMP" />
|
<define name="CONFIG_SMP" />
|
||||||
<directory name="mp">
|
<directory name="mp">
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
<module name="hal_generic_up" type="objectlibrary">
|
<module name="hal_generic_up" type="objectlibrary">
|
||||||
<include>include</include>
|
<include>include</include>
|
||||||
<include base="ntoskrnl">include</include>
|
<include base="ntoskrnl">include</include>
|
||||||
|
<define name="_NTHALDLL_" />
|
||||||
<define name="_NTHAL_" />
|
<define name="_NTHAL_" />
|
||||||
<directory name="generic">
|
<directory name="generic">
|
||||||
<file>pic.c</file>
|
<file>pic.c</file>
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
<include>include</include>
|
<include>include</include>
|
||||||
<include base="ntoskrnl">include</include>
|
<include base="ntoskrnl">include</include>
|
||||||
<define name="CONFIG_SMP" />
|
<define name="CONFIG_SMP" />
|
||||||
|
<define name="_NTHALDLL_" />
|
||||||
<define name="_NTHAL_" />
|
<define name="_NTHAL_" />
|
||||||
<library>hal_generic</library>
|
<library>hal_generic</library>
|
||||||
<library>hal_generic_mp</library>
|
<library>hal_generic_mp</library>
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
<importlibrary base="hal" definition="../hal.pspec" />
|
<importlibrary base="hal" definition="../hal.pspec" />
|
||||||
<include>include</include>
|
<include>include</include>
|
||||||
<include base="ntoskrnl">include</include>
|
<include base="ntoskrnl">include</include>
|
||||||
|
<define name="_NTHALDLL_" />
|
||||||
<define name="_NTHAL_" />
|
<define name="_NTHAL_" />
|
||||||
<define name="SARCH_XBOX" />
|
<define name="SARCH_XBOX" />
|
||||||
<library>hal_generic</library>
|
<library>hal_generic</library>
|
||||||
|
|
|
@ -14,14 +14,12 @@
|
||||||
/* WDK HAL Compilation hack */
|
/* WDK HAL Compilation hack */
|
||||||
#include <excpt.h>
|
#include <excpt.h>
|
||||||
#include <ntdef.h>
|
#include <ntdef.h>
|
||||||
#undef _NTHAL_
|
|
||||||
#undef DECLSPEC_IMPORT
|
|
||||||
#define DECLSPEC_IMPORT
|
|
||||||
#ifndef _MINIHAL_
|
#ifndef _MINIHAL_
|
||||||
#undef NTSYSAPI
|
#undef NTSYSAPI
|
||||||
#define NTSYSAPI __declspec(dllimport)
|
#define NTSYSAPI __declspec(dllimport)
|
||||||
#else
|
#else
|
||||||
#undef _NTSYSTEM_
|
#undef NTSYSAPI
|
||||||
|
#define NTSYSAPI
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* IFS/DDK/NDK Headers */
|
/* IFS/DDK/NDK Headers */
|
||||||
|
|
|
@ -44,7 +44,8 @@ extern "C" {
|
||||||
#define NTHALAPI
|
#define NTHALAPI
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_NTOSKRNL_) /* For ReactOS */
|
/* For ReactOS */
|
||||||
|
#if !defined(_NTOSKRNL_) && !defined(_BLDR_)
|
||||||
#define NTKERNELAPI DECLSPEC_IMPORT
|
#define NTKERNELAPI DECLSPEC_IMPORT
|
||||||
#else
|
#else
|
||||||
#define NTKERNELAPI
|
#define NTKERNELAPI
|
||||||
|
@ -1484,6 +1485,16 @@ RtlUpcaseUnicodeToOemN(
|
||||||
IN PCWCH UnicodeString,
|
IN PCWCH UnicodeString,
|
||||||
IN ULONG BytesInUnicodeString);
|
IN ULONG BytesInUnicodeString);
|
||||||
|
|
||||||
|
typedef struct _GENERATE_NAME_CONTEXT {
|
||||||
|
USHORT Checksum;
|
||||||
|
BOOLEAN CheckSumInserted;
|
||||||
|
UCHAR NameLength;
|
||||||
|
WCHAR NameBuffer[8];
|
||||||
|
ULONG ExtensionLength;
|
||||||
|
WCHAR ExtensionBuffer[4];
|
||||||
|
ULONG LastIndexValue;
|
||||||
|
} GENERATE_NAME_CONTEXT, *PGENERATE_NAME_CONTEXT;
|
||||||
|
|
||||||
#if (NTDDI_VERSION >= NTDDI_VISTASP1)
|
#if (NTDDI_VERSION >= NTDDI_VISTASP1)
|
||||||
NTSYSAPI
|
NTSYSAPI
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
|
@ -1518,6 +1529,26 @@ NTAPI
|
||||||
RtlIsValidOemCharacter(
|
RtlIsValidOemCharacter(
|
||||||
IN OUT PWCHAR Char);
|
IN OUT PWCHAR Char);
|
||||||
|
|
||||||
|
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;
|
||||||
|
|
||||||
|
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;
|
||||||
|
|
||||||
NTSYSAPI
|
NTSYSAPI
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
@ -1546,6 +1577,22 @@ PfxFindPrefix(
|
||||||
IN PPREFIX_TABLE PrefixTable,
|
IN PPREFIX_TABLE PrefixTable,
|
||||||
IN PSTRING FullName);
|
IN PSTRING FullName);
|
||||||
|
|
||||||
|
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;
|
||||||
|
|
||||||
NTSYSAPI
|
NTSYSAPI
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
@ -1963,6 +2010,16 @@ RtlReserveChunk(
|
||||||
OUT PUCHAR *ChunkBuffer,
|
OUT PUCHAR *ChunkBuffer,
|
||||||
IN ULONG ChunkSize);
|
IN ULONG ChunkSize);
|
||||||
|
|
||||||
|
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;
|
||||||
|
|
||||||
NTSYSAPI
|
NTSYSAPI
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
|
@ -2293,7 +2350,7 @@ HEAP_MAKE_TAG_FLAGS(
|
||||||
IN ULONG TagBase,
|
IN ULONG TagBase,
|
||||||
IN ULONG Tag)
|
IN ULONG Tag)
|
||||||
{
|
{
|
||||||
__assume_bound(TagBase);
|
//__assume_bound(TagBase); // FIXME
|
||||||
return ((ULONG)((TagBase) + ((Tag) << HEAP_TAG_SHIFT)));
|
return ((ULONG)((TagBase) + ((Tag) << HEAP_TAG_SHIFT)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2316,20 +2373,20 @@ HEAP_MAKE_TAG_FLAGS(
|
||||||
)
|
)
|
||||||
|
|
||||||
typedef PVOID
|
typedef PVOID
|
||||||
(NTAPI *PRTL_ALLOCATE_STRING_ROUTINE (
|
(NTAPI *PRTL_ALLOCATE_STRING_ROUTINE)(
|
||||||
IN SIZE_T NumberOfBytes);
|
IN SIZE_T NumberOfBytes);
|
||||||
|
|
||||||
#if _WIN32_WINNT >= 0x0600
|
#if _WIN32_WINNT >= 0x0600
|
||||||
|
|
||||||
typedef PVOID
|
typedef PVOID
|
||||||
(NTAPI *PRTL_REALLOCATE_STRING_ROUTINE (
|
(NTAPI *PRTL_REALLOCATE_STRING_ROUTINE)(
|
||||||
IN SIZE_T NumberOfBytes,
|
IN SIZE_T NumberOfBytes,
|
||||||
IN PVOID Buffer);
|
IN PVOID Buffer);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef VOID
|
typedef VOID
|
||||||
(NTAPI *PRTL_FREE_STRING_ROUTINE (
|
(NTAPI *PRTL_FREE_STRING_ROUTINE)(
|
||||||
IN PVOID Buffer);
|
IN PVOID Buffer);
|
||||||
|
|
||||||
extern const PRTL_ALLOCATE_STRING_ROUTINE RtlAllocateStringRoutine;
|
extern const PRTL_ALLOCATE_STRING_ROUTINE RtlAllocateStringRoutine;
|
||||||
|
@ -2339,46 +2396,6 @@ extern const PRTL_FREE_STRING_ROUTINE RtlFreeStringRoutine;
|
||||||
extern const PRTL_REALLOCATE_STRING_ROUTINE RtlReallocateStringRoutine;
|
extern const PRTL_REALLOCATE_STRING_ROUTINE RtlReallocateStringRoutine;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef struct _GENERATE_NAME_CONTEXT {
|
|
||||||
USHORT Checksum;
|
|
||||||
BOOLEAN CheckSumInserted;
|
|
||||||
UCHAR NameLength;
|
|
||||||
WCHAR NameBuffer[8];
|
|
||||||
ULONG ExtensionLength;
|
|
||||||
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;
|
|
||||||
|
|
||||||
#define COMPRESSION_FORMAT_NONE (0x0000)
|
#define COMPRESSION_FORMAT_NONE (0x0000)
|
||||||
#define COMPRESSION_FORMAT_DEFAULT (0x0001)
|
#define COMPRESSION_FORMAT_DEFAULT (0x0001)
|
||||||
#define COMPRESSION_FORMAT_LZNT1 (0x0002)
|
#define COMPRESSION_FORMAT_LZNT1 (0x0002)
|
||||||
|
@ -2386,16 +2403,6 @@ typedef struct _UNICODE_PREFIX_TABLE {
|
||||||
#define COMPRESSION_ENGINE_MAXIMUM (0x0100)
|
#define COMPRESSION_ENGINE_MAXIMUM (0x0100)
|
||||||
#define COMPRESSION_ENGINE_HIBER (0x0200)
|
#define COMPRESSION_ENGINE_HIBER (0x0200)
|
||||||
|
|
||||||
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;
|
|
||||||
|
|
||||||
#define RtlOffsetToPointer(B,O) ((PCHAR)( ((PCHAR)(B)) + ((ULONG_PTR)(O)) ))
|
#define RtlOffsetToPointer(B,O) ((PCHAR)( ((PCHAR)(B)) + ((ULONG_PTR)(O)) ))
|
||||||
#define RtlPointerToOffset(B,P) ((ULONG)( ((PCHAR)(P)) - ((PCHAR)(B)) ))
|
#define RtlPointerToOffset(B,P) ((ULONG)( ((PCHAR)(P)) - ((PCHAR)(B)) ))
|
||||||
|
|
||||||
|
@ -2473,10 +2480,11 @@ typedef struct _COMPRESSED_DATA_INFO {
|
||||||
#define FILE_DEVICE_BIOMETRIC 0x00000044
|
#define FILE_DEVICE_BIOMETRIC 0x00000044
|
||||||
#define FILE_DEVICE_PMI 0x00000045
|
#define FILE_DEVICE_PMI 0x00000045
|
||||||
|
|
||||||
#define CTL_CODE( DeviceType, Function, Method, Access ) ( \
|
#define CTL_CODE(DeviceType, Function, Method, Access) \
|
||||||
((DeviceType) << 16) | ((Access) << 14) | ((Function) << 2) | (Method) \
|
(((DeviceType) << 16) | ((Access) << 14) | ((Function) << 2) | (Method))
|
||||||
)
|
|
||||||
#define DEVICE_TYPE_FROM_CTL_CODE(ctrlCode) (((ULONG)(ctrlCode & 0xffff0000)) >> 16)
|
#define DEVICE_TYPE_FROM_CTL_CODE(ctl) (((ULONG) (ctl & 0xffff0000)) >> 16)
|
||||||
|
|
||||||
#define METHOD_FROM_CTL_CODE(ctrlCode) ((ULONG)(ctrlCode & 3))
|
#define METHOD_FROM_CTL_CODE(ctrlCode) ((ULONG)(ctrlCode & 3))
|
||||||
|
|
||||||
#define METHOD_BUFFERED 0
|
#define METHOD_BUFFERED 0
|
||||||
|
@ -2486,10 +2494,10 @@ typedef struct _COMPRESSED_DATA_INFO {
|
||||||
#define METHOD_DIRECT_TO_HARDWARE METHOD_IN_DIRECT
|
#define METHOD_DIRECT_TO_HARDWARE METHOD_IN_DIRECT
|
||||||
#define METHOD_DIRECT_FROM_HARDWARE METHOD_OUT_DIRECT
|
#define METHOD_DIRECT_FROM_HARDWARE METHOD_OUT_DIRECT
|
||||||
|
|
||||||
#define FILE_ANY_ACCESS 0
|
#define FILE_ANY_ACCESS 0x00000000
|
||||||
#define FILE_SPECIAL_ACCESS (FILE_ANY_ACCESS)
|
#define FILE_SPECIAL_ACCESS FILE_ANY_ACCESS
|
||||||
#define FILE_READ_ACCESS ( 0x0001 )
|
#define FILE_READ_ACCESS 0x00000001
|
||||||
#define FILE_WRITE_ACCESS ( 0x0002 )
|
#define FILE_WRITE_ACCESS 0x00000002
|
||||||
|
|
||||||
typedef ULONG LSA_OPERATIONAL_MODE, *PLSA_OPERATIONAL_MODE;
|
typedef ULONG LSA_OPERATIONAL_MODE, *PLSA_OPERATIONAL_MODE;
|
||||||
|
|
||||||
|
@ -5624,12 +5632,6 @@ typedef struct _QUERY_PATH_RESPONSE {
|
||||||
ULONG LengthAccepted;
|
ULONG LengthAccepted;
|
||||||
} QUERY_PATH_RESPONSE, *PQUERY_PATH_RESPONSE;
|
} QUERY_PATH_RESPONSE, *PQUERY_PATH_RESPONSE;
|
||||||
|
|
||||||
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;
|
|
||||||
|
|
||||||
typedef struct _RTL_BALANCED_LINKS
|
typedef struct _RTL_BALANCED_LINKS
|
||||||
{
|
{
|
||||||
struct _RTL_BALANCED_LINKS *Parent;
|
struct _RTL_BALANCED_LINKS *Parent;
|
||||||
|
@ -8235,16 +8237,6 @@ PsRevertToSelf (
|
||||||
VOID
|
VOID
|
||||||
);
|
);
|
||||||
|
|
||||||
NTSYSAPI
|
|
||||||
VOID
|
|
||||||
NTAPI
|
|
||||||
RtlGenerate8dot3Name (
|
|
||||||
IN PUNICODE_STRING Name,
|
|
||||||
IN BOOLEAN AllowExtendedCharacters,
|
|
||||||
IN OUT PGENERATE_NAME_CONTEXT Context,
|
|
||||||
OUT PUNICODE_STRING Name8dot3
|
|
||||||
);
|
|
||||||
|
|
||||||
NTSYSAPI
|
NTSYSAPI
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
@ -8948,15 +8940,6 @@ ZwOpenDirectoryObject (
|
||||||
IN POBJECT_ATTRIBUTES ObjectAttributes
|
IN POBJECT_ATTRIBUTES ObjectAttributes
|
||||||
);
|
);
|
||||||
|
|
||||||
NTSYSAPI
|
|
||||||
NTSTATUS
|
|
||||||
NTAPI
|
|
||||||
ZwOpenEvent (
|
|
||||||
OUT PHANDLE EventHandle,
|
|
||||||
IN ACCESS_MASK DesiredAccess,
|
|
||||||
IN POBJECT_ATTRIBUTES ObjectAttributes
|
|
||||||
);
|
|
||||||
|
|
||||||
NTSYSAPI
|
NTSYSAPI
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
|
|
|
@ -27,15 +27,122 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef _PO_DDK_
|
||||||
|
#define _PO_DDK_
|
||||||
|
|
||||||
|
/* Power States/Levels */
|
||||||
|
typedef enum _SYSTEM_POWER_STATE {
|
||||||
|
PowerSystemUnspecified,
|
||||||
|
PowerSystemWorking,
|
||||||
|
PowerSystemSleeping1,
|
||||||
|
PowerSystemSleeping2,
|
||||||
|
PowerSystemSleeping3,
|
||||||
|
PowerSystemHibernate,
|
||||||
|
PowerSystemShutdown,
|
||||||
|
PowerSystemMaximum
|
||||||
|
} SYSTEM_POWER_STATE, *PSYSTEM_POWER_STATE;
|
||||||
|
#define POWER_SYSTEM_MAXIMUM PowerSystemMaximum
|
||||||
|
|
||||||
|
typedef enum _DEVICE_POWER_STATE {
|
||||||
|
PowerDeviceUnspecified,
|
||||||
|
PowerDeviceD0,
|
||||||
|
PowerDeviceD1,
|
||||||
|
PowerDeviceD2,
|
||||||
|
PowerDeviceD3,
|
||||||
|
PowerDeviceMaximum
|
||||||
|
} DEVICE_POWER_STATE, *PDEVICE_POWER_STATE;
|
||||||
|
|
||||||
|
typedef union _POWER_STATE {
|
||||||
|
SYSTEM_POWER_STATE SystemState;
|
||||||
|
DEVICE_POWER_STATE DeviceState;
|
||||||
|
} POWER_STATE, *PPOWER_STATE;
|
||||||
|
|
||||||
|
typedef enum _POWER_STATE_TYPE {
|
||||||
|
SystemPowerState = 0,
|
||||||
|
DevicePowerState
|
||||||
|
} POWER_STATE_TYPE, *PPOWER_STATE_TYPE;
|
||||||
|
|
||||||
|
typedef enum _POWER_INFORMATION_LEVEL {
|
||||||
|
SystemPowerPolicyAc,
|
||||||
|
SystemPowerPolicyDc,
|
||||||
|
VerifySystemPolicyAc,
|
||||||
|
VerifySystemPolicyDc,
|
||||||
|
SystemPowerCapabilities,
|
||||||
|
SystemBatteryState,
|
||||||
|
SystemPowerStateHandler,
|
||||||
|
ProcessorStateHandler,
|
||||||
|
SystemPowerPolicyCurrent,
|
||||||
|
AdministratorPowerPolicy,
|
||||||
|
SystemReserveHiberFile,
|
||||||
|
ProcessorInformation,
|
||||||
|
SystemPowerInformation,
|
||||||
|
ProcessorStateHandler2,
|
||||||
|
LastWakeTime,
|
||||||
|
LastSleepTime,
|
||||||
|
SystemExecutionState,
|
||||||
|
SystemPowerStateNotifyHandler,
|
||||||
|
ProcessorPowerPolicyAc,
|
||||||
|
ProcessorPowerPolicyDc,
|
||||||
|
VerifyProcessorPowerPolicyAc,
|
||||||
|
VerifyProcessorPowerPolicyDc,
|
||||||
|
ProcessorPowerPolicyCurrent,
|
||||||
|
SystemPowerStateLogging,
|
||||||
|
SystemPowerLoggingEntry,
|
||||||
|
SetPowerSettingValue,
|
||||||
|
NotifyUserPowerSetting,
|
||||||
|
PowerInformationLevelUnused0,
|
||||||
|
PowerInformationLevelUnused1,
|
||||||
|
SystemVideoState,
|
||||||
|
TraceApplicationPowerMessage,
|
||||||
|
TraceApplicationPowerMessageEnd,
|
||||||
|
ProcessorPerfStates,
|
||||||
|
ProcessorIdleStates,
|
||||||
|
ProcessorCap,
|
||||||
|
SystemWakeSource,
|
||||||
|
SystemHiberFileInformation,
|
||||||
|
TraceServicePowerMessage,
|
||||||
|
ProcessorLoad,
|
||||||
|
PowerShutdownNotification,
|
||||||
|
MonitorCapabilities,
|
||||||
|
SessionPowerInit,
|
||||||
|
SessionDisplayState,
|
||||||
|
PowerRequestCreate,
|
||||||
|
PowerRequestAction,
|
||||||
|
GetPowerRequestList,
|
||||||
|
ProcessorInformationEx,
|
||||||
|
NotifyUserModeLegacyPowerEvent,
|
||||||
|
GroupPark,
|
||||||
|
ProcessorIdleDomains,
|
||||||
|
WakeTimerList,
|
||||||
|
SystemHiberFileSize,
|
||||||
|
PowerInformationLevelMaximum
|
||||||
|
} POWER_INFORMATION_LEVEL;
|
||||||
|
|
||||||
|
typedef enum {
|
||||||
|
PowerActionNone,
|
||||||
|
PowerActionReserved,
|
||||||
|
PowerActionSleep,
|
||||||
|
PowerActionHibernate,
|
||||||
|
PowerActionShutdown,
|
||||||
|
PowerActionShutdownReset,
|
||||||
|
PowerActionShutdownOff,
|
||||||
|
PowerActionWarmEject
|
||||||
|
} POWER_ACTION, *PPOWER_ACTION;
|
||||||
|
|
||||||
|
#if (NTDDI_VERSION >= NTDDI_WINXP) || !defined(_BATCLASS_)
|
||||||
|
typedef struct {
|
||||||
|
ULONG Granularity;
|
||||||
|
ULONG Capacity;
|
||||||
|
} BATTERY_REPORTING_SCALE, *PBATTERY_REPORTING_SCALE;
|
||||||
|
#endif /* (NTDDI_VERSION >= NTDDI_WINXP) || !defined(_BATCLASS_) */
|
||||||
|
|
||||||
|
|
||||||
|
#endif /* _PO_DDK_ */
|
||||||
|
|
||||||
#define POWER_PERF_SCALE 100
|
#define POWER_PERF_SCALE 100
|
||||||
#define PERF_LEVEL_TO_PERCENT(x) (((x) * 1000) / (POWER_PERF_SCALE * 10))
|
#define PERF_LEVEL_TO_PERCENT(x) (((x) * 1000) / (POWER_PERF_SCALE * 10))
|
||||||
#define PERCENT_TO_PERF_LEVEL(x) (((x) * POWER_PERF_SCALE * 10) / 1000)
|
#define PERCENT_TO_PERF_LEVEL(x) (((x) * POWER_PERF_SCALE * 10) / 1000)
|
||||||
|
|
||||||
typedef struct {
|
|
||||||
ULONG Granularity;
|
|
||||||
ULONG Capacity;
|
|
||||||
} BATTERY_REPORTING_SCALE, *PBATTERY_REPORTING_SCALE;
|
|
||||||
|
|
||||||
typedef struct _PROCESSOR_IDLE_TIMES {
|
typedef struct _PROCESSOR_IDLE_TIMES {
|
||||||
ULONGLONG StartTime;
|
ULONGLONG StartTime;
|
||||||
ULONGLONG EndTime;
|
ULONGLONG EndTime;
|
||||||
|
@ -153,108 +260,6 @@ typedef struct _PROCESSOR_STATE_HANDLER2 {
|
||||||
PROCESSOR_PERF_LEVEL PerfLevel[1];
|
PROCESSOR_PERF_LEVEL PerfLevel[1];
|
||||||
} PROCESSOR_STATE_HANDLER2, *PPROCESSOR_STATE_HANDLER2;
|
} PROCESSOR_STATE_HANDLER2, *PPROCESSOR_STATE_HANDLER2;
|
||||||
|
|
||||||
/* Power States/Levels */
|
|
||||||
typedef enum _SYSTEM_POWER_STATE {
|
|
||||||
PowerSystemUnspecified,
|
|
||||||
PowerSystemWorking,
|
|
||||||
PowerSystemSleeping1,
|
|
||||||
PowerSystemSleeping2,
|
|
||||||
PowerSystemSleeping3,
|
|
||||||
PowerSystemHibernate,
|
|
||||||
PowerSystemShutdown,
|
|
||||||
PowerSystemMaximum
|
|
||||||
} SYSTEM_POWER_STATE, *PSYSTEM_POWER_STATE;
|
|
||||||
#define POWER_SYSTEM_MAXIMUM PowerSystemMaximum
|
|
||||||
|
|
||||||
typedef enum _DEVICE_POWER_STATE {
|
|
||||||
PowerDeviceUnspecified,
|
|
||||||
PowerDeviceD0,
|
|
||||||
PowerDeviceD1,
|
|
||||||
PowerDeviceD2,
|
|
||||||
PowerDeviceD3,
|
|
||||||
PowerDeviceMaximum
|
|
||||||
} DEVICE_POWER_STATE, *PDEVICE_POWER_STATE;
|
|
||||||
|
|
||||||
typedef union _POWER_STATE {
|
|
||||||
SYSTEM_POWER_STATE SystemState;
|
|
||||||
DEVICE_POWER_STATE DeviceState;
|
|
||||||
} POWER_STATE, *PPOWER_STATE;
|
|
||||||
|
|
||||||
typedef enum _POWER_STATE_TYPE {
|
|
||||||
SystemPowerState = 0,
|
|
||||||
DevicePowerState
|
|
||||||
} POWER_STATE_TYPE, *PPOWER_STATE_TYPE;
|
|
||||||
|
|
||||||
|
|
||||||
typedef enum _POWER_INFORMATION_LEVEL {
|
|
||||||
SystemPowerPolicyAc,
|
|
||||||
SystemPowerPolicyDc,
|
|
||||||
VerifySystemPolicyAc,
|
|
||||||
VerifySystemPolicyDc,
|
|
||||||
SystemPowerCapabilities,
|
|
||||||
SystemBatteryState,
|
|
||||||
SystemPowerStateHandler,
|
|
||||||
ProcessorStateHandler,
|
|
||||||
SystemPowerPolicyCurrent,
|
|
||||||
AdministratorPowerPolicy,
|
|
||||||
SystemReserveHiberFile,
|
|
||||||
ProcessorInformation,
|
|
||||||
SystemPowerInformation,
|
|
||||||
ProcessorStateHandler2,
|
|
||||||
LastWakeTime,
|
|
||||||
LastSleepTime,
|
|
||||||
SystemExecutionState,
|
|
||||||
SystemPowerStateNotifyHandler,
|
|
||||||
ProcessorPowerPolicyAc,
|
|
||||||
ProcessorPowerPolicyDc,
|
|
||||||
VerifyProcessorPowerPolicyAc,
|
|
||||||
VerifyProcessorPowerPolicyDc,
|
|
||||||
ProcessorPowerPolicyCurrent,
|
|
||||||
SystemPowerStateLogging,
|
|
||||||
SystemPowerLoggingEntry,
|
|
||||||
SetPowerSettingValue,
|
|
||||||
NotifyUserPowerSetting,
|
|
||||||
PowerInformationLevelUnused0,
|
|
||||||
PowerInformationLevelUnused1,
|
|
||||||
SystemVideoState,
|
|
||||||
TraceApplicationPowerMessage,
|
|
||||||
TraceApplicationPowerMessageEnd,
|
|
||||||
ProcessorPerfStates,
|
|
||||||
ProcessorIdleStates,
|
|
||||||
ProcessorCap,
|
|
||||||
SystemWakeSource,
|
|
||||||
SystemHiberFileInformation,
|
|
||||||
TraceServicePowerMessage,
|
|
||||||
ProcessorLoad,
|
|
||||||
PowerShutdownNotification,
|
|
||||||
MonitorCapabilities,
|
|
||||||
SessionPowerInit,
|
|
||||||
SessionDisplayState,
|
|
||||||
PowerRequestCreate,
|
|
||||||
PowerRequestAction,
|
|
||||||
GetPowerRequestList,
|
|
||||||
ProcessorInformationEx,
|
|
||||||
NotifyUserModeLegacyPowerEvent,
|
|
||||||
GroupPark,
|
|
||||||
ProcessorIdleDomains,
|
|
||||||
WakeTimerList,
|
|
||||||
SystemHiberFileSize,
|
|
||||||
PowerInformationLevelMaximum
|
|
||||||
} POWER_INFORMATION_LEVEL;
|
|
||||||
|
|
||||||
typedef enum {
|
|
||||||
PowerActionNone,
|
|
||||||
PowerActionReserved,
|
|
||||||
PowerActionSleep,
|
|
||||||
PowerActionHibernate,
|
|
||||||
PowerActionShutdown,
|
|
||||||
PowerActionShutdownReset,
|
|
||||||
PowerActionShutdownOff,
|
|
||||||
PowerActionWarmEject
|
|
||||||
} POWER_ACTION, *PPOWER_ACTION;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
NTSYSCALLAPI
|
NTSYSCALLAPI
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
|
|
|
@ -55,7 +55,8 @@ extern "C" {
|
||||||
#define NTHALAPI
|
#define NTHALAPI
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(_NTOSKRNL_) /* For ReactOS */
|
/* For ReactOS */
|
||||||
|
#if !defined(_NTOSKRNL_) && !defined(_BLDR_)
|
||||||
#define NTKERNELAPI DECLSPEC_IMPORT
|
#define NTKERNELAPI DECLSPEC_IMPORT
|
||||||
#else
|
#else
|
||||||
#define NTKERNELAPI
|
#define NTKERNELAPI
|
||||||
|
@ -848,6 +849,14 @@ typedef struct _KDPC
|
||||||
volatile PVOID DpcData;
|
volatile PVOID DpcData;
|
||||||
} KDPC, *PKDPC, *RESTRICTED_POINTER PRKDPC;
|
} KDPC, *PKDPC, *RESTRICTED_POINTER PRKDPC;
|
||||||
|
|
||||||
|
typedef struct _KDPC_WATCHDOG_INFORMATION {
|
||||||
|
ULONG DpcTimeLimit;
|
||||||
|
ULONG DpcTimeCount;
|
||||||
|
ULONG DpcWatchdogLimit;
|
||||||
|
ULONG DpcWatchdogCount;
|
||||||
|
ULONG Reserved;
|
||||||
|
} KDPC_WATCHDOG_INFORMATION, *PKDPC_WATCHDOG_INFORMATION;
|
||||||
|
|
||||||
typedef struct _KDEVICE_QUEUE {
|
typedef struct _KDEVICE_QUEUE {
|
||||||
CSHORT Type;
|
CSHORT Type;
|
||||||
CSHORT Size;
|
CSHORT Size;
|
||||||
|
@ -2138,7 +2147,7 @@ typedef enum _MM_SYSTEM_SIZE {
|
||||||
#define ALIGN_DOWN_POINTER_BY(ptr, align) \
|
#define ALIGN_DOWN_POINTER_BY(ptr, align) \
|
||||||
((PVOID)ALIGN_DOWN_BY(ptr, align))
|
((PVOID)ALIGN_DOWN_BY(ptr, align))
|
||||||
|
|
||||||
#define ALIGN_UP_POINTER_BY(ptr, alignment) \
|
#define ALIGN_UP_POINTER_BY(ptr, align) \
|
||||||
((PVOID)ALIGN_UP_BY(ptr, align))
|
((PVOID)ALIGN_UP_BY(ptr, align))
|
||||||
|
|
||||||
#define ALIGN_DOWN(size, type) \
|
#define ALIGN_DOWN(size, type) \
|
||||||
|
@ -2147,8 +2156,8 @@ typedef enum _MM_SYSTEM_SIZE {
|
||||||
#define ALIGN_UP(size, type) \
|
#define ALIGN_UP(size, type) \
|
||||||
ALIGN_UP_BY(size, sizeof(type))
|
ALIGN_UP_BY(size, sizeof(type))
|
||||||
|
|
||||||
#define ALIGN_DOWN_POINTER(p, type) \
|
#define ALIGN_DOWN_POINTER(ptr, type) \
|
||||||
ALIGN_DOWN_POINTER_BY(p, sizeof(type))
|
ALIGN_DOWN_POINTER_BY(ptr, sizeof(type))
|
||||||
|
|
||||||
#define ALIGN_UP_POINTER(ptr, type) \
|
#define ALIGN_UP_POINTER(ptr, type) \
|
||||||
ALIGN_UP_POINTER_BY(ptr, sizeof(type))
|
ALIGN_UP_POINTER_BY(ptr, sizeof(type))
|
||||||
|
@ -2952,10 +2961,15 @@ SeGetWorldRights(
|
||||||
|
|
||||||
#endif /* (NTDDI_VERSION >= NTDDI_VISTA) */
|
#endif /* (NTDDI_VERSION >= NTDDI_VISTA) */
|
||||||
|
|
||||||
|
|
||||||
|
#if 1
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
* Power Management Support Types *
|
* Power Management Support Types *
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
|
|
||||||
|
#ifndef _PO_DDK_
|
||||||
|
#define _PO_DDK_
|
||||||
|
|
||||||
/* Power States/Levels */
|
/* Power States/Levels */
|
||||||
typedef enum _SYSTEM_POWER_STATE {
|
typedef enum _SYSTEM_POWER_STATE {
|
||||||
PowerSystemUnspecified,
|
PowerSystemUnspecified,
|
||||||
|
@ -2993,7 +3007,37 @@ typedef enum _POWER_INFORMATION_LEVEL {
|
||||||
ProcessorPowerPolicyDc,
|
ProcessorPowerPolicyDc,
|
||||||
VerifyProcessorPowerPolicyAc,
|
VerifyProcessorPowerPolicyAc,
|
||||||
VerifyProcessorPowerPolicyDc,
|
VerifyProcessorPowerPolicyDc,
|
||||||
ProcessorPowerPolicyCurrent
|
ProcessorPowerPolicyCurrent,
|
||||||
|
SystemPowerStateLogging,
|
||||||
|
SystemPowerLoggingEntry,
|
||||||
|
SetPowerSettingValue,
|
||||||
|
NotifyUserPowerSetting,
|
||||||
|
PowerInformationLevelUnused0,
|
||||||
|
PowerInformationLevelUnused1,
|
||||||
|
SystemVideoState,
|
||||||
|
TraceApplicationPowerMessage,
|
||||||
|
TraceApplicationPowerMessageEnd,
|
||||||
|
ProcessorPerfStates,
|
||||||
|
ProcessorIdleStates,
|
||||||
|
ProcessorCap,
|
||||||
|
SystemWakeSource,
|
||||||
|
SystemHiberFileInformation,
|
||||||
|
TraceServicePowerMessage,
|
||||||
|
ProcessorLoad,
|
||||||
|
PowerShutdownNotification,
|
||||||
|
MonitorCapabilities,
|
||||||
|
SessionPowerInit,
|
||||||
|
SessionDisplayState,
|
||||||
|
PowerRequestCreate,
|
||||||
|
PowerRequestAction,
|
||||||
|
GetPowerRequestList,
|
||||||
|
ProcessorInformationEx,
|
||||||
|
NotifyUserModeLegacyPowerEvent,
|
||||||
|
GroupPark,
|
||||||
|
ProcessorIdleDomains,
|
||||||
|
WakeTimerList,
|
||||||
|
SystemHiberFileSize,
|
||||||
|
PowerInformationLevelMaximum
|
||||||
} POWER_INFORMATION_LEVEL;
|
} POWER_INFORMATION_LEVEL;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
@ -3026,6 +3070,15 @@ typedef enum _POWER_STATE_TYPE {
|
||||||
DevicePowerState
|
DevicePowerState
|
||||||
} POWER_STATE_TYPE, *PPOWER_STATE_TYPE;
|
} POWER_STATE_TYPE, *PPOWER_STATE_TYPE;
|
||||||
|
|
||||||
|
#if (NTDDI_VERSION >= NTDDI_WINXP) || !defined(_BATCLASS_)
|
||||||
|
typedef struct {
|
||||||
|
ULONG Granularity;
|
||||||
|
ULONG Capacity;
|
||||||
|
} BATTERY_REPORTING_SCALE, *PBATTERY_REPORTING_SCALE;
|
||||||
|
#endif /* (NTDDI_VERSION >= NTDDI_WINXP) || !defined(_BATCLASS_) */
|
||||||
|
|
||||||
|
#endif /* !_PO_DDK_ */
|
||||||
|
|
||||||
typedef VOID
|
typedef VOID
|
||||||
(DDKAPI *PREQUEST_POWER_COMPLETE)(
|
(DDKAPI *PREQUEST_POWER_COMPLETE)(
|
||||||
IN struct _DEVICE_OBJECT *DeviceObject,
|
IN struct _DEVICE_OBJECT *DeviceObject,
|
||||||
|
@ -3034,6 +3087,7 @@ typedef VOID
|
||||||
IN PVOID Context,
|
IN PVOID Context,
|
||||||
IN struct _IO_STATUS_BLOCK *IoStatus);
|
IN struct _IO_STATUS_BLOCK *IoStatus);
|
||||||
|
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
* Power Management Support Functions *
|
* Power Management Support Functions *
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
|
@ -3110,13 +3164,13 @@ NTKERNELAPI
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
PoSetSystemWake(
|
PoSetSystemWake(
|
||||||
IN OUT PIRP Irp);
|
IN OUT struct _IRP *Irp);
|
||||||
|
|
||||||
NTKERNELAPI
|
NTKERNELAPI
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
PoGetSystemWake(
|
PoGetSystemWake(
|
||||||
IN PIRP Irp);
|
IN struct _IRP *Irp);
|
||||||
|
|
||||||
NTKERNELAPI
|
NTKERNELAPI
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
|
@ -3195,7 +3249,7 @@ PoCreatePowerRequest(
|
||||||
IN PCOUNTED_REASON_CONTEXT Context);
|
IN PCOUNTED_REASON_CONTEXT Context);
|
||||||
|
|
||||||
#endif /* (NTDDI_VERSION >= NTDDI_WIN7) */
|
#endif /* (NTDDI_VERSION >= NTDDI_WIN7) */
|
||||||
|
#endif
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
* Configuration Manager Types *
|
* Configuration Manager Types *
|
||||||
|
@ -5486,10 +5540,10 @@ RtlCheckBit(
|
||||||
#define FILE_DEVICE_SERENUM 0x00000037
|
#define FILE_DEVICE_SERENUM 0x00000037
|
||||||
#define FILE_DEVICE_TERMSRV 0x00000038
|
#define FILE_DEVICE_TERMSRV 0x00000038
|
||||||
#define FILE_DEVICE_KSEC 0x00000039
|
#define FILE_DEVICE_KSEC 0x00000039
|
||||||
#define FILE_DEVICE_FIPS 0x0000003a
|
#define FILE_DEVICE_FIPS 0x0000003A
|
||||||
#define FILE_DEVICE_INFINIBAND 0x0000003b
|
#define FILE_DEVICE_INFINIBAND 0x0000003B
|
||||||
#define FILE_DEVICE_VMBUS 0x0000003e
|
#define FILE_DEVICE_VMBUS 0x0000003E
|
||||||
#define FILE_DEVICE_CRYPT_PROVIDER 0x0000003f
|
#define FILE_DEVICE_CRYPT_PROVIDER 0x0000003F
|
||||||
#define FILE_DEVICE_WPD 0x00000040
|
#define FILE_DEVICE_WPD 0x00000040
|
||||||
#define FILE_DEVICE_BLUETOOTH 0x00000041
|
#define FILE_DEVICE_BLUETOOTH 0x00000041
|
||||||
#define FILE_DEVICE_MT_COMPOSITE 0x00000042
|
#define FILE_DEVICE_MT_COMPOSITE 0x00000042
|
||||||
|
@ -6639,8 +6693,8 @@ typedef struct _IO_COMPLETION_CONTEXT {
|
||||||
|
|
||||||
#define SL_ALLOW_RAW_MOUNT 0x01
|
#define SL_ALLOW_RAW_MOUNT 0x01
|
||||||
|
|
||||||
#define CTL_CODE(DeviceType, Function, Method, Access)( \
|
#define CTL_CODE(DeviceType, Function, Method, Access) \
|
||||||
((DeviceType) << 16) | ((Access) << 14) | ((Function) << 2) | (Method))
|
(((DeviceType) << 16) | ((Access) << 14) | ((Function) << 2) | (Method))
|
||||||
|
|
||||||
#define DEVICE_TYPE_FROM_CTL_CODE(ctl) (((ULONG) (ctl & 0xffff0000)) >> 16)
|
#define DEVICE_TYPE_FROM_CTL_CODE(ctl) (((ULONG) (ctl & 0xffff0000)) >> 16)
|
||||||
|
|
||||||
|
@ -11402,7 +11456,7 @@ FORCEINLINE
|
||||||
PVOID
|
PVOID
|
||||||
NTAPI
|
NTAPI
|
||||||
HalAllocateCommonBuffer(
|
HalAllocateCommonBuffer(
|
||||||
IN PADAPTER_OBJECT AdapterObject,
|
IN PDMA_ADAPTER DmaAdapter,
|
||||||
IN ULONG Length,
|
IN ULONG Length,
|
||||||
OUT PPHYSICAL_ADDRESS LogicalAddress,
|
OUT PPHYSICAL_ADDRESS LogicalAddress,
|
||||||
IN BOOLEAN CacheEnabled)
|
IN BOOLEAN CacheEnabled)
|
||||||
|
|
|
@ -1028,12 +1028,15 @@ typedef struct {
|
||||||
pHalMirrorVerify HalMirrorVerify;
|
pHalMirrorVerify HalMirrorVerify;
|
||||||
} HAL_DISPATCH, *PHAL_DISPATCH;
|
} HAL_DISPATCH, *PHAL_DISPATCH;
|
||||||
|
|
||||||
#if defined(_NTDRIVER_) || defined(_NTDDK_) || defined(_NTHAL_)
|
/* GCC/MSVC and WDK compatible declaration */
|
||||||
extern NTSYSAPI PHAL_DISPATCH HalDispatchTable;
|
extern NTKERNELAPI HAL_DISPATCH HalDispatchTable;
|
||||||
#define HALDISPATCH ((PHAL_DISPATCH)&HalDispatchTable)
|
|
||||||
#else
|
#if defined(_NTOSKRNL_) || defined(_BLDR_)
|
||||||
extern __declspec(dllexport) HAL_DISPATCH HalDispatchTable;
|
|
||||||
#define HALDISPATCH (&HalDispatchTable)
|
#define HALDISPATCH (&HalDispatchTable)
|
||||||
|
#else
|
||||||
|
/* This is a WDK compatibility definition */
|
||||||
|
#define HalDispatchTable (&HalDispatchTable)
|
||||||
|
#define HALDISPATCH HalDispatchTable
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define HAL_DISPATCH_VERSION 3
|
#define HAL_DISPATCH_VERSION 3
|
||||||
|
@ -2813,6 +2816,10 @@ IoWritePartitionTableEx(
|
||||||
IN PDEVICE_OBJECT DeviceObject,
|
IN PDEVICE_OBJECT DeviceObject,
|
||||||
IN struct _DRIVE_LAYOUT_INFORMATION_EX *PartitionBuffer);
|
IN struct _DRIVE_LAYOUT_INFORMATION_EX *PartitionBuffer);
|
||||||
|
|
||||||
|
#if defined(USE_DMA_MACROS) && !defined(_NTHAL_) && (defined(_NTDDK_) || defined(_NTDRIVER_)) || defined(_WDM_INCLUDED_)
|
||||||
|
// nothing here
|
||||||
|
#else
|
||||||
|
|
||||||
#if (NTDDI_VERSION >= NTDDI_WIN2K)
|
#if (NTDDI_VERSION >= NTDDI_WIN2K)
|
||||||
//DECLSPEC_DEPRECATED_DDK
|
//DECLSPEC_DEPRECATED_DDK
|
||||||
NTHALAPI
|
NTHALAPI
|
||||||
|
@ -2882,7 +2889,17 @@ NTAPI
|
||||||
HalReadDmaCounter(
|
HalReadDmaCounter(
|
||||||
IN PADAPTER_OBJECT AdapterObject);
|
IN PADAPTER_OBJECT AdapterObject);
|
||||||
|
|
||||||
#endif
|
NTHALAPI
|
||||||
|
NTSTATUS
|
||||||
|
NTAPI
|
||||||
|
HalAllocateAdapterChannel(
|
||||||
|
IN PADAPTER_OBJECT AdapterObject,
|
||||||
|
IN PWAIT_CONTEXT_BLOCK Wcb,
|
||||||
|
IN ULONG NumberOfMapRegisters,
|
||||||
|
IN PDRIVER_CONTROL ExecutionRoutine);
|
||||||
|
|
||||||
|
#endif /* (NTDDI_VERSION >= NTDDI_WIN2K) */
|
||||||
|
#endif /* defined(USE_DMA_MACROS) && !defined(_NTHAL_) && (defined(_NTDDK_) || defined(_NTDRIVER_)) || defined(_WDM_INCLUDED_) */
|
||||||
|
|
||||||
/** Kernel routines **/
|
/** Kernel routines **/
|
||||||
|
|
||||||
|
@ -3751,15 +3768,6 @@ NTAPI
|
||||||
HalAcquireDisplayOwnership(
|
HalAcquireDisplayOwnership(
|
||||||
IN PHAL_RESET_DISPLAY_PARAMETERS ResetDisplayParameters);
|
IN PHAL_RESET_DISPLAY_PARAMETERS ResetDisplayParameters);
|
||||||
|
|
||||||
NTHALAPI
|
|
||||||
NTSTATUS
|
|
||||||
NTAPI
|
|
||||||
HalAllocateAdapterChannel(
|
|
||||||
IN PADAPTER_OBJECT AdapterObject,
|
|
||||||
IN PWAIT_CONTEXT_BLOCK Wcb,
|
|
||||||
IN ULONG NumberOfMapRegisters,
|
|
||||||
IN PDRIVER_CONTROL ExecutionRoutine);
|
|
||||||
|
|
||||||
NTHALAPI
|
NTHALAPI
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
|
|
|
@ -732,7 +732,7 @@ ZwFindAtom(
|
||||||
OUT PRTL_ATOM Atom OPTIONAL
|
OUT PRTL_ATOM Atom OPTIONAL
|
||||||
);
|
);
|
||||||
|
|
||||||
NTSYSAPI
|
NTSYSCALLAPI
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
ZwOpenEvent(
|
ZwOpenEvent(
|
||||||
|
|
|
@ -1478,7 +1478,7 @@ RtlUpcaseUnicodeToOemN(
|
||||||
PCHAR OemString,
|
PCHAR OemString,
|
||||||
ULONG OemSize,
|
ULONG OemSize,
|
||||||
PULONG ResultSize,
|
PULONG ResultSize,
|
||||||
PWCHAR UnicodeString,
|
PCWCH UnicodeString,
|
||||||
ULONG UnicodeSize
|
ULONG UnicodeSize
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -1508,7 +1508,7 @@ RtlUnicodeToOemN(
|
||||||
PCHAR OemString,
|
PCHAR OemString,
|
||||||
ULONG OemSize,
|
ULONG OemSize,
|
||||||
PULONG ResultSize,
|
PULONG ResultSize,
|
||||||
PWCHAR UnicodeString,
|
PCWCH UnicodeString,
|
||||||
ULONG UnicodeSize
|
ULONG UnicodeSize
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -1533,7 +1533,7 @@ RtlUpcaseUnicodeToMultiByteN(
|
||||||
PCHAR MbString,
|
PCHAR MbString,
|
||||||
ULONG MbSize,
|
ULONG MbSize,
|
||||||
PULONG ResultSize,
|
PULONG ResultSize,
|
||||||
PWCHAR UnicodeString,
|
PCWCH UnicodeString,
|
||||||
ULONG UnicodeSize
|
ULONG UnicodeSize
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -1542,7 +1542,7 @@ NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
RtlUnicodeToMultiByteSize(
|
RtlUnicodeToMultiByteSize(
|
||||||
PULONG MbSize,
|
PULONG MbSize,
|
||||||
PWCHAR UnicodeString,
|
PCWCH UnicodeString,
|
||||||
ULONG UnicodeSize
|
ULONG UnicodeSize
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -1570,7 +1570,7 @@ RtlOemToUnicodeN(
|
||||||
PWSTR UnicodeString,
|
PWSTR UnicodeString,
|
||||||
ULONG MaxBytesInUnicodeString,
|
ULONG MaxBytesInUnicodeString,
|
||||||
PULONG BytesInUnicodeString,
|
PULONG BytesInUnicodeString,
|
||||||
IN PCHAR OemString,
|
IN PCCH OemString,
|
||||||
ULONG BytesInOemString
|
ULONG BytesInOemString
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -345,7 +345,7 @@ NTSTATUS NTAPI
|
||||||
RtlOemToUnicodeN (PWCHAR UnicodeString,
|
RtlOemToUnicodeN (PWCHAR UnicodeString,
|
||||||
ULONG UnicodeSize,
|
ULONG UnicodeSize,
|
||||||
PULONG ResultSize,
|
PULONG ResultSize,
|
||||||
PCHAR OemString,
|
PCCH OemString,
|
||||||
ULONG OemSize)
|
ULONG OemSize)
|
||||||
{
|
{
|
||||||
ULONG Size = 0;
|
ULONG Size = 0;
|
||||||
|
@ -376,7 +376,7 @@ RtlOemToUnicodeN (PWCHAR UnicodeString,
|
||||||
|
|
||||||
UCHAR Char;
|
UCHAR Char;
|
||||||
USHORT OemLeadByteInfo;
|
USHORT OemLeadByteInfo;
|
||||||
PCHAR OemEnd = OemString + OemSize;
|
PCCH OemEnd = OemString + OemSize;
|
||||||
|
|
||||||
for (i = 0; i < UnicodeSize / sizeof(WCHAR) && OemString < OemEnd; i++)
|
for (i = 0; i < UnicodeSize / sizeof(WCHAR) && OemString < OemEnd; i++)
|
||||||
{
|
{
|
||||||
|
@ -569,7 +569,7 @@ RtlUnicodeToMultiByteN (PCHAR MbString,
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
RtlUnicodeToMultiByteSize(PULONG MbSize,
|
RtlUnicodeToMultiByteSize(PULONG MbSize,
|
||||||
PWCHAR UnicodeString,
|
PCWCH UnicodeString,
|
||||||
ULONG UnicodeSize)
|
ULONG UnicodeSize)
|
||||||
{
|
{
|
||||||
ULONG UnicodeLength = UnicodeSize / sizeof(WCHAR);
|
ULONG UnicodeLength = UnicodeSize / sizeof(WCHAR);
|
||||||
|
@ -613,7 +613,7 @@ NTSTATUS NTAPI
|
||||||
RtlUnicodeToOemN (PCHAR OemString,
|
RtlUnicodeToOemN (PCHAR OemString,
|
||||||
ULONG OemSize,
|
ULONG OemSize,
|
||||||
PULONG ResultSize,
|
PULONG ResultSize,
|
||||||
PWCHAR UnicodeString,
|
PCWCH UnicodeString,
|
||||||
ULONG UnicodeSize)
|
ULONG UnicodeSize)
|
||||||
{
|
{
|
||||||
ULONG Size = 0;
|
ULONG Size = 0;
|
||||||
|
@ -762,7 +762,7 @@ NTSTATUS NTAPI
|
||||||
RtlUpcaseUnicodeToMultiByteN (PCHAR MbString,
|
RtlUpcaseUnicodeToMultiByteN (PCHAR MbString,
|
||||||
ULONG MbSize,
|
ULONG MbSize,
|
||||||
PULONG ResultSize,
|
PULONG ResultSize,
|
||||||
PWCHAR UnicodeString,
|
PCWCH UnicodeString,
|
||||||
ULONG UnicodeSize)
|
ULONG UnicodeSize)
|
||||||
{
|
{
|
||||||
WCHAR UpcaseChar;
|
WCHAR UpcaseChar;
|
||||||
|
@ -806,7 +806,7 @@ NTSTATUS NTAPI
|
||||||
RtlUpcaseUnicodeToOemN (PCHAR OemString,
|
RtlUpcaseUnicodeToOemN (PCHAR OemString,
|
||||||
ULONG OemSize,
|
ULONG OemSize,
|
||||||
PULONG ResultSize,
|
PULONG ResultSize,
|
||||||
PWCHAR UnicodeString,
|
PCWCH UnicodeString,
|
||||||
ULONG UnicodeSize)
|
ULONG UnicodeSize)
|
||||||
{
|
{
|
||||||
WCHAR UpcaseChar;
|
WCHAR UpcaseChar;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue