NativeFileIODismountVolumeFilesystem Method |
Locks and dismounts filesystem on a volume. Upon successful return, further access to the device
can only be done through the handle passed to this function until handle is closed or lock is
released.
Namespace:
Arsenal.ImageMounter.IO
Assembly:
Arsenal.ImageMounter (in Arsenal.ImageMounter.dll) Version: 1.0.0.0 (3.4.140.0)
Syntax public static bool DismountVolumeFilesystem(
SafeFileHandle Device,
bool Force
)
Public Shared Function DismountVolumeFilesystem (
Device As SafeFileHandle,
Force As Boolean
) As Boolean
public:
static bool DismountVolumeFilesystem(
SafeFileHandle^ Device,
bool Force
)
static member DismountVolumeFilesystem :
Device : SafeFileHandle *
Force : bool -> bool
Parameters
- Device
- Type: Microsoft.Win32.SafeHandlesSafeFileHandle
Handle to device to lock and dismount. - Force
- Type: SystemBoolean
Indicates if True that volume should be immediately dismounted even if it
cannot be locked. This causes all open handles to files on the volume to become invalid. If False,
successful lock (no other open handles) is required before attempting to dismount filesystem.
Return Value
Type:
BooleanSee Also