The following code illustrates how to get information about a file.
HMMIO hmmio1; MMIOINFO mmioinfo; USHORT usFlags = 0; USHORT rc; ... memset( &mmioinfo, '\0', sizeof(MMIOINFO) ); rc = mmioGetInfo( hmmio1, &mmioinfo, usFlags); if (rc) /* error */ else ...