Cancels a pending internet stream request.
Namespace: Un4seen.Bass
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.18.0
Syntax
[DllImportAttribute("bass", CharSet = CharSet.Unicode)] public static bool BASS_StreamCancel( IntPtr user )
Parameters
- user
- Type: SystemIntPtr
The user instance data of the request(s) to cancel, given when BASS_StreamCreateURL(String, Int32, BASSFlag, DOWNLOADPROC, IntPtr) (or an add-on variant) was called. This cannot be NULL.
Return Value
Type: BooleanIf successful, is returned, else is returned. Use BASS_ErrorGetCode to get the error code.
Remarks
Platform-specific: On Android, when using Java, user must refer to the same object as in the BASS_StreamCreateURL call. Different objects with the same values will not be recognised as the same.
| ERROR CODE | Description |
|---|---|
| BASS_ERROR_HANDLE | user does not match any pending requests. |
See Also