CDDBQUERY and CDDBQUERYITEM


  typedef struct
  {
    char categ[12];        // cddb category
    char cddbId[9];        // cddb disk ID
    BOOL bExact;           // was it an exact match?
    char artist[81];       // artist name
    char title[81];        // album title
  } CDDBQUERYITEM, FAR *LPCDDBQUERYITEM;

  typedef struct 
  {
    int num;               // length of array q;
    LPCDDBQUERYITEM q;     // pointer to a block of QUERYITEM structures
  } CDDBQUERY, FAR *LPCDDBQUERY;

  
Description: The CDDBQUERY structure is used by the CDDBQuery function. Prior to calling the function, an array of CDDBQUERYITEM structures should be allocated and that address stored in the "q" parameter. "num" should be set to the number of structures allocated. After calling CDDBQuery, "num" will be set to the number of CDDBQUERYITEM structures actually filled in by the function.

The CDDBQUERYITEM structures can then be used in calls to CDDBGetdiskInfo to retrieve the CDDB entry.