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
)
Public Shared Function OpenBackupHandle (
FilePath As String,
DesiredAccess As FileAccess,
ShareMode As FileShare,
CreationDisposition As FileMode
) As SafeFileHandle
public:
static SafeFileHandle^ OpenBackupHandle(
String^ FilePath,
FileAccess DesiredAccess,
FileShare ShareMode,
FileMode CreationDisposition
)
static member OpenBackupHandle :
FilePath : string *
DesiredAccess : FileAccess *
ShareMode : FileShare *
CreationDisposition : FileMode -> SafeFileHandle
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:
SafeFileHandleSee Also