Panoptes 1.0.0
Endpoint Detection and Response
Loading...
Searching...
No Matches
Test_NtSetInformationProcess.cpp File Reference
#include "hook_test_harness.hpp"
#include <winternl.h>

Go to the source code of this file.

Macros

#define TEST_PROCESS_PROTECTION_INFORMATION   ((PROCESSINFOCLASS)61)
#define TEST_WIN32_PROTECTION_LEVEL_INFO   ((PROCESSINFOCLASS)7)

Typedefs

typedef NTSTATUS(NTAPI * NtSetInformationProcess_t) (HANDLE ProcessHandle, PROCESSINFOCLASS ProcessInformationClass, PVOID ProcessInformation, ULONG ProcessInformationLength)

Functions

int main (int argc, char **argv)

Macro Definition Documentation

◆ TEST_PROCESS_PROTECTION_INFORMATION

#define TEST_PROCESS_PROTECTION_INFORMATION   ((PROCESSINFOCLASS)61)

Definition at line 8 of file Test_NtSetInformationProcess.cpp.

◆ TEST_WIN32_PROTECTION_LEVEL_INFO

#define TEST_WIN32_PROTECTION_LEVEL_INFO   ((PROCESSINFOCLASS)7)

The Win32 PROCESS_INFORMATION_CLASS value of ProcessProtectionLevelInfo, which in the native enum is ProcessDebugPort. It must not be mistaken for the protection class

Definition at line 12 of file Test_NtSetInformationProcess.cpp.

Typedef Documentation

◆ NtSetInformationProcess_t

typedef NTSTATUS(NTAPI * NtSetInformationProcess_t) (HANDLE ProcessHandle, PROCESSINFOCLASS ProcessInformationClass, PVOID ProcessInformation, ULONG ProcessInformationLength)

Definition at line 14 of file Test_NtSetInformationProcess.cpp.

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

Definition at line 78 of file Test_NtSetInformationProcess.cpp.

78 {
79 return RunHookTests(argc, argv, "NtSetInformationProcess", g_Cases);
80}
int RunHookTests(int argc, char **argv, const char *apiName, const std::vector< HookTestCase > &cases)
Runs the cases and prints a PASS/FAIL line for each. Call from main.

References RunHookTests().