CDDBSITELIST and CDDBSITE
typedef struct
{
char szServer[81];
BOOL bHTTP;
int iPort;
char szCGI[81];
char szNorth[16];
char szSouth[16];
char szLocation[81];
} CDDBSITE, FAR *LPCDDBSITE;
typedef struct
{
int num;
LPCDDBSITE s;
} CDDBSITELIST, FAR *LPCDDBSITELIST;
Description: The CDDBSITELIST structure is used by the CDDBGetServerList function. Prior to calling this function, an array of CDDBSITE structures should be allocated and stored in the "s" member. "num" should be set to the number of structures allocated. After calling CDDBGetServerList, "num" will be set to the number of CDDBSITE sturctures containing valid data.
Example:
void ListSitesCommand( void )
{
CDDBSITELIST sitelist;
int i;
sitelist.num = 8;
sitelist.s = (LPCDDBSITE)GlobalAlloc( GPTR, sizeof(CDDBSITE) * 8 );
CDDBGetServerList( &sitelist );
printf( "Listing \"sites\" command:\n" );
for( i = 0; i < num; i++ )
printf( "Site %d: %s:%d %s\n", i, sitelist.s[i].szServer,
sitelist.s[i].iPort, sitelist.s[i].szCGI );
GlobalFree( (HGLOBAL)sitelist.s );
}