Click or drag to resize

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
)

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: Boolean
See Also