User32GetRawInputDeviceList(RawInputDeviceList, UInt32, UInt32) Method
Enumerates the raw input devices attached to the system.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("User32.dll", ExactSpelling = true, SetLastError = true)]
public static int GetRawInputDeviceList(
RawInputDeviceList[] rawInputDeviceList,
ref uint refNumDevices,
uint size
)
<DllImportAttribute("User32.dll", ExactSpelling := true, SetLastError := true>]
Public Shared Function GetRawInputDeviceList (
<OutAttribute> rawInputDeviceList As RawInputDeviceList(),
ByRef refNumDevices As UInteger,
size As UInteger
) As Integer
Dim rawInputDeviceList As RawInputDeviceList()
Dim refNumDevices As UInteger
Dim size As UInteger
Dim returnValue As Integer
returnValue = User32.GetRawInputDeviceList(rawInputDeviceList,
refNumDevices, size)
public:
[DllImportAttribute(L"User32.dll", ExactSpelling = true, SetLastError = true)]
static int GetRawInputDeviceList(
[InAttribute] [OutAttribute] array<RawInputDeviceList>^ rawInputDeviceList,
unsigned int% refNumDevices,
unsigned int size
)
[<DllImportAttribute("User32.dll", ExactSpelling = true, SetLastError = true)>]
static member GetRawInputDeviceList :
rawInputDeviceList : RawInputDeviceList[] byref *
refNumDevices : uint32 byref *
size : uint32 -> int
No code example is currently available or this language may not be supported.
- rawInputDeviceList RawInputDeviceList
-
An array of RawInputDeviceList structures for the devices attached to the system.
If NULL, the number of devices are returned in refNumDevices.
- refNumDevices UInt32
-
If rawInputDeviceList 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 rawInputDeviceList points.
If this value is less than the number of devices attached to the system,
the function returns the actual number of devices in this variable and fails with ERROR_INSUFFICIENT_BUFFER.
- size UInt32
-
The size of a RawInputDeviceList structure, in bytes.
Int32
If the function is successful, the return value is the number of devices stored in the buffer pointed to by
rawInputDeviceList.
On any other error, the function returns -1.