Skip to content

Latest commit

 

History

History
58 lines (39 loc) · 1.59 KB

GetRawInputDeviceList.md

File metadata and controls

58 lines (39 loc) · 1.59 KB

Home

Function name : GetRawInputDeviceList

Group: Raw Input - Library: user32


Enumerates the raw input devices attached to the system.


Code examples:

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

Declaration:

UINT WINAPI GetRawInputDeviceList(
  __out_opt PRAWINPUTDEVICELIST pRawInputDeviceList,
  __inout PUINT puiNumDevices,
  __in UINT cbSize
);
  

FoxPro declaration:

DECLARE INTEGER GetRawInputDeviceList IN user32;
	STRING @pRawInputDeviceList,;
	LONG @puiNumDevices,;
	LONG cbSize  

Parameters:

pRawInputDeviceList [out, optional] An array of RAWINPUTDEVICELIST structures for the devices attached to the system. If NULL, the number of devices are returned in *puiNumDevices.

puiNumDevices [in, out] If pRawInputDeviceList is NULL, the function populates this variable with the number of devices attached to the system; otherwise, this variable specifies the number of RAWINPUTDEVICELIST structures that can be contained in the buffer to which pRawInputDeviceList points.

cbSize [in] The size of a RAWINPUTDEVICELIST structure, in bytes.


Return value:

If the function is successful, the return value is the number of devices stored in the buffer pointed to by pRawInputDeviceList.


Comments:

See also: GetRawInputDeviceInfo.