DWORD GetCDDBDiskID( HCDROM hCD, DWORD *pID, int numEntries );


Description: Computes the CDDB disk ID for the CD in the drive hCD and fills the array pID with data which can be used to create a CDDB query.

Parameters:
hCD Handle to the CD-ROM unit.
pID Array of DWORD to receive data for CDDB query.
numEntries The number of entries in array pID.

Return Value:

SS_COMP Success
SS_ERR An error occured. Use GetAspiLibError to retrieve the specific error code.

Notes: If there are n tracks on a CD, you will need n+3 entries in the array pID. pID is filled with data as follows:
    pID[0] = CDDBID
    pID[1] = number of tracks
    pID[2..(2+n)] = starting MSF offset for tracks
  
The last entry in the array pID[n+2] is the MSF address of the lead-out track. The function CDDBQuery in fact makes use of this function.

See also: GetAspiLibError, CDDBQuery