Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The following example closes all of the MCI devices that are opened by an application using the mciSendCommand function.
UINT wDeviceID;
DWORD dwReturn;
// Closes all MCI devices opened by this application.
// Waits until devices are closed before returning.
if(dwReturn = mciSendCommand(MCI_ALL_DEVICE_ID, MCI_CLOSE, MCI_WAIT,
NULL))
// Error, unable to close all devices.