Group: Raw Input - Library: user32
Enumerating raw input devices attached to the system (keyboard, mouse, human interface device)
UINT WINAPI GetRawInputDeviceInfo(
__in_opt HANDLE hDevice,
__in UINT uiCommand,
__inout_opt LPVOID pData,
__inout PUINT pcbSize
); DECLARE INTEGER GetRawInputDeviceInfo IN user32;
INTEGER hDevice,;
LONG uiCommand,;
STRING @pData,;
LONG @pcbSize
hDevice [in, optional] A handle to the raw input device.
uiCommand [in] Specifies what data will be returned in pData.
pData [in, out, optional] A pointer to a buffer that contains the information specified by uiCommand.
pcbSize [in, out] Type: PUINT
The size, in bytes, of the data in pData.
If successful, this function returns a non-negative number indicating the number of bytes copied to pData.
If uiCommand is RIDI_DEVICEINFO, set the cbSize member of RID_DEVICE_INFO to sizeof(RID_DEVICE_INFO) before calling GetRawInputDeviceInfo.
See also: GetRawInputDeviceList.
Home