The MCI_SEEK command changes the current position in the content as quickly as possible. Video and audio output are disabled during the seek. After the seek is complete, the device is stopped. CD audio, digital-video, MIDI sequencer, VCR, videodisc, and waveform-audio devices recognize this command.
MCIERROR mciSendCommand(MCIDEVICEID wDeviceID, MCI_SEEK,
DWORD dwFlags, (DWORD) (LPMCI_SEEK_PARMS) lpSeek);
Returns zero if successful or an error otherwise.
If a data sample size for a device is larger than 1 byte (such as with waveform-audio stereo data), this command moves to the beginning of the nearest sample when a specified position does not coincide with the start of a sample.
The following additional flags apply to all devices supporting MCI_SEEK:
The following additional flags are used with the vcr device type:
For VCR devices, the lpSeek parameter points to an MCI_VCR_SEEK_PARMS structure.
The following additional flag is used with the videodisc device type:
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in mmsystem.h.
MCI Overview, MCI Commands, MCI_SEEK_PARMS, MCI_SET, MCI_VCR_SEEK_PARMS