joyGetDevCaps

MMRESULT joyGetDevCaps(UINT uJoyID, LPJOYCAPS pjc,

UINT cbjc);

Queries a joystick to determine its capabilities.

·Returns JOYERR_NOERROR if successful, or one of the following error values otherwise:

MMSYSERR_INVALPARAM MMSYSERR_NODRIVER

uJoyID

Identifier of the joystick, either JOYSTICKID1 or JOYSTICKID2, to be queried.

pjc

Address for a JOYCAPS structure to contain the capabilities of the joystick.

cbjc

Size of the JOYCAPS structure, in bytes.

You can use the joyGetNumDevs function to determine the number of joystick devices supported by the driver.