Classifications of MCI Commands
MCI defines four command classifications: system, required, basic, and
extended. The following list describes these command classifications:
- System commands are handled by MCI directly, rather than by the driver.
- Required commands are handled by the driver. All MCI drivers must support the required commands
- Basic commands (or optional commands) are used by some devices. If a device supports a basic
command, it must support a defined set of flags for that command.
- Extended commands are specific to a device type or driver. Extended commands include commands,
like the put (MCI_PUT) and where (MCI_WHERE) commands for the digitalvideo and overlay device types, and extensions to existing commands (like the "stretch" flag of
the status (MCI_STATUS) command for the overlay device type).
While system and required commands are the minimum command set for any MCI
driver, basic and extended commands are not supported by all drivers. Your
application can always use system and required commands and their flags, but if it
needs to use a basic or extended command or flag, it should first query the driver
by using the capability
) command. The following sections summarize the specific commands in each
MCI processes the following system commands directly, rather than passing them
to MCI devices.
All MCI devices support the following required commands.
Devices must also support a standard set of command flags for the required
The following list summarizes the basic commands. The use of these commands by
an MCI device is optional.
||Loads data from a file.
||Stops playing. Playback or recording can be resumed at the current position.
||Starts transmitting output data.
||Starts recording input data.
||Resumes playing or recording on a paused device.
||Saves data to a disk file.
||Seeks forward or backward.
||Sets the operating state of the device.
||Obtains status information about the device. This is also a required command;
since some of its flags are not required, it is also listed here. (The optional
items support devices that use linear media with identifiable positions.)
If a driver supports a basic command, it must also support a standard set of
flags for the command.
Some MCI devices have additional commands, or they add flags to existing
commands. While some extended commands apply only to a specific device driver, most
of them apply to all drivers of a particular device type. For example, the
command set for the sequencer
device type extends the set
) command to add time formats that are needed by MIDI sequencers.
You should not assume that the device supports the extended commands or flags.
You can use the capability
) command to determine whether a specific feature is supported, and your
application should be ready to deal with "unsupported command" or "unsupported
function" return values.
The following extended commands are available with the listed device types.
||Displays a configuration dialog box.
||Prepares for playing or recording.
||Deletes a data segment from the media file.
||Sends custom information to a device.
||Disables video acquisition to the frame buffer.
||Defines the source, destination, and frame windows.
||Tells the device to select and realize its palette into a device context of
the displayed window.
||Sets audio parameters for video.
||Sets video parameters.
||Identifies a specified position with a signal.
||Starts the disc spinning or stops the disc from spinning.
||Steps the play one or more frames forward or reverse.
||Enables the frame buffer to acquire video data.
||Repaints the current frame into the device context.
||Obtains the rectangle specifying the source, destination, or frame area.
||Controls the display window.
- Software for developers
Software for Android Developers
- More information resources
Unix Manual Pages
- Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database