This function copies the compound-file table of contents (CTOC) and the compound-file resource group (CGRP) chunks from an open RIFF compound file to another RIFF compound file. The newly written compound-file resource group (CGRP) chunk will be compacted; that is, it will have no deleted elements.

#define INCL_MMIOOS2
#include <os2.h>

HMMCF    hmmcfSource;      /*  RIFF file handle. */
PSZ      pszDestFileName;  /*  Pointer to destination file name. */
ULONG    ulFlags;          /*  Reserved. */
ULONG    rc;               /*  Return codes. */

rc = mmioCFCopy(hmmcfSource, pszDestFileName,
       ulFlags);


[Back] [Next]