ReactOS  0.4.14-dev-98-gb0d4763
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 
20 BOOLEAN
21 WINAPI
23  IN PWSTR SessionDir);
24 
25 VOID
27 
28 DWORD
29 WINAPI
30 ConsoleControlDispatcher(IN LPVOID lpThreadParameter);
31 
32 DWORD
33 WINAPI
34 PropDialogHandler(IN LPVOID lpThreadParameter);
35 
38  DWORD dwDesiredAccess,
41 
44  OUT LPDWORD lpdwFlags);
45 
48  IN DWORD dwMask,
49  IN DWORD dwFlags);
50 
53 
56 
59 
60 HANDLE
61 TranslateStdHandle(HANDLE hHandle);
62 
63 #define SetTEBLangID(p) (p)
64 
65 VOID
66 SetUpConsoleInfo(IN BOOLEAN CaptureTitle,
67  IN OUT LPDWORD pTitleLength,
69  IN OUT LPDWORD pDesktopLength,
70  IN OUT LPWSTR* lpDesktop OPTIONAL,
71  IN OUT PCONSOLE_START_INFO ConsoleStartInfo);
72 
73 VOID
74 SetUpHandles(IN PCONSOLE_START_INFO ConsoleStartInfo);
75 
76 VOID
78 
79 VOID
80 SetUpAppName(IN BOOLEAN CaptureStrings,
81  IN OUT LPDWORD CurDirLength,
82  IN OUT LPWSTR* CurDir,
83  IN OUT LPDWORD AppNameLength,
84  IN OUT LPWSTR* AppName);
85 
86 USHORT
89 
90 LPCWSTR
92  IN DWORD dwDesiredAccess);
93 
95 OpenConsoleW(LPCWSTR wsName,
96  DWORD dwDesiredAccess,
98  DWORD dwShareMode);
99 
100 /* EOF */
VOID InitializeCtrlHandling(VOID)
Definition: console.c:204
DWORD dwOptions
Definition: solitaire.cpp:23
#define IN
Definition: typedefs.h:38
BOOL WINAPI CloseConsoleHandle(HANDLE Handle)
Definition: console.c:1142
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
uint16_t * PWSTR
Definition: typedefs.h:54
HANDLE WINAPI OpenConsoleW(LPCWSTR wsName, DWORD dwDesiredAccess, BOOL bInheritHandle, DWORD dwShareMode)
Definition: console.c:791
static CHAR AppName[MAX_PATH]
Definition: dem.c:252
uint16_t * PWCHAR
Definition: typedefs.h:54
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
HANDLE WINAPI GetConsoleInputWaitHandle(VOID)
Definition: console.c:683
static BOOL bInheritHandle
Definition: pipe.c:82
unsigned int BOOL
Definition: ntddk_ex.h:94
BOOL WINAPI SetConsoleHandleInformation(IN HANDLE hHandle, IN DWORD dwMask, IN DWORD dwFlags)
Definition: console.c:495
HANDLE WINAPI DuplicateConsoleHandle(HANDLE hConsole, DWORD dwDesiredAccess, BOOL bInheritHandle, DWORD dwOptions)
Definition: console.c:424
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
unsigned char BOOLEAN
USHORT GetCurrentExeName(OUT PWCHAR ExeName, IN USHORT BufferSize)
Definition: console.c:316
_In_ HANDLE Handle
Definition: extypes.h:390
#define WINAPI
Definition: msvc.h:8
#define BufferSize
Definition: classpnp.h:419
unsigned long DWORD
Definition: ntddk_ex.h:95
VOID SetUpHandles(IN PCONSOLE_START_INFO ConsoleStartInfo)
Definition: init.c:250
BOOLEAN WINAPI ConDllInitialize(IN ULONG Reason, IN PWSTR SessionDir)
Definition: init.c:338
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1175
DWORD WINAPI ConsoleControlDispatcher(IN LPVOID lpThreadParameter)
Definition: console.c:89
unsigned short USHORT
Definition: pedump.c:61
BOOL WINAPI VerifyConsoleIoHandle(HANDLE Handle)
Definition: console.c:1110
HANDLE TranslateStdHandle(HANDLE hHandle)
#define OUT
Definition: typedefs.h:39
BOOL WINAPI GetConsoleHandleInformation(IN HANDLE hHandle, OUT LPDWORD lpdwFlags)
Definition: console.c:465
uint32_t * LPDWORD
Definition: typedefs.h:57
TCHAR lpTitle[80]
Definition: ctm.c:69
unsigned int ULONG
Definition: retypes.h:1
LPCWSTR IntCheckForConsoleFileName(IN LPCWSTR pszName, IN DWORD dwDesiredAccess)
Definition: console.c:345
WCHAR * LPWSTR
Definition: xmlstorage.h:184
PVOID PVOID PWCHAR PVOID USHORT PULONG Reason
Definition: env.c:45
VOID InitExeName(VOID)
Definition: console.c:216
DWORD WINAPI PropDialogHandler(IN LPVOID lpThreadParameter)
Definition: init.c:34
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68