BASS.NET API for the Un4seen BASS Audio LibraryBassBASS_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.12.0
Syntax

[DllImportAttribute("bass.dll", CharSet = CharSet.Unicode)]
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

Options:

BASS_CONFIG_NET_AGENT"User-Agent" header.
BASS_CONFIG_NET_PROXYProxy server settings.
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:
VB
Dim userAgent As String = [String].Empty
Dim p As IntPtr = Bass.BASS_GetConfigPtr(BASSConfig.BASS_CONFIG_NET_AGENT)
If p <> IntPtr.Zero Then
  userAgent = Utils.IntPtrAsStringAnsi(p)
End If
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