Communication with MCI Devices

It is possible for each MCI device to use one of more of the following as identifiers:

  • a device identifier

  • a device name

  • an alias

  • the filename of the currently loaded content.

MCIWnd provides macros you can use to retrieve this information. You can then use this information to communicate through MCI directly with MCI devices associated with MCIWnd windows.

You can retrieve the identifier of the current MCI device by using the MCIWndGetDeviceID macro. The MCI device identifier is a numerical value that identifies the instance of the MCI device your application is using. Your application can use this identifier when communicating with an MCI device by using the mciSendCommand function.

To retrieve the name of the current MCI device, use the MCIWndGetDevice macro. The MCI device name is a null-terminated string that identifies the device type associated with an MCIWnd window. Your application can use this name when communicating with an MCI device by using mciSendCommand.

You can retrieve the alias of the current MCI device by using the MCIWndGetAlias macro. Your application can use this alias when communicating with an MCI device by using the mciSendString function.

Finally, you can retrieve the filename used by an MCI device by using the MCIWndGetFileName macro. The filename identifies the content currently associated with an MCIWnd window. Your application can use this filename when communicating with a MCI device by using mciSendCommand or mciSendString.

Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
MegaDetailed.Net
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database