Windows Multimedia DDK (mddkqh.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
MCI_CLOSE
                                                 Contents Index Back
────────────────────────────────────────────────────────────────────────────
MCI_CLOSE
 
        This MCI command message realeases access to a device or device
        element. All devices respond to this message.
 
Parameters
        DWORD dwFlags
            The following flags apply to all devices:
 
            MCI_NOTIFY
                Specifies that MCI should post the MM_MCINOTIFY message
                when this command completes. The window to receive this
                message is specified in the dwCallback field of the data
                structure identified by lpDefault.
 
            MCI_WAIT
                Specifies that the close operation should finish before
                MCI returns control to the application.
 
        LPMCI_GENERIC_PARMS lpDefault
            Specifies a far pointer to the MCI_GENERIC_PARMS data
            structure. (Devices with extended command sets might replace
            this data structure with a device-specific data structure.)
 
Return value
        Returns zero if successful. Otherwise, it returns an MCI error
        code.
 
Comments
        Exiting an application without closing any MCI devices it has
        opened can leave the device opened and unaccessible. Your
        application should explicitly close each device or device
        element when it is finished with it. MCI unloads the device when
        all instances of the device or all device elements are closed.
 
See also
        MCI_OPEN
 
                                       -♦-