RIDI_PREPARSEDDATA option of GetRawInputDeviceInfo()

    General discussion

  • Hi

    I am writing a wrapper class for raw input and I don't understand the RIDI_PREPARSEDDATA option of the function GetRawInputDeviceInfo().
    I am testing with my keyboard as the device and I always seem to get back an empty buffer when using this option. (RIDI_DEVICENAME and RIDI_DEVICEINFO work's fine)

    I wasn't able to find good documentation for this option


    Wednesday, July 04, 2007 9:36 AM

All replies

  • Hi Shai,


    From MSDN: "RIDI_PREPARSEDDATA pData points to the previously parsed data." (If you have already read that, skip the reference) Reference:

    Have you checked the pData argument has assigned the valid value? Also, a simple sample code is always preferable.


    Best regards,



    Thursday, July 05, 2007 9:52 AM
  • For those just stumbling onto this now, RIDI_PREPARSEDDATA refers to the same preparsed data used by HidP_GetCapsHidD_GetPreparsedData, and other related functions.  You can use preparsed data to, for example, figure out the format of the raw input data for a game controller.
    Saturday, April 14, 2012 9:15 AM