User32GetRawInputBuffer Method

Performs a buffered read of the raw input data.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: 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
)

Parameters

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.

Return Value

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.

Remarks

See Also