Skip to content

Latest commit

 

History

History
67 lines (45 loc) · 1.48 KB

File metadata and controls

67 lines (45 loc) · 1.48 KB

Home

Function name : GetRawInputDeviceInfo

Group: Raw Input - Library: user32


Retrieves information about the raw input device.


Code examples:

Enumerating raw input devices attached to the system (keyboard, mouse, human interface device)

Declaration:

UINT WINAPI GetRawInputDeviceInfo(
  __in_opt     HANDLE hDevice,
  __in         UINT uiCommand,
  __inout_opt  LPVOID pData,
  __inout      PUINT pcbSize
);  

FoxPro declaration:

DECLARE INTEGER GetRawInputDeviceInfo IN user32;
	INTEGER hDevice,;
	LONG uiCommand,;
	STRING @pData,;
	LONG @pcbSize
  

Parameters:

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.


Return value:

If successful, this function returns a non-negative number indicating the number of bytes copied to pData.


Comments:

If uiCommand is RIDI_DEVICEINFO, set the cbSize member of RID_DEVICE_INFO to sizeof(RID_DEVICE_INFO) before calling GetRawInputDeviceInfo.

See also: GetRawInputDeviceList.