#ifndef _NTDBG_H
/**
* Attaches a debugger to an active process.
*
* \param ProcessHandle A handle to the process to be debugged.
* \param DebugObjectHandle A handle to the debug object.
* \return NTSTATUS Successful or errant status.
*/
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 GitHubNo description available.
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.