| /**************************************************************************** |
| **************************************************************************** |
| *** |
| *** This header was generated from a ReactOS header to make |
| *** information necessary for userspace to call into the Windows |
| *** kernel available to Dr. Memory. It contains only constants, |
| *** structures, and macros generated from the original header, and |
| *** thus, contains no copyrightable information. |
| *** |
| **************************************************************************** |
| ****************************************************************************/ |
| |
| /* from reactos/include/ndk/psfuncs.h and reactos/include/ndk/pstypes.h */ |
| |
| #ifndef _PSFUNCS_H |
| #define _PSFUNCS_H |
| |
| /* from reactos/include/ndk/psfuncs.h */ |
| typedef ULONG APPHELPCACHESERVICECLASS; |
| |
| |
| /* from reactos/include/ndk/pstypes.h */ |
| |
| // |
| // Process/Thread/Job Information Classes for NtQueryInformationProcess/Thread/Job |
| // |
| typedef enum _PROCESSINFOCLASS |
| { |
| ProcessBasicInformation, |
| ProcessQuotaLimits, |
| ProcessIoCounters, |
| ProcessVmCounters, |
| ProcessTimes, |
| ProcessBasePriority, |
| ProcessRaisePriority, |
| ProcessDebugPort, |
| ProcessExceptionPort, |
| ProcessAccessToken, |
| ProcessLdtInformation, |
| ProcessLdtSize, |
| ProcessDefaultHardErrorMode, |
| ProcessIoPortHandlers, |
| ProcessPooledUsageAndLimits, |
| ProcessWorkingSetWatch, |
| ProcessUserModeIOPL, |
| ProcessEnableAlignmentFaultFixup, |
| ProcessPriorityClass, |
| ProcessWx86Information, |
| ProcessHandleCount, |
| ProcessAffinityMask, |
| ProcessPriorityBoost, |
| ProcessDeviceMap, |
| ProcessSessionInformation, |
| ProcessForegroundInformation, |
| ProcessWow64Information, |
| /* added after XP+ */ |
| ProcessImageFileName, |
| ProcessLUIDDeviceMapsEnabled, |
| ProcessBreakOnTermination, |
| ProcessDebugObjectHandle, |
| ProcessDebugFlags, |
| ProcessHandleTracing, |
| ProcessIoPriority, |
| ProcessExecuteFlags, |
| ProcessTlsInformation, |
| ProcessCookie, |
| ProcessImageInformation, |
| ProcessCycleTime, |
| ProcessPagePriority, |
| ProcessInstrumentationCallback, |
| ProcessThreadStackAllocation, |
| ProcessWorkingSetWatchEx, |
| ProcessImageFileNameWin32, |
| ProcessImageFileMapping, |
| ProcessAffinityUpdateMode, |
| ProcessMemoryAllocationMode, |
| ProcessGroupInformation, |
| ProcessTokenVirtualizationEnabled, |
| ProcessConsoleHostProcess, |
| ProcessWindowInformation, |
| MaxProcessInfoClass |
| } PROCESSINFOCLASS; |
| |
| typedef enum _THREADINFOCLASS |
| { |
| ThreadBasicInformation, |
| ThreadTimes, |
| ThreadPriority, |
| ThreadBasePriority, |
| ThreadAffinityMask, |
| ThreadImpersonationToken, |
| ThreadDescriptorTableEntry, |
| ThreadEnableAlignmentFaultFixup, |
| ThreadEventPair_Reusable, |
| ThreadQuerySetWin32StartAddress, |
| ThreadZeroTlsCell, |
| ThreadPerformanceCount, |
| ThreadAmILastThread, |
| ThreadIdealProcessor, |
| ThreadPriorityBoost, |
| ThreadSetTlsArrayAddress, |
| ThreadIsIoPending, |
| ThreadHideFromDebugger, |
| ThreadBreakOnTermination, |
| ThreadSwitchLegacyState, |
| ThreadIsTerminated, |
| ThreadLastSystemCall, |
| ThreadIoPriority, |
| ThreadCycleTime, |
| ThreadPagePriority, |
| ThreadActualBasePriority, |
| ThreadTebInformation, |
| ThreadCSwitchMon, |
| ThreadWow64Context, |
| ThreadGroupInformation, |
| ThreadUmsInformation, |
| ThreadCounterProfiling, |
| ThreadIdealProcessorEx, |
| MaxThreadInfoClass |
| } THREADINFOCLASS; |
| |
| /* Reverse engineered, not from ReactOS. |
| * This is the data structure for ProcessThreadStackAllocation (0x29). |
| */ |
| typedef struct _STACK_ALLOC_INFORMATION_VISTA { |
| ULONG_PTR StackReserveSize; |
| ULONG ZeroBits; |
| PULONG_PTR BaseAddress; /* OUT */ |
| } STACK_ALLOC_INFORMATION_VISTA; |
| |
| typedef struct _STACK_ALLOC_INFORMATION { |
| /* These four 32-bit fields were added in Win7. So far they've always been zero. */ |
| DWORD Unknown1; |
| DWORD Unknown2; |
| DWORD Unknown3; |
| DWORD Unknown4; |
| ULONG_PTR StackReserveSize; |
| ULONG ZeroBits; |
| PVOID *BaseAddress; /* OUT */ |
| } STACK_ALLOC_INFORMATION; |
| |
| |
| #endif /*_PSFUNCS_H */ |