MCI System Commands

The following commands are interpreted directly by MCI. The remaining command tables list the commands interpreted by the devices.

Command Description

break item Specifies a key to abort a wait command. One of the following items modifies break:
on virtual_key Specifies the virtual_key code of the that aborts the wait. When the key is pressed, the device returns control to the application. If possible, the command continues execution. Substitute a Windows virtual key code for virtual_key.
off Disables the current break key.
sound The device name field of this command specifies a sound from the [sounds] section of WIN.INI to play. If it is not found, MCI uses the SystemDefault sound.
sysinfo item Obtains MCI system information. One of the following items modifies sysinfo:
  installname Returns the name listed in the SYSTEM.INI file used to install the device.
  quantity Returns the number of MCI devices listed in the SYSTEM.INI file of the type specified in the device name field. The device name must be a standard MCI device type. Any digits after the name are ignored. The special device name all returns the total number of MCI devices in the system.
  quantity open Returns the number of open MCI devices of the type specified in the device name field. The device name must be a standard MCI device type. Any digits after the name are ignored. The name all returns the total number of MCI devices in the system that are open.
  name index Returns the name of an MCI device. The index ranges from 1 to the number of devices of that type. If all is specified for the device name, index ranges from 1 to the total number of devices in the system.
  name index open Returns the name of an open MCI device. The index ranges from 1 to the number of open devices of that type. If all is specified for the device name, index ranges from 1 to the total number of open devices in the system.