User32GetRawInputDeviceInfo(IntPtr, GetRawInputDeviceInfoCommand, IntPtr, UInt32) Method
Retrieves information about the raw input device.
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", SetLastError = true)]
public static uint GetRawInputDeviceInfo(
IntPtr hDevice,
GetRawInputDeviceInfoCommand uiCommand,
IntPtr pData,
ref uint refSize
)
<DllImportAttribute("User32.dll", SetLastError := true>]
Public Shared Function GetRawInputDeviceInfo (
hDevice As IntPtr,
uiCommand As GetRawInputDeviceInfoCommand,
pData As IntPtr,
ByRef refSize As UInteger
) As UInteger
Dim hDevice As IntPtr
Dim uiCommand As GetRawInputDeviceInfoCommand
Dim pData As IntPtr
Dim refSize As UInteger
Dim returnValue As UInteger
returnValue = User32.GetRawInputDeviceInfo(hDevice,
uiCommand, pData, refSize)
public:
[DllImportAttribute(L"User32.dll", SetLastError = true)]
static unsigned int GetRawInputDeviceInfo(
IntPtr hDevice,
GetRawInputDeviceInfoCommand uiCommand,
IntPtr pData,
unsigned int% refSize
)
[<DllImportAttribute("User32.dll", SetLastError = true)>]
static member GetRawInputDeviceInfo :
hDevice : IntPtr *
uiCommand : GetRawInputDeviceInfoCommand *
pData : IntPtr *
refSize : uint32 byref -> uint32
No code example is currently available or this language may not be supported.
- hDevice IntPtr
-
A handle to the raw input device.
This comes from the lParam in WM_Input,
from the Device member of RawInputHeader structure,
or from GetRawInputDeviceList(RawInputDeviceList, UInt32, UInt32) function.
It can also be Zero if an application inserts input data,
for example, by using SendInput(Int32, Input, Int32) fcuntion.
- uiCommand GetRawInputDeviceInfoCommand
-
Specifies what data will be returned in pData.
- pData IntPtr
-
A pointer to a buffer that contains the information specified by uiCommand.
- refSize UInt32
-
The size, in bytes, of the data in pData.
UInt32
If successful, this function returns a non-negative number indicating the number of bytes copied to
pData.
If
pData is not large enough for the data, the function returns
-1.
If
pData is
Zero, the function returns
0.
In both of these cases,
refSize is set to the minimum size required for the
pData buffer.
Call
GetLastWin32Error to identify any other errors.