Fix more ddk/ndk missing defintions Modified: trunk/reactos/include/ndk/kefuncs.h Modified: trunk/reactos/include/ndk/pstypes.h Modified: trunk/reactos/include/ndk/sefuncs.h Modified: trunk/reactos/include/ndk/umtypes.h Modified: trunk/reactos/w32api/include/ddk/win2k.h Modified: trunk/reactos/w32api/include/ddk/winddk.h _____
Modified: trunk/reactos/include/ndk/kefuncs.h --- trunk/reactos/include/ndk/kefuncs.h 2005-06-23 03:24:42 UTC (rev 16235) +++ trunk/reactos/include/ndk/kefuncs.h 2005-06-23 04:42:49 UTC (rev 16236) @@ -112,6 +112,10 @@
BOOLEAN STDCALL +KeIsAttachedProcess(VOID); + +BOOLEAN +STDCALL KeIsExecutingDpc( VOID ); _____
Modified: trunk/reactos/include/ndk/pstypes.h --- trunk/reactos/include/ndk/pstypes.h 2005-06-23 03:24:42 UTC (rev 16235) +++ trunk/reactos/include/ndk/pstypes.h 2005-06-23 04:42:49 UTC (rev 16236) @@ -95,6 +95,8 @@
/* TYPES *********************************************************************/
struct _ETHREAD; +typedef struct _W32PROCESS *PW32PROCESS; +typedef struct _W32THREAD *PW32THREAD;
typedef struct _CURDIR { _____
Modified: trunk/reactos/include/ndk/sefuncs.h --- trunk/reactos/include/ndk/sefuncs.h 2005-06-23 03:24:42 UTC (rev 16235) +++ trunk/reactos/include/ndk/sefuncs.h 2005-06-23 04:42:49 UTC (rev 16236) @@ -15,6 +15,24 @@
/* PROTOTYPES ****************************************************************/
+NTSTATUS +STDCALL +SeCaptureSecurityDescriptor( + IN PSECURITY_DESCRIPTOR OriginalSecurityDescriptor, + IN KPROCESSOR_MODE CurrentMode, + IN POOL_TYPE PoolType, + IN BOOLEAN CaptureIfKernel, + OUT PSECURITY_DESCRIPTOR *CapturedSecurityDescriptor +); + +NTSTATUS +STDCALL +SeReleaseSecurityDescriptor( + IN PSECURITY_DESCRIPTOR CapturedSecurityDescriptor, + IN KPROCESSOR_MODE CurrentMode, + IN BOOLEAN CaptureIfKernelMode +); + SECURITY_IMPERSONATION_LEVEL STDCALL SeTokenImpersonationLevel( _____
Modified: trunk/reactos/include/ndk/umtypes.h --- trunk/reactos/include/ndk/umtypes.h 2005-06-23 03:24:42 UTC (rev 16235) +++ trunk/reactos/include/ndk/umtypes.h 2005-06-23 04:42:49 UTC (rev 16236) @@ -104,12 +104,6 @@
#define FSCTL_PIPE_INTERNAL_READ_OVFLOW \ CTL_CODE(FILE_DEVICE_NAMED_PIPE, 2048, METHOD_BUFFERED, FILE_READ_DATA)
-/* Macros for getting the current Process or Thread */ -#define NtCurrentProcess() ( (HANDLE)(LONG_PTR) -1 ) -#define ZwCurrentProcess() NtCurrentProcess() -#define NtCurrentThread() ( (HANDLE)(LONG_PTR) -2 ) -#define ZwCurrentThread() NtCurrentThread() - /* Kernel Shared Data Constants */ #define PROCESSOR_FEATURE_MAX 64 #define SharedUserData ((KUSER_SHARED_DATA * CONST) USER_SHARED_DATA) _____
Modified: trunk/reactos/w32api/include/ddk/win2k.h --- trunk/reactos/w32api/include/ddk/win2k.h 2005-06-23 03:24:42 UTC (rev 16235) +++ trunk/reactos/w32api/include/ddk/win2k.h 2005-06-23 04:42:49 UTC (rev 16236) @@ -64,7 +64,7 @@
IN PDEVICE_OBJECT DeviceObject, IN ULONG SectorSize, IN BOOLEAN ReturnRecognizedPartitions, - OUT struct _DRIVE_LAYOUT_INFORMATION **PartitionBuffer); + OUT PVOID PartitionBuffer);
NTOSAPI NTSTATUS @@ -83,7 +83,7 @@ IN ULONG SectorSize, IN ULONG SectorsPerTrack, IN ULONG NumberOfHeads, - IN struct _DRIVE_LAYOUT_INFORMATION *PartitionBuffer); + IN PVOID PartitionBuffer);
/* * PVOID MmGetSystemAddressForMdl( _____
Modified: trunk/reactos/w32api/include/ddk/winddk.h --- trunk/reactos/w32api/include/ddk/winddk.h 2005-06-23 03:24:42 UTC (rev 16235) +++ trunk/reactos/w32api/include/ddk/winddk.h 2005-06-23 04:42:49 UTC (rev 16236) @@ -190,6 +190,11 @@
typedef struct _ADAPTER_OBJECT *PADAPTER_OBJECT;
/* Constants */ +#define NtCurrentProcess() ( (HANDLE)(LONG_PTR) -1 ) +#define ZwCurrentProcess() NtCurrentProcess() +#define NtCurrentThread() ( (HANDLE)(LONG_PTR) -2 ) +#define ZwCurrentThread() NtCurrentThread() + #define MAXIMUM_PROCESSORS 32
#define MAXIMUM_WAIT_OBJECTS 64 @@ -1537,6 +1542,50 @@ ULONG BaudClock; } CM_SERIAL_DEVICE_DATA, *PCM_SERIAL_DEVICE_DATA;
+typedef struct _VM_COUNTERS +{ + 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; +} VM_COUNTERS, *PVM_COUNTERS; + +typedef struct _VM_COUNTERS_EX +{ + 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; + SIZE_T PrivateUsage; +} VM_COUNTERS_EX, *PVM_COUNTERS_EX; + +typedef struct _POOLED_USAGE_AND_LIMITS +{ + SIZE_T PeakPagedPoolUsage; + SIZE_T PagedPoolUsage; + SIZE_T PagedPoolLimit; + SIZE_T PeakNonPagedPoolUsage; + SIZE_T NonPagedPoolUsage; + SIZE_T NonPagedPoolLimit; + SIZE_T PeakPagefileUsage; + SIZE_T PagefileUsage; + SIZE_T PagefileLimit; +} POOLED_USAGE_AND_LIMITS, *PPOOLED_USAGE_AND_LIMITS; + /* IO_RESOURCE_DESCRIPTOR.Option */
#define IO_RESOURCE_PREFERRED 0x01 @@ -4278,6 +4327,12 @@ MaxThreadInfoClass } THREADINFOCLASS;
+typedef struct _PROCESS_WS_WATCH_INFORMATION +{ + PVOID FaultingPc; + PVOID FaultingVa; +} PROCESS_WS_WATCH_INFORMATION, *PPROCESS_WS_WATCH_INFORMATION; + #define ES_SYSTEM_REQUIRED 0x00000001 #define ES_DISPLAY_REQUIRED 0x00000002 #define ES_USER_PRESENT 0x00000004