The following table shows some examples of open commands. A default device is opened if only a logical device type (for example, waveaudio) is specified in the open command. The default device for a logical device type can be queried and set by the user with the Multimedia Setup application. The default device also can be queried and set with MCI_SYSINFO by an installation DLL for a media device.
A specific device is opened by specifying its name (for example waveaudio01), or by specifying a device element with an extension or .TYPE EA that is associated with the device.
ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³Open Command ³Description ³ ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³open waveaudio ³Opens a default device of type ³ ³ ³waveaudio. ³ ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³open waveaudio01 ³Opens a specific device of type ³ ³ ³waveaudio. ³ ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³open foo.xyz ³Opens a specific device that is ³ ³ ³associated with the .TYPE EA (if ³ ³ ³any) of foo.xyz; otherwise opens a ³ ³ ³specific device that has a unique ³ ³ ³association with file extension xyz;³ ³ ³otherwise returns ³ ³ ³MCIERR_INVALID_DEVICE_NAME. ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ