BASS.NET API for the Un4seen BASS Audio Library

BassBASS_GetConfigPtr Method

BASS.NET API for the Un4seen BASS Audio Library
Retrieves the value of a pointer config option.

Namespace:  Un4seen.Bass
Assembly:  Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax

[DllImportAttribute("bass")]
public static IntPtr BASS_GetConfigPtr(
	BASSConfig option
)

Parameters

option
Type: Un4seen.BassBASSConfig
The option to get the value of...(see BASSConfig).

Return Value

Type: IntPtr
If successful, the value of the requested config option is returned (as an IntPtr). Use BASS_ErrorGetCode to get the error code.
Remarks

Other config options may be supported by Add-Ons, see the documentation.

ERROR CODEDescription
BASS_ERROR_ILLPARAMoption is invalid.

Examples

Getting the current user agent header:
string userAgent = String.Empty;
IntPtr p = Bass.BASS_GetConfigPtr(BASSConfig.BASS_CONFIG_NET_AGENT);
if (p != IntPtr.Zero)
{
  userAgent = Utils.IntPtrAsStringAnsi(p);
}
See Also

Reference