This function adds an element to the compound-file resource-group (CGRP) chunk of an open RIFF compound file.

#define INCL_MMIOOS2
#include <os2.h>

HMMCF     hmmcf;           /*  RIFF file handle. */
PSZ       pszElementName;  /*  Pointer to the name of the element. */
FOURCC    fccType;         /*  Four-character code. */
PCHAR     pchBuffer;       /*  Buffer pointer. */
LONG      cchBytes;        /*  Length of buffer. */
ULONG     ulFlags;         /*  Flags. */
ULONG     rc;              /*  Return codes. */

rc = mmioCFAddElement(hmmcf, pszElementName,
       fccType, pchBuffer, cchBytes, ulFlags);


[Back] [Next]