Function Reference


_WinAPI_GetRawInputBuffer

Performs a buffered read of the raw input data

#include <WinAPISys.au3>
_WinAPI_GetRawInputBuffer ( $pBuffer, $iLength )

Parameters

$pBuffer A pointer to the buffer to receive an array of $tagRAWINPUT structures containing the raw input data.
$iLength The size of the buffer, in bytes.

Return Value

Success: The number of $tagRAWINPUT structures written to the buffer.
Failure: 0 and sets the @error flag to non-zero, call _WinAPI_GetLastError() to get extended error information.

Remarks

To obtain the minimum required buffer size to call this function, use _WinAPI_GetRawInputBufferLength().

To ensure the _WinAPI_GetRawInputBuffer() function behaves properly on WOW64,
you must align the $tagRAWINPUT structure by 8 bytes.

Related

_WinAPI_GetRawInputBufferLength

See Also

Search GetRawInputBuffer in MSDN Library.