Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 408 of file debugger.c.
{ HANDLE DebugPort; NTSTATUS Status; /* Make sure we have an output and process*/ if (!(pbDebuggerPresent) || !(hProcess)) { /* Fail */ SetLastError(ERROR_INVALID_PARAMETER); return FALSE; } /* Check if the process has a debug object/port */ Status = NtQueryInformationProcess(hProcess, ProcessDebugPort, (PVOID)&DebugPort, sizeof(HANDLE), NULL); if (NT_SUCCESS(Status)) { /* Return the current state */ *pbDebuggerPresent = DebugPort != NULL; return TRUE; } /* Otherwise, fail */ BaseSetLastNTError(Status); return FALSE; }