reactos/win32ss/user/winsrv/consrv/procinit.h
Hermès Bélusca-Maïto c05df38e86
[CONSRV] Move process-initialization-specific functions from handle.c into console.c .
- 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().
2020-04-14 01:19:48 +02:00

32 lines
904 B
C

/*
* LICENSE: GPL - See COPYING in the top level directory
* PROJECT: ReactOS Console Server DLL
* FILE: win32ss/user/winsrv/consrv/procinit.h
* PURPOSE: Functions for console processes initialization
* PROGRAMMERS: Hermes Belusca-Maito (hermes.belusca@sfr.fr)
*/
#pragma once
NTSTATUS
ConSrvAllocateConsole(
IN OUT PCONSOLE_PROCESS_DATA ProcessData,
OUT PHANDLE pInputHandle,
OUT PHANDLE pOutputHandle,
OUT PHANDLE pErrorHandle,
IN OUT PCONSOLE_INIT_INFO ConsoleInitInfo);
NTSTATUS
ConSrvInheritConsole(
IN OUT PCONSOLE_PROCESS_DATA ProcessData,
IN HANDLE ConsoleHandle,
IN BOOLEAN CreateNewHandleTable,
OUT PHANDLE pInputHandle,
OUT PHANDLE pOutputHandle,
OUT PHANDLE pErrorHandle,
IN OUT PCONSOLE_START_INFO ConsoleStartInfo);
NTSTATUS
ConSrvRemoveConsole(
IN OUT PCONSOLE_PROCESS_DATA ProcessData);