The following code illustrates how to close a file.
HMMCF hmmcf1; ULONG ulFlags; ULONG rc; ... rc = mmioCFClose( hmmcf1, ulFlags); if (rc) /* error */ else ...