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 that will contain the joystick's capabilities.

cbjc

Size of the JOYCAPS structure, in bytes.

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