mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Fix indentation, remove trailing whitespace and sort prototypes.
svn path=/trunk/; revision=16272
This commit is contained in:
parent
c12e487549
commit
b9345f5cd1
22 changed files with 1836 additions and 1789 deletions
|
@ -23,15 +23,15 @@
|
|||
|
||||
typedef enum _DEBUGOBJECTINFOCLASS
|
||||
{
|
||||
DebugObjectUnusedInformation,
|
||||
DebugObjectKillProcessOnExitInformation
|
||||
} DEBUGOBJECTINFOCLASS, * PDEBUGOBJECTINFOCLASS;
|
||||
DebugObjectUnusedInformation,
|
||||
DebugObjectKillProcessOnExitInformation
|
||||
} DEBUGOBJECTINFOCLASS, *PDEBUGOBJECTINFOCLASS;
|
||||
|
||||
/* TYPES *********************************************************************/
|
||||
|
||||
typedef struct _DEBUG_OBJECT_KILL_PROCESS_ON_EXIT_INFORMATION
|
||||
{
|
||||
ULONG KillProcessOnExit;
|
||||
ULONG KillProcessOnExit;
|
||||
} DEBUG_OBJECT_KILL_PROCESS_ON_EXIT_INFORMATION, *
|
||||
PDEBUG_OBJECT_KILL_PROCESS_ON_EXIT_INFORMATION;
|
||||
|
||||
|
@ -134,6 +134,6 @@ typedef struct _DBGUI_WAIT_STATE_CHANGE
|
|||
DBGKM_LOAD_DLL LoadDll;
|
||||
DBGKM_UNLOAD_DLL UnloadDll;
|
||||
} StateInfo;
|
||||
} DBGUI_WAIT_STATE_CHANGE, * PDBGUI_WAIT_STATE_CHANGE;
|
||||
} DBGUI_WAIT_STATE_CHANGE, *PDBGUI_WAIT_STATE_CHANGE;
|
||||
|
||||
#endif
|
||||
|
|
|
@ -42,7 +42,7 @@ typedef PVOID EX_RUNDOWN_REF;
|
|||
|
||||
/* You'll need the IFS for these, so let's not force everyone to have it */
|
||||
#ifdef _NTIFS_
|
||||
typedef struct _EX_QUEUE_WORKER_INFO
|
||||
typedef struct _EX_QUEUE_WORKER_INFO
|
||||
{
|
||||
UCHAR QueueDisabled:1;
|
||||
UCHAR MakeThreadsAsNecessary:1;
|
||||
|
@ -50,14 +50,14 @@ typedef struct _EX_QUEUE_WORKER_INFO
|
|||
ULONG WorkerCount:29;
|
||||
} EX_QUEUE_WORKER_INFO, *PEX_QUEUE_WORKER_INFO;
|
||||
|
||||
typedef struct _EX_WORK_QUEUE
|
||||
typedef struct _EX_WORK_QUEUE
|
||||
{
|
||||
KQUEUE WorkerQueue;
|
||||
ULONG DynamicThreadCount;
|
||||
ULONG WorkItemsProcessed;
|
||||
ULONG WorkItemsProcessedLastPass;
|
||||
ULONG QueueDepthLastPass;
|
||||
EX_QUEUE_WORKER_INFO Info;
|
||||
EX_QUEUE_WORKER_INFO Info;
|
||||
} EX_WORK_QUEUE, *PEX_WORK_QUEUE;
|
||||
#endif
|
||||
|
||||
|
@ -71,11 +71,11 @@ typedef struct _EX_FAST_REF
|
|||
};
|
||||
} EX_FAST_REF, *PEX_FAST_REF;
|
||||
|
||||
typedef struct _EX_PUSH_LOCK
|
||||
typedef struct _EX_PUSH_LOCK
|
||||
{
|
||||
union
|
||||
union
|
||||
{
|
||||
struct
|
||||
struct
|
||||
{
|
||||
ULONG Waiting:1;
|
||||
ULONG Exclusive:1;
|
||||
|
@ -86,12 +86,12 @@ typedef struct _EX_PUSH_LOCK
|
|||
};
|
||||
} EX_PUSH_LOCK, *PEX_PUSH_LOCK;
|
||||
|
||||
typedef struct _HANDLE_TABLE_ENTRY_INFO
|
||||
typedef struct _HANDLE_TABLE_ENTRY_INFO
|
||||
{
|
||||
ULONG AuditMask;
|
||||
} HANDLE_TABLE_ENTRY_INFO, *PHANDLE_TABLE_ENTRY_INFO;
|
||||
|
||||
typedef struct _RUNDOWN_DESCRIPTOR
|
||||
typedef struct _RUNDOWN_DESCRIPTOR
|
||||
{
|
||||
ULONG_PTR References;
|
||||
KEVENT RundownEvent;
|
||||
|
@ -105,16 +105,16 @@ typedef struct _CALLBACK_OBJECT
|
|||
ULONG AllowMultipleCallbacks;
|
||||
} CALLBACK_OBJECT , *PCALLBACK_OBJECT;
|
||||
|
||||
typedef struct _HANDLE_TABLE_ENTRY
|
||||
typedef struct _HANDLE_TABLE_ENTRY
|
||||
{
|
||||
union
|
||||
union
|
||||
{
|
||||
PVOID Object;
|
||||
ULONG_PTR ObAttributes;
|
||||
PHANDLE_TABLE_ENTRY_INFO InfoTable;
|
||||
ULONG_PTR Value;
|
||||
} u1;
|
||||
union
|
||||
union
|
||||
{
|
||||
ULONG GrantedAccess;
|
||||
USHORT GrantedAccessIndex;
|
||||
|
|
|
@ -35,7 +35,7 @@ HalAllocateAdapterChannel(
|
|||
IN PDRIVER_CONTROL ExecutionRoutine
|
||||
);
|
||||
|
||||
BOOLEAN
|
||||
BOOLEAN
|
||||
STDCALL
|
||||
HalBeginSystemInterrupt(
|
||||
ULONG Vector,
|
||||
|
@ -136,7 +136,7 @@ HalStartNextProcessor(
|
|||
ULONG Unknown1,
|
||||
ULONG Unknown2
|
||||
);
|
||||
|
||||
|
||||
VOID
|
||||
STDCALL
|
||||
IoAssignDriveLetters(
|
||||
|
|
|
@ -34,12 +34,12 @@ extern ULONG NTOSAPI KdComPortInUse;
|
|||
/* ENUMERATIONS **************************************************************/
|
||||
typedef enum _FIRMWARE_ENTRY
|
||||
{
|
||||
HalHaltRoutine,
|
||||
HalPowerDownRoutine,
|
||||
HalRestartRoutine,
|
||||
HalRebootRoutine,
|
||||
HalInteractiveModeRoutine,
|
||||
HalMaximumRoutine
|
||||
HalHaltRoutine,
|
||||
HalPowerDownRoutine,
|
||||
HalRestartRoutine,
|
||||
HalRebootRoutine,
|
||||
HalInteractiveModeRoutine,
|
||||
HalMaximumRoutine
|
||||
} FIRMWARE_REENTRY, *PFIRMWARE_REENTRY;
|
||||
|
||||
/* TYPES *********************************************************************/
|
||||
|
@ -55,35 +55,35 @@ extern NTOSAPI HAL_PRIVATE_DISPATCH HalPrivateDispatchTable;
|
|||
extern NTOSAPI PHAL_PRIVATE_DISPATCH HalPrivateDispatchTable;
|
||||
#endif
|
||||
|
||||
#define HAL_PRIVATE_DISPATCH_VERSION 1
|
||||
#define HAL_PRIVATE_DISPATCH_VERSION 1
|
||||
|
||||
typedef struct _LOADER_MODULE
|
||||
typedef struct _LOADER_MODULE
|
||||
{
|
||||
ULONG ModStart;
|
||||
ULONG ModEnd;
|
||||
ULONG String;
|
||||
ULONG Reserved;
|
||||
ULONG ModStart;
|
||||
ULONG ModEnd;
|
||||
ULONG String;
|
||||
ULONG Reserved;
|
||||
} LOADER_MODULE, *PLOADER_MODULE;
|
||||
|
||||
typedef struct _LOADER_PARAMETER_BLOCK
|
||||
{
|
||||
ULONG Flags;
|
||||
ULONG MemLower;
|
||||
ULONG MemHigher;
|
||||
ULONG BootDevice;
|
||||
ULONG CommandLine;
|
||||
ULONG ModsCount;
|
||||
ULONG ModsAddr;
|
||||
UCHAR Syms[12];
|
||||
ULONG MmapLength;
|
||||
ULONG MmapAddr;
|
||||
ULONG DrivesCount;
|
||||
ULONG DrivesAddr;
|
||||
ULONG ConfigTable;
|
||||
ULONG BootLoaderName;
|
||||
ULONG PageDirectoryStart;
|
||||
ULONG PageDirectoryEnd;
|
||||
ULONG KernelBase;
|
||||
ULONG Flags;
|
||||
ULONG MemLower;
|
||||
ULONG MemHigher;
|
||||
ULONG BootDevice;
|
||||
ULONG CommandLine;
|
||||
ULONG ModsCount;
|
||||
ULONG ModsAddr;
|
||||
UCHAR Syms[12];
|
||||
ULONG MmapLength;
|
||||
ULONG MmapAddr;
|
||||
ULONG DrivesCount;
|
||||
ULONG DrivesAddr;
|
||||
ULONG ConfigTable;
|
||||
ULONG BootLoaderName;
|
||||
ULONG PageDirectoryStart;
|
||||
ULONG PageDirectoryEnd;
|
||||
ULONG KernelBase;
|
||||
} LOADER_PARAMETER_BLOCK, *PLOADER_PARAMETER_BLOCK;
|
||||
|
||||
#endif
|
||||
|
|
|
@ -19,18 +19,18 @@
|
|||
|
||||
typedef enum _DEBUG_CONTROL_CODE
|
||||
{
|
||||
DebugGetTraceInformation = 1,
|
||||
DebugSetInternalBreakpoint,
|
||||
DebugSetSpecialCall,
|
||||
DebugClearSpecialCalls,
|
||||
DebugQuerySpecialCalls,
|
||||
DebugDbgBreakPoint,
|
||||
DebugDbgLoadSymbols
|
||||
DebugGetTraceInformation = 1,
|
||||
DebugSetInternalBreakpoint,
|
||||
DebugSetSpecialCall,
|
||||
DebugClearSpecialCalls,
|
||||
DebugQuerySpecialCalls,
|
||||
DebugDbgBreakPoint,
|
||||
DebugDbgLoadSymbols
|
||||
} DEBUG_CONTROL_CODE;
|
||||
|
||||
/* TYPES *********************************************************************/
|
||||
|
||||
typedef struct _KD_PORT_INFORMATION
|
||||
typedef struct _KD_PORT_INFORMATION
|
||||
{
|
||||
ULONG ComPort;
|
||||
ULONG BaudRate;
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
/* PROTOTYPES ****************************************************************/
|
||||
|
||||
VOID
|
||||
VOID
|
||||
STDCALL
|
||||
KeInitializeApc(
|
||||
IN PKAPC Apc,
|
||||
|
@ -27,7 +27,7 @@ KeInitializeApc(
|
|||
IN PKNORMAL_ROUTINE NormalRoutine,
|
||||
IN KPROCESSOR_MODE Mode,
|
||||
IN PVOID Context
|
||||
);
|
||||
);
|
||||
|
||||
VOID
|
||||
STDCALL
|
||||
|
@ -48,9 +48,9 @@ KiReleaseSpinLock(
|
|||
VOID
|
||||
STDCALL
|
||||
KiDeliverApc(
|
||||
IN KPROCESSOR_MODE PreviousMode,
|
||||
IN PVOID Reserved,
|
||||
IN PKTRAP_FRAME TrapFrame
|
||||
IN KPROCESSOR_MODE PreviousMode,
|
||||
IN PVOID Reserved,
|
||||
IN PKTRAP_FRAME TrapFrame
|
||||
);
|
||||
|
||||
VOID
|
||||
|
@ -81,7 +81,7 @@ STDCALL
|
|||
KeQueryRuntimeThread(
|
||||
IN PKTHREAD Thread,
|
||||
OUT PULONG UserTime
|
||||
);
|
||||
);
|
||||
|
||||
BOOLEAN
|
||||
STDCALL
|
||||
|
@ -104,10 +104,10 @@ KeRegisterBugCheckReasonCallback(
|
|||
IN PUCHAR Component
|
||||
);
|
||||
|
||||
VOID
|
||||
VOID
|
||||
STDCALL
|
||||
KeTerminateThread(
|
||||
IN KPRIORITY Increment
|
||||
IN KPRIORITY Increment
|
||||
);
|
||||
|
||||
BOOLEAN
|
||||
|
@ -127,7 +127,7 @@ KeSetEventBoostPriority(
|
|||
IN PKTHREAD *Thread OPTIONAL
|
||||
);
|
||||
|
||||
PCONFIGURATION_COMPONENT_DATA
|
||||
PCONFIGURATION_COMPONENT_DATA
|
||||
STDCALL
|
||||
KeFindConfigurationNextEntry(
|
||||
IN PCONFIGURATION_COMPONENT_DATA Child,
|
||||
|
@ -136,8 +136,8 @@ KeFindConfigurationNextEntry(
|
|||
IN PULONG ComponentKey OPTIONAL,
|
||||
IN PCONFIGURATION_COMPONENT_DATA *NextLink
|
||||
);
|
||||
|
||||
PCONFIGURATION_COMPONENT_DATA
|
||||
|
||||
PCONFIGURATION_COMPONENT_DATA
|
||||
STDCALL
|
||||
KeFindConfigurationEntry(
|
||||
IN PCONFIGURATION_COMPONENT_DATA Child,
|
||||
|
@ -189,7 +189,7 @@ KeSetAffinityThread(
|
|||
PKTHREAD Thread,
|
||||
KAFFINITY Affinity
|
||||
);
|
||||
|
||||
|
||||
VOID
|
||||
STDCALL
|
||||
KeSetSystemAffinityThread(
|
||||
|
@ -199,11 +199,11 @@ KeSetSystemAffinityThread(
|
|||
NTSTATUS
|
||||
STDCALL
|
||||
KeUserModeCallback(
|
||||
IN ULONG FunctionID,
|
||||
IN PVOID InputBuffer,
|
||||
IN ULONG InputLength,
|
||||
OUT PVOID *OutputBuffer,
|
||||
OUT PULONG OutputLength
|
||||
IN ULONG FunctionID,
|
||||
IN PVOID InputBuffer,
|
||||
IN ULONG InputLength,
|
||||
OUT PVOID *OutputBuffer,
|
||||
OUT PULONG OutputLength
|
||||
);
|
||||
|
||||
VOID
|
||||
|
@ -228,15 +228,15 @@ KeInitializeInterrupt(
|
|||
CHAR ProcessorNumber,
|
||||
BOOLEAN FloatingSave
|
||||
);
|
||||
|
||||
|
||||
BOOLEAN
|
||||
STDCALL
|
||||
STDCALL
|
||||
KeConnectInterrupt(
|
||||
PKINTERRUPT InterruptObject
|
||||
);
|
||||
|
||||
BOOLEAN
|
||||
STDCALL
|
||||
STDCALL
|
||||
KeDisconnectInterrupt(
|
||||
PKINTERRUPT InterruptObject
|
||||
);
|
||||
|
@ -266,7 +266,7 @@ KeInitializeMutant(
|
|||
IN PKMUTANT Mutant,
|
||||
IN BOOLEAN InitialOwner
|
||||
);
|
||||
|
||||
|
||||
LONG
|
||||
STDCALL
|
||||
KeReleaseMutant(
|
||||
|
@ -282,8 +282,8 @@ KeRaiseUserException(
|
|||
IN NTSTATUS ExceptionCode
|
||||
);
|
||||
|
||||
VOID
|
||||
VOID
|
||||
STDCALL
|
||||
KeFlushWriteBuffer(VOID);
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
@ -40,7 +40,7 @@ extern SSDT_ENTRY NTOSAPI KeServiceDescriptorTableShadow[SSDT_MAX_ENTRIES];
|
|||
|
||||
/* TYPES *********************************************************************/
|
||||
|
||||
typedef struct _CONFIGURATION_COMPONENT_DATA
|
||||
typedef struct _CONFIGURATION_COMPONENT_DATA
|
||||
{
|
||||
struct _CONFIGURATION_COMPONENT_DATA *Parent;
|
||||
struct _CONFIGURATION_COMPONENT_DATA *Child;
|
||||
|
@ -48,14 +48,14 @@ typedef struct _CONFIGURATION_COMPONENT_DATA
|
|||
CONFIGURATION_COMPONENT Component;
|
||||
} CONFIGURATION_COMPONENT_DATA, *PCONFIGURATION_COMPONENT_DATA;
|
||||
|
||||
typedef enum _KAPC_ENVIRONMENT
|
||||
typedef enum _KAPC_ENVIRONMENT
|
||||
{
|
||||
OriginalApcEnvironment,
|
||||
AttachedApcEnvironment,
|
||||
CurrentApcEnvironment
|
||||
} KAPC_ENVIRONMENT;
|
||||
|
||||
typedef struct _KDPC_DATA
|
||||
typedef struct _KDPC_DATA
|
||||
{
|
||||
LIST_ENTRY DpcListHead;
|
||||
ULONG DpcLock;
|
||||
|
@ -76,7 +76,7 @@ typedef struct _KAPC_STATE
|
|||
#endif
|
||||
|
||||
/* FIXME: Most of these should go to i386 directory */
|
||||
typedef struct _FNSAVE_FORMAT
|
||||
typedef struct _FNSAVE_FORMAT
|
||||
{
|
||||
ULONG ControlWord;
|
||||
ULONG StatusWord;
|
||||
|
@ -117,7 +117,7 @@ typedef struct _FX_SAVE_AREA
|
|||
ULONG Cr0NpxState;
|
||||
} FX_SAVE_AREA, *PFX_SAVE_AREA;
|
||||
|
||||
typedef struct _KTRAP_FRAME
|
||||
typedef struct _KTRAP_FRAME
|
||||
{
|
||||
PVOID DebugEbp;
|
||||
PVOID DebugEip;
|
||||
|
@ -167,29 +167,33 @@ typedef struct _KTRAP_FRAME
|
|||
|
||||
/* FIXME: Win32k uses windows.h! */
|
||||
#ifndef __WIN32K__
|
||||
typedef struct _LDT_ENTRY {
|
||||
WORD LimitLow;
|
||||
WORD BaseLow;
|
||||
union {
|
||||
struct {
|
||||
BYTE BaseMid;
|
||||
BYTE Flags1;
|
||||
BYTE Flags2;
|
||||
BYTE BaseHi;
|
||||
} Bytes;
|
||||
struct {
|
||||
DWORD BaseMid : 8;
|
||||
DWORD Type : 5;
|
||||
DWORD Dpl : 2;
|
||||
DWORD Pres : 1;
|
||||
DWORD LimitHi : 4;
|
||||
DWORD Sys : 1;
|
||||
DWORD Reserved_0 : 1;
|
||||
DWORD Default_Big : 1;
|
||||
DWORD Granularity : 1;
|
||||
DWORD BaseHi : 8;
|
||||
} Bits;
|
||||
} HighWord;
|
||||
typedef struct _LDT_ENTRY
|
||||
{
|
||||
WORD LimitLow;
|
||||
WORD BaseLow;
|
||||
union
|
||||
{
|
||||
struct
|
||||
{
|
||||
BYTE BaseMid;
|
||||
BYTE Flags1;
|
||||
BYTE Flags2;
|
||||
BYTE BaseHi;
|
||||
} Bytes;
|
||||
struct
|
||||
{
|
||||
DWORD BaseMid : 8;
|
||||
DWORD Type : 5;
|
||||
DWORD Dpl : 2;
|
||||
DWORD Pres : 1;
|
||||
DWORD LimitHi : 4;
|
||||
DWORD Sys : 1;
|
||||
DWORD Reserved_0 : 1;
|
||||
DWORD Default_Big : 1;
|
||||
DWORD Granularity : 1;
|
||||
DWORD BaseHi : 8;
|
||||
} Bits;
|
||||
} HighWord;
|
||||
} LDT_ENTRY, *PLDT_ENTRY, *LPLDT_ENTRY;
|
||||
#endif
|
||||
|
||||
|
@ -197,14 +201,17 @@ typedef struct _KGDTENTRY
|
|||
{
|
||||
USHORT LimitLow;
|
||||
USHORT BaseLow;
|
||||
union {
|
||||
struct {
|
||||
union
|
||||
{
|
||||
struct
|
||||
{
|
||||
UCHAR BaseMid;
|
||||
UCHAR Flags1;
|
||||
UCHAR Flags2;
|
||||
UCHAR BaseHi;
|
||||
} Bytes;
|
||||
struct {
|
||||
struct
|
||||
{
|
||||
ULONG BaseMid : 8;
|
||||
ULONG Type : 5;
|
||||
ULONG Dpl : 2;
|
||||
|
@ -249,14 +256,14 @@ typedef struct _HARDWARE_PTE_X86
|
|||
/* Fixme: Use correct types? */
|
||||
typedef struct _KPROCESSOR_STATE
|
||||
{
|
||||
PCONTEXT ContextFrame;
|
||||
PVOID SpecialRegisters;
|
||||
PCONTEXT ContextFrame;
|
||||
PVOID SpecialRegisters;
|
||||
} KPROCESSOR_STATE;
|
||||
|
||||
/* Processor Control Block */
|
||||
typedef struct _KPRCB
|
||||
{
|
||||
USHORT MinorVersion;
|
||||
USHORT MinorVersion;
|
||||
USHORT MajorVersion;
|
||||
struct _KTHREAD *CurrentThread;
|
||||
struct _KTHREAD *NextThread;
|
||||
|
@ -387,33 +394,34 @@ typedef struct _KPRCB
|
|||
/*
|
||||
* This is the complete, internal KPCR structure
|
||||
*/
|
||||
typedef struct _KIPCR {
|
||||
KPCR_TIB Tib; /* 00 */
|
||||
struct _KPCR *Self; /* 1C */
|
||||
struct _KPRCB *Prcb; /* 20 */
|
||||
KIRQL Irql; /* 24 */
|
||||
ULONG IRR; /* 28 */
|
||||
ULONG IrrActive; /* 2C */
|
||||
ULONG IDR; /* 30 */
|
||||
PVOID KdVersionBlock; /* 34 */
|
||||
PUSHORT IDT; /* 38 */
|
||||
PUSHORT GDT; /* 3C */
|
||||
struct _KTSS *TSS; /* 40 */
|
||||
USHORT MajorVersion; /* 44 */
|
||||
USHORT MinorVersion; /* 46 */
|
||||
KAFFINITY SetMember; /* 48 */
|
||||
ULONG StallScaleFactor; /* 4C */
|
||||
UCHAR SparedUnused; /* 50 */
|
||||
UCHAR Number; /* 51 */
|
||||
UCHAR Reserved; /* 52 */
|
||||
UCHAR L2CacheAssociativity; /* 53 */
|
||||
ULONG VdmAlert; /* 54 */
|
||||
ULONG KernelReserved[14]; /* 58 */
|
||||
ULONG L2CacheSize; /* 90 */
|
||||
ULONG HalReserved[16]; /* 94 */
|
||||
ULONG InterruptMode; /* D4 */
|
||||
UCHAR KernelReserved2[0x48]; /* D8 */
|
||||
KPRCB PrcbData; /* 120 */
|
||||
typedef struct _KIPCR
|
||||
{
|
||||
KPCR_TIB Tib; /* 00 */
|
||||
struct _KPCR *Self; /* 1C */
|
||||
struct _KPRCB *Prcb; /* 20 */
|
||||
KIRQL Irql; /* 24 */
|
||||
ULONG IRR; /* 28 */
|
||||
ULONG IrrActive; /* 2C */
|
||||
ULONG IDR; /* 30 */
|
||||
PVOID KdVersionBlock; /* 34 */
|
||||
PUSHORT IDT; /* 38 */
|
||||
PUSHORT GDT; /* 3C */
|
||||
struct _KTSS *TSS; /* 40 */
|
||||
USHORT MajorVersion; /* 44 */
|
||||
USHORT MinorVersion; /* 46 */
|
||||
KAFFINITY SetMember; /* 48 */
|
||||
ULONG StallScaleFactor; /* 4C */
|
||||
UCHAR SparedUnused; /* 50 */
|
||||
UCHAR Number; /* 51 */
|
||||
UCHAR Reserved; /* 52 */
|
||||
UCHAR L2CacheAssociativity; /* 53 */
|
||||
ULONG VdmAlert; /* 54 */
|
||||
ULONG KernelReserved[14]; /* 58 */
|
||||
ULONG L2CacheSize; /* 90 */
|
||||
ULONG HalReserved[16]; /* 94 */
|
||||
ULONG InterruptMode; /* D4 */
|
||||
UCHAR KernelReserved2[0x48]; /* D8 */
|
||||
KPRCB PrcbData; /* 120 */
|
||||
} KIPCR, *PKIPCR;
|
||||
|
||||
#pragma pack(pop)
|
||||
|
@ -511,7 +519,8 @@ typedef struct _KTSS
|
|||
#include <poppack.h>
|
||||
|
||||
/* i386 Doesn't have Exception Frames */
|
||||
typedef struct _KEXCEPTION_FRAME {
|
||||
typedef struct _KEXCEPTION_FRAME
|
||||
{
|
||||
|
||||
} KEXCEPTION_FRAME, *PKEXCEPTION_FRAME;
|
||||
|
||||
|
@ -544,7 +553,7 @@ typedef struct _KPROFILE
|
|||
struct _KPROCESS *Process;
|
||||
} KPROFILE, *PKPROFILE;
|
||||
|
||||
typedef struct _KINTERRUPT
|
||||
typedef struct _KINTERRUPT
|
||||
{
|
||||
CSHORT Type;
|
||||
CSHORT Size;
|
||||
|
@ -621,94 +630,97 @@ typedef enum _KOBJECTS
|
|||
|
||||
typedef struct _KTHREAD
|
||||
{
|
||||
/* For waiting on thread exit */
|
||||
DISPATCHER_HEADER DispatcherHeader; /* 00 */
|
||||
/* For waiting on thread exit */
|
||||
DISPATCHER_HEADER DispatcherHeader; /* 00 */
|
||||
|
||||
/* List of mutants owned by the thread */
|
||||
LIST_ENTRY MutantListHead; /* 10 */
|
||||
PVOID InitialStack; /* 18 */
|
||||
ULONG_PTR StackLimit; /* 1C */
|
||||
/* List of mutants owned by the thread */
|
||||
LIST_ENTRY MutantListHead; /* 10 */
|
||||
PVOID InitialStack; /* 18 */
|
||||
ULONG_PTR StackLimit; /* 1C */
|
||||
|
||||
/* Pointer to the thread's environment block in user memory */
|
||||
struct _TEB *Teb; /* 20 */
|
||||
/* Pointer to the thread's environment block in user memory */
|
||||
struct _TEB *Teb; /* 20 */
|
||||
|
||||
/* Pointer to the thread's TLS array */
|
||||
PVOID TlsArray; /* 24 */
|
||||
PVOID KernelStack; /* 28 */
|
||||
UCHAR DebugActive; /* 2C */
|
||||
/* Pointer to the thread's TLS array */
|
||||
PVOID TlsArray; /* 24 */
|
||||
PVOID KernelStack; /* 28 */
|
||||
UCHAR DebugActive; /* 2C */
|
||||
|
||||
/* Thread state (one of THREAD_STATE_xxx constants below) */
|
||||
UCHAR State; /* 2D */
|
||||
BOOLEAN Alerted[2]; /* 2E */
|
||||
UCHAR Iopl; /* 30 */
|
||||
UCHAR NpxState; /* 31 */
|
||||
CHAR Saturation; /* 32 */
|
||||
CHAR Priority; /* 33 */
|
||||
KAPC_STATE ApcState; /* 34 */
|
||||
ULONG ContextSwitches; /* 4C */
|
||||
LONG WaitStatus; /* 50 */
|
||||
KIRQL WaitIrql; /* 54 */
|
||||
CHAR WaitMode; /* 55 */
|
||||
UCHAR WaitNext; /* 56 */
|
||||
UCHAR WaitReason; /* 57 */
|
||||
union { /* 58 */
|
||||
PKWAIT_BLOCK WaitBlockList; /* 58 */
|
||||
PKGATE GateObject; /* 58 */
|
||||
}; /* 58 */
|
||||
LIST_ENTRY WaitListEntry; /* 5C */
|
||||
ULONG WaitTime; /* 64 */
|
||||
CHAR BasePriority; /* 68 */
|
||||
UCHAR DecrementCount; /* 69 */
|
||||
UCHAR PriorityDecrement; /* 6A */
|
||||
CHAR Quantum; /* 6B */
|
||||
KWAIT_BLOCK WaitBlock[4]; /* 6C */
|
||||
PVOID LegoData; /* CC */
|
||||
union {
|
||||
struct {
|
||||
USHORT KernelApcDisable;
|
||||
USHORT SpecialApcDisable;
|
||||
};
|
||||
ULONG CombinedApcDisable; /* D0 */
|
||||
};
|
||||
KAFFINITY UserAffinity; /* D4 */
|
||||
UCHAR SystemAffinityActive;/* D8 */
|
||||
UCHAR PowerState; /* D9 */
|
||||
UCHAR NpxIrql; /* DA */
|
||||
UCHAR Pad[1]; /* DB */
|
||||
PVOID ServiceTable; /* DC */
|
||||
struct _KQUEUE *Queue; /* E0 */
|
||||
KSPIN_LOCK ApcQueueLock; /* E4 */
|
||||
KTIMER Timer; /* E8 */
|
||||
LIST_ENTRY QueueListEntry; /* 110 */
|
||||
KAFFINITY Affinity; /* 118 */
|
||||
UCHAR Preempted; /* 11C */
|
||||
UCHAR ProcessReadyQueue; /* 11D */
|
||||
UCHAR KernelStackResident; /* 11E */
|
||||
UCHAR NextProcessor; /* 11F */
|
||||
PVOID CallbackStack; /* 120 */
|
||||
struct _W32THREAD *Win32Thread; /* 124 */
|
||||
struct _KTRAP_FRAME *TrapFrame; /* 128 */
|
||||
PKAPC_STATE ApcStatePointer[2]; /* 12C */
|
||||
UCHAR EnableStackSwap; /* 134 */
|
||||
UCHAR LargeStack; /* 135 */
|
||||
UCHAR ResourceIndex; /* 136 */
|
||||
UCHAR PreviousMode; /* 137 */
|
||||
ULONG KernelTime; /* 138 */
|
||||
ULONG UserTime; /* 13C */
|
||||
KAPC_STATE SavedApcState; /* 140 */
|
||||
UCHAR Alertable; /* 158 */
|
||||
UCHAR ApcStateIndex; /* 159 */
|
||||
UCHAR ApcQueueable; /* 15A */
|
||||
UCHAR AutoAlignment; /* 15B */
|
||||
PVOID StackBase; /* 15C */
|
||||
KAPC SuspendApc; /* 160 */
|
||||
KSEMAPHORE SuspendSemaphore; /* 190 */
|
||||
LIST_ENTRY ThreadListEntry; /* 1A4 */
|
||||
CHAR FreezeCount; /* 1AC */
|
||||
UCHAR SuspendCount; /* 1AD */
|
||||
UCHAR IdealProcessor; /* 1AE */
|
||||
UCHAR DisableBoost; /* 1AF */
|
||||
UCHAR QuantumReset; /* 1B0 */
|
||||
/* Thread state (one of THREAD_STATE_xxx constants below) */
|
||||
UCHAR State; /* 2D */
|
||||
BOOLEAN Alerted[2]; /* 2E */
|
||||
UCHAR Iopl; /* 30 */
|
||||
UCHAR NpxState; /* 31 */
|
||||
CHAR Saturation; /* 32 */
|
||||
CHAR Priority; /* 33 */
|
||||
KAPC_STATE ApcState; /* 34 */
|
||||
ULONG ContextSwitches; /* 4C */
|
||||
LONG WaitStatus; /* 50 */
|
||||
KIRQL WaitIrql; /* 54 */
|
||||
CHAR WaitMode; /* 55 */
|
||||
UCHAR WaitNext; /* 56 */
|
||||
UCHAR WaitReason; /* 57 */
|
||||
union /* 58 */
|
||||
{
|
||||
PKWAIT_BLOCK WaitBlockList; /* 58 */
|
||||
PKGATE GateObject; /* 58 */
|
||||
}; /* 58 */
|
||||
LIST_ENTRY WaitListEntry; /* 5C */
|
||||
ULONG WaitTime; /* 64 */
|
||||
CHAR BasePriority; /* 68 */
|
||||
UCHAR DecrementCount; /* 69 */
|
||||
UCHAR PriorityDecrement; /* 6A */
|
||||
CHAR Quantum; /* 6B */
|
||||
KWAIT_BLOCK WaitBlock[4]; /* 6C */
|
||||
PVOID LegoData; /* CC */
|
||||
union
|
||||
{
|
||||
struct
|
||||
{
|
||||
USHORT KernelApcDisable;
|
||||
USHORT SpecialApcDisable;
|
||||
};
|
||||
ULONG CombinedApcDisable; /* D0 */
|
||||
};
|
||||
KAFFINITY UserAffinity; /* D4 */
|
||||
UCHAR SystemAffinityActive;/* D8 */
|
||||
UCHAR PowerState; /* D9 */
|
||||
UCHAR NpxIrql; /* DA */
|
||||
UCHAR Pad[1]; /* DB */
|
||||
PVOID ServiceTable; /* DC */
|
||||
struct _KQUEUE *Queue; /* E0 */
|
||||
KSPIN_LOCK ApcQueueLock; /* E4 */
|
||||
KTIMER Timer; /* E8 */
|
||||
LIST_ENTRY QueueListEntry; /* 110 */
|
||||
KAFFINITY Affinity; /* 118 */
|
||||
UCHAR Preempted; /* 11C */
|
||||
UCHAR ProcessReadyQueue; /* 11D */
|
||||
UCHAR KernelStackResident; /* 11E */
|
||||
UCHAR NextProcessor; /* 11F */
|
||||
PVOID CallbackStack; /* 120 */
|
||||
struct _W32THREAD *Win32Thread; /* 124 */
|
||||
struct _KTRAP_FRAME *TrapFrame; /* 128 */
|
||||
PKAPC_STATE ApcStatePointer[2]; /* 12C */
|
||||
UCHAR EnableStackSwap; /* 134 */
|
||||
UCHAR LargeStack; /* 135 */
|
||||
UCHAR ResourceIndex; /* 136 */
|
||||
UCHAR PreviousMode; /* 137 */
|
||||
ULONG KernelTime; /* 138 */
|
||||
ULONG UserTime; /* 13C */
|
||||
KAPC_STATE SavedApcState; /* 140 */
|
||||
UCHAR Alertable; /* 158 */
|
||||
UCHAR ApcStateIndex; /* 159 */
|
||||
UCHAR ApcQueueable; /* 15A */
|
||||
UCHAR AutoAlignment; /* 15B */
|
||||
PVOID StackBase; /* 15C */
|
||||
KAPC SuspendApc; /* 160 */
|
||||
KSEMAPHORE SuspendSemaphore; /* 190 */
|
||||
LIST_ENTRY ThreadListEntry; /* 1A4 */
|
||||
CHAR FreezeCount; /* 1AC */
|
||||
UCHAR SuspendCount; /* 1AD */
|
||||
UCHAR IdealProcessor; /* 1AE */
|
||||
UCHAR DisableBoost; /* 1AF */
|
||||
UCHAR QuantumReset; /* 1B0 */
|
||||
} KTHREAD;
|
||||
|
||||
#include <poppack.h>
|
||||
|
@ -739,8 +751,10 @@ typedef struct _KPROCESS
|
|||
LIST_ENTRY ThreadListHead; /* 050 */
|
||||
KSPIN_LOCK ProcessLock; /* 058 */
|
||||
KAFFINITY Affinity; /* 05C */
|
||||
union {
|
||||
struct {
|
||||
union
|
||||
{
|
||||
struct
|
||||
{
|
||||
ULONG AutoAlignment:1; /* 060.0 */
|
||||
ULONG DisableBoost:1; /* 060.1 */
|
||||
ULONG DisableQuantum:1; /* 060.2 */
|
||||
|
|
|
@ -42,5 +42,5 @@ LdrGetProcedureAddress(
|
|||
IN ULONG Ordinal,
|
||||
OUT PVOID *ProcedureAddress
|
||||
);
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
@ -20,17 +20,17 @@
|
|||
#define RESOURCE_DATA_LEVEL 3
|
||||
|
||||
/* FIXME: USE CORRRECT LDR_ FLAGS */
|
||||
#define IMAGE_DLL 0x00000004
|
||||
#define LOAD_IN_PROGRESS 0x00001000
|
||||
#define UNLOAD_IN_PROGRESS 0x00002000
|
||||
#define ENTRY_PROCESSED 0x00004000
|
||||
#define DONT_CALL_FOR_THREAD 0x00040000
|
||||
#define PROCESS_ATTACH_CALLED 0x00080000
|
||||
#define IMAGE_NOT_AT_BASE 0x00200000
|
||||
#define IMAGE_DLL 0x00000004
|
||||
#define LOAD_IN_PROGRESS 0x00001000
|
||||
#define UNLOAD_IN_PROGRESS 0x00002000
|
||||
#define ENTRY_PROCESSED 0x00004000
|
||||
#define DONT_CALL_FOR_THREAD 0x00040000
|
||||
#define PROCESS_ATTACH_CALLED 0x00080000
|
||||
#define IMAGE_NOT_AT_BASE 0x00200000
|
||||
|
||||
/* ENUMERATIONS **************************************************************/
|
||||
|
||||
/* TYPES *********************************************************************/
|
||||
/* TYPES *********************************************************************/
|
||||
/* FIXME: Update with _LDR_DATA_TABLE_ENTRY and LDR_ flags */
|
||||
typedef struct _PEB_LDR_DATA
|
||||
{
|
||||
|
@ -69,7 +69,7 @@ typedef struct _LDR_DATA_TABLE_ENTRY
|
|||
#endif /* KDBG */
|
||||
} LDR_DATA_TABLE_ENTRY, *PLDR_DATA_TABLE_ENTRY;
|
||||
|
||||
typedef struct _LDR_RESOURCE_INFO
|
||||
typedef struct _LDR_RESOURCE_INFO
|
||||
{
|
||||
ULONG Type;
|
||||
ULONG Name;
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
/* ENUMERATIONS **************************************************************/
|
||||
|
||||
typedef enum _LPC_TYPE
|
||||
typedef enum _LPC_TYPE
|
||||
{
|
||||
LPC_NEW_MESSAGE,
|
||||
LPC_REQUEST,
|
||||
|
@ -41,7 +41,8 @@ typedef enum _LPC_TYPE
|
|||
/* TYPES *********************************************************************/
|
||||
|
||||
/* FIXME: USE REAL DEFINITION */
|
||||
typedef struct _LPC_MESSAGE {
|
||||
typedef struct _LPC_MESSAGE
|
||||
{
|
||||
USHORT DataSize;
|
||||
USHORT MessageSize;
|
||||
USHORT MessageType;
|
||||
|
@ -52,7 +53,7 @@ typedef struct _LPC_MESSAGE {
|
|||
} LPC_MESSAGE, *PLPC_MESSAGE;
|
||||
|
||||
/* FIXME: USE REAL DEFINITION */
|
||||
typedef struct _LPC_SECTION_WRITE
|
||||
typedef struct _LPC_SECTION_WRITE
|
||||
{
|
||||
ULONG Length;
|
||||
HANDLE SectionHandle;
|
||||
|
@ -63,15 +64,15 @@ typedef struct _LPC_SECTION_WRITE
|
|||
} LPC_SECTION_WRITE, *PLPC_SECTION_WRITE;
|
||||
|
||||
/* FIXME: USE REAL DEFINITION */
|
||||
typedef struct _LPC_SECTION_READ
|
||||
typedef struct _LPC_SECTION_READ
|
||||
{
|
||||
ULONG Length;
|
||||
ULONG ViewSize;
|
||||
PVOID ViewBase;
|
||||
} LPC_SECTION_READ, *PLPC_SECTION_READ;
|
||||
} LPC_SECTION_READ, *PLPC_SECTION_READ;
|
||||
|
||||
/* FIXME: USE REAL DEFINITION */
|
||||
typedef struct _LPC_MAX_MESSAGE
|
||||
typedef struct _LPC_MAX_MESSAGE
|
||||
{
|
||||
LPC_MESSAGE Header;
|
||||
BYTE Data[MAX_MESSAGE_DATA];
|
||||
|
|
|
@ -13,10 +13,10 @@
|
|||
|
||||
|
||||
/* PROTOTYPES ****************************************************************/
|
||||
NTSTATUS
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
MmUnmapViewOfSection(
|
||||
struct _EPROCESS* Process,
|
||||
struct _EPROCESS* Process,
|
||||
PVOID BaseAddress
|
||||
);
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
/* ENUMERATIONS **************************************************************/
|
||||
|
||||
typedef enum _OB_OPEN_REASON
|
||||
{
|
||||
{
|
||||
ObCreateHandle,
|
||||
ObOpenHandle,
|
||||
ObDuplicateHandle,
|
||||
|
@ -54,7 +54,7 @@ typedef NTSTATUS
|
|||
ACCESS_MASK GrantedAccess
|
||||
);
|
||||
|
||||
typedef NTSTATUS
|
||||
typedef NTSTATUS
|
||||
(STDCALL *OB_PARSE_METHOD)(
|
||||
PVOID Object,
|
||||
PVOID *NextObject,
|
||||
|
@ -62,13 +62,13 @@ typedef NTSTATUS
|
|||
PWSTR *Path,
|
||||
ULONG Attributes
|
||||
);
|
||||
|
||||
typedef VOID
|
||||
|
||||
typedef VOID
|
||||
(STDCALL *OB_DELETE_METHOD)(
|
||||
PVOID DeletedObject
|
||||
);
|
||||
|
||||
typedef VOID
|
||||
typedef VOID
|
||||
(STDCALL *OB_CLOSE_METHOD)(
|
||||
PVOID ClosedObject,
|
||||
ULONG HandleCount
|
||||
|
@ -77,10 +77,10 @@ typedef VOID
|
|||
typedef VOID
|
||||
(STDCALL *OB_DUMP_METHOD)(VOID);
|
||||
|
||||
typedef NTSTATUS
|
||||
typedef NTSTATUS
|
||||
(STDCALL *OB_OKAYTOCLOSE_METHOD)(VOID);
|
||||
|
||||
typedef NTSTATUS
|
||||
typedef NTSTATUS
|
||||
(STDCALL *OB_QUERYNAME_METHOD)(
|
||||
PVOID ObjectBody,
|
||||
POBJECT_NAME_INFORMATION ObjectNameInfo,
|
||||
|
@ -88,14 +88,14 @@ typedef NTSTATUS
|
|||
PULONG ReturnLength
|
||||
);
|
||||
|
||||
typedef PVOID
|
||||
typedef PVOID
|
||||
(STDCALL *OB_FIND_METHOD)(
|
||||
PVOID WinStaObject,
|
||||
PWSTR Name,
|
||||
ULONG Attributes
|
||||
);
|
||||
|
||||
typedef NTSTATUS
|
||||
typedef NTSTATUS
|
||||
(STDCALL *OB_SECURITY_METHOD)(
|
||||
PVOID ObjectBody,
|
||||
SECURITY_OPERATION_CODE OperationCode,
|
||||
|
@ -116,7 +116,7 @@ typedef NTSTATUS
|
|||
/* TYPES *********************************************************************/
|
||||
|
||||
/* FIXME: Does this match NT's? */
|
||||
typedef struct _W32_OBJECT_CALLBACK
|
||||
typedef struct _W32_OBJECT_CALLBACK
|
||||
{
|
||||
OB_OPEN_METHOD WinStaCreate;
|
||||
OB_PARSE_METHOD WinStaParse;
|
||||
|
@ -126,7 +126,7 @@ typedef struct _W32_OBJECT_CALLBACK
|
|||
OB_DELETE_METHOD DesktopDelete;
|
||||
} W32_OBJECT_CALLBACK, *PW32_OBJECT_CALLBACK;
|
||||
|
||||
typedef struct _OBJECT_BASIC_INFORMATION
|
||||
typedef struct _OBJECT_BASIC_INFORMATION
|
||||
{
|
||||
ULONG Attributes;
|
||||
ACCESS_MASK GrantedAccess;
|
||||
|
@ -140,7 +140,7 @@ typedef struct _OBJECT_BASIC_INFORMATION
|
|||
ULONG SecurityDescriptorLength;
|
||||
LARGE_INTEGER CreateTime;
|
||||
} OBJECT_BASIC_INFORMATION, *POBJECT_BASIC_INFORMATION;
|
||||
|
||||
|
||||
typedef struct _OBJECT_HEADER_NAME_INFO
|
||||
{
|
||||
struct _DIRECTORY_OBJECT *Directory;
|
||||
|
@ -150,7 +150,7 @@ typedef struct _OBJECT_HEADER_NAME_INFO
|
|||
ULONG DbgReferenceCount;
|
||||
} OBJECT_HEADER_NAME_INFO, *POBJECT_HEADER_NAME_INFO;
|
||||
|
||||
typedef struct _OBJECT_CREATE_INFORMATION
|
||||
typedef struct _OBJECT_CREATE_INFORMATION
|
||||
{
|
||||
ULONG Attributes;
|
||||
HANDLE RootDirectory;
|
||||
|
@ -209,13 +209,13 @@ typedef struct _OBJECT_HANDLE_COUNT_ENTRY
|
|||
struct _EPROCESS *Process;
|
||||
ULONG HandleCount;
|
||||
} OBJECT_HANDLE_COUNT_ENTRY, *POBJECT_HANDLE_COUNT_ENTRY;
|
||||
|
||||
|
||||
typedef struct _OBJECT_HANDLE_COUNT_DATABASE
|
||||
{
|
||||
ULONG CountEntries;
|
||||
POBJECT_HANDLE_COUNT_ENTRY HandleCountEntries[1];
|
||||
} OBJECT_HANDLE_COUNT_DATABASE, *POBJECT_HANDLE_COUNT_DATABASE;
|
||||
|
||||
|
||||
typedef struct _OBJECT_HEADER_HANDLE_INFO
|
||||
{
|
||||
union
|
||||
|
@ -224,7 +224,7 @@ typedef struct _OBJECT_HEADER_HANDLE_INFO
|
|||
OBJECT_HANDLE_COUNT_ENTRY SingleEntry;
|
||||
};
|
||||
} OBJECT_HEADER_HANDLE_INFO, *POBJECT_HEADER_HANDLE_INFO;
|
||||
|
||||
|
||||
typedef struct _OBJECT_HEADER_CREATOR_INFO
|
||||
{
|
||||
LIST_ENTRY TypeList;
|
||||
|
@ -246,7 +246,8 @@ typedef struct _OBJECT_HEADER
|
|||
{
|
||||
LIST_ENTRY Entry; /* FIXME: REMOVE THIS SOON */
|
||||
LONG PointerCount;
|
||||
union {
|
||||
union
|
||||
{
|
||||
LONG HandleCount;
|
||||
PVOID NextToFree;
|
||||
};
|
||||
|
@ -255,7 +256,8 @@ typedef struct _OBJECT_HEADER
|
|||
UCHAR HandleInfoOffset;
|
||||
UCHAR QuotaInfoOffset;
|
||||
UCHAR Flags;
|
||||
union {
|
||||
union
|
||||
{
|
||||
POBJECT_CREATE_INFORMATION ObjectCreateInfo;
|
||||
PVOID QuotaBlockCharged;
|
||||
};
|
||||
|
@ -291,7 +293,7 @@ typedef struct _DEVICE_MAP
|
|||
ULONG ReferenceCount;
|
||||
ULONG DriveMap;
|
||||
UCHAR DriveType[32];
|
||||
} DEVICE_MAP, *PDEVICE_MAP;
|
||||
} DEVICE_MAP, *PDEVICE_MAP;
|
||||
|
||||
/* EXPORTED DATA *************************************************************/
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
/* TYPES *********************************************************************/
|
||||
|
||||
typedef struct _PROCESSOR_POWER_STATE
|
||||
typedef struct _PROCESSOR_POWER_STATE
|
||||
{
|
||||
PVOID IdleFunction;
|
||||
ULONG Idle0KernelTimeLimit;
|
||||
|
|
|
@ -80,7 +80,7 @@ extern NTOSAPI POBJECT_TYPE PsThreadType;
|
|||
/* FUNCTION TYPES ************************************************************/
|
||||
typedef VOID (STDCALL *PPEBLOCKROUTINE)(PVOID);
|
||||
|
||||
typedef NTSTATUS
|
||||
typedef NTSTATUS
|
||||
(STDCALL *PW32_PROCESS_CALLBACK)(
|
||||
struct _EPROCESS *Process,
|
||||
BOOLEAN Create
|
||||
|
@ -96,7 +96,7 @@ typedef NTSTATUS
|
|||
|
||||
struct _ETHREAD;
|
||||
|
||||
typedef struct _CURDIR
|
||||
typedef struct _CURDIR
|
||||
{
|
||||
UNICODE_STRING DosPath;
|
||||
PVOID Handle;
|
||||
|
@ -108,7 +108,7 @@ typedef struct _DESCRIPTOR_TABLE_ENTRY
|
|||
LDT_ENTRY Descriptor;
|
||||
} DESCRIPTOR_TABLE_ENTRY, *PDESCRIPTOR_TABLE_ENTRY;
|
||||
|
||||
typedef struct _PEB_FREE_BLOCK
|
||||
typedef struct _PEB_FREE_BLOCK
|
||||
{
|
||||
struct _PEB_FREE_BLOCK* Next;
|
||||
ULONG Size;
|
||||
|
@ -175,7 +175,7 @@ typedef struct _PEB
|
|||
UNICODE_STRING CSDVersion; /* 1DCh */
|
||||
} PEB;
|
||||
|
||||
typedef struct _GDI_TEB_BATCH
|
||||
typedef struct _GDI_TEB_BATCH
|
||||
{
|
||||
ULONG Offset;
|
||||
ULONG HDC;
|
||||
|
@ -184,14 +184,14 @@ typedef struct _GDI_TEB_BATCH
|
|||
|
||||
typedef struct _INITIAL_TEB
|
||||
{
|
||||
PVOID StackBase;
|
||||
PVOID StackLimit;
|
||||
PVOID StackCommit;
|
||||
PVOID StackCommitMax;
|
||||
PVOID StackReserved;
|
||||
PVOID StackBase;
|
||||
PVOID StackLimit;
|
||||
PVOID StackCommit;
|
||||
PVOID StackCommitMax;
|
||||
PVOID StackReserved;
|
||||
} INITIAL_TEB, *PINITIAL_TEB;
|
||||
|
||||
typedef struct _TEB
|
||||
typedef struct _TEB
|
||||
{
|
||||
NT_TIB Tib; /* 00h */
|
||||
PVOID EnvironmentPointer; /* 1Ch */
|
||||
|
@ -313,16 +313,19 @@ typedef struct _ETHREAD
|
|||
KTHREAD Tcb; /* 1C0 */
|
||||
LARGE_INTEGER CreateTime; /* 1C0 */
|
||||
LARGE_INTEGER ExitTime; /* 1C0 */
|
||||
union {
|
||||
union
|
||||
{
|
||||
LIST_ENTRY LpcReplyChain; /* 1C0 */
|
||||
LIST_ENTRY KeyedWaitChain; /* 1C0 */
|
||||
};
|
||||
union {
|
||||
union
|
||||
{
|
||||
NTSTATUS ExitStatus; /* 1C8 */
|
||||
PVOID OfsChain; /* 1C8 */
|
||||
};
|
||||
LIST_ENTRY PostBlockList; /* 1CC */
|
||||
union {
|
||||
union
|
||||
{
|
||||
struct _TERMINATION_PORT *TerminationPort; /* 1D4 */
|
||||
struct _ETHREAD *ReaperLink; /* 1D4 */
|
||||
PVOID KeyedWaitValue; /* 1D4 */
|
||||
|
@ -330,11 +333,13 @@ typedef struct _ETHREAD
|
|||
KSPIN_LOCK ActiveTimerListLock; /* 1D8 */
|
||||
LIST_ENTRY ActiveTimerListHead; /* 1D8 */
|
||||
CLIENT_ID Cid; /* 1E0 */
|
||||
union {
|
||||
union
|
||||
{
|
||||
KSEMAPHORE LpcReplySemaphore; /* 1E4 */
|
||||
KSEMAPHORE KeyedReplySemaphore; /* 1E4 */
|
||||
};
|
||||
union {
|
||||
union
|
||||
{
|
||||
PVOID LpcReplyMessage; /* 200 */
|
||||
PVOID LpcWaitingOnPort; /* 200 */
|
||||
};
|
||||
|
@ -344,7 +349,8 @@ typedef struct _ETHREAD
|
|||
PDEVICE_OBJECT DeviceToVerify; /* 214 */
|
||||
struct _EPROCESS *ThreadsProcess; /* 218 */
|
||||
PKSTART_ROUTINE StartAddress; /* 21C */
|
||||
union {
|
||||
union
|
||||
{
|
||||
PTHREAD_START_ROUTINE Win32StartAddress; /* 220 */
|
||||
ULONG LpcReceivedMessageId; /* 220 */
|
||||
};
|
||||
|
@ -354,8 +360,10 @@ typedef struct _ETHREAD
|
|||
ULONG LpcReplyMessageId; /* 234 */
|
||||
ULONG ReadClusterSize; /* 238 */
|
||||
ACCESS_MASK GrantedAccess; /* 23C */
|
||||
union {
|
||||
struct {
|
||||
union
|
||||
{
|
||||
struct
|
||||
{
|
||||
ULONG Terminated:1;
|
||||
ULONG DeadThread:1;
|
||||
ULONG HideFromDebugger:1;
|
||||
|
@ -368,8 +376,10 @@ typedef struct _ETHREAD
|
|||
};
|
||||
ULONG CrossThreadFlags; /* 240 */
|
||||
};
|
||||
union {
|
||||
struct {
|
||||
union
|
||||
{
|
||||
struct
|
||||
{
|
||||
ULONG ActiveExWorker:1;
|
||||
ULONG ExWorkerCanWaitUser:1;
|
||||
ULONG MemoryMaker:1;
|
||||
|
@ -377,8 +387,10 @@ typedef struct _ETHREAD
|
|||
};
|
||||
ULONG SameThreadPassiveFlags; /* 244 */
|
||||
};
|
||||
union {
|
||||
struct {
|
||||
union
|
||||
{
|
||||
struct
|
||||
{
|
||||
ULONG LpcReceivedMsgIdValid:1;
|
||||
ULONG LpcExitThreadCalled:1;
|
||||
ULONG AddressSpaceOwner:1;
|
||||
|
@ -445,7 +457,8 @@ typedef struct _EPROCESS
|
|||
PVOID VdmObjects; /* 144 */
|
||||
PVOID DeviceMap; /* 148 */
|
||||
PVOID Spare0[3]; /* 14C */
|
||||
union {
|
||||
union
|
||||
{
|
||||
HARDWARE_PTE_X86 PagedirectoryPte; /* 158 */
|
||||
ULONGLONG Filler; /* 158 */
|
||||
};
|
||||
|
@ -476,8 +489,10 @@ typedef struct _EPROCESS
|
|||
LIST_ENTRY MmProcessLinks; /* 230 */
|
||||
ULONG ModifiedPageCount; /* 238 */
|
||||
ULONG JobStatus; /* 23C */
|
||||
union {
|
||||
struct {
|
||||
union
|
||||
{
|
||||
struct
|
||||
{
|
||||
ULONG CreateReported:1;
|
||||
ULONG NoDebugInherit:1;
|
||||
ULONG ProcessExiting:1;
|
||||
|
@ -513,8 +528,10 @@ typedef struct _EPROCESS
|
|||
|
||||
NTSTATUS ExitStatus; /* 244 */
|
||||
USHORT NextPageColor; /* 248 */
|
||||
union {
|
||||
struct {
|
||||
union
|
||||
{
|
||||
struct
|
||||
{
|
||||
UCHAR SubSystemMinorVersion; /* 24A */
|
||||
UCHAR SubSystemMajorVersion; /* 24B */
|
||||
};
|
||||
|
|
|
@ -53,8 +53,8 @@ VOID
|
|||
STDCALL
|
||||
RtlRaiseException(IN PEXCEPTION_RECORD ExceptionRecord);
|
||||
|
||||
VOID
|
||||
STDCALL
|
||||
VOID
|
||||
STDCALL
|
||||
RtlRaiseStatus(NTSTATUS Status);
|
||||
|
||||
VOID
|
||||
|
@ -67,9 +67,9 @@ RtlUnwind(
|
|||
);
|
||||
|
||||
/*
|
||||
* Heap Functions
|
||||
* Heap Functions
|
||||
*/
|
||||
|
||||
|
||||
PVOID
|
||||
STDCALL
|
||||
RtlAllocateHeap(
|
||||
|
@ -95,8 +95,8 @@ RtlCompactHeap(
|
|||
HANDLE heap,
|
||||
DWORD flags
|
||||
);
|
||||
|
||||
HANDLE
|
||||
|
||||
HANDLE
|
||||
STDCALL
|
||||
RtlDestroyHeap(HANDLE hheap);
|
||||
|
||||
|
@ -114,8 +114,8 @@ RtlGetProcessHeaps(
|
|||
ULONG HeapCount,
|
||||
HANDLE *HeapArray
|
||||
);
|
||||
|
||||
PVOID
|
||||
|
||||
PVOID
|
||||
STDCALL
|
||||
RtlReAllocateHeap(
|
||||
HANDLE Heap,
|
||||
|
@ -124,23 +124,23 @@ RtlReAllocateHeap(
|
|||
ULONG Size
|
||||
);
|
||||
|
||||
BOOLEAN
|
||||
BOOLEAN
|
||||
STDCALL
|
||||
RtlLockHeap(IN HANDLE Heap);
|
||||
|
||||
BOOLEAN
|
||||
BOOLEAN
|
||||
STDCALL
|
||||
RtlUnlockHeap(IN HANDLE Heap);
|
||||
|
||||
ULONG
|
||||
ULONG
|
||||
STDCALL
|
||||
RtlSizeHeap(
|
||||
IN PVOID HeapHandle,
|
||||
IN ULONG Flags,
|
||||
IN PVOID HeapHandle,
|
||||
IN ULONG Flags,
|
||||
IN PVOID MemoryPointer
|
||||
);
|
||||
|
||||
BOOLEAN
|
||||
|
||||
BOOLEAN
|
||||
STDCALL
|
||||
RtlValidateHeap(
|
||||
HANDLE Heap,
|
||||
|
@ -171,8 +171,8 @@ RtlAddAccessAllowedAce(
|
|||
PSID Sid
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
RtlAddAccessAllowedAceEx(
|
||||
IN OUT PACL pAcl,
|
||||
IN DWORD dwAceRevision,
|
||||
|
@ -181,7 +181,7 @@ RtlAddAccessAllowedAceEx(
|
|||
IN PSID pSid
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
RtlAddAccessDeniedAce(
|
||||
PACL Acl,
|
||||
|
@ -190,7 +190,7 @@ RtlAddAccessDeniedAce(
|
|||
PSID Sid
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
RtlAddAccessDeniedAceEx(
|
||||
IN OUT PACL Acl,
|
||||
|
@ -200,7 +200,7 @@ RtlAddAccessDeniedAceEx(
|
|||
IN PSID Sid
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
RtlAddAuditAccessAceEx(
|
||||
IN OUT PACL Acl,
|
||||
|
@ -212,7 +212,7 @@ RtlAddAuditAccessAceEx(
|
|||
IN BOOLEAN Failure
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
RtlAddAce(
|
||||
PACL Acl,
|
||||
|
@ -222,7 +222,7 @@ RtlAddAce(
|
|||
ULONG AceListLength
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
RtlAddAuditAccessAce(
|
||||
PACL Acl,
|
||||
|
@ -232,7 +232,7 @@ RtlAddAuditAccessAce(
|
|||
BOOLEAN Success,
|
||||
BOOLEAN Failure
|
||||
);
|
||||
|
||||
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
RtlAllocateAndInitializeSid(
|
||||
|
@ -249,14 +249,14 @@ RtlAllocateAndInitializeSid(
|
|||
OUT PSID *Sid
|
||||
);
|
||||
|
||||
BOOLEAN
|
||||
BOOLEAN
|
||||
STDCALL
|
||||
RtlAreAllAccessesGranted(
|
||||
ACCESS_MASK GrantedAccess,
|
||||
ACCESS_MASK DesiredAccess
|
||||
);
|
||||
|
||||
BOOLEAN
|
||||
BOOLEAN
|
||||
STDCALL
|
||||
RtlAreAnyAccessesGranted(
|
||||
ACCESS_MASK GrantedAccess,
|
||||
|
@ -270,15 +270,15 @@ RtlCopyLuid(
|
|||
IN PLUID LuidSrc
|
||||
);
|
||||
|
||||
VOID
|
||||
VOID
|
||||
STDCALL
|
||||
RtlCopyLuidAndAttributesArray(
|
||||
ULONG Count,
|
||||
PLUID_AND_ATTRIBUTES Src,
|
||||
PLUID_AND_ATTRIBUTES Dest
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
RtlCopySidAndAttributesArray(
|
||||
ULONG Count,
|
||||
|
@ -321,27 +321,27 @@ RtlCreateSecurityDescriptor(
|
|||
ULONG Revision
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
RtlCreateSecurityDescriptorRelative(
|
||||
PSECURITY_DESCRIPTOR_RELATIVE SecurityDescriptor,
|
||||
ULONG Revision
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
RtlDeleteAce(
|
||||
PACL Acl,
|
||||
ULONG AceIndex
|
||||
);
|
||||
|
||||
BOOLEAN
|
||||
BOOLEAN
|
||||
STDCALL
|
||||
RtlEqualPrefixSid(
|
||||
PSID Sid1,
|
||||
PSID Sid2
|
||||
);
|
||||
|
||||
|
||||
BOOLEAN
|
||||
STDCALL
|
||||
RtlEqualSid (
|
||||
|
@ -349,7 +349,7 @@ RtlEqualSid (
|
|||
IN PSID Sid2
|
||||
);
|
||||
|
||||
BOOLEAN
|
||||
BOOLEAN
|
||||
STDCALL
|
||||
RtlFirstFreeAce(
|
||||
PACL Acl,
|
||||
|
@ -362,7 +362,7 @@ RtlFreeSid (
|
|||
IN PSID Sid
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
RtlGetAce(
|
||||
PACL Acl,
|
||||
|
@ -370,14 +370,14 @@ RtlGetAce(
|
|||
PACE *Ace
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
RtlGetControlSecurityDescriptor(
|
||||
PSECURITY_DESCRIPTOR SecurityDescriptor,
|
||||
PSECURITY_DESCRIPTOR_CONTROL Control,
|
||||
PULONG Revision
|
||||
);
|
||||
|
||||
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
RtlGetDaclSecurityDescriptor(
|
||||
|
@ -412,14 +412,14 @@ RtlGetOwnerSecurityDescriptor(
|
|||
OUT PBOOLEAN OwnerDefaulted
|
||||
);
|
||||
|
||||
BOOLEAN
|
||||
BOOLEAN
|
||||
STDCALL
|
||||
RtlGetSecurityDescriptorRMControl(
|
||||
PSECURITY_DESCRIPTOR SecurityDescriptor,
|
||||
PUCHAR RMControl
|
||||
);
|
||||
|
||||
PSID_IDENTIFIER_AUTHORITY
|
||||
|
||||
PSID_IDENTIFIER_AUTHORITY
|
||||
STDCALL
|
||||
RtlIdentifierAuthoritySid(PSID Sid);
|
||||
|
||||
|
@ -443,14 +443,14 @@ ULONG
|
|||
STDCALL
|
||||
RtlLengthSid(IN PSID Sid);
|
||||
|
||||
VOID
|
||||
VOID
|
||||
STDCALL
|
||||
RtlMapGenericMask(
|
||||
PACCESS_MASK AccessMask,
|
||||
PGENERIC_MAPPING GenericMapping
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
RtlQueryInformationAcl(
|
||||
PACL Acl,
|
||||
|
@ -475,7 +475,7 @@ RtlSelfRelativeToAbsoluteSD(
|
|||
IN PULONG PrimaryGroupSize
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
RtlSetControlSecurityDescriptor(
|
||||
IN PSECURITY_DESCRIPTOR SecurityDescriptor,
|
||||
|
@ -500,7 +500,7 @@ RtlSetGroupSecurityDescriptor(
|
|||
IN BOOLEAN GroupDefaulted
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
RtlSetInformationAcl(
|
||||
PACL Acl,
|
||||
|
@ -526,7 +526,7 @@ RtlSetSaclSecurityDescriptor(
|
|||
IN BOOLEAN SaclDefaulted
|
||||
);
|
||||
|
||||
VOID
|
||||
VOID
|
||||
STDCALL
|
||||
RtlSetSecurityDescriptorRMControl(
|
||||
PSECURITY_DESCRIPTOR SecurityDescriptor,
|
||||
|
@ -554,7 +554,7 @@ RtlValidRelativeSecurityDescriptor(
|
|||
IN SECURITY_INFORMATION RequiredInformation
|
||||
);
|
||||
|
||||
BOOLEAN
|
||||
BOOLEAN
|
||||
STDCALL
|
||||
RtlValidSecurityDescriptor(IN PSECURITY_DESCRIPTOR SecurityDescriptor);
|
||||
|
||||
|
@ -562,14 +562,14 @@ BOOLEAN
|
|||
STDCALL
|
||||
RtlValidSid(IN PSID Sid);
|
||||
|
||||
BOOLEAN
|
||||
BOOLEAN
|
||||
STDCALL
|
||||
RtlValidAcl(PACL Acl);
|
||||
|
||||
/*
|
||||
* Single-Character Functions
|
||||
*/
|
||||
NTSTATUS
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
RtlLargeIntegerToChar(
|
||||
IN PLARGE_INTEGER Value,
|
||||
|
@ -577,16 +577,16 @@ RtlLargeIntegerToChar(
|
|||
IN ULONG Length,
|
||||
IN OUT PCHAR String
|
||||
);
|
||||
|
||||
CHAR
|
||||
|
||||
CHAR
|
||||
STDCALL
|
||||
RtlUpperChar(CHAR Source);
|
||||
|
||||
WCHAR
|
||||
STDCALL
|
||||
RtlUpcaseUnicodeChar(WCHAR Source);
|
||||
|
||||
WCHAR
|
||||
|
||||
WCHAR
|
||||
STDCALL
|
||||
RtlDowncaseUnicodeChar(IN WCHAR Source);
|
||||
|
||||
|
@ -599,7 +599,7 @@ RtlIntegerToChar(
|
|||
IN OUT PCHAR String
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
RtlIntegerToUnicode(
|
||||
IN ULONG Value,
|
||||
|
@ -623,18 +623,18 @@ RtlCharToInteger(
|
|||
ULONG Base,
|
||||
PULONG Value
|
||||
);
|
||||
|
||||
USHORT
|
||||
|
||||
USHORT
|
||||
FASTCALL
|
||||
RtlUshortByteSwap(IN USHORT Source);
|
||||
|
||||
/*
|
||||
* Unicode->Ansi String Functions
|
||||
*/
|
||||
* Unicode->Ansi String Functions
|
||||
*/
|
||||
ULONG
|
||||
STDCALL
|
||||
RtlUnicodeStringToAnsiSize(IN PUNICODE_STRING UnicodeString);
|
||||
|
||||
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
RtlUnicodeStringToAnsiString(
|
||||
|
@ -677,7 +677,7 @@ RtlUnicodeStringToOemString(
|
|||
PUNICODE_STRING SourceString,
|
||||
BOOLEAN AllocateDestinationString
|
||||
);
|
||||
|
||||
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
RtlUpcaseUnicodeToOemN(
|
||||
|
@ -687,7 +687,7 @@ RtlUpcaseUnicodeToOemN(
|
|||
PWCHAR UnicodeString,
|
||||
ULONG UnicodeSize
|
||||
);
|
||||
|
||||
|
||||
ULONG
|
||||
STDCALL
|
||||
RtlUnicodeStringToOemSize(IN PUNICODE_STRING UnicodeString);
|
||||
|
@ -701,9 +701,9 @@ RtlUnicodeToOemN(
|
|||
PWCHAR UnicodeString,
|
||||
ULONG UnicodeSize
|
||||
);
|
||||
|
||||
|
||||
/*
|
||||
* Unicode->MultiByte String Functions
|
||||
* Unicode->MultiByte String Functions
|
||||
*/
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
|
@ -724,7 +724,7 @@ RtlUpcaseUnicodeToMultiByteN(
|
|||
PWCHAR UnicodeString,
|
||||
ULONG UnicodeSize
|
||||
);
|
||||
|
||||
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
RtlUnicodeToMultiByteSize(
|
||||
|
@ -735,11 +735,11 @@ RtlUnicodeToMultiByteSize(
|
|||
|
||||
/*
|
||||
* OEM to Unicode Functions
|
||||
*/
|
||||
*/
|
||||
ULONG
|
||||
STDCALL
|
||||
RtlOemStringToUnicodeSize(POEM_STRING AnsiString);
|
||||
|
||||
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
RtlOemStringToUnicodeString(
|
||||
|
@ -757,11 +757,11 @@ RtlOemToUnicodeN(
|
|||
IN PCHAR OemString,
|
||||
ULONG BytesInOemString
|
||||
);
|
||||
|
||||
|
||||
/*
|
||||
* Ansi->Multibyte String Functions
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
* Ansi->Unicode String Functions
|
||||
*/
|
||||
|
@ -772,14 +772,14 @@ RtlAnsiStringToUnicodeString(
|
|||
PANSI_STRING SourceString,
|
||||
BOOLEAN AllocateDestinationString
|
||||
);
|
||||
|
||||
|
||||
ULONG
|
||||
STDCALL
|
||||
RtlAnsiStringToUnicodeSize(
|
||||
PANSI_STRING AnsiString
|
||||
);
|
||||
|
||||
BOOLEAN
|
||||
|
||||
BOOLEAN
|
||||
STDCALL
|
||||
RtlCreateUnicodeStringFromAsciiz(
|
||||
OUT PUNICODE_STRING Destination,
|
||||
|
@ -811,7 +811,7 @@ RtlCompareUnicodeString(
|
|||
BOOLEAN CaseInsensitive
|
||||
);
|
||||
|
||||
VOID
|
||||
VOID
|
||||
STDCALL
|
||||
RtlCopyUnicodeString(
|
||||
PUNICODE_STRING DestinationString,
|
||||
|
@ -824,7 +824,7 @@ RtlCreateUnicodeString(
|
|||
PUNICODE_STRING DestinationString,
|
||||
PCWSTR SourceString
|
||||
);
|
||||
|
||||
|
||||
BOOLEAN
|
||||
STDCALL
|
||||
RtlEqualUnicodeString(
|
||||
|
@ -880,15 +880,15 @@ RtlInitAnsiString(
|
|||
PANSI_STRING DestinationString,
|
||||
PCSZ SourceString
|
||||
);
|
||||
|
||||
|
||||
/*
|
||||
* OEM String Functions
|
||||
*/
|
||||
VOID
|
||||
VOID
|
||||
STDCALL
|
||||
RtlFreeOemString(IN POEM_STRING OemString);
|
||||
|
||||
/*
|
||||
/*
|
||||
* MultiByte->Unicode String Functions
|
||||
*/
|
||||
NTSTATUS
|
||||
|
@ -934,7 +934,7 @@ RtlDeleteAtomFromAtomTable(
|
|||
IN RTL_ATOM Atom
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
RtlDestroyAtomTable(IN PRTL_ATOM_TABLE AtomTable);
|
||||
|
||||
|
@ -948,7 +948,7 @@ RtlQueryAtomInAtomTable(
|
|||
IN OUT PWSTR AtomName OPTIONAL,
|
||||
IN OUT PULONG NameLength OPTIONAL
|
||||
);
|
||||
|
||||
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
RtlLookupAtomInAtomTable(
|
||||
|
@ -960,14 +960,14 @@ RtlLookupAtomInAtomTable(
|
|||
/*
|
||||
* Memory Functions
|
||||
*/
|
||||
SIZE_T
|
||||
SIZE_T
|
||||
STDCALL
|
||||
RtlCompareMemory(
|
||||
IN const VOID *Source1,
|
||||
IN const VOID *Source2,
|
||||
IN SIZE_T Length
|
||||
);
|
||||
|
||||
|
||||
VOID
|
||||
STDCALL
|
||||
RtlFillMemoryUlong(
|
||||
|
@ -975,7 +975,7 @@ RtlFillMemoryUlong(
|
|||
IN ULONG Length,
|
||||
IN ULONG Fill
|
||||
);
|
||||
|
||||
|
||||
/*
|
||||
* Process Management Functions
|
||||
*/
|
||||
|
@ -999,7 +999,7 @@ RtlCreateProcessParameters (
|
|||
IN PUNICODE_STRING ShellInfo OPTIONAL,
|
||||
IN PUNICODE_STRING RuntimeInfo OPTIONAL
|
||||
);
|
||||
|
||||
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
RtlCreateUserProcess(
|
||||
|
@ -1056,7 +1056,7 @@ STDCALL
|
|||
RtlDestroyEnvironment(
|
||||
PWSTR Environment
|
||||
);
|
||||
|
||||
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
RtlExpandEnvironmentStrings_U(
|
||||
|
@ -1073,7 +1073,7 @@ RtlDoesFileExists_U(PWSTR FileName);
|
|||
ULONG
|
||||
STDCALL
|
||||
RtlDetermineDosPathNameType_U(PCWSTR Path);
|
||||
|
||||
|
||||
ULONG
|
||||
STDCALL
|
||||
RtlDosSearchPath_U(
|
||||
|
@ -1084,7 +1084,7 @@ RtlDosSearchPath_U(
|
|||
WCHAR *buffer,
|
||||
WCHAR **shortname
|
||||
);
|
||||
|
||||
|
||||
ULONG
|
||||
STDCALL
|
||||
RtlGetCurrentDirectory_U(
|
||||
|
@ -1118,7 +1118,7 @@ RtlQueryEnvironmentVariable_U(
|
|||
NTSTATUS
|
||||
STDCALL
|
||||
RtlSetCurrentDirectory_U(PUNICODE_STRING name);
|
||||
|
||||
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
RtlSetEnvironmentVariable(
|
||||
|
@ -1135,20 +1135,20 @@ STDCALL
|
|||
RtlDeleteCriticalSection (
|
||||
PRTL_CRITICAL_SECTION CriticalSection
|
||||
);
|
||||
|
||||
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
RtlEnterCriticalSection(
|
||||
PRTL_CRITICAL_SECTION CriticalSection
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
RtlInitializeCriticalSection(
|
||||
PRTL_CRITICAL_SECTION CriticalSection
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
RtlInitializeCriticalSectionAndSpinCount(
|
||||
PRTL_CRITICAL_SECTION CriticalSection,
|
||||
|
@ -1159,7 +1159,7 @@ NTSTATUS
|
|||
STDCALL
|
||||
RtlLeaveCriticalSection(
|
||||
PRTL_CRITICAL_SECTION CriticalSection
|
||||
);
|
||||
);
|
||||
|
||||
/*
|
||||
* Compression Functions
|
||||
|
@ -1199,7 +1199,7 @@ RtlGetCompressionWorkSpaceSize(
|
|||
/*
|
||||
* Debug Info Functions
|
||||
*/
|
||||
PDEBUG_BUFFER
|
||||
PDEBUG_BUFFER
|
||||
STDCALL
|
||||
RtlCreateQueryDebugBuffer(
|
||||
IN ULONG Size,
|
||||
|
@ -1210,14 +1210,14 @@ NTSTATUS
|
|||
STDCALL
|
||||
RtlDestroyQueryDebugBuffer(IN PDEBUG_BUFFER DebugBuffer);
|
||||
|
||||
NTSTATUS
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
RtlQueryProcessDebugInformation(
|
||||
IN ULONG ProcessId,
|
||||
IN ULONG DebugInfoClassMask,
|
||||
IN OUT PDEBUG_BUFFER DebugBuffer
|
||||
);
|
||||
|
||||
|
||||
/*
|
||||
* Bitmap Functions
|
||||
*/
|
||||
|
@ -1284,7 +1284,7 @@ NTSTATUS
|
|||
STDCALL
|
||||
RtlCreateTimer(
|
||||
HANDLE TimerQueue,
|
||||
PHANDLE phNewTimer,
|
||||
PHANDLE phNewTimer,
|
||||
WAITORTIMERCALLBACKFUNC Callback,
|
||||
PVOID Parameter,
|
||||
DWORD DueTime,
|
||||
|
@ -1325,7 +1325,7 @@ STDCALL
|
|||
RtlDeleteTimerQueue(HANDLE TimerQueue);
|
||||
|
||||
/*
|
||||
* Debug Functions
|
||||
* Debug Functions
|
||||
*/
|
||||
ULONG
|
||||
CDECL
|
||||
|
@ -1381,7 +1381,7 @@ RtlIsValidIndexHandle (
|
|||
IN OUT PRTL_HANDLE_TABLE_ENTRY *Handle,
|
||||
IN ULONG Index
|
||||
);
|
||||
|
||||
|
||||
/*
|
||||
* PE Functions
|
||||
*/
|
||||
|
@ -1395,10 +1395,10 @@ RtlFindMessage(
|
|||
OUT PRTL_MESSAGE_RESOURCE_ENTRY *MessageResourceEntry
|
||||
);
|
||||
|
||||
ULONG
|
||||
ULONG
|
||||
STDCALL
|
||||
RtlGetNtGlobalFlags(VOID);
|
||||
|
||||
|
||||
PVOID
|
||||
STDCALL
|
||||
RtlImageDirectoryEntryToData(
|
||||
|
@ -1438,12 +1438,12 @@ RtlCheckRegistryKey(
|
|||
ULONG RelativeTo,
|
||||
PWSTR Path
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
RtlFormatCurrentUserKeyPath(IN OUT PUNICODE_STRING KeyPath);
|
||||
|
||||
NTSTATUS
|
||||
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
RtlpNtOpenKey(
|
||||
OUT HANDLE KeyHandle,
|
||||
|
@ -1451,7 +1451,7 @@ RtlpNtOpenKey(
|
|||
IN POBJECT_ATTRIBUTES ObjectAttributes,
|
||||
IN ULONG Unused
|
||||
);
|
||||
|
||||
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
RtlOpenCurrentUser(
|
||||
|
@ -1479,10 +1479,10 @@ RtlWriteRegistryValue(
|
|||
PVOID ValueData,
|
||||
ULONG ValueLength
|
||||
);
|
||||
|
||||
|
||||
/*
|
||||
* NLS Functions
|
||||
*/
|
||||
*/
|
||||
VOID
|
||||
STDCALL
|
||||
RtlInitNlsTables(
|
||||
|
@ -1498,14 +1498,14 @@ RtlInitCodePageTable(
|
|||
IN PUSHORT TableBase,
|
||||
OUT PCPTABLEINFO CodePageTable
|
||||
);
|
||||
|
||||
|
||||
VOID
|
||||
STDCALL
|
||||
RtlResetRtlTranslations(IN PNLSTABLEINFO NlsTable);
|
||||
|
||||
/*
|
||||
* Misc String Functions
|
||||
*/
|
||||
*/
|
||||
BOOLEAN
|
||||
STDCALL
|
||||
RtlDosPathNameToNtPathName_U(
|
||||
|
@ -1514,7 +1514,7 @@ RtlDosPathNameToNtPathName_U(
|
|||
PWSTR *ShortName,
|
||||
PCURDIR CurrentDirectory
|
||||
);
|
||||
|
||||
|
||||
BOOLEAN
|
||||
STDCALL
|
||||
RtlIsNameLegalDOS8Dot3(
|
||||
|
@ -1534,7 +1534,7 @@ RtlIsTextUnicode(
|
|||
/*
|
||||
* Misc conversion functions
|
||||
*/
|
||||
LARGE_INTEGER
|
||||
LARGE_INTEGER
|
||||
STDCALL
|
||||
RtlConvertLongToLargeInteger(IN LONG SignedInteger);
|
||||
|
||||
|
@ -1559,8 +1559,8 @@ RtlEnlargedUnsignedMultiply(
|
|||
ULONG Multiplicand,
|
||||
ULONG Multiplier
|
||||
);
|
||||
|
||||
ULONG
|
||||
|
||||
ULONG
|
||||
STDCALL
|
||||
RtlUniform(PULONG Seed);
|
||||
|
||||
|
@ -1570,7 +1570,7 @@ RtlUniform(PULONG Seed);
|
|||
NTSTATUS
|
||||
STDCALL
|
||||
RtlQueryTimeZoneInformation(LPTIME_ZONE_INFORMATION TimeZoneInformation);
|
||||
|
||||
|
||||
VOID
|
||||
STDCALL
|
||||
RtlSecondsSince1970ToTime(
|
||||
|
@ -1578,11 +1578,11 @@ RtlSecondsSince1970ToTime(
|
|||
OUT PLARGE_INTEGER Time
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
RtlSetTimeZoneInformation(LPTIME_ZONE_INFORMATION TimeZoneInformation);
|
||||
|
||||
BOOLEAN
|
||||
|
||||
BOOLEAN
|
||||
STDCALL
|
||||
RtlTimeFieldsToTime(
|
||||
PTIME_FIELDS TimeFields,
|
||||
|
@ -1606,7 +1606,7 @@ RtlVerifyVersionInfo(
|
|||
IN ULONG TypeMask,
|
||||
IN ULONGLONG ConditionMask
|
||||
);
|
||||
|
||||
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
RtlGetVersion(IN OUT PRTL_OSVERSIONINFOW lpVersionInformation);
|
||||
|
|
|
@ -59,7 +59,7 @@
|
|||
|
||||
/* ENUMERATIONS **************************************************************/
|
||||
|
||||
typedef enum
|
||||
typedef enum
|
||||
{
|
||||
ExceptionContinueExecution,
|
||||
ExceptionContinueSearch,
|
||||
|
@ -86,11 +86,11 @@ typedef NTSTATUS
|
|||
IN PVOID UserParam
|
||||
);
|
||||
|
||||
typedef EXCEPTION_DISPOSITION
|
||||
typedef EXCEPTION_DISPOSITION
|
||||
(*PEXCEPTION_HANDLER)(
|
||||
struct _EXCEPTION_RECORD*,
|
||||
PVOID,
|
||||
struct _CONTEXT*,
|
||||
struct _EXCEPTION_RECORD*,
|
||||
PVOID,
|
||||
struct _CONTEXT*,
|
||||
PVOID
|
||||
);
|
||||
|
||||
|
@ -107,7 +107,7 @@ typedef VOID
|
|||
PTHREAD_START_ROUTINE StartAddress,
|
||||
PVOID Parameter
|
||||
);
|
||||
|
||||
|
||||
/* TYPES *********************************************************************/
|
||||
|
||||
typedef unsigned short RTL_ATOM;
|
||||
|
@ -141,6 +141,7 @@ typedef struct _DEBUG_BUFFER
|
|||
PVOID LockInformation;
|
||||
PVOID Reserved[8];
|
||||
} DEBUG_BUFFER, *PDEBUG_BUFFER;
|
||||
|
||||
typedef struct _DEBUG_MODULE_INFORMATION
|
||||
{
|
||||
ULONG Reserved[2];
|
||||
|
@ -153,6 +154,7 @@ typedef struct _DEBUG_MODULE_INFORMATION
|
|||
USHORT ModuleNameOffset;
|
||||
CHAR ImageName[256];
|
||||
} DEBUG_MODULE_INFORMATION, *PDEBUG_MODULE_INFORMATION;
|
||||
|
||||
typedef struct _DEBUG_HEAP_INFORMATION
|
||||
{
|
||||
PVOID Base;
|
||||
|
@ -167,7 +169,8 @@ typedef struct _DEBUG_HEAP_INFORMATION
|
|||
PVOID Tags;
|
||||
PVOID Blocks;
|
||||
} DEBUG_HEAP_INFORMATION, *PDEBUG_HEAP_INFORMATION;
|
||||
typedef struct _DEBUG_LOCK_INFORMATION
|
||||
|
||||
typedef struct _DEBUG_LOCK_INFORMATION
|
||||
{
|
||||
PVOID Address;
|
||||
USHORT Type;
|
||||
|
@ -186,6 +189,7 @@ typedef struct _RTL_HANDLE_TABLE_ENTRY
|
|||
ULONG Flags;
|
||||
struct _RTL_HANDLE_TABLE_ENTRY *NextFree;
|
||||
} RTL_HANDLE_TABLE_ENTRY, *PRTL_HANDLE_TABLE_ENTRY;
|
||||
|
||||
typedef struct _RTL_HANDLE_TABLE
|
||||
{
|
||||
ULONG MaximumNumberOfHandles;
|
||||
|
@ -202,11 +206,13 @@ typedef struct _LOCK_INFORMATION
|
|||
ULONG LockCount;
|
||||
DEBUG_LOCK_INFORMATION LockEntry[1];
|
||||
} LOCK_INFORMATION, *PLOCK_INFORMATION;
|
||||
|
||||
typedef struct _HEAP_INFORMATION
|
||||
{
|
||||
ULONG HeapCount;
|
||||
DEBUG_HEAP_INFORMATION HeapEntry[1];
|
||||
} HEAP_INFORMATION, *PHEAP_INFORMATION;
|
||||
|
||||
typedef struct _MODULE_INFORMATION
|
||||
{
|
||||
ULONG ModuleCount;
|
||||
|
@ -214,7 +220,7 @@ typedef struct _MODULE_INFORMATION
|
|||
} MODULE_INFORMATION, *PMODULE_INFORMATION;
|
||||
/* END REVIEW AREA */
|
||||
|
||||
typedef struct _EXCEPTION_REGISTRATION
|
||||
typedef struct _EXCEPTION_REGISTRATION
|
||||
{
|
||||
struct _EXCEPTION_REGISTRATION* prev;
|
||||
PEXCEPTION_HANDLER handler;
|
||||
|
@ -223,15 +229,15 @@ typedef struct _EXCEPTION_REGISTRATION
|
|||
typedef EXCEPTION_REGISTRATION EXCEPTION_REGISTRATION_RECORD;
|
||||
typedef PEXCEPTION_REGISTRATION PEXCEPTION_REGISTRATION_RECORD;
|
||||
|
||||
typedef struct RTL_DRIVE_LETTER_CURDIR
|
||||
typedef struct RTL_DRIVE_LETTER_CURDIR
|
||||
{
|
||||
USHORT Flags;
|
||||
USHORT Length;
|
||||
ULONG TimeStamp;
|
||||
UNICODE_STRING DosPath;
|
||||
} RTL_DRIVE_LETTER_CURDIR, *PRTL_DRIVE_LETTER_CURDIR;
|
||||
|
||||
typedef struct _RTL_HEAP_DEFINITION
|
||||
|
||||
typedef struct _RTL_HEAP_DEFINITION
|
||||
{
|
||||
ULONG Length;
|
||||
ULONG Unknown[11];
|
||||
|
@ -270,7 +276,7 @@ typedef struct _RTL_RESOURCE
|
|||
ULONG ExclusiveWaiters;
|
||||
LONG NumberActive;
|
||||
HANDLE OwningThread;
|
||||
ULONG TimeoutBoost; /* ?? */
|
||||
ULONG TimeoutBoost; /* ?? */
|
||||
PVOID DebugInfo; /* ?? */
|
||||
} RTL_RESOURCE, *PRTL_RESOURCE;
|
||||
|
||||
|
@ -282,27 +288,27 @@ typedef struct _RANGE_LIST_ITERATOR
|
|||
ULONG Stamp;
|
||||
} RTL_RANGE_LIST_ITERATOR, *PRTL_RANGE_LIST_ITERATOR;
|
||||
|
||||
typedef struct _RTL_MESSAGE_RESOURCE_ENTRY
|
||||
typedef struct _RTL_MESSAGE_RESOURCE_ENTRY
|
||||
{
|
||||
USHORT Length;
|
||||
USHORT Flags;
|
||||
CHAR Text[1];
|
||||
} RTL_MESSAGE_RESOURCE_ENTRY, *PRTL_MESSAGE_RESOURCE_ENTRY;
|
||||
|
||||
typedef struct _RTL_MESSAGE_RESOURCE_BLOCK
|
||||
typedef struct _RTL_MESSAGE_RESOURCE_BLOCK
|
||||
{
|
||||
ULONG LowId;
|
||||
ULONG HighId;
|
||||
ULONG OffsetToEntries;
|
||||
} RTL_MESSAGE_RESOURCE_BLOCK, *PRTL_MESSAGE_RESOURCE_BLOCK;
|
||||
|
||||
typedef struct _RTL_MESSAGE_RESOURCE_DATA
|
||||
typedef struct _RTL_MESSAGE_RESOURCE_DATA
|
||||
{
|
||||
ULONG NumberOfBlocks;
|
||||
RTL_MESSAGE_RESOURCE_BLOCK Blocks[1];
|
||||
} RTL_MESSAGE_RESOURCE_DATA, *PRTL_MESSAGE_RESOURCE_DATA;
|
||||
|
||||
typedef struct _NLS_FILE_HEADER
|
||||
typedef struct _NLS_FILE_HEADER
|
||||
{
|
||||
USHORT HeaderSize;
|
||||
USHORT CodePage;
|
||||
|
@ -315,7 +321,7 @@ typedef struct _NLS_FILE_HEADER
|
|||
UCHAR LeadByte[MAXIMUM_LEADBYTES];
|
||||
} NLS_FILE_HEADER, *PNLS_FILE_HEADER;
|
||||
|
||||
typedef struct _RTL_USER_PROCESS_PARAMETERS
|
||||
typedef struct _RTL_USER_PROCESS_PARAMETERS
|
||||
{
|
||||
ULONG AllocationSize;
|
||||
ULONG Size;
|
||||
|
@ -346,7 +352,7 @@ typedef struct _RTL_USER_PROCESS_PARAMETERS
|
|||
UNICODE_STRING ShellInfo;
|
||||
UNICODE_STRING RuntimeInfo;
|
||||
} RTL_USER_PROCESS_PARAMETERS, *PRTL_USER_PROCESS_PARAMETERS;
|
||||
|
||||
|
||||
typedef struct _RTL_PROCESS_INFO
|
||||
{
|
||||
ULONG Size;
|
||||
|
@ -386,7 +392,7 @@ typedef struct _RTL_ATOM_TABLE
|
|||
|
||||
/* Let Kernel Drivers use this */
|
||||
#ifndef _WINBASE_H
|
||||
typedef struct _SYSTEMTIME
|
||||
typedef struct _SYSTEMTIME
|
||||
{
|
||||
WORD wYear;
|
||||
WORD wMonth;
|
||||
|
@ -398,7 +404,7 @@ typedef struct _RTL_ATOM_TABLE
|
|||
WORD wMilliseconds;
|
||||
} SYSTEMTIME, *PSYSTEMTIME, *LPSYSTEMTIME;
|
||||
|
||||
typedef struct _TIME_ZONE_INFORMATION
|
||||
typedef struct _TIME_ZONE_INFORMATION
|
||||
{
|
||||
LONG Bias;
|
||||
WCHAR StandardName[32];
|
||||
|
@ -408,13 +414,13 @@ typedef struct _RTL_ATOM_TABLE
|
|||
SYSTEMTIME DaylightDate;
|
||||
LONG DaylightBias;
|
||||
} TIME_ZONE_INFORMATION, *PTIME_ZONE_INFORMATION, *LPTIME_ZONE_INFORMATION;
|
||||
|
||||
typedef enum _ACL_INFORMATION_CLASS
|
||||
|
||||
typedef enum _ACL_INFORMATION_CLASS
|
||||
{
|
||||
AclRevisionInformation = 1,
|
||||
AclSizeInformation
|
||||
} ACL_INFORMATION_CLASS;
|
||||
|
||||
|
||||
#define TIME_ZONE_ID_UNKNOWN 0
|
||||
#define TIME_ZONE_ID_STANDARD 1
|
||||
#define TIME_ZONE_ID_DAYLIGHT 2
|
||||
|
|
|
@ -32,7 +32,7 @@ SeReleaseSecurityDescriptor(
|
|||
IN KPROCESSOR_MODE CurrentMode,
|
||||
IN BOOLEAN CaptureIfKernelMode
|
||||
);
|
||||
|
||||
|
||||
SECURITY_IMPERSONATION_LEVEL
|
||||
STDCALL
|
||||
SeTokenImpersonationLevel(
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
/* TYPES *********************************************************************/
|
||||
|
||||
typedef struct _SEP_AUDIT_POLICY_CATEGORIES
|
||||
typedef struct _SEP_AUDIT_POLICY_CATEGORIES
|
||||
{
|
||||
UCHAR System:4;
|
||||
UCHAR Logon:4;
|
||||
|
@ -32,54 +32,55 @@ typedef struct _SEP_AUDIT_POLICY_CATEGORIES
|
|||
UCHAR AccountLogon:4;
|
||||
} SEP_AUDIT_POLICY_CATEGORIES, *PSEP_AUDIT_POLICY_CATEGORIES;
|
||||
|
||||
typedef struct _SEP_AUDIT_POLICY_OVERLAY
|
||||
typedef struct _SEP_AUDIT_POLICY_OVERLAY
|
||||
{
|
||||
ULONGLONG PolicyBits:36;
|
||||
UCHAR SetBit:1;
|
||||
} SEP_AUDIT_POLICY_OVERLAY, *PSEP_AUDIT_POLICY_OVERLAY;
|
||||
|
||||
typedef struct _SEP_AUDIT_POLICY
|
||||
typedef struct _SEP_AUDIT_POLICY
|
||||
{
|
||||
union
|
||||
union
|
||||
{
|
||||
SEP_AUDIT_POLICY_CATEGORIES PolicyElements;
|
||||
SEP_AUDIT_POLICY_OVERLAY PolicyOverlay;
|
||||
ULONGLONG Overlay;
|
||||
};
|
||||
} SEP_AUDIT_POLICY, *PSEP_AUDIT_POLICY;
|
||||
|
||||
|
||||
#define TOKEN_HAS_TRAVERSE_PRIVILEGE 0x01
|
||||
typedef struct _TOKEN {
|
||||
TOKEN_SOURCE TokenSource; /* 0x00 */
|
||||
LUID TokenId; /* 0x10 */
|
||||
LUID AuthenticationId; /* 0x18 */
|
||||
LUID ParentTokenId; /* 0x20 */
|
||||
LARGE_INTEGER ExpirationTime; /* 0x28 */
|
||||
struct _ERESOURCE *TokenLock; /* 0x30 */
|
||||
SEP_AUDIT_POLICY AuditPolicy; /* 0x38 */
|
||||
LUID ModifiedId; /* 0x40 */
|
||||
ULONG SessionId; /* 0x48 */
|
||||
ULONG UserAndGroupCount; /* 0x4C */
|
||||
ULONG RestrictedSidCount; /* 0x50 */
|
||||
ULONG PrivilegeCount; /* 0x54 */
|
||||
ULONG VariableLength; /* 0x58 */
|
||||
ULONG DynamicCharged; /* 0x5C */
|
||||
ULONG DynamicAvailable; /* 0x60 */
|
||||
ULONG DefaultOwnerIndex; /* 0x64 */
|
||||
PSID_AND_ATTRIBUTES UserAndGroups; /* 0x68 */
|
||||
PSID_AND_ATTRIBUTES RestrictedSids; /* 0x6C */
|
||||
PSID PrimaryGroup; /* 0x70 */
|
||||
PLUID_AND_ATTRIBUTES Privileges; /* 0x74 */
|
||||
PULONG DynamicPart; /* 0x78 */
|
||||
PACL DefaultDacl; /* 0x7C */
|
||||
TOKEN_TYPE TokenType; /* 0x80 */
|
||||
SECURITY_IMPERSONATION_LEVEL ImpersonationLevel; /* 0x84 */
|
||||
ULONG TokenFlags; /* 0x88 */
|
||||
BOOLEAN TokenInUse; /* 0x8C */
|
||||
PVOID ProxyData; /* 0x90 */
|
||||
PVOID AuditData; /* 0x94 */
|
||||
LUID OriginatingLogonSession; /* 0x98 */
|
||||
ULONG VariablePart; /* 0xA0 */
|
||||
typedef struct _TOKEN
|
||||
{
|
||||
TOKEN_SOURCE TokenSource; /* 0x00 */
|
||||
LUID TokenId; /* 0x10 */
|
||||
LUID AuthenticationId; /* 0x18 */
|
||||
LUID ParentTokenId; /* 0x20 */
|
||||
LARGE_INTEGER ExpirationTime; /* 0x28 */
|
||||
struct _ERESOURCE *TokenLock; /* 0x30 */
|
||||
SEP_AUDIT_POLICY AuditPolicy; /* 0x38 */
|
||||
LUID ModifiedId; /* 0x40 */
|
||||
ULONG SessionId; /* 0x48 */
|
||||
ULONG UserAndGroupCount; /* 0x4C */
|
||||
ULONG RestrictedSidCount; /* 0x50 */
|
||||
ULONG PrivilegeCount; /* 0x54 */
|
||||
ULONG VariableLength; /* 0x58 */
|
||||
ULONG DynamicCharged; /* 0x5C */
|
||||
ULONG DynamicAvailable; /* 0x60 */
|
||||
ULONG DefaultOwnerIndex; /* 0x64 */
|
||||
PSID_AND_ATTRIBUTES UserAndGroups; /* 0x68 */
|
||||
PSID_AND_ATTRIBUTES RestrictedSids; /* 0x6C */
|
||||
PSID PrimaryGroup; /* 0x70 */
|
||||
PLUID_AND_ATTRIBUTES Privileges; /* 0x74 */
|
||||
PULONG DynamicPart; /* 0x78 */
|
||||
PACL DefaultDacl; /* 0x7C */
|
||||
TOKEN_TYPE TokenType; /* 0x80 */
|
||||
SECURITY_IMPERSONATION_LEVEL ImpersonationLevel; /* 0x84 */
|
||||
ULONG TokenFlags; /* 0x88 */
|
||||
BOOLEAN TokenInUse; /* 0x8C */
|
||||
PVOID ProxyData; /* 0x90 */
|
||||
PVOID AuditData; /* 0x94 */
|
||||
LUID OriginatingLogonSession; /* 0x98 */
|
||||
ULONG VariablePart; /* 0xA0 */
|
||||
} TOKEN, *PTOKEN;
|
||||
|
||||
typedef struct _AUX_DATA
|
||||
|
|
|
@ -28,7 +28,7 @@ CsrClientConnectToServer(
|
|||
PULONG Unknown2
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
CsrClientCallServer(
|
||||
struct _CSR_API_MESSAGE *Request,
|
||||
|
@ -37,38 +37,38 @@ CsrClientCallServer(
|
|||
ULONG RequestLength
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
CsrIdentifyAlertableThread(VOID);
|
||||
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
CsrNewThread(VOID);
|
||||
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
CsrSetPriorityClass(
|
||||
HANDLE Process,
|
||||
PULONG PriorityClass
|
||||
);
|
||||
|
||||
VOID
|
||||
STDCALL
|
||||
VOID
|
||||
STDCALL
|
||||
CsrProbeForRead(
|
||||
IN CONST PVOID Address,
|
||||
IN ULONG Length,
|
||||
IN ULONG Alignment
|
||||
);
|
||||
|
||||
VOID
|
||||
STDCALL
|
||||
VOID
|
||||
STDCALL
|
||||
CsrProbeForWrite(
|
||||
IN CONST PVOID Address,
|
||||
IN ULONG Length,
|
||||
IN ULONG Alignment
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
CsrCaptureParameterBuffer(
|
||||
PVOID ParameterBuffer,
|
||||
|
@ -77,12 +77,12 @@ CsrCaptureParameterBuffer(
|
|||
PVOID* ServerAddress
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
CsrReleaseParameterBuffer(PVOID ClientAddress);
|
||||
|
||||
/*
|
||||
* Debug Functions
|
||||
* Debug Functions
|
||||
*/
|
||||
ULONG
|
||||
CDECL
|
||||
|
@ -122,22 +122,22 @@ DbgUiWaitStateChange(
|
|||
ULONG Unknown2
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
DbgUiRemoteBreakin(VOID);
|
||||
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
DbgUiIssueRemoteBreakin(HANDLE Process);
|
||||
|
||||
/*
|
||||
* Loader Functions
|
||||
*/
|
||||
NTSTATUS
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
LdrDisableThreadCalloutsForDll(IN PVOID BaseAddress);
|
||||
|
||||
NTSTATUS
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
LdrGetDllHandle(
|
||||
IN PWCHAR Path OPTIONAL,
|
||||
|
@ -146,14 +146,14 @@ LdrGetDllHandle(
|
|||
OUT PVOID *BaseAddress
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
LdrFindEntryForAddress(
|
||||
IN PVOID Address,
|
||||
OUT PLDR_DATA_TABLE_ENTRY *Module
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
LdrGetProcedureAddress(
|
||||
IN PVOID BaseAddress,
|
||||
|
@ -162,7 +162,7 @@ LdrGetProcedureAddress(
|
|||
OUT PVOID *ProcedureAddress
|
||||
);
|
||||
|
||||
VOID
|
||||
VOID
|
||||
STDCALL
|
||||
LdrInitializeThunk(
|
||||
ULONG Unknown1,
|
||||
|
@ -171,7 +171,7 @@ LdrInitializeThunk(
|
|||
ULONG Unknown4
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
LdrLoadDll(
|
||||
IN PWSTR SearchPath OPTIONAL,
|
||||
|
@ -180,7 +180,7 @@ LdrLoadDll(
|
|||
OUT PVOID *BaseAddress OPTIONAL
|
||||
);
|
||||
|
||||
PIMAGE_BASE_RELOCATION
|
||||
PIMAGE_BASE_RELOCATION
|
||||
STDCALL
|
||||
LdrProcessRelocationBlock(
|
||||
IN PVOID Address,
|
||||
|
@ -189,7 +189,7 @@ LdrProcessRelocationBlock(
|
|||
IN ULONG_PTR Delta
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
LdrQueryImageFileExecutionOptions(
|
||||
IN PUNICODE_STRING SubKey,
|
||||
|
@ -200,7 +200,7 @@ LdrQueryImageFileExecutionOptions(
|
|||
OUT PULONG RetunedLength OPTIONAL
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
LdrQueryProcessModuleInformation(
|
||||
IN PMODULE_INFORMATION ModuleInformation OPTIONAL,
|
||||
|
@ -208,19 +208,19 @@ LdrQueryProcessModuleInformation(
|
|||
OUT PULONG ReturnedSize
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
LdrShutdownProcess(VOID);
|
||||
|
||||
NTSTATUS
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
LdrShutdownThread(VOID);
|
||||
|
||||
NTSTATUS
|
||||
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
LdrUnloadDll(IN PVOID BaseAddress);
|
||||
|
||||
NTSTATUS
|
||||
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
LdrVerifyImageMatchesChecksum(
|
||||
IN HANDLE FileHandle,
|
||||
|
|
|
@ -64,51 +64,51 @@
|
|||
/* I/O Control Codes for communicating with Pipes */
|
||||
#define FSCTL_PIPE_ASSIGN_EVENT \
|
||||
CTL_CODE(FILE_DEVICE_NAMED_PIPE, 0, METHOD_BUFFERED, FILE_ANY_ACCESS)
|
||||
|
||||
|
||||
#define FSCTL_PIPE_DISCONNECT \
|
||||
CTL_CODE(FILE_DEVICE_NAMED_PIPE, 1, METHOD_BUFFERED, FILE_ANY_ACCESS)
|
||||
|
||||
|
||||
#define FSCTL_PIPE_LISTEN \
|
||||
CTL_CODE(FILE_DEVICE_NAMED_PIPE, 2, METHOD_BUFFERED, FILE_ANY_ACCESS)
|
||||
|
||||
|
||||
#define FSCTL_PIPE_PEEK \
|
||||
CTL_CODE(FILE_DEVICE_NAMED_PIPE, 3, METHOD_BUFFERED, FILE_READ_DATA)
|
||||
|
||||
|
||||
#define FSCTL_PIPE_QUERY_EVENT \
|
||||
CTL_CODE(FILE_DEVICE_NAMED_PIPE, 4, METHOD_BUFFERED, FILE_ANY_ACCESS)
|
||||
|
||||
|
||||
#define FSCTL_PIPE_TRANSCEIVE \
|
||||
CTL_CODE(FILE_DEVICE_NAMED_PIPE, 5, METHOD_NEITHER, FILE_READ_DATA | FILE_WRITE_DATA)
|
||||
|
||||
|
||||
#define FSCTL_PIPE_WAIT \
|
||||
CTL_CODE(FILE_DEVICE_NAMED_PIPE, 6, METHOD_BUFFERED, FILE_ANY_ACCESS)
|
||||
|
||||
|
||||
#define FSCTL_PIPE_IMPERSONATE \
|
||||
CTL_CODE(FILE_DEVICE_NAMED_PIPE, 7, METHOD_BUFFERED, FILE_ANY_ACCESS)
|
||||
|
||||
|
||||
#define FSCTL_PIPE_SET_CLIENT_PROCESS \
|
||||
CTL_CODE(FILE_DEVICE_NAMED_PIPE, 8, METHOD_BUFFERED, FILE_ANY_ACCESS)
|
||||
|
||||
|
||||
#define FSCTL_PIPE_QUERY_CLIENT_PROCESS \
|
||||
CTL_CODE(FILE_DEVICE_NAMED_PIPE, 9, METHOD_BUFFERED, FILE_ANY_ACCESS)
|
||||
|
||||
|
||||
#define FSCTL_PIPE_INTERNAL_READ \
|
||||
CTL_CODE(FILE_DEVICE_NAMED_PIPE, 2045, METHOD_BUFFERED, FILE_READ_DATA)
|
||||
|
||||
|
||||
#define FSCTL_PIPE_INTERNAL_WRITE \
|
||||
CTL_CODE(FILE_DEVICE_NAMED_PIPE, 2046, METHOD_BUFFERED, FILE_WRITE_DATA)
|
||||
|
||||
|
||||
#define FSCTL_PIPE_INTERNAL_TRANSCEIVE \
|
||||
CTL_CODE(FILE_DEVICE_NAMED_PIPE, 2047, METHOD_NEITHER, FILE_READ_DATA | FILE_WRITE_DATA)
|
||||
|
||||
|
||||
#define FSCTL_PIPE_INTERNAL_READ_OVFLOW \
|
||||
CTL_CODE(FILE_DEVICE_NAMED_PIPE, 2048, METHOD_BUFFERED, FILE_READ_DATA)
|
||||
|
||||
/* Macros for current Process/Thread built-in 'special' ID */
|
||||
#define NtCurrentProcess() ( (HANDLE)(LONG_PTR) -1 )
|
||||
#define ZwCurrentProcess() NtCurrentProcess()
|
||||
#define NtCurrentThread() ( (HANDLE)(LONG_PTR) -2 )
|
||||
#define ZwCurrentThread() NtCurrentThread()
|
||||
#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
|
||||
|
@ -190,7 +190,7 @@
|
|||
#define HASH_STRING_ALGORITHM_INVALID 0xffffffff
|
||||
|
||||
/* List Macros */
|
||||
static __inline
|
||||
static __inline
|
||||
VOID
|
||||
InitializeListHead(
|
||||
IN PLIST_ENTRY ListHead)
|
||||
|
@ -198,7 +198,7 @@ InitializeListHead(
|
|||
ListHead->Flink = ListHead->Blink = ListHead;
|
||||
}
|
||||
|
||||
static __inline
|
||||
static __inline
|
||||
VOID
|
||||
InsertHeadList(
|
||||
IN PLIST_ENTRY ListHead,
|
||||
|
@ -212,7 +212,7 @@ InsertHeadList(
|
|||
ListHead->Flink = Entry;
|
||||
}
|
||||
|
||||
static __inline
|
||||
static __inline
|
||||
VOID
|
||||
InsertTailList(
|
||||
IN PLIST_ENTRY ListHead,
|
||||
|
@ -242,7 +242,7 @@ InsertTailList(
|
|||
(_Entry)->Next = (_ListHead)->Next; \
|
||||
(_ListHead)->Next = (_Entry); \
|
||||
|
||||
static __inline
|
||||
static __inline
|
||||
BOOLEAN
|
||||
RemoveEntryList(
|
||||
IN PLIST_ENTRY Entry)
|
||||
|
@ -257,8 +257,8 @@ RemoveEntryList(
|
|||
return (OldFlink == OldBlink);
|
||||
}
|
||||
|
||||
static __inline
|
||||
PLIST_ENTRY
|
||||
static __inline
|
||||
PLIST_ENTRY
|
||||
RemoveHeadList(
|
||||
IN PLIST_ENTRY ListHead)
|
||||
{
|
||||
|
@ -272,7 +272,7 @@ RemoveHeadList(
|
|||
return Entry;
|
||||
}
|
||||
|
||||
static __inline
|
||||
static __inline
|
||||
PLIST_ENTRY
|
||||
RemoveTailList(
|
||||
IN PLIST_ENTRY ListHead)
|
||||
|
@ -289,7 +289,7 @@ RemoveTailList(
|
|||
|
||||
#define IsFirstEntry(ListHead, Entry) \
|
||||
((ListHead)->Flink == Entry)
|
||||
|
||||
|
||||
#define IsLastEntry(ListHead, Entry) \
|
||||
((ListHead)->Blink == Entry)
|
||||
|
||||
|
@ -306,14 +306,14 @@ RemoveTailList(
|
|||
/* ENUMERATIONS **************************************************************/
|
||||
|
||||
/* Kernel Shared Data Values */
|
||||
typedef enum _NT_PRODUCT_TYPE
|
||||
typedef enum _NT_PRODUCT_TYPE
|
||||
{
|
||||
NtProductWinNt = 1,
|
||||
NtProductLanManNt,
|
||||
NtProductServer
|
||||
} NT_PRODUCT_TYPE, *PNT_PRODUCT_TYPE;
|
||||
|
||||
typedef enum _ALTERNATIVE_ARCHITECTURE_TYPE
|
||||
typedef enum _ALTERNATIVE_ARCHITECTURE_TYPE
|
||||
{
|
||||
StandardDesign,
|
||||
NEC98x86,
|
||||
|
@ -329,7 +329,7 @@ typedef enum _TABLE_SEARCH_RESULT
|
|||
TableInsertAsRight
|
||||
} TABLE_SEARCH_RESULT;
|
||||
|
||||
typedef enum _RTL_GENERIC_COMPARE_RESULTS
|
||||
typedef enum _RTL_GENERIC_COMPARE_RESULTS
|
||||
{
|
||||
GenericLessThan,
|
||||
GenericGreaterThan,
|
||||
|
@ -337,13 +337,13 @@ typedef enum _RTL_GENERIC_COMPARE_RESULTS
|
|||
} RTL_GENERIC_COMPARE_RESULTS;
|
||||
|
||||
/* Kernel or Native Enumerations used by Native API */
|
||||
typedef enum _SECTION_INHERIT
|
||||
typedef enum _SECTION_INHERIT
|
||||
{
|
||||
ViewShare = 1,
|
||||
ViewUnmap = 2
|
||||
} SECTION_INHERIT;
|
||||
|
||||
typedef enum _POOL_TYPE
|
||||
typedef enum _POOL_TYPE
|
||||
{
|
||||
NonPagedPool,
|
||||
PagedPool,
|
||||
|
@ -362,25 +362,25 @@ typedef enum _POOL_TYPE
|
|||
NonPagedPoolCacheAlignedMustSSession
|
||||
} POOL_TYPE;
|
||||
|
||||
typedef enum _EVENT_TYPE
|
||||
typedef enum _EVENT_TYPE
|
||||
{
|
||||
NotificationEvent,
|
||||
SynchronizationEvent
|
||||
} EVENT_TYPE;
|
||||
|
||||
typedef enum _TIMER_TYPE
|
||||
typedef enum _TIMER_TYPE
|
||||
{
|
||||
NotificationTimer,
|
||||
SynchronizationTimer
|
||||
} TIMER_TYPE;
|
||||
|
||||
typedef enum _WAIT_TYPE
|
||||
typedef enum _WAIT_TYPE
|
||||
{
|
||||
WaitAll,
|
||||
WaitAny
|
||||
} WAIT_TYPE;
|
||||
|
||||
typedef enum _INTERFACE_TYPE
|
||||
typedef enum _INTERFACE_TYPE
|
||||
{
|
||||
InterfaceTypeUndefined = -1,
|
||||
Internal,
|
||||
|
@ -402,7 +402,7 @@ typedef enum _INTERFACE_TYPE
|
|||
MaximumInterfaceType
|
||||
}INTERFACE_TYPE, *PINTERFACE_TYPE;
|
||||
|
||||
typedef enum _MODE
|
||||
typedef enum _MODE
|
||||
{
|
||||
KernelMode,
|
||||
UserMode,
|
||||
|
@ -448,7 +448,7 @@ typedef enum _KWAIT_REASON
|
|||
MaximumWaitReason
|
||||
} KWAIT_REASON;
|
||||
|
||||
typedef enum _KPROFILE_SOURCE
|
||||
typedef enum _KPROFILE_SOURCE
|
||||
{
|
||||
ProfileTime,
|
||||
ProfileAlignmentFixup,
|
||||
|
@ -482,7 +482,7 @@ typedef enum _KPROFILE_SOURCE
|
|||
/*
|
||||
* File
|
||||
*/
|
||||
typedef enum _FILE_INFORMATION_CLASS
|
||||
typedef enum _FILE_INFORMATION_CLASS
|
||||
{
|
||||
FileDirectoryInformation = 1,
|
||||
FileFullDirectoryInformation,
|
||||
|
@ -547,7 +547,7 @@ typedef enum _FSINFOCLASS
|
|||
/*
|
||||
* Registry Key
|
||||
*/
|
||||
typedef enum _KEY_INFORMATION_CLASS
|
||||
typedef enum _KEY_INFORMATION_CLASS
|
||||
{
|
||||
KeyBasicInformation,
|
||||
KeyNodeInformation,
|
||||
|
@ -560,7 +560,7 @@ typedef enum _KEY_INFORMATION_CLASS
|
|||
/*
|
||||
* Registry Key Value
|
||||
*/
|
||||
typedef enum _KEY_VALUE_INFORMATION_CLASS
|
||||
typedef enum _KEY_VALUE_INFORMATION_CLASS
|
||||
{
|
||||
KeyValueBasicInformation,
|
||||
KeyValueFullInformation,
|
||||
|
@ -572,7 +572,7 @@ typedef enum _KEY_VALUE_INFORMATION_CLASS
|
|||
/*
|
||||
* Registry Key Set
|
||||
*/
|
||||
typedef enum _KEY_SET_INFORMATION_CLASS
|
||||
typedef enum _KEY_SET_INFORMATION_CLASS
|
||||
{
|
||||
KeyWriteTimeInformation,
|
||||
KeyUserFlagsInformation,
|
||||
|
@ -582,7 +582,7 @@ typedef enum _KEY_SET_INFORMATION_CLASS
|
|||
/*
|
||||
* Process
|
||||
*/
|
||||
typedef enum _PROCESSINFOCLASS
|
||||
typedef enum _PROCESSINFOCLASS
|
||||
{
|
||||
ProcessBasicInformation,
|
||||
ProcessQuotaLimits,
|
||||
|
@ -623,7 +623,7 @@ typedef enum _PROCESSINFOCLASS
|
|||
/*
|
||||
* Thread
|
||||
*/
|
||||
typedef enum _THREADINFOCLASS
|
||||
typedef enum _THREADINFOCLASS
|
||||
{
|
||||
ThreadBasicInformation,
|
||||
ThreadTimes,
|
||||
|
@ -671,7 +671,7 @@ typedef ULONG EXECUTION_STATE;
|
|||
|
||||
/* Basic NT Types */
|
||||
#if !defined(_NTSECAPI_H) && !defined(_SUBAUTH_H)
|
||||
typedef struct _UNICODE_STRING
|
||||
typedef struct _UNICODE_STRING
|
||||
{
|
||||
USHORT Length;
|
||||
USHORT MaximumLength;
|
||||
|
@ -679,20 +679,20 @@ typedef struct _UNICODE_STRING
|
|||
} UNICODE_STRING, *PUNICODE_STRING;
|
||||
typedef const UNICODE_STRING* PCUNICODE_STRING;
|
||||
|
||||
typedef struct _STRING
|
||||
typedef struct _STRING
|
||||
{
|
||||
USHORT Length;
|
||||
USHORT MaximumLength;
|
||||
PCHAR Buffer;
|
||||
} STRING, *PSTRING;
|
||||
|
||||
typedef struct _OBJECT_ATTRIBUTES
|
||||
typedef struct _OBJECT_ATTRIBUTES
|
||||
{
|
||||
ULONG Length;
|
||||
HANDLE RootDirectory;
|
||||
PUNICODE_STRING ObjectName;
|
||||
ULONG Attributes;
|
||||
PVOID SecurityDescriptor;
|
||||
ULONG Attributes;
|
||||
PVOID SecurityDescriptor;
|
||||
PVOID SecurityQualityOfService;
|
||||
} OBJECT_ATTRIBUTES, *POBJECT_ATTRIBUTES;
|
||||
#endif
|
||||
|
@ -702,9 +702,9 @@ typedef PSTRING PANSI_STRING;
|
|||
typedef STRING OEM_STRING;
|
||||
typedef PSTRING POEM_STRING;
|
||||
|
||||
typedef struct _IO_STATUS_BLOCK
|
||||
typedef struct _IO_STATUS_BLOCK
|
||||
{
|
||||
union
|
||||
union
|
||||
{
|
||||
NTSTATUS Status;
|
||||
PVOID Pointer;
|
||||
|
@ -717,13 +717,13 @@ typedef VOID NTAPI
|
|||
IN PVOID ApcContext,
|
||||
IN PIO_STATUS_BLOCK IoStatusBlock,
|
||||
IN ULONG Reserved);
|
||||
|
||||
|
||||
typedef VOID NTAPI
|
||||
(*PKNORMAL_ROUTINE)(
|
||||
IN PVOID NormalContext,
|
||||
IN PVOID SystemArgument1,
|
||||
IN PVOID SystemArgument2);
|
||||
|
||||
|
||||
typedef VOID NTAPI
|
||||
(*PTIMER_APC_ROUTINE)(
|
||||
IN PVOID TimerContext,
|
||||
|
@ -733,7 +733,7 @@ typedef VOID NTAPI
|
|||
/* Kernel Types which are returned or used by Native API */
|
||||
typedef struct _OBJECT_NAME_INFORMATION
|
||||
{
|
||||
UNICODE_STRING Name;
|
||||
UNICODE_STRING Name;
|
||||
} OBJECT_NAME_INFORMATION, *POBJECT_NAME_INFORMATION;
|
||||
|
||||
typedef struct _IO_ERROR_LOG_PACKET
|
||||
|
@ -763,13 +763,13 @@ typedef struct _IO_ERROR_LOG_MESSAGE
|
|||
IO_ERROR_LOG_PACKET EntryData;
|
||||
} IO_ERROR_LOG_MESSAGE, *PIO_ERROR_LOG_MESSAGE;
|
||||
|
||||
typedef struct _CLIENT_ID
|
||||
typedef struct _CLIENT_ID
|
||||
{
|
||||
HANDLE UniqueProcess;
|
||||
HANDLE UniqueThread;
|
||||
} CLIENT_ID, *PCLIENT_ID;
|
||||
} CLIENT_ID, *PCLIENT_ID;
|
||||
|
||||
typedef struct _KSYSTEM_TIME
|
||||
typedef struct _KSYSTEM_TIME
|
||||
{
|
||||
ULONG LowPart;
|
||||
LONG High1Time;
|
||||
|
@ -788,7 +788,7 @@ typedef struct _TIME_FIELDS
|
|||
CSHORT Weekday;
|
||||
} TIME_FIELDS, *PTIME_FIELDS;
|
||||
|
||||
typedef struct _VM_COUNTERS
|
||||
typedef struct _VM_COUNTERS
|
||||
{
|
||||
SIZE_T PeakVirtualSize;
|
||||
SIZE_T VirtualSize;
|
||||
|
@ -803,7 +803,7 @@ typedef struct _VM_COUNTERS
|
|||
SIZE_T PeakPagefileUsage;
|
||||
} VM_COUNTERS, *PVM_COUNTERS;
|
||||
|
||||
typedef struct _VM_COUNTERS_EX
|
||||
typedef struct _VM_COUNTERS_EX
|
||||
{
|
||||
SIZE_T PeakVirtualSize;
|
||||
SIZE_T VirtualSize;
|
||||
|
@ -824,7 +824,7 @@ typedef struct _VM_COUNTERS_EX
|
|||
/*
|
||||
* Registry Key Set
|
||||
*/
|
||||
|
||||
|
||||
/* Class 0 */
|
||||
typedef struct _KEY_WRITE_TIME_INFORMATION
|
||||
{
|
||||
|
@ -832,7 +832,7 @@ typedef struct _KEY_WRITE_TIME_INFORMATION
|
|||
} KEY_WRITE_TIME_INFORMATION, *PKEY_WRITE_TIME_INFORMATION;
|
||||
|
||||
/* Class 1 */
|
||||
typedef struct _KEY_USER_FLAGS_INFORMATION
|
||||
typedef struct _KEY_USER_FLAGS_INFORMATION
|
||||
{
|
||||
ULONG UserFlags;
|
||||
} KEY_USER_FLAGS_INFORMATION, *PKEY_USER_FLAGS_INFORMATION;
|
||||
|
@ -852,7 +852,7 @@ typedef struct _KEY_FULL_INFORMATION
|
|||
WCHAR Class[1];
|
||||
} KEY_FULL_INFORMATION, *PKEY_FULL_INFORMATION;
|
||||
|
||||
typedef struct _KEY_NODE_INFORMATION
|
||||
typedef struct _KEY_NODE_INFORMATION
|
||||
{
|
||||
LARGE_INTEGER LastWriteTime;
|
||||
ULONG TitleIndex;
|
||||
|
@ -862,12 +862,12 @@ typedef struct _KEY_NODE_INFORMATION
|
|||
WCHAR Name[1];
|
||||
} KEY_NODE_INFORMATION, *PKEY_NODE_INFORMATION;
|
||||
|
||||
/*
|
||||
/*
|
||||
* File
|
||||
*/
|
||||
|
||||
|
||||
/* Class 1 */
|
||||
typedef struct _FILE_BASIC_INFORMATION
|
||||
typedef struct _FILE_BASIC_INFORMATION
|
||||
{
|
||||
LARGE_INTEGER CreationTime;
|
||||
LARGE_INTEGER LastAccessTime;
|
||||
|
@ -886,29 +886,29 @@ typedef struct _FILE_STANDARD_INFORMATION
|
|||
BOOLEAN Directory;
|
||||
} FILE_STANDARD_INFORMATION, *PFILE_STANDARD_INFORMATION;
|
||||
|
||||
typedef struct _FILE_NETWORK_OPEN_INFORMATION
|
||||
typedef struct _FILE_NETWORK_OPEN_INFORMATION
|
||||
{
|
||||
LARGE_INTEGER CreationTime;
|
||||
LARGE_INTEGER LastAccessTime;
|
||||
LARGE_INTEGER LastWriteTime;
|
||||
LARGE_INTEGER ChangeTime;
|
||||
LARGE_INTEGER AllocationSize;
|
||||
LARGE_INTEGER EndOfFile;
|
||||
ULONG FileAttributes;
|
||||
} FILE_NETWORK_OPEN_INFORMATION, *PFILE_NETWORK_OPEN_INFORMATION;
|
||||
LARGE_INTEGER CreationTime;
|
||||
LARGE_INTEGER LastAccessTime;
|
||||
LARGE_INTEGER LastWriteTime;
|
||||
LARGE_INTEGER ChangeTime;
|
||||
LARGE_INTEGER AllocationSize;
|
||||
LARGE_INTEGER EndOfFile;
|
||||
ULONG FileAttributes;
|
||||
} FILE_NETWORK_OPEN_INFORMATION, *PFILE_NETWORK_OPEN_INFORMATION;
|
||||
|
||||
typedef struct _FILE_ZERO_DATA_INFORMATION
|
||||
typedef struct _FILE_ZERO_DATA_INFORMATION
|
||||
{
|
||||
LARGE_INTEGER FileOffset;
|
||||
LARGE_INTEGER BeyondFinalZero;
|
||||
} FILE_ZERO_DATA_INFORMATION, *PFILE_ZERO_DATA_INFORMATION;
|
||||
|
||||
typedef struct _FILE_EA_INFORMATION
|
||||
typedef struct _FILE_EA_INFORMATION
|
||||
{
|
||||
ULONG EaSize;
|
||||
} FILE_EA_INFORMATION, *PFILE_EA_INFORMATION;
|
||||
|
||||
typedef struct _FILE_COMPRESSION_INFORMATION
|
||||
typedef struct _FILE_COMPRESSION_INFORMATION
|
||||
{
|
||||
LARGE_INTEGER CompressedFileSize;
|
||||
USHORT CompressionFormat;
|
||||
|
@ -923,12 +923,12 @@ typedef struct _FILE_POSITION_INFORMATION
|
|||
LARGE_INTEGER CurrentByteOffset;
|
||||
} FILE_POSITION_INFORMATION, *PFILE_POSITION_INFORMATION;
|
||||
|
||||
typedef struct _FILE_DISPOSITION_INFORMATION
|
||||
typedef struct _FILE_DISPOSITION_INFORMATION
|
||||
{
|
||||
BOOLEAN DeleteFile;
|
||||
} FILE_DISPOSITION_INFORMATION, *PFILE_DISPOSITION_INFORMATION;
|
||||
|
||||
typedef struct FILE_ALLOCATED_RANGE_BUFFER
|
||||
typedef struct FILE_ALLOCATED_RANGE_BUFFER
|
||||
{
|
||||
LARGE_INTEGER FileOffset;
|
||||
LARGE_INTEGER Length;
|
||||
|
@ -953,7 +953,7 @@ typedef struct _FILE_QUOTA_INFORMATION
|
|||
LARGE_INTEGER QuotaLimit;
|
||||
SID Sid;
|
||||
} FILE_QUOTA_INFORMATION, *PFILE_QUOTA_INFORMATION;
|
||||
|
||||
|
||||
typedef struct _FILE_INTERNAL_INFORMATION
|
||||
{
|
||||
LARGE_INTEGER IndexNumber;
|
||||
|
@ -1007,7 +1007,7 @@ typedef struct _FILE_MAILSLOT_SET_INFORMATION
|
|||
LARGE_INTEGER ReadTimeout;
|
||||
} FILE_MAILSLOT_SET_INFORMATION, *PFILE_MAILSLOT_SET_INFORMATION;
|
||||
|
||||
typedef struct _FILE_BOTH_DIR_INFORMATION
|
||||
typedef struct _FILE_BOTH_DIR_INFORMATION
|
||||
{
|
||||
ULONG NextEntryOffset;
|
||||
ULONG FileIndex;
|
||||
|
@ -1025,7 +1025,7 @@ typedef struct _FILE_BOTH_DIR_INFORMATION
|
|||
WCHAR FileName[1];
|
||||
} FILE_BOTH_DIR_INFORMATION, *PFILE_BOTH_DIR_INFORMATION;
|
||||
|
||||
typedef struct _FILE_COMPLETION_INFORMATION
|
||||
typedef struct _FILE_COMPLETION_INFORMATION
|
||||
{
|
||||
HANDLE Port;
|
||||
PVOID Key;
|
||||
|
@ -1039,7 +1039,7 @@ typedef struct _FILE_LINK_INFORMATION
|
|||
WCHAR FileName[1];
|
||||
} FILE_LINK_INFORMATION, *PFILE_LINK_INFORMATION;
|
||||
|
||||
typedef struct _FILE_NAME_INFORMATION
|
||||
typedef struct _FILE_NAME_INFORMATION
|
||||
{
|
||||
ULONG FileNameLength;
|
||||
WCHAR FileName[1];
|
||||
|
@ -1063,7 +1063,7 @@ typedef struct _FILE_VALID_DATA_LENGTH_INFORMATION
|
|||
/*
|
||||
* File System
|
||||
*/
|
||||
typedef struct _FILE_FS_DEVICE_INFORMATION
|
||||
typedef struct _FILE_FS_DEVICE_INFORMATION
|
||||
{
|
||||
DEVICE_TYPE DeviceType;
|
||||
ULONG Characteristics;
|
||||
|
@ -1105,7 +1105,7 @@ typedef struct _FILE_FS_VOLUME_INFORMATION
|
|||
*/
|
||||
|
||||
/* Class 0 */
|
||||
typedef struct _KEY_VALUE_ENTRY
|
||||
typedef struct _KEY_VALUE_ENTRY
|
||||
{
|
||||
PUNICODE_STRING ValueName;
|
||||
ULONG DataLength;
|
||||
|
@ -1114,7 +1114,7 @@ typedef struct _KEY_VALUE_ENTRY
|
|||
} KEY_VALUE_ENTRY, *PKEY_VALUE_ENTRY;
|
||||
|
||||
/* Class 1 */
|
||||
typedef struct _KEY_VALUE_PARTIAL_INFORMATION
|
||||
typedef struct _KEY_VALUE_PARTIAL_INFORMATION
|
||||
{
|
||||
ULONG TitleIndex;
|
||||
ULONG Type;
|
||||
|
@ -1123,7 +1123,7 @@ typedef struct _KEY_VALUE_PARTIAL_INFORMATION
|
|||
} KEY_VALUE_PARTIAL_INFORMATION, *PKEY_VALUE_PARTIAL_INFORMATION;
|
||||
|
||||
/* Class 2 */
|
||||
typedef struct _KEY_VALUE_BASIC_INFORMATION
|
||||
typedef struct _KEY_VALUE_BASIC_INFORMATION
|
||||
{
|
||||
ULONG TitleIndex;
|
||||
ULONG Type;
|
||||
|
@ -1132,7 +1132,7 @@ typedef struct _KEY_VALUE_BASIC_INFORMATION
|
|||
} KEY_VALUE_BASIC_INFORMATION, *PKEY_VALUE_BASIC_INFORMATION;
|
||||
|
||||
/* Class 3 */
|
||||
typedef struct _KEY_VALUE_FULL_INFORMATION
|
||||
typedef struct _KEY_VALUE_FULL_INFORMATION
|
||||
{
|
||||
ULONG TitleIndex;
|
||||
ULONG Type;
|
||||
|
@ -1147,7 +1147,7 @@ typedef struct _KEY_VALUE_FULL_INFORMATION
|
|||
*/
|
||||
|
||||
/* Class 0 */
|
||||
typedef struct _KEY_BASIC_INFORMATION
|
||||
typedef struct _KEY_BASIC_INFORMATION
|
||||
{
|
||||
LARGE_INTEGER LastWriteTime;
|
||||
ULONG TitleIndex;
|
||||
|
@ -1174,7 +1174,7 @@ typedef struct _FILE_PIPE_PEEK_BUFFER
|
|||
} FILE_PIPE_PEEK_BUFFER, *PFILE_PIPE_PEEK_BUFFER;
|
||||
|
||||
/* The Kerner/User Shared Data Structure */
|
||||
typedef struct _KUSER_SHARED_DATA
|
||||
typedef struct _KUSER_SHARED_DATA
|
||||
{
|
||||
ULONG TickCountLowDeprecated;
|
||||
ULONG TickCountMultiplier;
|
||||
|
@ -1229,7 +1229,7 @@ typedef struct _RTL_BITMAP_RUN
|
|||
ULONG NumberOfBits;
|
||||
} RTL_BITMAP_RUN, *PRTL_BITMAP_RUN;
|
||||
|
||||
typedef struct _COMPRESSED_DATA_INFO
|
||||
typedef struct _COMPRESSED_DATA_INFO
|
||||
{
|
||||
USHORT CompressionFormatAndEngine;
|
||||
UCHAR CompressionUnitShift;
|
||||
|
@ -1240,7 +1240,7 @@ typedef struct _COMPRESSED_DATA_INFO
|
|||
ULONG CompressedChunkSizes[ANYSIZE_ARRAY];
|
||||
} COMPRESSED_DATA_INFO, *PCOMPRESSED_DATA_INFO;
|
||||
|
||||
typedef struct _GENERATE_NAME_CONTEXT
|
||||
typedef struct _GENERATE_NAME_CONTEXT
|
||||
{
|
||||
USHORT Checksum;
|
||||
BOOLEAN CheckSumInserted;
|
||||
|
@ -1251,7 +1251,7 @@ typedef struct _GENERATE_NAME_CONTEXT
|
|||
ULONG LastIndexValue;
|
||||
} GENERATE_NAME_CONTEXT, *PGENERATE_NAME_CONTEXT;
|
||||
|
||||
typedef struct _RTL_SPLAY_LINKS
|
||||
typedef struct _RTL_SPLAY_LINKS
|
||||
{
|
||||
struct _RTL_SPLAY_LINKS *Parent;
|
||||
struct _RTL_SPLAY_LINKS *LeftChild;
|
||||
|
@ -1261,7 +1261,7 @@ typedef struct _RTL_SPLAY_LINKS
|
|||
struct _RTL_AVL_TABLE;
|
||||
struct _RTL_GENERIC_TABLE;
|
||||
|
||||
typedef NTSTATUS STDCALL
|
||||
typedef NTSTATUS STDCALL
|
||||
(*PRTL_AVL_MATCH_FUNCTION)(
|
||||
struct _RTL_AVL_TABLE *Table,
|
||||
PVOID UserData,
|
||||
|
@ -1293,7 +1293,7 @@ typedef VOID STDCALL
|
|||
struct _RTL_GENERIC_TABLE *Table,
|
||||
PVOID Buffer
|
||||
);
|
||||
|
||||
|
||||
typedef VOID STDCALL
|
||||
(*PRTL_AVL_ALLOCATE_ROUTINE) (
|
||||
struct _RTL_AVL_TABLE *Table,
|
||||
|
@ -1306,7 +1306,7 @@ typedef VOID STDCALL
|
|||
PVOID Buffer
|
||||
);
|
||||
|
||||
typedef struct _RTL_GENERIC_TABLE
|
||||
typedef struct _RTL_GENERIC_TABLE
|
||||
{
|
||||
PRTL_SPLAY_LINKS TableRoot;
|
||||
LIST_ENTRY InsertOrderList;
|
||||
|
@ -1319,7 +1319,7 @@ typedef struct _RTL_GENERIC_TABLE
|
|||
PVOID TableContext;
|
||||
} RTL_GENERIC_TABLE, *PRTL_GENERIC_TABLE;
|
||||
|
||||
typedef struct _RTL_BALANCED_LINKS
|
||||
typedef struct _RTL_BALANCED_LINKS
|
||||
{
|
||||
struct _RTL_BALANCED_LINKS *Parent;
|
||||
struct _RTL_BALANCED_LINKS *LeftChild;
|
||||
|
@ -1327,8 +1327,8 @@ typedef struct _RTL_BALANCED_LINKS
|
|||
CHAR Balance;
|
||||
UCHAR Reserved[3];
|
||||
} RTL_BALANCED_LINKS, *PRTL_BALANCED_LINKS;
|
||||
|
||||
typedef struct _RTL_AVL_TABLE
|
||||
|
||||
typedef struct _RTL_AVL_TABLE
|
||||
{
|
||||
RTL_BALANCED_LINKS BalancedRoot;
|
||||
PVOID OrderedPointer;
|
||||
|
@ -1353,7 +1353,7 @@ typedef NTSTATUS STDCALL
|
|||
IN PVOID EntryContext
|
||||
);
|
||||
|
||||
typedef struct _RTL_QUERY_REGISTRY_TABLE
|
||||
typedef struct _RTL_QUERY_REGISTRY_TABLE
|
||||
{
|
||||
PRTL_QUERY_REGISTRY_ROUTINE QueryRoutine;
|
||||
ULONG Flags;
|
||||
|
@ -1364,7 +1364,7 @@ typedef struct _RTL_QUERY_REGISTRY_TABLE
|
|||
ULONG DefaultLength;
|
||||
} RTL_QUERY_REGISTRY_TABLE, *PRTL_QUERY_REGISTRY_TABLE;
|
||||
|
||||
typedef struct _UNICODE_PREFIX_TABLE_ENTRY
|
||||
typedef struct _UNICODE_PREFIX_TABLE_ENTRY
|
||||
{
|
||||
CSHORT NodeTypeCode;
|
||||
CSHORT NameLength;
|
||||
|
@ -1374,7 +1374,7 @@ typedef struct _UNICODE_PREFIX_TABLE_ENTRY
|
|||
PUNICODE_STRING Prefix;
|
||||
} UNICODE_PREFIX_TABLE_ENTRY, *PUNICODE_PREFIX_TABLE_ENTRY;
|
||||
|
||||
typedef struct _UNICODE_PREFIX_TABLE
|
||||
typedef struct _UNICODE_PREFIX_TABLE
|
||||
{
|
||||
CSHORT NodeTypeCode;
|
||||
CSHORT NameLength;
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -39,7 +39,7 @@
|
|||
|
||||
/* ENUMERATIONS **************************************************************/
|
||||
|
||||
typedef enum _HARDERROR_RESPONSE_OPTION
|
||||
typedef enum _HARDERROR_RESPONSE_OPTION
|
||||
{
|
||||
OptionAbortRetryIgnore,
|
||||
OptionOk,
|
||||
|
@ -50,7 +50,7 @@ typedef enum _HARDERROR_RESPONSE_OPTION
|
|||
OptionShutdownSystem
|
||||
} HARDERROR_RESPONSE_OPTION, *PHARDERROR_RESPONSE_OPTION;
|
||||
|
||||
typedef enum _HARDERROR_RESPONSE
|
||||
typedef enum _HARDERROR_RESPONSE
|
||||
{
|
||||
ResponseReturnToCaller,
|
||||
ResponseNotHandled,
|
||||
|
@ -63,7 +63,7 @@ typedef enum _HARDERROR_RESPONSE
|
|||
ResponseYes
|
||||
} HARDERROR_RESPONSE, *PHARDERROR_RESPONSE;
|
||||
|
||||
typedef enum SHUTDOWN_ACTION_TAG
|
||||
typedef enum SHUTDOWN_ACTION_TAG
|
||||
{
|
||||
ShutdownNoReboot,
|
||||
ShutdownReboot,
|
||||
|
@ -77,13 +77,13 @@ typedef enum _PLUGPLAY_BUS_CLASS
|
|||
MaxPlugPlayBusClass
|
||||
} PLUGPLAY_BUS_CLASS, *PPLUGPLAY_BUS_CLASS;
|
||||
|
||||
typedef enum _PLUGPLAY_VIRTUAL_BUS_TYPE
|
||||
typedef enum _PLUGPLAY_VIRTUAL_BUS_TYPE
|
||||
{
|
||||
Root,
|
||||
MaxPlugPlayVirtualBusType
|
||||
} PLUGPLAY_VIRTUAL_BUS_TYPE, *PPLUGPLAY_VIRTUAL_BUS_TYPE;
|
||||
|
||||
typedef enum _SYSTEM_DOCK_STATE
|
||||
typedef enum _SYSTEM_DOCK_STATE
|
||||
{
|
||||
SystemDockStateUnknown,
|
||||
SystemUndocked,
|
||||
|
@ -98,7 +98,7 @@ typedef enum _SYSTEM_DOCK_STATE
|
|||
/* FIXME: Temporary hack until all KMODE stuf are NDK */
|
||||
#ifndef __WINDDK_H
|
||||
typedef enum _PROCESS_INFORMATION_FLAGS
|
||||
{
|
||||
{
|
||||
ProcessUnknown33 = 33,
|
||||
ProcessUnknown34,
|
||||
ProcessUnknown35,
|
||||
|
@ -109,7 +109,7 @@ typedef enum _PROCESS_INFORMATION_FLAGS
|
|||
/*
|
||||
* System
|
||||
*/
|
||||
typedef enum _SYSTEM_INFORMATION_CLASS
|
||||
typedef enum _SYSTEM_INFORMATION_CLASS
|
||||
{
|
||||
SystemBasicInformation,
|
||||
SystemProcessorInformation,
|
||||
|
@ -171,7 +171,7 @@ typedef enum _SYSTEM_INFORMATION_CLASS
|
|||
/*
|
||||
* Object
|
||||
*/
|
||||
typedef enum _OBJECT_INFORMATION_CLASS
|
||||
typedef enum _OBJECT_INFORMATION_CLASS
|
||||
{
|
||||
ObjectBasicInformation,
|
||||
ObjectNameInformation,
|
||||
|
@ -183,7 +183,7 @@ typedef enum _OBJECT_INFORMATION_CLASS
|
|||
/*
|
||||
* Memory
|
||||
*/
|
||||
typedef enum _MEMORY_INFORMATION_CLASS
|
||||
typedef enum _MEMORY_INFORMATION_CLASS
|
||||
{
|
||||
MemoryBasicInformation,
|
||||
MemoryWorkingSetList,
|
||||
|
@ -194,7 +194,7 @@ typedef enum _MEMORY_INFORMATION_CLASS
|
|||
/*
|
||||
* Mutant
|
||||
*/
|
||||
typedef enum _MUTANT_INFORMATION_CLASS
|
||||
typedef enum _MUTANT_INFORMATION_CLASS
|
||||
{
|
||||
MutantBasicInformation
|
||||
} MUTANT_INFORMATION_CLASS;
|
||||
|
@ -211,7 +211,7 @@ typedef enum _ATOM_INFORMATION_CLASS
|
|||
/*
|
||||
* Section
|
||||
*/
|
||||
typedef enum _SECTION_INFORMATION_CLASS
|
||||
typedef enum _SECTION_INFORMATION_CLASS
|
||||
{
|
||||
SectionBasicInformation,
|
||||
SectionImageInformation,
|
||||
|
@ -227,7 +227,7 @@ typedef enum _TIMER_INFORMATION_CLASS {
|
|||
/*
|
||||
* Semaphore
|
||||
*/
|
||||
typedef enum _SEMAPHORE_INFORMATION_CLASS
|
||||
typedef enum _SEMAPHORE_INFORMATION_CLASS
|
||||
{
|
||||
SemaphoreBasicInformation
|
||||
} SEMAPHORE_INFORMATION_CLASS;
|
||||
|
@ -235,7 +235,7 @@ typedef enum _SEMAPHORE_INFORMATION_CLASS
|
|||
/*
|
||||
* Event
|
||||
*/
|
||||
typedef enum _EVENT_INFORMATION_CLASS
|
||||
typedef enum _EVENT_INFORMATION_CLASS
|
||||
{
|
||||
EventBasicInformation
|
||||
} EVENT_INFORMATION_CLASS;
|
||||
|
@ -243,7 +243,7 @@ typedef enum _EVENT_INFORMATION_CLASS
|
|||
/*
|
||||
* I/O Completion
|
||||
*/
|
||||
typedef enum _IO_COMPLETION_INFORMATION_CLASS
|
||||
typedef enum _IO_COMPLETION_INFORMATION_CLASS
|
||||
{
|
||||
IoCompletionBasicInformation
|
||||
} IO_COMPLETION_INFORMATION_CLASS;
|
||||
|
@ -260,7 +260,7 @@ struct _PLUGPLAY_EVENT_BLOCK; /* FIXME: Ask Filip if it's OK to define it */
|
|||
*/
|
||||
|
||||
/* Class 0 */
|
||||
typedef struct _MUTANT_BASIC_INFORMATION
|
||||
typedef struct _MUTANT_BASIC_INFORMATION
|
||||
{
|
||||
LONG CurrentCount;
|
||||
BOOLEAN OwnedByCaller;
|
||||
|
@ -295,7 +295,7 @@ typedef struct _ATOM_BASIC_INFORMATION {
|
|||
} ATOM_BASIC_INFORMATION, *PATOM_BASIC_INFORMATION;
|
||||
|
||||
/* Class 1 */
|
||||
typedef struct _ATOM_TABLE_INFORMATION
|
||||
typedef struct _ATOM_TABLE_INFORMATION
|
||||
{
|
||||
ULONG NumberOfAtoms;
|
||||
USHORT Atoms[1];
|
||||
|
@ -313,26 +313,27 @@ typedef struct _OBJECT_DIRECTORY_INFORMATION
|
|||
/*
|
||||
* Memory
|
||||
*/
|
||||
|
||||
|
||||
/* Class 1 */
|
||||
typedef struct _MEMORY_WORKING_SET_LIST
|
||||
typedef struct _MEMORY_WORKING_SET_LIST
|
||||
{
|
||||
ULONG NumberOfPages;
|
||||
ULONG WorkingSetList[1];
|
||||
} MEMORY_WORKING_SET_LIST, *PMEMORY_WORKING_SET_LIST;
|
||||
|
||||
/* Class 2 */
|
||||
typedef struct {
|
||||
typedef struct
|
||||
{
|
||||
UNICODE_STRING SectionFileName;
|
||||
WCHAR NameBuffer[ANYSIZE_ARRAY];
|
||||
} MEMORY_SECTION_NAME, *PMEMORY_SECTION_NAME;
|
||||
|
||||
|
||||
/*
|
||||
* Section
|
||||
*/
|
||||
|
||||
/* Class 0 */
|
||||
typedef struct _SECTION_BASIC_INFORMATION
|
||||
typedef struct _SECTION_BASIC_INFORMATION
|
||||
{
|
||||
PVOID BaseAddress;
|
||||
ULONG Attributes;
|
||||
|
@ -340,7 +341,7 @@ typedef struct _SECTION_BASIC_INFORMATION
|
|||
} SECTION_BASIC_INFORMATION, *PSECTION_BASIC_INFORMATION;
|
||||
|
||||
/* Class 1 */
|
||||
typedef struct _SECTION_IMAGE_INFORMATION
|
||||
typedef struct _SECTION_IMAGE_INFORMATION
|
||||
{
|
||||
ULONG EntryPoint;
|
||||
ULONG Unknown1;
|
||||
|
@ -358,11 +359,11 @@ typedef struct _SECTION_IMAGE_INFORMATION
|
|||
} SECTION_IMAGE_INFORMATION, *PSECTION_IMAGE_INFORMATION;
|
||||
|
||||
/*
|
||||
* Object
|
||||
* Object
|
||||
*/
|
||||
|
||||
/* Class 4 */
|
||||
typedef struct _OBJECT_HANDLE_ATTRIBUTE_INFORMATION
|
||||
typedef struct _OBJECT_HANDLE_ATTRIBUTE_INFORMATION
|
||||
{
|
||||
BOOLEAN Inherit;
|
||||
BOOLEAN ProtectFromClose;
|
||||
|
@ -373,7 +374,7 @@ typedef struct _OBJECT_HANDLE_ATTRIBUTE_INFORMATION
|
|||
*/
|
||||
|
||||
/* Class 0 */
|
||||
typedef struct _TIMER_BASIC_INFORMATION
|
||||
typedef struct _TIMER_BASIC_INFORMATION
|
||||
{
|
||||
LARGE_INTEGER TimeRemaining;
|
||||
BOOLEAN SignalState;
|
||||
|
@ -384,7 +385,8 @@ typedef struct _TIMER_BASIC_INFORMATION
|
|||
*/
|
||||
|
||||
/* Class 0 */
|
||||
typedef struct _SEMAPHORE_BASIC_INFORMATION {
|
||||
typedef struct _SEMAPHORE_BASIC_INFORMATION
|
||||
{
|
||||
LONG CurrentCount;
|
||||
LONG MaximumCount;
|
||||
} SEMAPHORE_BASIC_INFORMATION, *PSEMAPHORE_BASIC_INFORMATION;
|
||||
|
@ -393,7 +395,7 @@ typedef struct _SEMAPHORE_BASIC_INFORMATION {
|
|||
* Event
|
||||
*/
|
||||
/* Class 0 */
|
||||
typedef struct _EVENT_BASIC_INFORMATION
|
||||
typedef struct _EVENT_BASIC_INFORMATION
|
||||
{
|
||||
EVENT_TYPE EventType;
|
||||
LONG EventState;
|
||||
|
@ -441,13 +443,13 @@ typedef struct _PROCESS_PRIORITY_CLASS
|
|||
/* Class 23 */
|
||||
typedef struct _PROCESS_DEVICEMAP_INFORMATION
|
||||
{
|
||||
union
|
||||
union
|
||||
{
|
||||
struct
|
||||
struct
|
||||
{
|
||||
HANDLE DirectoryHandle;
|
||||
} Set;
|
||||
struct
|
||||
struct
|
||||
{
|
||||
ULONG DriveMap;
|
||||
UCHAR DriveType[32];
|
||||
|
@ -492,7 +494,7 @@ typedef struct _SYSTEM_PROCESSOR_INFORMATION
|
|||
} SYSTEM_PROCESSOR_INFORMATION, *PSYSTEM_PROCESSOR_INFORMATION;
|
||||
|
||||
/* Class 2 */
|
||||
typedef struct _SYSTEM_PERFORMANCE_INFORMATION
|
||||
typedef struct _SYSTEM_PERFORMANCE_INFORMATION
|
||||
{
|
||||
LARGE_INTEGER IdleProcessTime;
|
||||
LARGE_INTEGER IoReadTransferCount;
|
||||
|
@ -584,7 +586,7 @@ typedef struct _SYSTEM_TIMEOFDAY_INFORMATION
|
|||
/* This class is obsoleted, please use KUSER_SHARED_DATA instead */
|
||||
|
||||
/* Class 5 */
|
||||
typedef struct _SYSTEM_THREAD_INFORMATION
|
||||
typedef struct _SYSTEM_THREAD_INFORMATION
|
||||
{
|
||||
LARGE_INTEGER KernelTime;
|
||||
LARGE_INTEGER UserTime;
|
||||
|
@ -598,6 +600,7 @@ typedef struct _SYSTEM_THREAD_INFORMATION
|
|||
ULONG ThreadState;
|
||||
ULONG WaitReason;
|
||||
} SYSTEM_THREAD_INFORMATION, *PSYSTEM_THREAD_INFORMATION;
|
||||
|
||||
typedef struct _SYSTEM_PROCESS_INFORMATION
|
||||
{
|
||||
ULONG NextEntryOffset;
|
||||
|
@ -615,9 +618,9 @@ typedef struct _SYSTEM_PROCESS_INFORMATION
|
|||
ULONG HandleCount;
|
||||
ULONG SessionId;
|
||||
ULONG PageDirectoryFrame;
|
||||
|
||||
/*
|
||||
* This part corresponds to VM_COUNTERS_EX.
|
||||
|
||||
/*
|
||||
* This part corresponds to VM_COUNTERS_EX.
|
||||
* NOTE: *NOT* THE SAME AS VM_COUNTERS!
|
||||
*/
|
||||
ULONG PeakVirtualSize;
|
||||
|
@ -632,7 +635,7 @@ typedef struct _SYSTEM_PROCESS_INFORMATION
|
|||
ULONG PagefileUsage;
|
||||
ULONG PeakPagefileUsage;
|
||||
ULONG PrivateUsage;
|
||||
|
||||
|
||||
/* This part corresponds to IO_COUNTERS */
|
||||
LARGE_INTEGER ReadOperationCount;
|
||||
LARGE_INTEGER WriteOperationCount;
|
||||
|
@ -640,17 +643,17 @@ typedef struct _SYSTEM_PROCESS_INFORMATION
|
|||
LARGE_INTEGER ReadTransferCount;
|
||||
LARGE_INTEGER WriteTransferCount;
|
||||
LARGE_INTEGER OtherTransferCount;
|
||||
|
||||
|
||||
/* Finally, the array of Threads */
|
||||
SYSTEM_THREAD_INFORMATION TH[1];
|
||||
} SYSTEM_PROCESS_INFORMATION, *PSYSTEM_PROCESS_INFORMATION;
|
||||
|
||||
/* Class 6 */
|
||||
typedef struct _SYSTEM_CALL_COUNT_INFORMATION
|
||||
typedef struct _SYSTEM_CALL_COUNT_INFORMATION
|
||||
{
|
||||
ULONG Length;
|
||||
ULONG NumberOfTables;
|
||||
} SYSTEM_CALL_COUNT_INFORMATION, *PSYSTEM_CALL_COUNT_INFORMATION;
|
||||
} SYSTEM_CALL_COUNT_INFORMATION, *PSYSTEM_CALL_COUNT_INFORMATION;
|
||||
|
||||
/* Class 7 */
|
||||
typedef struct _SYSTEM_DEVICE_INFORMATION
|
||||
|
@ -664,7 +667,7 @@ typedef struct _SYSTEM_DEVICE_INFORMATION
|
|||
} SYSTEM_DEVICE_INFORMATION, *PSYSTEM_DEVICE_INFORMATION;
|
||||
|
||||
/* Class 8 */
|
||||
typedef struct _SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION
|
||||
typedef struct _SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION
|
||||
{
|
||||
LARGE_INTEGER IdleTime;
|
||||
LARGE_INTEGER KernelTime;
|
||||
|
@ -675,13 +678,13 @@ typedef struct _SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION
|
|||
} SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION, *PSYSTEM_PROCESSOR_PERFORMANCE_INFORMATION;
|
||||
|
||||
/* Class 9 */
|
||||
typedef struct _SYSTEM_FLAGS_INFORMATION
|
||||
typedef struct _SYSTEM_FLAGS_INFORMATION
|
||||
{
|
||||
ULONG Flags;
|
||||
} SYSTEM_FLAGS_INFORMATION, *PSYSTEM_FLAGS_INFORMATION;
|
||||
|
||||
/* Class 10 */
|
||||
typedef struct _SYSTEM_CALL_TIME_INFORMATION
|
||||
typedef struct _SYSTEM_CALL_TIME_INFORMATION
|
||||
{
|
||||
ULONG Length;
|
||||
ULONG TotalCalls;
|
||||
|
@ -689,7 +692,7 @@ typedef struct _SYSTEM_CALL_TIME_INFORMATION
|
|||
} SYSTEM_CALL_TIME_INFORMATION, *PSYSTEM_CALL_TIME_INFORMATION;
|
||||
|
||||
/* Class 11 */
|
||||
typedef struct _SYSTEM_MODULE_INFORMATION_ENTRY
|
||||
typedef struct _SYSTEM_MODULE_INFORMATION_ENTRY
|
||||
{
|
||||
ULONG Unknown1;
|
||||
ULONG Unknown2;
|
||||
|
@ -702,14 +705,14 @@ typedef struct _SYSTEM_MODULE_INFORMATION_ENTRY
|
|||
USHORT PathLength;
|
||||
CHAR ImageName[256];
|
||||
} SYSTEM_MODULE_INFORMATION_ENTRY, *PSYSTEM_MODULE_INFORMATION_ENTRY;
|
||||
typedef struct _SYSTEM_MODULE_INFORMATION
|
||||
typedef struct _SYSTEM_MODULE_INFORMATION
|
||||
{
|
||||
ULONG Count;
|
||||
SYSTEM_MODULE_INFORMATION_ENTRY Module[1];
|
||||
} SYSTEM_MODULE_INFORMATION, *PSYSTEM_MODULE_INFORMATION;
|
||||
|
||||
/* Class 12 */
|
||||
typedef struct _SYSTEM_RESOURCE_LOCK_ENTRY
|
||||
typedef struct _SYSTEM_RESOURCE_LOCK_ENTRY
|
||||
{
|
||||
ULONG ResourceAddress;
|
||||
ULONG Always1;
|
||||
|
@ -720,7 +723,8 @@ typedef struct _SYSTEM_RESOURCE_LOCK_ENTRY
|
|||
ULONG NumberOfSharedWaiters;
|
||||
ULONG NumberOfExclusiveWaiters;
|
||||
} SYSTEM_RESOURCE_LOCK_ENTRY, *PSYSTEM_RESOURCE_LOCK_ENTRY;
|
||||
typedef struct _SYSTEM_RESOURCE_LOCK_INFO
|
||||
|
||||
typedef struct _SYSTEM_RESOURCE_LOCK_INFO
|
||||
{
|
||||
ULONG Count;
|
||||
SYSTEM_RESOURCE_LOCK_ENTRY Lock[1];
|
||||
|
@ -731,6 +735,7 @@ typedef struct _SYSTEM_BACKTRACE_INFORMATION_ENTRY
|
|||
{
|
||||
/* FIXME */
|
||||
} SYSTEM_BACKTRACE_INFORMATION_ENTRY, *PSYSTEM_BACKTRACE_INFORMATION_ENTRY;
|
||||
|
||||
typedef struct _SYSTEM_BACKTRACE_INFORMATION
|
||||
{
|
||||
/* FIXME */
|
||||
|
@ -740,19 +745,21 @@ typedef struct _SYSTEM_BACKTRACE_INFORMATION
|
|||
} SYSTEM_BACKTRACE_INFORMATION, *PSYSTEM_BACKTRACE_INFORMATION;
|
||||
|
||||
/* Class 14 - 15 */
|
||||
typedef struct _SYSTEM_POOL_ENTRY
|
||||
typedef struct _SYSTEM_POOL_ENTRY
|
||||
{
|
||||
BOOLEAN Allocated;
|
||||
BOOLEAN Spare0;
|
||||
USHORT AllocatorBackTraceIndex;
|
||||
ULONG Size;
|
||||
union {
|
||||
union
|
||||
{
|
||||
UCHAR Tag[4];
|
||||
ULONG TagUlong;
|
||||
PVOID ProcessChargedQuota;
|
||||
};
|
||||
} SYSTEM_POOL_ENTRY, *PSYSTEM_POOL_ENTRY;
|
||||
typedef struct _SYSTEM_POOL_INFORMATION
|
||||
|
||||
typedef struct _SYSTEM_POOL_INFORMATION
|
||||
{
|
||||
ULONG TotalSize;
|
||||
PVOID FirstEntry;
|
||||
|
@ -764,7 +771,7 @@ typedef struct _SYSTEM_POOL_INFORMATION
|
|||
} SYSTEM_POOL_INFORMATION, *PSYSTEM_POOL_INFORMATION;
|
||||
|
||||
/* Class 16 */
|
||||
typedef struct _SYSTEM_HANDLE_TABLE_ENTRY_INFO
|
||||
typedef struct _SYSTEM_HANDLE_TABLE_ENTRY_INFO
|
||||
{
|
||||
USHORT UniqueProcessId;
|
||||
USHORT CreatorBackTraceIndex;
|
||||
|
@ -773,15 +780,16 @@ typedef struct _SYSTEM_HANDLE_TABLE_ENTRY_INFO
|
|||
USHORT HandleValue;
|
||||
PVOID Object;
|
||||
ULONG GrantedAccess;
|
||||
} SYSTEM_HANDLE_TABLE_ENTRY_INFO, *PSYSTEM_HANDLE_TABLE_ENTRY_INFO;
|
||||
typedef struct _SYSTEM_HANDLE_INFORMATION
|
||||
} SYSTEM_HANDLE_TABLE_ENTRY_INFO, *PSYSTEM_HANDLE_TABLE_ENTRY_INFO;
|
||||
|
||||
typedef struct _SYSTEM_HANDLE_INFORMATION
|
||||
{
|
||||
ULONG NumberOfHandles;
|
||||
SYSTEM_HANDLE_TABLE_ENTRY_INFO Handles[1];
|
||||
} SYSTEM_HANDLE_INFORMATION, *PSYSTEM_HANDLE_INFORMATION;
|
||||
|
||||
/* Class 17 */
|
||||
typedef struct _SYSTEM_OBJECTTYPE_INFORMATION
|
||||
typedef struct _SYSTEM_OBJECTTYPE_INFORMATION
|
||||
{
|
||||
ULONG NextEntryOffset;
|
||||
ULONG NumberOfObjects;
|
||||
|
@ -794,8 +802,9 @@ typedef struct _SYSTEM_OBJECTTYPE_INFORMATION
|
|||
BOOLEAN SecurityRequired;
|
||||
BOOLEAN WaitableObject;
|
||||
UNICODE_STRING TypeName;
|
||||
} SYSTEM_OBJECTTYPE_INFORMATION, *PSYSTEM_OBJECTTYPE_INFORMATION;
|
||||
typedef struct _SYSTEM_OBJECT_INFORMATION
|
||||
} SYSTEM_OBJECTTYPE_INFORMATION, *PSYSTEM_OBJECTTYPE_INFORMATION;
|
||||
|
||||
typedef struct _SYSTEM_OBJECT_INFORMATION
|
||||
{
|
||||
ULONG NextEntryOffset;
|
||||
PVOID Object;
|
||||
|
@ -812,7 +821,7 @@ typedef struct _SYSTEM_OBJECT_INFORMATION
|
|||
} SYSTEM_OBJECT_INFORMATION, *PSYSTEM_OBJECT_INFORMATION;
|
||||
|
||||
/* Class 18 */
|
||||
typedef struct _SYSTEM_PAGEFILE_INFORMATION
|
||||
typedef struct _SYSTEM_PAGEFILE_INFORMATION
|
||||
{
|
||||
ULONG NextEntryOffset;
|
||||
ULONG TotalSize;
|
||||
|
@ -822,7 +831,7 @@ typedef struct _SYSTEM_PAGEFILE_INFORMATION
|
|||
} SYSTEM_PAGEFILE_INFORMATION, *PSYSTEM_PAGEFILE_INFORMATION;
|
||||
|
||||
/* Class 19 */
|
||||
typedef struct _SYSTEM_VDM_INSTEMUL_INFO
|
||||
typedef struct _SYSTEM_VDM_INSTEMUL_INFO
|
||||
{
|
||||
ULONG SegmentNotPresent;
|
||||
ULONG VdmOpcode0F;
|
||||
|
@ -861,14 +870,14 @@ typedef struct _SYSTEM_VDM_INSTEMUL_INFO
|
|||
} SYSTEM_VDM_INSTEMUL_INFO, *PSYSTEM_VDM_INSTEMUL_INFO;
|
||||
|
||||
/* Class 20 */
|
||||
typedef struct _SYSTEM_VDM_BOP_INFO
|
||||
typedef struct _SYSTEM_VDM_BOP_INFO
|
||||
{
|
||||
/* FIXME */
|
||||
PVOID Dummy;
|
||||
} SYSTEM_VDM_BOP_INFO, *PSYSTEM_VDM_BOP_INFO;
|
||||
|
||||
/* Class 21 */
|
||||
typedef struct _SYSTEM_CACHE_INFORMATION
|
||||
typedef struct _SYSTEM_CACHE_INFORMATION
|
||||
{
|
||||
ULONG CurrentSize;
|
||||
ULONG PeakSize;
|
||||
|
@ -881,9 +890,9 @@ typedef struct _SYSTEM_CACHE_INFORMATION
|
|||
} SYSTEM_CACHE_INFORMATION, *PSYSTEM_CACHE_INFORMATION;
|
||||
|
||||
/* Class 22 */
|
||||
typedef struct _SYSTEM_POOLTAG
|
||||
typedef struct _SYSTEM_POOLTAG
|
||||
{
|
||||
union
|
||||
union
|
||||
{
|
||||
UCHAR Tag[4];
|
||||
ULONG TagUlong;
|
||||
|
@ -895,14 +904,14 @@ typedef struct _SYSTEM_POOLTAG
|
|||
ULONG NonPagedFrees;
|
||||
ULONG NonPagedUsed;
|
||||
} SYSTEM_POOLTAG, *PSYSTEM_POOLTAG;
|
||||
typedef struct _SYSTEM_POOLTAG_INFORMATION
|
||||
typedef struct _SYSTEM_POOLTAG_INFORMATION
|
||||
{
|
||||
ULONG Count;
|
||||
SYSTEM_POOLTAG TagInfo[1];
|
||||
} SYSTEM_POOLTAG_INFORMATION, *PSYSTEM_POOLTAG_INFORMATION;
|
||||
|
||||
/* Class 23 */
|
||||
typedef struct _SYSTEM_INTERRUPT_INFORMATION
|
||||
typedef struct _SYSTEM_INTERRUPT_INFORMATION
|
||||
{
|
||||
ULONG ContextSwitches;
|
||||
ULONG DpcCount;
|
||||
|
@ -913,25 +922,25 @@ typedef struct _SYSTEM_INTERRUPT_INFORMATION
|
|||
} SYSTEM_INTERRUPT_INFORMATION, *PSYSTEM_INTERRUPT_INFORMATION;
|
||||
|
||||
/* Class 24 */
|
||||
typedef struct _SYSTEM_DPC_BEHAVIOR_INFORMATION
|
||||
typedef struct _SYSTEM_DPC_BEHAVIOR_INFORMATION
|
||||
{
|
||||
ULONG Spare;
|
||||
ULONG DpcQueueDepth;
|
||||
ULONG MinimumDpcRate;
|
||||
ULONG AdjustDpcThreshold;
|
||||
ULONG IdealDpcRate;
|
||||
} SYSTEM_DPC_BEHAVIOR_INFORMATION, *PSYSTEM_DPC_BEHAVIOR_INFORMATION;
|
||||
} SYSTEM_DPC_BEHAVIOR_INFORMATION, *PSYSTEM_DPC_BEHAVIOR_INFORMATION;
|
||||
|
||||
/* Class 25 */
|
||||
typedef struct _SYSTEM_MEMORY_INFO
|
||||
typedef struct _SYSTEM_MEMORY_INFO
|
||||
{
|
||||
PUCHAR StringOffset;
|
||||
USHORT ValidCount;
|
||||
USHORT TransitionCount;
|
||||
USHORT ModifiedCount;
|
||||
USHORT PageTableCount;
|
||||
} SYSTEM_MEMORY_INFO, *PSYSTEM_MEMORY_INFO;
|
||||
typedef struct _SYSTEM_MEMORY_INFORMATION
|
||||
} SYSTEM_MEMORY_INFO, *PSYSTEM_MEMORY_INFO;
|
||||
typedef struct _SYSTEM_MEMORY_INFORMATION
|
||||
{
|
||||
ULONG InfoSize;
|
||||
ULONG StringStart;
|
||||
|
@ -939,13 +948,14 @@ typedef struct _SYSTEM_MEMORY_INFORMATION
|
|||
} SYSTEM_MEMORY_INFORMATION, *PSYSTEM_MEMORY_INFORMATION;
|
||||
|
||||
/* Class 26 */
|
||||
typedef struct _SYSTEM_GDI_DRIVER_INFORMATION {
|
||||
typedef struct _SYSTEM_GDI_DRIVER_INFORMATION
|
||||
{
|
||||
UNICODE_STRING DriverName;
|
||||
PVOID ImageAddress;
|
||||
PVOID SectionPointer;
|
||||
PVOID EntryPoint;
|
||||
PIMAGE_EXPORT_DIRECTORY ExportSectionPointer;
|
||||
} SYSTEM_GDI_DRIVER_INFORMATION, *PSYSTEM_GDI_DRIVER_INFORMATION;
|
||||
} SYSTEM_GDI_DRIVER_INFORMATION, *PSYSTEM_GDI_DRIVER_INFORMATION;
|
||||
|
||||
/* Class 27 */
|
||||
/* Not an actuall class, simply a PVOID to the ImageAddress */
|
||||
|
@ -957,7 +967,8 @@ typedef struct _SYSTEM_QUERY_TIME_ADJUST_INFORMATION
|
|||
ULONG TimeIncrement;
|
||||
BOOLEAN Enable;
|
||||
} SYSTEM_QUERY_TIME_ADJUST_INFORMATION, *PSYSTEM_QUERY_TIME_ADJUST_INFORMATION;
|
||||
typedef struct _SYSTEM_SET_TIME_ADJUST_INFORMATION
|
||||
|
||||
typedef struct _SYSTEM_SET_TIME_ADJUST_INFORMATION
|
||||
{
|
||||
ULONG TimeAdjustment;
|
||||
BOOLEAN Enable;
|
||||
|
@ -969,32 +980,32 @@ typedef struct _SYSTEM_SET_TIME_ADJUST_INFORMATION
|
|||
/* FIXME */
|
||||
|
||||
/* Class 32 */
|
||||
typedef struct _SYSTEM_CRASH_DUMP_INFORMATION
|
||||
typedef struct _SYSTEM_CRASH_DUMP_INFORMATION
|
||||
{
|
||||
HANDLE CrashDumpSection;
|
||||
} SYSTEM_CRASH_DUMP_INFORMATION, *PSYSTEM_CRASH_DUMP_INFORMATION;
|
||||
} SYSTEM_CRASH_DUMP_INFORMATION, *PSYSTEM_CRASH_DUMP_INFORMATION;
|
||||
|
||||
/* Class 33 */
|
||||
typedef struct _SYSTEM_EXCEPTION_INFORMATION
|
||||
typedef struct _SYSTEM_EXCEPTION_INFORMATION
|
||||
{
|
||||
ULONG AlignmentFixupCount;
|
||||
ULONG ExceptionDispatchCount;
|
||||
ULONG FloatingEmulationCount;
|
||||
ULONG ByteWordEmulationCount;
|
||||
} SYSTEM_EXCEPTION_INFORMATION, *PSYSTEM_EXCEPTION_INFORMATION;
|
||||
|
||||
|
||||
/* Class 34 */
|
||||
typedef struct _SYSTEM_CRASH_STATE_INFORMATION
|
||||
typedef struct _SYSTEM_CRASH_STATE_INFORMATION
|
||||
{
|
||||
ULONG ValidCrashDump;
|
||||
} SYSTEM_CRASH_STATE_INFORMATION, *PSYSTEM_CRASH_STATE_INFORMATION;
|
||||
|
||||
/* Class 35 */
|
||||
typedef struct _SYSTEM_KERNEL_DEBUGGER_INFORMATION
|
||||
typedef struct _SYSTEM_KERNEL_DEBUGGER_INFORMATION
|
||||
{
|
||||
BOOLEAN KernelDebuggerEnabled;
|
||||
BOOLEAN KernelDebuggerNotPresent;
|
||||
} SYSTEM_KERNEL_DEBUGGER_INFORMATION, *PSYSTEM_KERNEL_DEBUGGER_INFORMATION;
|
||||
} SYSTEM_KERNEL_DEBUGGER_INFORMATION, *PSYSTEM_KERNEL_DEBUGGER_INFORMATION;
|
||||
|
||||
/* Class 36 */
|
||||
typedef struct _SYSTEM_CONTEXT_SWITCH_INFORMATION {
|
||||
|
@ -1013,7 +1024,7 @@ typedef struct _SYSTEM_CONTEXT_SWITCH_INFORMATION {
|
|||
} SYSTEM_CONTEXT_SWITCH_INFORMATION, *PSYSTEM_CONTEXT_SWITCH_INFORMATION;
|
||||
|
||||
/* Class 37 */
|
||||
typedef struct _SYSTEM_REGISTRY_QUOTA_INFORMATION
|
||||
typedef struct _SYSTEM_REGISTRY_QUOTA_INFORMATION
|
||||
{
|
||||
ULONG RegistryQuotaAllowed;
|
||||
ULONG RegistryQuotaUsed;
|
||||
|
@ -1026,30 +1037,32 @@ typedef struct _SYSTEM_REGISTRY_QUOTA_INFORMATION
|
|||
/* Class 39 */
|
||||
/* Not a structure, simply send a ULONG containing the new separation */
|
||||
|
||||
/* Class 40 */
|
||||
/* Class 40 */
|
||||
typedef struct _PLUGPLAY_BUS_TYPE
|
||||
{
|
||||
PLUGPLAY_BUS_CLASS BusClass;
|
||||
union
|
||||
union
|
||||
{
|
||||
INTERFACE_TYPE SystemBusType;
|
||||
PLUGPLAY_VIRTUAL_BUS_TYPE PlugPlayVirtualBusType;
|
||||
};
|
||||
} PLUGPLAY_BUS_TYPE, *PPLUGPLAY_BUS_TYPE;
|
||||
typedef struct _PLUGPLAY_BUS_INSTANCE
|
||||
} PLUGPLAY_BUS_TYPE, *PPLUGPLAY_BUS_TYPE;
|
||||
|
||||
typedef struct _PLUGPLAY_BUS_INSTANCE
|
||||
{
|
||||
PLUGPLAY_BUS_TYPE BusType;
|
||||
ULONG BusNumber;
|
||||
WCHAR BusName[MAX_BUS_NAME];
|
||||
} PLUGPLAY_BUS_INSTANCE, *PPLUGPLAY_BUS_INSTANCE;
|
||||
typedef struct _SYSTEM_PLUGPLAY_BUS_INFORMATION
|
||||
|
||||
typedef struct _SYSTEM_PLUGPLAY_BUS_INFORMATION
|
||||
{
|
||||
ULONG BusCount;
|
||||
PLUGPLAY_BUS_INSTANCE BusInstance[1];
|
||||
} SYSTEM_PLUGPLAY_BUS_INFORMATION, *PSYSTEM_PLUGPLAY_BUS_INFORMATION;
|
||||
|
||||
/* Class 41 */
|
||||
typedef struct _SYSTEM_DOCK_INFORMATION
|
||||
typedef struct _SYSTEM_DOCK_INFORMATION
|
||||
{
|
||||
SYSTEM_DOCK_STATE DockState;
|
||||
INTERFACE_TYPE DeviceBusType;
|
||||
|
@ -1085,7 +1098,7 @@ typedef struct _SYSTEM_LEGACY_DRIVER_INFORMATION
|
|||
typedef struct _TIME_ZONE_INFORMATION RTL_TIME_ZONE_INFORMATION;
|
||||
|
||||
/* Class 45 */
|
||||
typedef struct _SYSTEM_LOOKASIDE_INFORMATION
|
||||
typedef struct _SYSTEM_LOOKASIDE_INFORMATION
|
||||
{
|
||||
USHORT CurrentDepth;
|
||||
USHORT MaximumDepth;
|
||||
|
@ -1120,7 +1133,7 @@ typedef struct _SYSTEM_LOOKASIDE_INFORMATION
|
|||
/* FIXME */
|
||||
|
||||
/* Class 53 */
|
||||
typedef struct _SYSTEM_SESSION_PROCESSES_INFORMATION
|
||||
typedef struct _SYSTEM_SESSION_PROCESSES_INFORMATION
|
||||
{
|
||||
ULONG SessionId;
|
||||
ULONG BufferSize;
|
||||
|
|
Loading…
Reference in a new issue