22 switch (ValidationMode)
26 switch (InfoClassIndex)
108 "0x%lx or special status (0x%lx) expected but got 0x%lx for class information %lu in query information process operation!\n", ExpectedStatus, SpecialStatus,
Status, InfoClassIndex);
114 switch (InfoClassIndex)
200 "0x%lx or special status (0x%lx) expected but got 0x%lx for class information %lu in set information process operation!\n", ExpectedStatus, SpecialStatus,
Status, InfoClassIndex);
220 switch (ValidationMode)
224 switch (InfoClassIndex)
266 "0x%lx or special status (0x%lx) expected but got 0x%lx for class information %lu in query information thread operation!\n", ExpectedStatus, SpecialStatus,
Status, InfoClassIndex);
272 switch (InfoClassIndex)
335 "0x%lx or special status (0x%lx) expected but got 0x%lx for class information %lu in set information thread operation!\n", ExpectedStatus, SpecialStatus,
Status, InfoClassIndex);
#define STATUS_PRIVILEGE_NOT_HELD
#define SET(field, seg, reg)
@ ThreadEnableAlignmentFaultFixup
@ ThreadDescriptorTableEntry
@ ThreadEventPair_Reusable
@ ThreadActualBasePriority
@ ThreadSwitchLegacyState
@ ThreadImpersonationToken
@ ThreadSetTlsArrayAddress
@ ProcessBasicInformation
@ ProcessWow64Information
@ ProcessLUIDDeviceMapsEnabled
@ ProcessMemoryAllocationMode
@ ProcessWorkingSetWatchEx
@ ProcessInstrumentationCallback
@ ProcessImageFileMapping
@ ProcessImageInformation
@ ProcessPooledUsageAndLimits
@ ProcessImageFileNameWin32
@ ProcessAffinityUpdateMode
@ ProcessEnableAlignmentFaultFixup
@ ProcessThreadStackAllocation
@ ProcessForegroundInformation
@ ProcessDebugObjectHandle
enum _ALIGNMENT_PROBE_MODE ALIGNMENT_PROBE_MODE
#define NtCurrentProcess()
NTSTATUS NTAPI NtQueryInformationThread(IN HANDLE ThreadHandle, IN THREADINFOCLASS ThreadInformationClass, OUT PVOID ThreadInformation, IN ULONG ThreadInformationLength, OUT PULONG ReturnLength OPTIONAL)
NTSTATUS NTAPI NtSetInformationProcess(IN HANDLE ProcessHandle, IN PROCESSINFOCLASS ProcessInformationClass, IN PVOID ProcessInformation, IN ULONG ProcessInformationLength)
NTSTATUS NTAPI NtSetInformationThread(IN HANDLE ThreadHandle, IN THREADINFOCLASS ThreadInformationClass, IN PVOID ThreadInformation, IN ULONG ThreadInformationLength)
NTSTATUS NTAPI NtQueryInformationProcess(_In_ HANDLE ProcessHandle, _In_ PROCESSINFOCLASS ProcessInformationClass, _Out_ PVOID ProcessInformation, _In_ ULONG ProcessInformationLength, _Out_opt_ PULONG ReturnLength)
#define STATUS_ACCESS_VIOLATION
#define STATUS_NOT_IMPLEMENTED
#define STATUS_DATATYPE_MISALIGNMENT
#define STATUS_INVALID_INFO_CLASS
#define STATUS_PORT_ALREADY_SET
VOID QuerySetThreadValidator(_In_ ALIGNMENT_PROBE_MODE ValidationMode, _In_ ULONG InfoClassIndex, _In_ PVOID InfoPointer, _In_ ULONG InfoLength, _In_ NTSTATUS ExpectedStatus)
VOID QuerySetProcessValidator(_In_ ALIGNMENT_PROBE_MODE ValidationMode, _In_ ULONG InfoClassIndex, _In_ PVOID InfoPointer, _In_ ULONG InfoLength, _In_ NTSTATUS ExpectedStatus)
#define STATUS_INVALID_PARAMETER
#define STATUS_UNSUCCESSFUL
#define STATUS_INFO_LENGTH_MISMATCH
#define NtCurrentThread()