术语 | registerrawinputdevices |
释义 | RegisterRawInputDevices 语法: BOOL RegisterRawInputDevices( PCRAWINPUTDEVICE pRawInputDevices, UINT uiNumDevices, UINT cbSize ); RegisterRawInputDevices功能 该RegisterRawInputDevices函数注册的设备,供应的原始输入数据。 参数 pRawInputDevices [in]指向一个RAWINPUTDEVICE结构的数组代表的设备的供应原料投入。 uiNumDevices [in]的RAWINPUTDEVICE结构的数目指向pRawInputDevices。 cbSize [中]大小,以字节为单位,一个RAWINPUTDEVICE结构。 返回值 TRUE,如果函数成功,否则,假。如果函数失败更多的信息,调用GetLastError。 备注 要接收WM_INPUT消息,应用程序必须先注册的原始输入设备使用RegisterRawInputDevices。默认情况下,应用程序不接收原始的输入。 如果RAWINPUTDEVICE结构对RIDEV_REMOVE标志设置和hwndTarget参数没有设置为NULL,然后参数验证将失败。 功能信息 最低DLL版本 user32.dll 在Winuser.h中HeaderDeclared,头文件:winuser.h import libraryUser32.lib XP的最低经营systemsWindows 参见 原始输入,RAWINPUTDEVICE,WM_INPUT ==英文原文==RegisterRawInputDevices Function The RegisterRawInputDevices function registers the devices that supply the raw input data. Syntax BOOL RegisterRawInputDevices( PCRAWINPUTDEVICE pRawInputDevices, UINT uiNumDevices, UINT cbSize ); Parameters pRawInputDevices [in] Pointer to an array of RAWINPUTDEVICE structures that represent the devices that supply the raw input. uiNumDevices [in] Number of RAWINPUTDEVICE structures pointed to by pRawInputDevices. cbSize [in] Size, in bytes, of a RAWINPUTDEVICE structure. Return Value TRUE if the function succeeds; otherwise, FALSE. If the function fails, call GetLastError for more information. Remarks To receive WM_INPUT messages, an application must first register the raw input devices using RegisterRawInputDevices. By default, an application does not receive raw input. If a RAWINPUTDEVICE structure has the RIDEV_REMOVE flag set and the hwndTarget parameter is not set to NULL, then parameter validation will fail. Function Information Minimum DLL Versionuser32.dll HeaderDeclared in Winuser.h, include Windows.h Import libraryUser32.lib Minimum operating systemsWindows XP See Also Raw Input , RAWINPUTDEVICE , WM_INPUT ==原始网址==http://msdn.microsoft.com/en-us/library/ms645600(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。