The following code illustrates how to copy from a file.
HMMCF hmmcfSource; PSZ pszDestFileName; ULONG ulFlags; ULONG rc; ... rc = mmioCFCopy( hmmcfSource, pszDestFileName, ulFlags); if (rc) /* error */ else ...