mirror of
https://github.com/reactos/reactos.git
synced 2024-09-14 14:51:27 +00:00
Added csrss notification in ExitProcess.
svn path=/trunk/; revision=2925
This commit is contained in:
parent
e11e2826a9
commit
b343539680
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: proc.c,v 1.42 2001/09/02 17:59:44 ea Exp $
|
/* $Id: proc.c,v 1.43 2002/05/07 22:26:29 hbirr Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS system libraries
|
* PROJECT: ReactOS system libraries
|
||||||
|
@ -506,10 +506,24 @@ ExitProcess (
|
||||||
UINT uExitCode
|
UINT uExitCode
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
CSRSS_API_REQUEST CsrRequest;
|
||||||
|
CSRSS_API_REPLY CsrReply;
|
||||||
|
NTSTATUS Status;
|
||||||
|
|
||||||
/* unload all dll's */
|
/* unload all dll's */
|
||||||
LdrShutdownProcess ();
|
LdrShutdownProcess ();
|
||||||
|
|
||||||
/* FIXME: notify csrss of process termination */
|
/* notify csrss of process termination */
|
||||||
|
CsrRequest.Type = CSRSS_TERMINATE_PROCESS;
|
||||||
|
Status = CsrClientCallServer(&CsrRequest,
|
||||||
|
&CsrReply,
|
||||||
|
sizeof(CSRSS_API_REQUEST),
|
||||||
|
sizeof(CSRSS_API_REPLY));
|
||||||
|
if (!NT_SUCCESS(Status) || !NT_SUCCESS(CsrReply.Status))
|
||||||
|
{
|
||||||
|
DbgPrint("Failed to tell csrss about terminating process. Expect trouble.\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
NtTerminateProcess (NtCurrentProcess (),
|
NtTerminateProcess (NtCurrentProcess (),
|
||||||
uExitCode);
|
uExitCode);
|
||||||
|
|
Loading…
Reference in a new issue