The following code illustrates how to obtain information about formats supported by currently installed I/O procedures.
MMFORMATINFO mmformatinfo;
LONG lNumFormats;
PCHAR pFormatInfoList;
LONG lFormatsRead;
PCHAR pFormatInfoList;
ULONG ulReserved = 0L;
ULONG ulFlags = 0L;
ULONG rc;
...
memset( &mmformatinfo, '\0', sizeof(MMFORMATINFO) );
mmformatInfo.ulMediaType |= MMIO_MEDIATYPE_AUDIO;
lNumFormats = 3;
rc = mmioGetFormats( &mmformatinfo,
lNumFormats,
pFormatInfoList,
&lFormatsRead,
ulReserved,
ulFlags);
if (rc)
/* error */
else
...