mirror of
https://github.com/reactos/reactos.git
synced 2024-09-11 13:23:51 +00:00
Fix more ddk/ndk missing defintions
svn path=/trunk/; revision=16236
This commit is contained in:
parent
610b6a4048
commit
ad71bcda91
|
@ -110,6 +110,10 @@ KeTerminateThread(
|
||||||
IN KPRIORITY Increment
|
IN KPRIORITY Increment
|
||||||
);
|
);
|
||||||
|
|
||||||
|
BOOLEAN
|
||||||
|
STDCALL
|
||||||
|
KeIsAttachedProcess(VOID);
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
STDCALL
|
STDCALL
|
||||||
KeIsExecutingDpc(
|
KeIsExecutingDpc(
|
||||||
|
|
|
@ -95,6 +95,8 @@ typedef NTSTATUS
|
||||||
/* TYPES *********************************************************************/
|
/* TYPES *********************************************************************/
|
||||||
|
|
||||||
struct _ETHREAD;
|
struct _ETHREAD;
|
||||||
|
typedef struct _W32PROCESS *PW32PROCESS;
|
||||||
|
typedef struct _W32THREAD *PW32THREAD;
|
||||||
|
|
||||||
typedef struct _CURDIR
|
typedef struct _CURDIR
|
||||||
{
|
{
|
||||||
|
|
|
@ -15,6 +15,24 @@
|
||||||
|
|
||||||
/* PROTOTYPES ****************************************************************/
|
/* 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
|
SECURITY_IMPERSONATION_LEVEL
|
||||||
STDCALL
|
STDCALL
|
||||||
SeTokenImpersonationLevel(
|
SeTokenImpersonationLevel(
|
||||||
|
|
|
@ -104,12 +104,6 @@
|
||||||
#define FSCTL_PIPE_INTERNAL_READ_OVFLOW \
|
#define FSCTL_PIPE_INTERNAL_READ_OVFLOW \
|
||||||
CTL_CODE(FILE_DEVICE_NAMED_PIPE, 2048, METHOD_BUFFERED, FILE_READ_DATA)
|
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 */
|
/* Kernel Shared Data Constants */
|
||||||
#define PROCESSOR_FEATURE_MAX 64
|
#define PROCESSOR_FEATURE_MAX 64
|
||||||
#define SharedUserData ((KUSER_SHARED_DATA * CONST) USER_SHARED_DATA)
|
#define SharedUserData ((KUSER_SHARED_DATA * CONST) USER_SHARED_DATA)
|
||||||
|
|
|
@ -64,7 +64,7 @@ IoReadPartitionTable(
|
||||||
IN PDEVICE_OBJECT DeviceObject,
|
IN PDEVICE_OBJECT DeviceObject,
|
||||||
IN ULONG SectorSize,
|
IN ULONG SectorSize,
|
||||||
IN BOOLEAN ReturnRecognizedPartitions,
|
IN BOOLEAN ReturnRecognizedPartitions,
|
||||||
OUT struct _DRIVE_LAYOUT_INFORMATION **PartitionBuffer);
|
OUT PVOID PartitionBuffer);
|
||||||
|
|
||||||
NTOSAPI
|
NTOSAPI
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
|
@ -83,7 +83,7 @@ IoWritePartitionTable(
|
||||||
IN ULONG SectorSize,
|
IN ULONG SectorSize,
|
||||||
IN ULONG SectorsPerTrack,
|
IN ULONG SectorsPerTrack,
|
||||||
IN ULONG NumberOfHeads,
|
IN ULONG NumberOfHeads,
|
||||||
IN struct _DRIVE_LAYOUT_INFORMATION *PartitionBuffer);
|
IN PVOID PartitionBuffer);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* PVOID MmGetSystemAddressForMdl(
|
* PVOID MmGetSystemAddressForMdl(
|
||||||
|
|
|
@ -190,6 +190,11 @@ typedef struct _PEB *PPEB;
|
||||||
typedef struct _ADAPTER_OBJECT *PADAPTER_OBJECT;
|
typedef struct _ADAPTER_OBJECT *PADAPTER_OBJECT;
|
||||||
|
|
||||||
/* Constants */
|
/* 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_PROCESSORS 32
|
||||||
|
|
||||||
#define MAXIMUM_WAIT_OBJECTS 64
|
#define MAXIMUM_WAIT_OBJECTS 64
|
||||||
|
@ -1537,6 +1542,50 @@ typedef struct _CM_SERIAL_DEVICE_DATA {
|
||||||
ULONG BaudClock;
|
ULONG BaudClock;
|
||||||
} CM_SERIAL_DEVICE_DATA, *PCM_SERIAL_DEVICE_DATA;
|
} 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 */
|
/* IO_RESOURCE_DESCRIPTOR.Option */
|
||||||
|
|
||||||
#define IO_RESOURCE_PREFERRED 0x01
|
#define IO_RESOURCE_PREFERRED 0x01
|
||||||
|
@ -4278,6 +4327,12 @@ typedef enum _THREADINFOCLASS {
|
||||||
MaxThreadInfoClass
|
MaxThreadInfoClass
|
||||||
} THREADINFOCLASS;
|
} 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_SYSTEM_REQUIRED 0x00000001
|
||||||
#define ES_DISPLAY_REQUIRED 0x00000002
|
#define ES_DISPLAY_REQUIRED 0x00000002
|
||||||
#define ES_USER_PRESENT 0x00000004
|
#define ES_USER_PRESENT 0x00000004
|
||||||
|
|
Loading…
Reference in a new issue