网站首页  计算机词典

请输入您要查询的字词:

 

字词 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
随便看

 

计算机英汉双解词典包含34412条计算机术语英汉翻译词条,基本涵盖了全部常用计算机术语的翻译及用法,是计算机学习及翻译工作的有利工具。

 

Copyright © 2021-2025 foosec.com All Rights Reserved
更新时间:2026/10/23 23:39:30