WORD joyGetDevCaps(wId, lpCaps, wSize)
This function queries a joystick device to determine its capabilities.
WORD wId
Identifies the device to be queried. This value is either JOYSTICKID1 or JOYSTICKID2.
LPJOYCAPS lpCaps
Specifies a far pointer to a JOYCAPS data structure. This structure is filled with information about the capabilities of the joystick device.
WORD wSize
Specifies the size of the JOYCAPS structure.
Returns JOYERR_NOERROR if successful. Otherwise, returns one of the following error codes:
MMSYSERR_NODRIVER
The joystick driver is not present.
JOYERR_PARMS
The specified joystick device ID wId is invalid.
Use joyGetNumDevs to determine the number of joystick devices supported by the driver.
joyGetNumDevs