Retrieves the information about the raw input devices for the current application
#include <WinAPISys.au3>
_WinAPI_GetRegisteredRawInputDevices ( $pBuffer, $iLength )
| $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. |
| 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. |
Search GetRegisteredRawInputDevices in MSDN Library.