#ifndef _NTDBG_H
NTSYSCALLAPI
NTSTATUS
NTAPI
NtDebugActiveProcess(
_In_ HANDLE ProcessHandle,
_In_ HANDLE DebugObjectHandle
);
View code on GitHub
#ifndef _NTZWAPI_H
NTSYSCALLAPI
NTSTATUS
NTAPI
ZwDebugActiveProcess(
_In_ HANDLE ProcessHandle,
_In_ HANDLE DebugObjectHandle
);
View code on GitHub
Function NtDebugActiveProcess is used to attach Debug Object to any non-debugged process.
HANDLE to process being debugged (opened with enough access rights
HANDLE to previously created Debug Object.