mmioCreateChunk(3mms) — Subroutines
Name
mmioCreateChunk --- Create a new chunk
Syntax
#include <mme/mme_api.h>
MMRESULT APIENTRY mmioCreateChunk(HMMIO hmmio,
LPMMCKINFO lpck,
UINT uFlags);
Arguments
HMMIO hmmio
Specifies the file handle for an open RIFF file.
LPMMCKINFO lpck
Specifies a pointer to an MMCKINFO data structure that was previously filled by the mmioDescend or the mmioCreateChunk function.
UINT uFlags
Specifies option flags for creating the new chunk.
Description
The mmioCreateChunk function creates a new chunk in a RIFF file. The mmioCreateChunk function cannot insert a chunk into the middle of a file. If a chunk is created anywhere but at the end of a file, the mmioCreateChunk function overwrites existing information in the file.
Extensions
None.
Return Values
Returns MMSYSERR_NOERROR if the function is successful; otherwise, it returns one of the following error codes:
MMIOERR_CANNOTWRITE@T{ The contents of the buffer could not be written to disk. T} MMIOERR_CANNOTSEEK@T{ There was an error while seeking to the end. T}
See Also
mmioAscend(3mms), mmioDescend(3mms), mmioFOURCC(3mms), mmioStringToFOURCC(3mms)