Click or drag to resize

NativeFileIOOpenFileStream Method (String, FileMode, FileAccess, FileShare)

Calls Win32 API CreateFile() function and encapsulates returned handle.

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

Parameters

FileName
Type: SystemString
Name of file to open.
CreationDisposition
Type: System.IOFileMode
Open/creation mode.
DesiredAccess
Type: System.IOFileAccess
File access to request.
ShareMode
Type: System.IOFileShare
Share mode to request.

Return Value

Type: FileStream
See Also