-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRadReadConsole.h
More file actions
37 lines (30 loc) · 1.15 KB
/
RadReadConsole.h
File metadata and controls
37 lines (30 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
BOOL RadWriteConsole(
_In_ HANDLE hConsoleOutput,
_In_reads_(nNumberOfCharsToWrite) CONST VOID* lpBuffer,
_In_ DWORD nNumberOfCharsToWrite,
_Out_opt_ LPDWORD lpNumberOfCharsWritten, // Could be more than nNumberOfCharsToWrite due to double-width characters
_Reserved_ LPVOID lpReserved
);
BOOL RadWriteConsoleOutputCharacter(
_In_ HANDLE hConsoleOutput,
_In_reads_(nLength) LPCWSTR lpCharacter,
_In_ DWORD nLength,
_In_ COORD dwWriteCoord,
_Out_ LPDWORD lpNumberOfCharsWritten // Could be more than nNumberOfCharsToWrite due to double-width characters
);
void ExpandAlias(LPDWORD lpNumberOfCharsRead, LPTSTR lpCharBuffer, DWORD nNumberOfCharsToRead);
BOOL RadReadConsole(
_In_ HANDLE hConsoleInput,
_Inout_updates_bytes_to_(nNumberOfCharsToRead * sizeof(TCHAR), *lpNumberOfCharsRead * sizeof(TCHAR%)) LPVOID lpBuffer,
_In_ DWORD nNumberOfCharsToRead,
_Out_ _Deref_out_range_(<= , nNumberOfCharsToRead) LPDWORD lpNumberOfCharsRead,
_In_opt_ PCONSOLE_READCONSOLE_CONTROL pInputControl
);
BOOL WriteHistory(_In_ HANDLE hOutput);
#ifdef __cplusplus
}
#endif