网站首页  词典首页

请输入您要查询的函数:

 

术语 getrawinputdata
释义 GetRawInputData
语法:
UINT GetRawInputData( HRAWINPUT hRawInput,
UINT uiCommand,
LPVOID pData,
PUINT pcbSize,
UINT cbSizeHeader
);
GetRawInputData功能
该GetRawInputData函数从指定的设备的原始投入。
参数
hRawInput
[in]句柄RAWINPUT结构。这来自于WM_INPUT lparam的。
uiCommand
[in]命令标志。此参数可以是下列值之一。
RID_INPUT
从结构的RAWINPUT的原始数据。
RID_HEADER
获取从RAWINPUT结构的头信息。
pData
[out]指向的数据,从RAWINPUT结构来。这取决于uiCommand价值。如果pData为NULL,则需要的缓冲区的大小返回* pcbSize。
pcbSize
[中,out]指向一个变量,指定大小,以字节的pData数据。
cbSizeHeader
[中]大小,以字节为RAWINPUTHEADER。
返回值
如果pData为NULL和函数成功,返回值为0。如果pData不为NULL和函数成功,返回值是进入pData复制的字节数。
如果出现错误,则返回值为(机组)-1。
备注
GetRawInputData获得一次原始的信息输入RAWINPUT结构。相反,GetRawInputBuffer得到了RAWINPUT结构的数组。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
XP的最低经营systemsWindows
参见
原始输入,GetRawInputBuffer,RAWINPUT,RAWINPUTHEADER
==英文原文==GetRawInputData Function
The GetRawInputData function gets the raw input from the specified device.
Syntax
UINT GetRawInputData( HRAWINPUT hRawInput,
UINT uiCommand,
LPVOID pData,
PUINT pcbSize,
UINT cbSizeHeader
);
Parameters
hRawInput
[in] Handle to the RAWINPUT structure. This comes from the lParam in WM_INPUT .
uiCommand
[in] Command flag. This parameter can be one of the following values.
RID_INPUT
Get the raw data from the RAWINPUT structure.
RID_HEADER
Get the header information from the RAWINPUT structure.
pData
[out] Pointer to the data that comes from the RAWINPUT structure. This depends on the value of uiCommand. If pData is NULL, the required size of the buffer is returned in *pcbSize.
pcbSize
[in, out] Pointer to a variable that specifies the size, in bytes, of the data in pData.
cbSizeHeader
[in] Size, in bytes, of RAWINPUTHEADER .
Return Value
If pData is NULL and the function is successful, the return value is 0. If pData is not NULL and the function is successful, the return value is the number of bytes copied into pData.
If there is an error, the return value is (UINT)-1.
Remarks
GetRawInputData gets the raw input one RAWINPUT structure at a time. In contrast, GetRawInputBuffer gets 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 , GetRawInputBuffer , RAWINPUT , RAWINPUTHEADER
==原始网址==http://msdn.microsoft.com/en-us/library/ms645596(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:26:39