The following code illustrates how to advance the I/O buffer.
HMMIO hmmio1; MMIOINFO mmioinfo; USHORT usFlags; USHORT rc; ... rc = mmioAdvance(hmmio1, &mmioinfo, usFlags); if (rc) /* error */ else ...