The close command closes the device or file and any associated resources. MCI unloads a device when all instances of the device or all files are closed. All MCI devices recognize this command.
wsprintf(lpstrCommand, "close %s %s", lpszDeviceID, lpszFlags);
Returns zero if successful or an error otherwise.
To close all devices opened by your application, specify the "all" device identifier for the lpszDeviceID parameter.
The following command closes the "mysound" device:
close mysound
Version: Requires Windows NT Server Enterprise Edition 4.0.
Windows CE: Unsupported.
Header: Declared in resapi.h.
MCI Overview, MCI Command Strings