The following code illustrates how to seek the media to the starting position.
USHORT usDeviceID; HWND hwndMyWindow; MCI_GENERIC_PARMS mciGenericParms; /* Generic message parms structure */ /* Assign hwndCallback the handle to the PM Window routine */ mciGenericParms.hwndCallback = hwndMyWindow; mciSendCommand( usDeviceID, /* Device ID */ MCI_REWIND, /* MCI rewind message */ MCI_NOTIFY, /* Flag for this message */ (PVOID) &mciGenericParms, /* Data structure */ 0); /* No user parm */