The MCI_CLOSE command releases access to a device or file. All devices recognize this command.
MCIERROR mciSendCommand(MCIDEVICEID wDeviceID, MCI_CLOSE,
DWORD dwFlags, (DWORD) (LPMCI_GENERIC_PARMS) lpClose);
Returns zero if successful or an error otherwise.
Exiting an application without closing any MCI devices it has opened can leave the device inaccessible. Your application should explicitly close each device or file when it is finished with it. MCI unloads the device when all instances of the device or all associated files are closed.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in mmsystem.h.
MCI Overview, MCI Commands, MCI_GENERIC_PARMS