ReactOS 0.4.15-dev-5664-g3bf4ef6
console.h
Go to the documentation of this file.
1/*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS System Libraries
4 * FILE: dll/win32/kernel32/include/console.h
5 * PURPOSE: Console API Client Definitions
6 * PROGRAMMERS: Hermes Belusca-Maito (hermes.belusca@sfr.fr)
7 */
8
9#pragma once
10
11/* CONSTANTS ******************************************************************/
12
13#define HANDLE_DETACHED_PROCESS (HANDLE)-1
14#define HANDLE_CREATE_NEW_CONSOLE (HANDLE)-2
15#define HANDLE_CREATE_NO_WINDOW (HANDLE)-3
16
17
18/* FUNCTION PROTOTYPES ********************************************************/
19
23 IN PWSTR SessionDir);
24
25VOID
27
30ConsoleControlDispatcher(IN LPVOID lpThreadParameter);
31
34PropDialogHandler(IN LPVOID lpThreadParameter);
35
38 DWORD dwDesiredAccess,
41
44 OUT LPDWORD lpdwFlags);
45
48 IN DWORD dwMask,
50
53
56
59
62
63VOID
65
66VOID
67SetUpConsoleInfo(IN BOOLEAN CaptureTitle,
68 IN OUT LPDWORD pTitleLength,
70 IN OUT LPDWORD pDesktopLength,
71 IN OUT LPWSTR* lpDesktop OPTIONAL,
72 IN OUT PCONSOLE_START_INFO ConsoleStartInfo);
73
74VOID
75SetUpHandles(IN PCONSOLE_START_INFO ConsoleStartInfo);
76
77VOID
79
80VOID
81SetUpAppName(IN BOOLEAN CaptureStrings,
82 IN OUT LPDWORD CurDirLength,
83 IN OUT LPWSTR* CurDir,
84 IN OUT LPDWORD AppNameLength,
86
90
93 IN DWORD dwDesiredAccess);
94
97 DWORD dwDesiredAccess,
99 DWORD dwShareMode);
100
101/* EOF */
unsigned char BOOLEAN
WCHAR * ExeName
TCHAR lpTitle[80]
Definition: ctm.c:69
static CHAR AppName[MAX_PATH]
Definition: dem.c:252
DWORD WINAPI PropDialogHandler(IN LPVOID lpThreadParameter)
Definition: init.c:34
VOID SetUpConsoleInfo(IN BOOLEAN CaptureTitle, IN OUT LPDWORD pTitleLength, IN OUT LPWSTR *lpTitle OPTIONAL, IN OUT LPDWORD pDesktopLength, IN OUT LPWSTR *lpDesktop OPTIONAL, IN OUT PCONSOLE_START_INFO ConsoleStartInfo)
Definition: init.c:134
LPCWSTR IntCheckForConsoleFileName(IN LPCWSTR pszName, IN DWORD dwDesiredAccess)
Definition: console.c:345
VOID InitExeName(VOID)
Definition: console.c:216
DWORD WINAPI ConsoleControlDispatcher(IN LPVOID lpThreadParameter)
Definition: console.c:89
BOOL WINAPI VerifyConsoleIoHandle(HANDLE Handle)
Definition: console.c:1110
BOOL WINAPI GetConsoleHandleInformation(IN HANDLE hHandle, OUT LPDWORD lpdwFlags)
Definition: console.c:465
VOID SetTEBLangID(VOID)
Internal helper function used to synchronize the current thread's language ID with the one from the c...
Definition: console.c:3075
HANDLE WINAPI DuplicateConsoleHandle(HANDLE hConsole, DWORD dwDesiredAccess, BOOL bInheritHandle, DWORD dwOptions)
Definition: console.c:424
HANDLE TranslateStdHandle(HANDLE hHandle)
BOOL WINAPI SetConsoleHandleInformation(IN HANDLE hHandle, IN DWORD dwMask, IN DWORD dwFlags)
Definition: console.c:495
USHORT GetCurrentExeName(OUT PWCHAR ExeName, IN USHORT BufferSize)
Definition: console.c:316
HANDLE WINAPI GetConsoleInputWaitHandle(VOID)
Definition: console.c:683
BOOL WINAPI CloseConsoleHandle(HANDLE Handle)
Definition: console.c:1142
BOOLEAN WINAPI ConDllInitialize(IN ULONG Reason, IN PWSTR SessionDir)
Definition: init.c:338
VOID SetUpHandles(IN PCONSOLE_START_INFO ConsoleStartInfo)
Definition: init.c:250
VOID InitializeCtrlHandling(VOID)
Definition: console.c:204
HANDLE WINAPI OpenConsoleW(LPCWSTR wsName, DWORD dwDesiredAccess, BOOL bInheritHandle, DWORD dwShareMode)
Definition: console.c:791
VOID SetUpAppName(IN BOOLEAN CaptureStrings, IN OUT LPDWORD CurDirLength, IN OUT LPWSTR *CurDir, IN OUT LPDWORD AppNameLength, IN OUT LPWSTR *AppName)
Definition: console.c:264
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
ULONG Handle
Definition: gdb_input.c:15
unsigned int ULONG
Definition: retypes.h:1
PVOID PVOID PWCHAR PVOID USHORT PULONG Reason
Definition: env.c:47
static BOOL bInheritHandle
Definition: pipe.c:82
unsigned short USHORT
Definition: pedump.c:61
DWORD dwOptions
Definition: solitaire.cpp:24
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68
uint16_t * PWSTR
Definition: typedefs.h:56
uint32_t * LPDWORD
Definition: typedefs.h:59
#define IN
Definition: typedefs.h:39
uint16_t * PWCHAR
Definition: typedefs.h:56
#define OUT
Definition: typedefs.h:40
_In_ WDFMEMORY _Out_opt_ size_t * BufferSize
Definition: wdfmemory.h:254
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1176
#define WINAPI
Definition: msvc.h:6
WCHAR * LPWSTR
Definition: xmlstorage.h:184
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185