Click or drag to resize

NativeFileIOOpenBackupHandle Method

Calls Win32 API CreateFile() function to create a backup handle for a file or directory and encapsulates returned handle in a SafeFileHandle object. This handle can later be used in calls to Win32 Backup API functions or similar.

Namespace:  Arsenal.ImageMounter.IO
Assembly:  Arsenal.ImageMounter (in Arsenal.ImageMounter.dll) Version: 1.0.0.0 (3.4.140.0)
Syntax
public static SafeFileHandle OpenBackupHandle(
	string FilePath,
	FileAccess DesiredAccess,
	FileShare ShareMode,
	FileMode CreationDisposition
)

Parameters

FilePath
Type: SystemString
Name of file or directory to open.
DesiredAccess
Type: System.IOFileAccess
Access to request.
ShareMode
Type: System.IOFileShare
Share mode to request.
CreationDisposition
Type: System.IOFileMode
Open/creation mode.

Return Value

Type: SafeFileHandle
See Also