The MCI_CLOSE command message releases access to a device or device element. MCI frees a device when all tasks using a device have closed it. To help MCI manage devices, your application should explicitly close each device or device element when it finishes with it.