Tao.Platform.Windows SDK Documentation

Winmm.joyReleaseCapture Method 

The joyReleaseCapture function releases the specified captured joystick.

[Visual Basic]
Public Shared Function joyReleaseCapture( _
   ByVal uJoyID As Integer _
) As Integer
[C#]
public static int joyReleaseCapture(
   int uJoyID
);

Parameters

uJoyID
Identifier of the joystick. Valid values for uJoyID range from zero (JOYSTICKID1) to 15, except for Windows NT 4.0. For Windows NT 4.0, valid values are limited to JOYSTICKID1 and JOYSTICKID2.

Return Value

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

MMSYSERR_NODRIVER - The joystick driver is not present. MMSYSERR_INVALPARAM - Windows 95/98/Me: The specified joystick device identifier uJoyID is invalid. Windows NT/2000/XP: The specified joystick identifier is valid, but the joystick has not been captured. JOYERR_PARMS - Windows NT/2000/XP: The specified joystick device identifier uJoyID is invalid.

Remarks

Windows 95/98/Me: This method returns JOYERR_NOERROR when passed a valid joystick identifier that has not been captured.

See Also

Winmm Class | Tao.Platform.Windows Namespace