read函数头文件 window_ReadConsole 函数

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值