网站首页  词典首页

请输入您要查询的函数:

 

术语 getrawinputdeviceinfo
释义 GetRawInputDeviceInfo
语法:
UINT GetRawInputDeviceInfo( HANDLE hDevice,
UINT uiCommand,
LPVOID pData,
PUINT pcbSize
);
GetRawInputDeviceInfo功能
该GetRawInputDeviceInfo功能得到有关原始输入设备的信息。
参数
hDevice
[in] Handle to the raw input device.这来自对WM_INPUT消息lparam的,从RAWINPUTHEADER。hDevice,或从GetRawInputDeviceList。它也可以是NULL如果应用程序中插入,例如,通过输入数据使用SendInput。
uiCommand
[in]指定哪些数据将在pData返回。它可以是下列值之一。
RIDI_PREPARSEDDATA
到以前解析的数据pData点。
RIDI_DEVICENAME
一个字符串,其中包含设备名pData点。
为此uiCommand只,在pcbSize值是字符数(不是字节数)。
RIDI_DEVICEINFO
一个RID_DEVICE_INFO结构pData点。
pData
[中,out]指向的缓冲区包含由uiCommand规定的信息。如果uiCommand是RIDI_DEVICEINFO,设置RID_DEVICE_INFO.cbSize为sizeof之前调用GetRawInputDeviceInfo(RID_DEVICE_INFO)。
pcbSize
[中,out]指向一个变量,它包含大小,以字节为单位,在pData数据。
返回值
如果成功,此函数返回一个非负数表明复制到pData的字节数。
如果pData不够大,无法对数据,函数返回-1。如果pData为NULL,则函数返回值为零。在这两种情况下,pcbSize设置为最小大小所需pData缓冲区。
调用GetLastError,以查明任何其他错误。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
XP的最低经营systemsWindows
UnicodeImplemented为ANSI和Unicode版本。
参见
原始输入,RAWINPUTHEADER,RID_DEVICE_INFO,WM_INPUT
==英文原文==GetRawInputDeviceInfo Function
The GetRawInputDeviceInfo function gets information about the raw input device.
Syntax
UINT GetRawInputDeviceInfo( HANDLE hDevice,
UINT uiCommand,
LPVOID pData,
PUINT pcbSize
);
Parameters
hDevice
[in] Handle to the raw input device. This comes from the lParam of the WM_INPUT message, from RAWINPUTHEADER .hDevice, or from GetRawInputDeviceList . It can also be NULL if an application inserts input data, for example, by using SendInput .
uiCommand
[in] Specifies what data will be returned in pData. It can be one of the following values.
RIDI_PREPARSEDDATA
pData points to the previously parsed data.
RIDI_DEVICENAME
pData points to a string that contains the device name.
For this uiCommand only, the value in pcbSize is the character count (not the byte count).
RIDI_DEVICEINFO
pData points to an RID_DEVICE_INFO structure.
pData
[in, out] Pointer to a buffer that contains the information specified by uiCommand. If uiCommand is RIDI_DEVICEINFO, set RID_DEVICE_INFO.cbSize to sizeof(RID_DEVICE_INFO) before calling GetRawInputDeviceInfo.
pcbSize
[in, out] Pointer to a variable that contains the size, in bytes, of the data in pData.
Return Value
If successful, this function returns a non-negative number indicating the number of bytes copied to pData.
If pData is not large enough for the data, the function returns -1. If pData is NULL, the function returns a value of zero. In both of these cases, pcbSize is set to the minimum size required for the pData buffer.
Call GetLastError to identify any other errors.
Function Information
Minimum DLL Versionuser32.dll
HeaderDeclared in Winuser.h, include Windows.h
Import libraryUser32.lib
Minimum operating systemsWindows XP
UnicodeImplemented as ANSI and Unicode versions.
See Also
Raw Input , RAWINPUTHEADER , RID_DEVICE_INFO , WM_INPUT
==原始网址==http://msdn.microsoft.com/en-us/library/ms645597(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:21:39