Device and table of contents structure for the currently loaded disc is returned in the MCI_TOC_REC data structure. From this point, the controlling program can select the CD audio object (audio track in this case) to play. If the size of the buffer passed in is too small to hold all the data returned, then the ulBufSize field of the MCI_TOC_PARMS structure contains the required buffer size, the error code MCIERR_INVALID_BUFFER is returned, and the buffer contains only as much of the GETTOC data as its size permits.

Note: Not all CD-ROM drives capable of playing digital-audio compact discs support this feature.