Windows desktop applications
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

joyReleaseCapture function

The joyReleaseCapture function releases the specified captured joystick.

Syntax


MMRESULT joyReleaseCapture(
   UINT uJoyID
);

Parameters

uJoyID

Identifier of the joystick to be released. Valid values for uJoyID range from zero (JOYSTICKID1) to 15.

Return value

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

Return codeDescription
MMSYSERR_NODRIVER

The joystick driver is not present.

MMSYSERR_INVALIDPARAM

The specified joystick device identifier uJoyID is invalid.

JOYERR_PARMS

The specified joystick device identifier uJoyID is invalid.

 

Remarks

This method returns JOYERR_NOERROR when passed a valid joystick identifier that has not been captured.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Mmsystem.h (include Windows.h)

Library

Winmm.lib

DLL

Winmm.dll

See also

Joysticks
Multimedia Joystick Functions

 

 

Show:
© 2016 Microsoft