The following code illustrates how to copy the first five seconds of a file and place it in the clipboard.
USHORT usDeviceID; MCI_EDIT_PARMS mep; mep.hwndCallback = hwndMyWindow; mep.ulFrom = 0; mep.ulTo = 5000; mciSendCommand( usDeviceID, MCI_COPY MCI_NOTIFY | MCI_FROM | MCI_TO, &mep, 0 );