mirror of
https://github.com/reactos/reactos.git
synced 2025-07-12 23:54:13 +00:00
- Improved CloseConsoleHandle.
svn path=/trunk/; revision=4195
This commit is contained in:
parent
471aaa7f5e
commit
0c1e5baf17
1 changed files with 22 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: console.c,v 1.51 2003/01/18 00:10:59 mdill Exp $
|
/* $Id: console.c,v 1.52 2003/02/24 23:24:55 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
|
||||||
|
@ -536,13 +536,32 @@ CloseConsoleHandle(HANDLE Handle)
|
||||||
* Undocumented
|
* Undocumented
|
||||||
*/
|
*/
|
||||||
{
|
{
|
||||||
|
CSRSS_API_REQUEST Request;
|
||||||
|
CSRSS_API_REPLY Reply;
|
||||||
|
NTSTATUS Status;
|
||||||
|
|
||||||
if (IsConsoleHandle (Handle) == FALSE)
|
if (IsConsoleHandle (Handle) == FALSE)
|
||||||
{
|
{
|
||||||
SetLastError (ERROR_INVALID_PARAMETER);
|
SetLastError (ERROR_INVALID_PARAMETER);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
/* FIXME: call CSRSS */
|
|
||||||
return TRUE/*FALSE*/;
|
Request.Type = CSRSS_CLOSE_HANDLE;
|
||||||
|
Request.Data.CloseHandleRequest.Handle = Handle;
|
||||||
|
Status = CsrClientCallServer(&Request,
|
||||||
|
&Reply,
|
||||||
|
sizeof(CSRSS_API_REQUEST),
|
||||||
|
sizeof(CSRSS_API_REPLY));
|
||||||
|
|
||||||
|
if (NT_SUCCESS(Status))
|
||||||
|
{
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SetLastErrorByStatus(Status);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOLEAN STDCALL
|
BOOLEAN STDCALL
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue