术语 | getregisteredrawinputdevices |
释义 | GetRegisteredRawInputDevices 语法: UINT GetRegisteredRawInputDevices( PRAWINPUTDEVICE pRawInputDevices, PUINT puiNumDevices, UINT cbSize ); GetRegisteredRawInputDevices功能 该GetRegisteredRawInputDevices函数获取对当前应用程序原始输入设备的信息。 参数 pRawInputDevices [out]指向一个RAWINPUTDEVICE结构的应用程序的数组。 puiNumDevices [在,出]的RAWINPUTDEVICE结构的数目* pRawInputDevices。 cbSize [中]大小,以字节为单位,一个RAWINPUTDEVICE结构。 返回值 如果成功,该函数返回一个非负数这是写入到缓冲区RAWINPUTDEVICE物的数目。 如果pRawInputDevices缓冲区太小或NULL,该函数设置为ERROR_INSUFFICIENT_BUFFER,返回-1的最后一个错误,并设置puiNumDevices到所需数量的设备。如果该函数的任何其他原因而失败,则返回-1。有关详细信息,调用GetLastError。 备注 接收设备原始输入,应用程序必须注册使用RegisterRawInputDevices它。 功能信息 最低DLL版本 user32.dll 在Winuser.h中HeaderDeclared,头文件:winuser.h import libraryUser32.lib XP的最低经营systemsWindows 参见 原始输入,RegisterRawInputDevices,RAWINPUTDEVICE ==英文原文==GetRegisteredRawInputDevices Function The GetRegisteredRawInputDevices function gets the information about the raw input devices for the current application. Syntax UINT GetRegisteredRawInputDevices( PRAWINPUTDEVICE pRawInputDevices, PUINT puiNumDevices, UINT cbSize ); Parameters pRawInputDevices [out] Pointer to an array of RAWINPUTDEVICE structures for the application. puiNumDevices [in, out] Number of RAWINPUTDEVICE structures in * pRawInputDevices. cbSize [in] Size, in bytes, of a RAWINPUTDEVICE structure. Return Value If successful, the function returns a non-negative number that is the number of RAWINPUTDEVICE structures written to the buffer. If the pRawInputDevices buffer is too small or NULL, the function sets the last error as ERROR_INSUFFICIENT_BUFFER, returns -1, and sets puiNumDevices to the required number of devices. If the function fails for any other reason, it returns -1. For more details, call GetLastError . Remarks To receive raw input from a device, an application must register it by using RegisterRawInputDevices . Function Information Minimum DLL Versionuser32.dll HeaderDeclared in Winuser.h, include Windows.h Import libraryUser32.lib Minimum operating systemsWindows XP See Also Raw Input , RegisterRawInputDevices , RAWINPUTDEVICE ==原始网址==http://msdn.microsoft.com/en-us/library/ms645599(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。