- Small NDK headers update

svn path=/trunk/; revision=28483
This commit is contained in:
Aleksey Bragin 2007-08-23 19:20:28 +00:00
parent bae87c517b
commit d88b419c3a
7 changed files with 44 additions and 23 deletions

View file

@ -1355,6 +1355,8 @@ typedef enum _TIMER_TYPE {
#define IO_VIDEO_INCREMENT 1 #define IO_VIDEO_INCREMENT 1
#define SEMAPHORE_INCREMENT 1 #define SEMAPHORE_INCREMENT 1
#define MM_MAXIMUM_DISK_IO_SIZE (0x10000)
typedef struct _IRP { typedef struct _IRP {
CSHORT Type; CSHORT Type;
USHORT Size; USHORT Size;
@ -4740,6 +4742,11 @@ typedef enum _LOCK_OPERATION {
IoModifyAccess IoModifyAccess
} LOCK_OPERATION; } LOCK_OPERATION;
typedef ULONG PFN_COUNT;
typedef LONG SPFN_NUMBER, *PSPFN_NUMBER;
typedef ULONG PFN_NUMBER, *PPFN_NUMBER;
typedef enum _MM_SYSTEM_SIZE { typedef enum _MM_SYSTEM_SIZE {
MmSmallSystem, MmSmallSystem,
MmMediumSystem, MmMediumSystem,
@ -5274,6 +5281,12 @@ typedef struct _KPCR {
ULONG StallScaleFactor; /* 4C */ ULONG StallScaleFactor; /* 4C */
UCHAR SpareUnused; /* 50 */ UCHAR SpareUnused; /* 50 */
UCHAR Number; /* 51 */ UCHAR Number; /* 51 */
UCHAR Spare0;
UCHAR SecondLevelCacheAssociativity;
ULONG VdmAlert;
ULONG KernelReserved[14]; // For use by the kernel
ULONG SecondLevelCacheSize;
ULONG HalReserved[16]; // For use by Hal
} KPCR, *PKPCR; /* 54 */ } KPCR, *PKPCR; /* 54 */
typedef struct _KFLOATING_SAVE { typedef struct _KFLOATING_SAVE {
@ -5334,6 +5347,9 @@ extern NTKERNELAPI ULONG_PTR MmUserProbeAddress;
#define MM_LOWEST_USER_ADDRESS (PVOID)0x10000 #define MM_LOWEST_USER_ADDRESS (PVOID)0x10000
#define MM_LOWEST_SYSTEM_ADDRESS (PVOID)0xC0C00000 #define MM_LOWEST_SYSTEM_ADDRESS (PVOID)0xC0C00000
#define MM_KSEG0_BASE MM_SYSTEM_RANGE_START
#define MM_SYSTEM_SPACE_END 0xFFFFFFFF
#define KI_USER_SHARED_DATA 0xffdf0000 #define KI_USER_SHARED_DATA 0xffdf0000
#define SharedUserData ((KUSER_SHARED_DATA * CONST) KI_USER_SHARED_DATA) #define SharedUserData ((KUSER_SHARED_DATA * CONST) KI_USER_SHARED_DATA)

View file

@ -113,7 +113,7 @@ NTSYSCALLAPI
NTSTATUS NTSTATUS
NTAPI NTAPI
NtInitializeRegistry( NtInitializeRegistry(
BOOLEAN SetUpBoot USHORT Flag
); );
NTSYSCALLAPI NTSYSCALLAPI
@ -417,13 +417,6 @@ ZwGetPlugPlayEvent(
IN ULONG BufferSize IN ULONG BufferSize
); );
NTSYSAPI
NTSTATUS
NTAPI
ZwInitializeRegistry(
BOOLEAN SetUpBoot
);
NTSYSAPI NTSYSAPI
NTSTATUS NTSTATUS
NTAPI NTAPI
@ -568,6 +561,13 @@ ZwSetValueKey(
); );
#endif #endif
NTSYSAPI
NTSTATUS
NTAPI
ZwInitializeRegistry(
USHORT Flag
);
NTSYSAPI NTSYSAPI
NTSTATUS NTSTATUS
NTAPI NTAPI

View file

@ -55,8 +55,6 @@ Author:
// The DDK steals these away from you. // The DDK steals these away from you.
// //
#ifdef _MSC_VER #ifdef _MSC_VER
void _enable(void);
void _disable(void);
#pragma intrinsic(_enable) #pragma intrinsic(_enable)
#pragma intrinsic(_disable) #pragma intrinsic(_disable)
#endif #endif

View file

@ -244,7 +244,7 @@ typedef struct _MMPTE
MMPTE_TRANSITION Trans; MMPTE_TRANSITION Trans;
MMPTE_SUBSECTION Subsect; MMPTE_SUBSECTION Subsect;
MMPTE_LIST List; MMPTE_LIST List;
}; } u;
} MMPTE, *PMMPTE; } MMPTE, *PMMPTE;
// //
@ -430,6 +430,7 @@ typedef struct _SUBSECTION
MMSUBSECTION_FLAGS SubsectionFlags; MMSUBSECTION_FLAGS SubsectionFlags;
} u; } u;
ULONG StartingSector; ULONG StartingSector;
ULONG NumberOfFullSectors;
PMMPTE SubsectionBase; PMMPTE SubsectionBase;
ULONG UnusedPtes; ULONG UnusedPtes;
ULONG PtesInSubsection; ULONG PtesInSubsection;
@ -578,8 +579,10 @@ typedef struct _MMSUPPORT_FLAGS
// //
typedef struct _MMSUPPORT typedef struct _MMSUPPORT
{ {
#if (NTDDI_VERSION >= NTDDI_LONGHORN) #if (NTDDI_VERSION >= NTDDI_WS03)
LIST_ENTRY WorkingSetExpansionLinks; LIST_ENTRY WorkingSetExpansionLinks;
#endif
#if (NTDDI_VERSION >= NTDDI_LONGHORN)
USHORT LastTrimpStamp; USHORT LastTrimpStamp;
USHORT NextPageColor; USHORT NextPageColor;
#else #else
@ -591,12 +594,12 @@ typedef struct _MMSUPPORT
#if (NTDDI_VERSION >= NTDDI_LONGHORN) #if (NTDDI_VERSION >= NTDDI_LONGHORN)
ULONG Spare0; ULONG Spare0;
#else #else
ULONG WorkingSetSize; ULONG GrowthSinceLastEstimate;
#endif #endif
ULONG MinimumWorkingSetSize; ULONG MinimumWorkingSetSize;
ULONG MaximumWorkingSetSize; ULONG MaximumWorkingSetSize;
PMMWSL MmWorkingSetList; PMMWSL VmWorkingSetList;
#if (NTDDI_VERSION < NTDDI_LONGHORN) #if (NTDDI_VERSION < NTDDI_WS03)
LIST_ENTRY WorkingSetExpansionLinks; LIST_ENTRY WorkingSetExpansionLinks;
#endif #endif
ULONG Claim; ULONG Claim;
@ -604,15 +607,18 @@ typedef struct _MMSUPPORT
ULONG Spare; ULONG Spare;
ULONG WorkingSetPrivateSize; ULONG WorkingSetPrivateSize;
ULONG WorkingSetSizeOverhead; ULONG WorkingSetSizeOverhead;
ULONG WorkingSetSize;
PKEVENT ExitEvent;
EX_PUSH_LOCK WorkingSetMutex;
PVOID AccessLog;
#else #else
ULONG NextEstimationSlot; ULONG NextEstimationSlot;
ULONG NextAgingSlot; ULONG NextAgingSlot;
ULONG EstimatedAvailable; ULONG EstimatedAvailable;
ULONG GrowthSinceLastEstimate; #endif
ULONG WorkingSetSize;
#if (NTDDI_VERSION >= NTDDI_LONGHORN)
PKEVENT ExitEvent;
#endif
EX_PUSH_LOCK WorkingSetMutex;
#if (NTDDI_VERSION >= NTDDI_LONGHORN)
PVOID AccessLog;
#endif #endif
} MMSUPPORT, *PMMSUPPORT; } MMSUPPORT, *PMMSUPPORT;

View file

@ -315,7 +315,7 @@ typedef struct _I386_LOADER_BLOCK
{ {
PVOID CommonDataArea; PVOID CommonDataArea;
ULONG MachineType; ULONG MachineType;
ULONG Reserved; ULONG VirtualBias;
} I386_LOADER_BLOCK, *PI386_LOADER_BLOCK; } I386_LOADER_BLOCK, *PI386_LOADER_BLOCK;
// //

View file

@ -661,7 +661,7 @@ NtLoadKey2 (IN POBJECT_ATTRIBUTES KeyObjectAttributes,
NTSTATUS NTSTATUS
NTAPI NTAPI
NtInitializeRegistry (IN BOOLEAN SetUpBoot) NtInitializeRegistry (IN USHORT Flag)
{ {
NTSTATUS Status; NTSTATUS Status;
@ -673,7 +673,7 @@ NtInitializeRegistry (IN BOOLEAN SetUpBoot)
/* Save boot log file */ /* Save boot log file */
IopSaveBootLogToFile(); IopSaveBootLogToFile();
Status = CmiInitHives (SetUpBoot); Status = CmiInitHives (Flag);
CmiRegistryInitialized = TRUE; CmiRegistryInitialized = TRUE;

View file

@ -15,6 +15,7 @@
/* DDK/IFS/NDK Headers */ /* DDK/IFS/NDK Headers */
#ifdef _MSC_VER #ifdef _MSC_VER
#include <excpt.h>
#include <ntdef.h> #include <ntdef.h>
#undef DECLSPEC_IMPORT #undef DECLSPEC_IMPORT
#define DECLSPEC_IMPORT #define DECLSPEC_IMPORT