mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 13:01:40 +00:00
c05df38e86
- Move ConSrvInitHandlesTable() & rename it ConSrvInitProcessHandles() since its purpose is to initialize the standard input, output and error handles for a console process. - Move ConSrvAllocateConsole(), ConSrvInheritConsole() and ConSrvRemoveConsole().
45 lines
1.5 KiB
C
45 lines
1.5 KiB
C
/*
|
|
* LICENSE: GPL - See COPYING in the top level directory
|
|
* PROJECT: ReactOS Console Server DLL
|
|
* FILE: win32ss/user/winsrv/consrv/handle.h
|
|
* PURPOSE: Console I/O Handles functions
|
|
* PROGRAMMERS: David Welch
|
|
* Jeffrey Morlan
|
|
* Hermes Belusca-Maito (hermes.belusca@sfr.fr)
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
NTSTATUS
|
|
ConSrvInheritHandlesTable(IN PCONSOLE_PROCESS_DATA SourceProcessData,
|
|
IN PCONSOLE_PROCESS_DATA TargetProcessData);
|
|
|
|
VOID
|
|
ConSrvFreeHandlesTable(IN PCONSOLE_PROCESS_DATA ProcessData);
|
|
|
|
|
|
VOID
|
|
ConSrvInitObject(IN OUT PCONSOLE_IO_OBJECT Object,
|
|
IN CONSOLE_IO_OBJECT_TYPE Type,
|
|
IN PCONSOLE Console);
|
|
NTSTATUS
|
|
ConSrvInsertObject(IN PCONSOLE_PROCESS_DATA ProcessData,
|
|
OUT PHANDLE Handle,
|
|
IN PCONSOLE_IO_OBJECT Object,
|
|
IN ULONG Access,
|
|
IN BOOLEAN Inheritable,
|
|
IN ULONG ShareMode);
|
|
NTSTATUS
|
|
ConSrvRemoveObject(IN PCONSOLE_PROCESS_DATA ProcessData,
|
|
IN HANDLE Handle);
|
|
NTSTATUS
|
|
ConSrvGetObject(IN PCONSOLE_PROCESS_DATA ProcessData,
|
|
IN HANDLE Handle,
|
|
OUT PCONSOLE_IO_OBJECT* Object,
|
|
OUT PVOID* Entry OPTIONAL,
|
|
IN ULONG Access,
|
|
IN BOOLEAN LockConsole,
|
|
IN CONSOLE_IO_OBJECT_TYPE Type);
|
|
VOID
|
|
ConSrvReleaseObject(IN PCONSOLE_IO_OBJECT Object,
|
|
IN BOOLEAN IsConsoleLocked);
|