The following code illustrates how to seek to the beginning of the playable media for a device. Note that this might not be zero for all device types.
USHORT usDeviceID;
MCI_SEEK_PARMS mseekp;
/* Seek the device to the beginning */
/* Assign hwndCallback the handle to the PM Window */
mseekp.hwndCallback = hwndMyWindow;
mciSendCommand( usDeviceID, /* Device ID */
MCI_SEEK, /* MCI seek message */
MCI_NOTIFY | MCI_TO_START, /* Flags for this message */
(PVOID) &mseekp, /* Data structure */
0); /* No user parm */