Windows Multimedia DDK (mddkqh.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
JDD_GETDEVCAPS
                                                 Contents Index Back
────────────────────────────────────────────────────────────────────────────
JDD_GETDEVCAPS
 
        This message is sent to get device capability information.
 
        LONG lParam1
            Specifies a far pointer to a JOYCAPS data structure. The
            driver fills this structure with the capabilities of the
            device.
 
        LONG lParam2
            Specifies the size of the structure pointed to by lParam1.
 
Return value
        Return MMSYSERR_NOERROR if successful. Otherwise, return
        JOYERR_PARMS.
 
Comments
        Compare the structure size value passed to lParam2 with the size
        of the JOYCAPS structure with which your driver was compiled. If
        lParam2 is larger than the expected structure size, you can fill
        the remaining data with zeros.
 
        If lParam2 is 0, return MMSYSERR_NOERROR without writing
        anything to the location specified by lParam1.
 
                                       -♦-