ReadConsole 函数ReadConsole function
07/12/2018
本文内容
从控制台输入缓冲区读取字符输入并将其从缓冲区中删除。Reads character input from the console input buffer and removes it from the buffer.
语法Syntax
BOOL WINAPI ReadConsole(
_In_ HANDLE hConsoleInput,
_Out_ LPVOID lpBuffer,
_In_ DWORD nNumberOfCharsToRead,
_Out_ LPDWORD lpNumberOfCharsRead,
_In_opt_ LPVOID pInputControl
);
参数Parameters
hConsoleInput [中]hConsoleInput [in]
控制台输入缓冲区的句柄。A handle to the console input buffer. 句柄必须具有 通用的 _ 读取 访问权限。The handle must have the GENERIC_READ access right.
lpBuffer [弄]lpBuffer [out]
指向缓冲区的指针,该缓冲区接收从控制台输入缓冲区中读取的数据。A pointer to a buffer that receives the data read from the console input buffer.
nNumberOfCharsToRead [中]nNumberOfCharsToRead [in]
要读取的字符数。The number of characters to be read. LpBuffer 参数指向的缓冲区大小应至少为 nNumberOfCharsToRead