The following code illustrates how to delete the first five seconds of a file.
USHORT usDeviceID; MCI_EDIT_PARMS mep; mep.hwndCallback = hwndMyWindow; mep.ulFrom = 0; mep.ulTo = 5000; /* Current time format is milliseconds */ /* Delete first five seconds of file */ mciSendCommand( usDeviceID, MCI_DELETE, MCI_NOTIFY | MCI_FROM | MCI_TO, &mep, 0 );