|
MCI_CLOSE
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);
Parameters
wDeviceID
Device identifier of the MCI device that is to receive the command message.
dwFlags
MCI_NOTIFY or MCI_WAIT. For information about these flags, see The Wait, Notify, and Test Flags.
lpClose
Address of an MCI_GENERIC_PARMS structure. (You can also use an MCI_CLOSE_PARMS structure. For more information, see the comments for MCI_GENERIC_PARMS.)
Return Values
Returns zero if successful or an error otherwise.
Remarks
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.
See Also
MCI_GENERIC_PARMS
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
More Online Helps
Win32 Programmer's Reference (win32.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|