Copyright © 2005-2019 MultiMedia Soft

CddbGetServerName method

Previous pageReturn to chapter overviewNext page

Remarks

 

Obtains the friendly name of the given CDDB server.

 

The total number of available CDDB servers can be requested through the CddbRequestServersList method: the method will fail if called before before  being notified about servers availability through the CallbackForCdDrivesEvents delegate having the nEvent parameter set to EV_CDDB_SERVERS_AVAIL.

 

See the How to get CD album information from a CDDB server tutorial for further details.

 

 

Syntax

 

[Visual Basic]

Public Function CddbGetServerName (

nServerIndex as integer

) as String


 

[C#]

public string CddbGetServerName (

short nServerIndex

);


 

[C++]

public: string CddbGetServerName (

short nServerIndex

);


 

 

Parameter

Description

 

 

nServerIndex

Number representing the zero-based index of the CDDB server.

 

Return value

 

Value

Meaning

 

 

Empty string

The value of the nCdDriveIndex parameter was out of range. Use the value returned by the GetCdDrivesCount method in order to know how many CD drive are currently installed on the system.

Valid string

The string containing the CDDB server's friendly name