Using MCI Command Messages
[The feature associated with this page, MCI, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of MCI, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]
This section contains examples demonstrating how to perform the following tasks:
- Closing All MCI Devices Used by an Application
- Opening a Simple Device by Using the Device Name
- Opening a Simple Device by Using the Device-Type Constant
- Opening a Compound Device by Using the Filename
- Verifying the Output Device
- Handling MCI Errors
- Playing a Waveform-Audio File
- Playing a MIDI File
- Playing a Compact Disc Track
- Playing a Movie
- Changing the Current Position
- Setting the Time Format
- Changing Sequencer Synchronization
- Using the MCI_NOTIFY Flag
- Retrieving Information About a Movie
- Retrieving Compact Disc Track-Specific Information
- Recording with a Waveform-Audio Device