joyGetDevCaps

The joyGetDevCaps function queries a joystick to determine its capabilities.

MMRESULT joyGetDevCaps(
  UINT uJoyID,    
  LPJOYCAPS pjc,  
  UINT cbjc       
);
 

Parameters

uJoyID
Identifier of the joystick (JOYSTICKID1 or JOYSTICKID2) to be queried.
pjc
Address of a JOYCAPS structure to contain the capabilities of the joystick.
cbjc
Size, in bytes, of the JOYCAPS structure.

Return Values

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

Remarks

Use the joyGetNumDevs function to determine the number of joystick devices supported by the driver.

Value Description
MMSYSERR_NODRIVER The joystick driver is not present.
MMSYSERR_INVALPARAM An invalid parameter was passed.

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in mmsystem.h.
  Import Library: Use winmm.lib.
  Unicode: Implemented as Unicode and ANSI versions on Windows NT.

See Also

Joysticks Overview, Multimedia Joystick Functions, JOYCAPS, joyGetNumDevs