mirror of
https://github.com/reactos/reactos.git
synced 2024-08-28 22:28:36 +00:00
50 lines
1.6 KiB
C
50 lines
1.6 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 WasConsoleLocked);
|
|
|
|
|
|
BOOLEAN NTAPI
|
|
ConSrvValidateConsole(OUT struct _CONSRV_CONSOLE** /* PCONSRV_CONSOLE* */ Console,
|
|
IN HANDLE ConsoleHandle,
|
|
IN CONSOLE_STATE ExpectedState,
|
|
IN BOOLEAN LockConsole);
|