mirror of
https://github.com/reactos/reactos.git
synced 2024-11-01 12:26:32 +00:00
4bef6f5913
Also stub handling non-console, non-gui processes.
55 lines
1.7 KiB
C
55 lines
1.7 KiB
C
/*
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
* PROJECT: ReactOS Console Server DLL
|
|
* FILE: win32ss/user/winsrv/consrv/console.h
|
|
* PURPOSE: Console Initialization Functions
|
|
* PROGRAMMERS: Hermes Belusca-Maito (hermes.belusca@sfr.fr)
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
typedef struct _CONSOLE_INIT_INFO
|
|
{
|
|
PCONSOLE_START_INFO ConsoleStartInfo;
|
|
BOOLEAN IsWindowVisible;
|
|
|
|
ULONG TitleLength;
|
|
PWCHAR ConsoleTitle;
|
|
ULONG DesktopLength;
|
|
PWCHAR Desktop;
|
|
ULONG AppNameLength;
|
|
PWCHAR AppName;
|
|
ULONG CurDirLength;
|
|
PWCHAR CurDir;
|
|
} CONSOLE_INIT_INFO, *PCONSOLE_INIT_INFO;
|
|
|
|
VOID NTAPI
|
|
ConSrvInitConsoleSupport(VOID);
|
|
|
|
NTSTATUS NTAPI
|
|
ConSrvInitConsole(OUT PHANDLE NewConsoleHandle,
|
|
OUT struct _CONSRV_CONSOLE** /* PCONSRV_CONSOLE* */ NewConsole,
|
|
IN OUT PCONSOLE_INIT_INFO ConsoleInitInfo,
|
|
IN PCSR_PROCESS ConsoleLeaderProcess);
|
|
VOID NTAPI ConSrvDeleteConsole(struct _CONSRV_CONSOLE* /* PCONSRV_CONSOLE */ Console);
|
|
|
|
NTSTATUS
|
|
ConSrvGetConsole(IN PCONSOLE_PROCESS_DATA ProcessData,
|
|
OUT struct _CONSRV_CONSOLE** /* PCONSRV_CONSOLE* */ Console,
|
|
IN BOOLEAN LockConsole);
|
|
VOID
|
|
ConSrvReleaseConsole(IN struct _CONSRV_CONSOLE* /* PCONSRV_CONSOLE */ Console,
|
|
IN BOOLEAN IsConsoleLocked);
|
|
|
|
|
|
BOOLEAN NTAPI
|
|
ConSrvValidateConsole(OUT struct _CONSRV_CONSOLE** /* PCONSRV_CONSOLE* */ Console,
|
|
IN HANDLE ConsoleHandle,
|
|
IN CONSOLE_STATE ExpectedState,
|
|
IN BOOLEAN LockConsole);
|
|
|
|
NTSTATUS
|
|
ConSrvConsoleCtrlEventTimeout(IN ULONG CtrlEvent,
|
|
IN PCONSOLE_PROCESS_DATA ProcessData,
|
|
IN ULONG Timeout);
|