User32GetRawInputBuffer Method
Performs a buffered read of the raw input data.
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 GetRawInputBuffer(
IntPtr data,
ref uint refSize,
uint sizeHeader
)
<DllImportAttribute("User32.dll", ExactSpelling := true, SetLastError := true>]
Public Shared Function GetRawInputBuffer (
data As IntPtr,
ByRef refSize As UInteger,
sizeHeader As UInteger
) As Integer
Dim data As IntPtr
Dim refSize As UInteger
Dim sizeHeader As UInteger
Dim returnValue As Integer
returnValue = User32.GetRawInputBuffer(data,
refSize, sizeHeader)
public:
[DllImportAttribute(L"User32.dll", ExactSpelling = true, SetLastError = true)]
static int GetRawInputBuffer(
IntPtr data,
unsigned int% refSize,
unsigned int sizeHeader
)
[<DllImportAttribute("User32.dll", ExactSpelling = true, SetLastError = true)>]
static member GetRawInputBuffer :
data : IntPtr *
refSize : uint32 byref *
sizeHeader : uint32 -> int
No code example is currently available or this language may not be supported.
- data IntPtr
-
A pointer to a buffer of RawInput structures that contain the raw input data.
If NULL, the minimum required buffer, in bytes, is returned in refSize.
- refSize UInt32
-
The size, in bytes, of a RawInput structure.
- sizeHeader UInt32
-
The size, in bytes, of the RawInputHeader structure.
Int32
If
data is NULL and the function is successful, the return value is zero.
If
data is not NULL and the function is successful,
the return value is the number of
RawInput structures written to
data.
If an error occurs, the return value is -1.