Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 304 of file dbgkutil.c.
Referenced by PspExitThread().
{ DBGKM_MSG ApiMessage; PDBGKM_EXIT_PROCESS ExitProcess = &ApiMessage.ExitProcess; PEPROCESS Process = PsGetCurrentProcess(); PETHREAD Thread = PsGetCurrentThread(); PAGED_CODE(); /* Check if this thread is hidden, doesn't have a debug port, or died */ if ((Thread->HideFromDebugger) || !(Process->DebugPort) || (Thread->DeadThread)) { /* Don't notify the debugger */ return; } /* Set the exit status */ ExitProcess->ExitStatus = ExitStatus; /* Setup the API Message */ ApiMessage.h.u1.Length = sizeof(DBGKM_MSG) << 16 | (8 + sizeof(DBGKM_EXIT_PROCESS)); ApiMessage.h.u2.ZeroInit = 0; ApiMessage.h.u2.s2.Type = LPC_DEBUG_EVENT; ApiMessage.ApiNumber = DbgKmExitProcessApi; /* Set the current exit time */ KeQuerySystemTime(&Process->ExitTime); /* Send the message */ DbgkpSendApiMessage(&ApiMessage, FALSE); }