# Function Reference

# _WinAPI_GetRegisteredRawInputDevices

Retrieves the information about the raw input devices for the current application

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

## Parameters

$pBuffer | A pointer to the buffer to receive an array of $tagRAWINPUTDEVICE structures for the application. If this parameter is 0, the function returns the required buffer size, in bytes.
$iLength | The size of the buffer, in bytes.

## Return Value

Success: | the number of $tagRAWINPUTDEVICE structures written to the buffer.
Failure: | 0 and sets the @error flag to non-zero, @extended flag contains the last error code.

## See Also

Search GetRegisteredRawInputDevices in MSDN Library.