CallbackDisk

Create and manage virtual disk drives from your Windows applications

CBDisk.UnmountMedia method

Filter:

Pascal    C++ (Lib)    C++ (VCL)    C++ (.NET)    C#    VB.NET   

CBDisk     See also    

Overview

Removes a media from the "drive".

Declaration

[Pascal]
    procedure UnmountMedia(ForceUnmount: boolean);

[C++ (Lib)]
    void UnmountMedia(bool ForceUnmount);

[C++ (VCL)]
    void __fastcall UnmountMedia(bool ForceUnmount);

[C++ (.NET)]
    void UnmountMedia(bool ForceUnmount);

[C#]
    void UnmountMedia(bool ForceUnmount);

[VB.NET]
    Sub UnmountMedia(ByVal ForceUnmount As Boolean)

Parameters

  • ForceUnmount - when the parameter is set to true, the media is unmounted no matter if there are open file or directory handles.

Description

Use this method to remove the media from the "drive", leaving the drive and existing mounting points untouched.
When ForceUnmount is true, all all open files are forcefully closed. If ForceUnmount is false and open files or directories are present, the method fails (an exception is raised).

See also

MountMedia     DeleteStorage    

Back to top