网站首页  词典首页

请输入您要查询的函数:

 

术语 getrawinputbuffer
释义 GetRawInputBuffer
语法:
UINT GetRawInputBuffer( PRAWINPUT pData,
PUINT pcbSize,
UINT cbSizeHeader
);
GetRawInputBuffer功能
该GetRawInputBuffer功能做了缓冲的原始输入数据读取。
参数
pData
[out]指向一个RAWINPUT结构的缓冲区,包含原始输入数据。如果为NULL,最低所需的缓冲区,以字节为单位,在返回* pcbSize。
pcbSize
[中,out]指向一个变量,指定大小,以字节为单位RAWINPUT结构。
cbSizeHeader
[中]大小,以字节为RAWINPUTHEADER。
返回值
如果pData为NULL和函数成功,返回值是零。如果pData不为NULL和函数成功,返回值是写入pData RAWINPUT物的数目。
如果发生错误,则返回值为(机组)-1。调用GetLastError函数的错误代码。
备注
使用GetRawInputBuffer,原始输入数据缓冲的RAWINPUT结构的数组。对于一个缓冲的阅读,使用GetMessage函数来读取原始输入数据。
该NEXTRAWINPUTBLOCK宏允许应用程序遍历一个RAWINPUT结构的数组。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
XP的最低经营systemsWindows
参见
原始输入,GetMessage,RAWINPUT,RAWINPUTHEADER,NEXTRAWINPUTBLOCK
==英文原文==GetRawInputBuffer Function
The GetRawInputBuffer function does a buffered read of the raw input data.
Syntax
UINT GetRawInputBuffer( PRAWINPUT pData,
PUINT pcbSize,
UINT cbSizeHeader
);
Parameters
pData
[out] Pointer to a buffer of RAWINPUT structures that contain the raw input data. If NULL, the minimum required buffer, in bytes, is returned in *pcbSize.
pcbSize
[in, out] Pointer to a variable that specifies the size, in bytes, of a RAWINPUT structure.
cbSizeHeader
[in] Size, in bytes, of RAWINPUTHEADER .
Return Value
If pData is NULL and the function is successful, the return value is zero. If pData is not NULL and the function is successful, the return value is the number of RAWINPUT structures written to pData.
If an error occurs, the return value is (UINT)-1. Call GetLastError for the error code.
Remarks
Using GetRawInputBuffer, the raw input data is buffered in the array of RAWINPUT structures. For an unbuffered read, use the GetMessage function to read in the raw input data.
The NEXTRAWINPUTBLOCK macro allows an application to traverse an array of RAWINPUT structures.
Function Information
Minimum DLL Versionuser32.dll
HeaderDeclared in Winuser.h, include Windows.h
Import libraryUser32.lib
Minimum operating systemsWindows XP
See Also
Raw Input , GetMessage , RAWINPUT , RAWINPUTHEADER , NEXTRAWINPUTBLOCK
==原始网址==http://msdn.microsoft.com/en-us/library/ms645595(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:18:23