Panoptes 1.0.0
Endpoint Detection and Response
Loading...
Searching...
No Matches
Test_NtCreateThreadEx.cpp File Reference

Go to the source code of this file.

Macros

#define THREAD_CREATE_FLAGS_CREATE_SUSPENDED   0x1

Typedefs

typedef NTSTATUS(NTAPI * NtCreateThreadEx_t) (PHANDLE ThreadHandle, ACCESS_MASK DesiredAccess, PVOID ObjectAttributes, HANDLE ProcessHandle, PVOID StartRoutine, PVOID Argument, ULONG CreateFlags, SIZE_T ZeroBits, SIZE_T StackSize, SIZE_T MaximumStackSize, PVOID AttributeList)

Functions

int main (int argc, char **argv)

Macro Definition Documentation

◆ THREAD_CREATE_FLAGS_CREATE_SUSPENDED

#define THREAD_CREATE_FLAGS_CREATE_SUSPENDED   0x1

Definition at line 10 of file Test_NtCreateThreadEx.cpp.

Typedef Documentation

◆ NtCreateThreadEx_t

typedef NTSTATUS(NTAPI * NtCreateThreadEx_t) (PHANDLE ThreadHandle, ACCESS_MASK DesiredAccess, PVOID ObjectAttributes, HANDLE ProcessHandle, PVOID StartRoutine, PVOID Argument, ULONG CreateFlags, SIZE_T ZeroBits, SIZE_T StackSize, SIZE_T MaximumStackSize, PVOID AttributeList)

Definition at line 6 of file Test_NtCreateThreadEx.cpp.

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

Definition at line 85 of file Test_NtCreateThreadEx.cpp.

85 {
86 return RunHookTests(argc, argv, "NtCreateThreadEx", g_Cases);
87}
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().