Create CheckRemoteDebuggerPresentAlt.c
This commit is contained in:
parent
18f2ee824e
commit
dd0fd4a909
|
@ -0,0 +1,14 @@
|
|||
BOOL CheckRemoteDebuggerPresentAlt(HANDLE hProcess, PBOOL IsDebuggerPresent)
|
||||
{
|
||||
NTSTATUS Status = ERROR_SUCCESS;
|
||||
HANDLE Port = NULL;
|
||||
|
||||
Status = NtQueryInformationProcess(hProcess, ProcessDebugPort, &Port, sizeof(Port), NULL);
|
||||
if (NT_SUCCESS(Status))
|
||||
{
|
||||
*IsDebuggerPresent = Port != NULL;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
Loading…
Reference in New Issue