Click or drag to resize

NativeFileIOOpenFileStream Method (String, FileMode, FileAccess, FileShare, Int32)

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,
	int BufferSize
)

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.
BufferSize
Type: SystemInt32
Buffer size to specify in constructor call to FileStream class.

Return Value

Type: FileStream
See Also