User32GetRawInputData Method
Retrieves the raw input from the specified 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")]
public static uint GetRawInputData(
IntPtr hRawInput,
GetRawInputDataCommand uiCommand,
IntPtr pData,
ref uint refSize,
uint cbSizeHeader
)
<DllImportAttribute("User32.dll">]
Public Shared Function GetRawInputData (
hRawInput As IntPtr,
uiCommand As GetRawInputDataCommand,
pData As IntPtr,
ByRef refSize As UInteger,
cbSizeHeader As UInteger
) As UInteger
Dim hRawInput As IntPtr
Dim uiCommand As GetRawInputDataCommand
Dim pData As IntPtr
Dim refSize As UInteger
Dim cbSizeHeader As UInteger
Dim returnValue As UInteger
returnValue = User32.GetRawInputData(hRawInput,
uiCommand, pData, refSize, cbSizeHeader)
public:
[DllImportAttribute(L"User32.dll")]
static unsigned int GetRawInputData(
IntPtr hRawInput,
GetRawInputDataCommand uiCommand,
IntPtr pData,
unsigned int% refSize,
unsigned int cbSizeHeader
)
[<DllImportAttribute("User32.dll")>]
static member GetRawInputData :
hRawInput : IntPtr *
uiCommand : GetRawInputDataCommand *
pData : IntPtr *
refSize : uint32 byref *
cbSizeHeader : uint32 -> uint32
No code example is currently available or this language may not be supported.
- hRawInput IntPtr
-
A handle to the RawInput structure.
This comes from the lParam in WM_Input.
- uiCommand GetRawInputDataCommand
-
The command flag.
- pData IntPtr
-
A pointer to the data that comes from the RawInput structure.
This depends on the value of uiCommand.
If pData is Zero, the required size of the buffer is
returned in refSize.
- refSize UInt32
-
The size, in bytes, of the data in pData.
- cbSizeHeader UInt32
-
The size, in bytes, of the RawInputHeader structure.
UInt32
If
pData is
Zero and the function is successful, the return value is 0.
If
pData is not
Zero and the function is successful, the return value is
the number of bytes copied into
pData.
If there is an error, the return value is
-1.