The following code illustrates how to determine the format name associated with the IOProc.
MMFORMATINFO mmFormatInfo;
PSZ pszFormatName;
USHORT lBytesRead;
ULONG ulReserved = 0L;
ULONG ulFlags = 0L;
ULONG rc;
...
memset( &mmFormatInfo, '\0', sizeof(MMFORMATINFO) );
mmFormatInfo.lNameLength = 40L;
mmFormatInfo.fccIOProc = FOURCC_BND;
mmFormatInfo.ulStructLen=sizeof(MMFORMATINFO);
rc = mmioGetFormatName( &mmformatinfo,
pszFormatName,
&lBytesRead,
ulReserved,
ulFlags);
if (rc)
/* error */
else
...