[KERNEL32]
[reactos.git] / dll / win32 / kernel32 / include / console.h
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)-2
14 #define HANDLE_CREATE_NEW_CONSOLE (HANDLE)-3
15 #define HANDLE_CREATE_NO_WINDOW (HANDLE)-4
16
17
18 /* FUNCTION PROTOTYPES ********************************************************/
19
20 BOOL WINAPI
21 BasepInitConsole(VOID);
22
23 VOID WINAPI
24 BasepUninitConsole(VOID);
25
26 VOID WINAPI
27 InitConsoleCtrlHandling(VOID);
28
29 DWORD WINAPI
30 ConsoleControlDispatcher(IN LPVOID lpThreadParameter);
31
32 DWORD WINAPI
33 PropDialogHandler(IN LPVOID lpThreadParameter);
34
35 HANDLE WINAPI
36 DuplicateConsoleHandle(HANDLE hConsole,
37 DWORD dwDesiredAccess,
38 BOOL bInheritHandle,
39 DWORD dwOptions);
40
41 BOOL WINAPI
42 VerifyConsoleIoHandle(HANDLE Handle);
43
44 BOOL WINAPI
45 CloseConsoleHandle(HANDLE Handle);
46
47 HANDLE WINAPI
48 GetConsoleInputWaitHandle(VOID);
49
50 HANDLE FASTCALL
51 TranslateStdHandle(HANDLE hHandle);
52
53 VOID
54 InitConsoleInfo(IN OUT PCONSOLE_START_INFO ConsoleStartInfo,
55 IN PUNICODE_STRING ImagePathName);
56
57 LPCWSTR
58 IntCheckForConsoleFileName(IN LPCWSTR pszName,
59 IN DWORD dwDesiredAccess);
60
61 HANDLE WINAPI
62 OpenConsoleW(LPCWSTR wsName,
63 DWORD dwDesiredAccess,
64 BOOL bInheritHandle,
65 DWORD dwShareMode);
66
67 BOOL WINAPI
68 SetConsoleInputExeNameW(LPCWSTR lpInputExeName);
69
70 /* EOF */