User32GetRegisteredRawInputDevices Method
Retrieves the information about the raw input devices for the current application.
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 GetRegisteredRawInputDevices(
RawInputDevice[] rawInputDevices,
ref uint refNumDevices,
uint size
)
<DllImportAttribute("User32.dll", ExactSpelling := true, SetLastError := true>]
Public Shared Function GetRegisteredRawInputDevices (
<OutAttribute> rawInputDevices As RawInputDevice(),
ByRef refNumDevices As UInteger,
size As UInteger
) As Integer
Dim rawInputDevices As RawInputDevice()
Dim refNumDevices As UInteger
Dim size As UInteger
Dim returnValue As Integer
returnValue = User32.GetRegisteredRawInputDevices(rawInputDevices,
refNumDevices, size)
public:
[DllImportAttribute(L"User32.dll", ExactSpelling = true, SetLastError = true)]
static int GetRegisteredRawInputDevices(
[InAttribute] [OutAttribute] array<RawInputDevice>^ rawInputDevices,
unsigned int% refNumDevices,
unsigned int size
)
[<DllImportAttribute("User32.dll", ExactSpelling = true, SetLastError = true)>]
static member GetRegisteredRawInputDevices :
rawInputDevices : RawInputDevice[] byref *
refNumDevices : uint32 byref *
size : uint32 -> int
No code example is currently available or this language may not be supported.
- rawInputDevices RawInputDevice
-
An array of RawInputDevice structures for the application.
- refNumDevices UInt32
-
The number of RawInputDevice structures in *pRawInputDevices.
- size UInt32
-
The size, in bytes, of a RawInputDevice structure.
Int32
If successful, the function returns a non-negative number that is the
number of
RawInputDevice structures written to the buffer.
If the
rawInputDevices buffer is too small or NULL,
the function sets the last error as
ERROR_INSUFFICIENT_BUFFER,
returns -1, and sets
refNumDevices to the required number of devices.
If the function fails for any other reason, it returns -1.