C# Class GangsDrive.Mirror

Inheritance: IDokanOperations
Exibir arquivo Open project: pknam/GangsDrive

Public Methods

Method Description
Cleanup ( string fileName, DokanNet.DokanFileInfo info ) : void
CloseFile ( string fileName, DokanNet.DokanFileInfo info ) : void
CreateDirectory ( string fileName, DokanNet.DokanFileInfo info ) : NtStatus
CreateFile ( string fileName, DokanNet.FileAccess access, FileShare share, FileMode mode, FileOptions options, FileAttributes attributes, DokanNet.DokanFileInfo info ) : NtStatus
DeleteDirectory ( string fileName, DokanNet.DokanFileInfo info ) : NtStatus
DeleteFile ( string fileName, DokanNet.DokanFileInfo info ) : NtStatus
EnumerateNamedStreams ( string fileName, IntPtr enumContext, string &streamName, long &streamSize, DokanNet.DokanFileInfo info ) : NtStatus
FindFiles ( string fileName, IList &files, DokanNet.DokanFileInfo info ) : NtStatus
FlushFileBuffers ( string fileName, DokanNet.DokanFileInfo info ) : NtStatus
GetDiskFreeSpace ( long &free, long &total, long &used, DokanNet.DokanFileInfo info ) : NtStatus
GetFileInformation ( string fileName, DokanNet.FileInformation &fileInfo, DokanNet.DokanFileInfo info ) : NtStatus
GetFileSecurity ( string fileName, FileSystemSecurity &security, AccessControlSections sections, DokanNet.DokanFileInfo info ) : NtStatus
GetVolumeInformation ( string &volumeLabel, FileSystemFeatures &features, string &fileSystemName, DokanNet.DokanFileInfo info ) : NtStatus
LockFile ( string fileName, long offset, long length, DokanNet.DokanFileInfo info ) : NtStatus
Mirror ( string path ) : System
MoveFile ( string oldName, string newName, bool replace, DokanNet.DokanFileInfo info ) : NtStatus
OpenDirectory ( string fileName, DokanNet.DokanFileInfo info ) : NtStatus
ReadFile ( string fileName, byte buffer, int &bytesRead, long offset, DokanNet.DokanFileInfo info ) : NtStatus
SetAllocationSize ( string fileName, long length, DokanNet.DokanFileInfo info ) : NtStatus
SetEndOfFile ( string fileName, long length, DokanNet.DokanFileInfo info ) : NtStatus
SetFileAttributes ( string fileName, FileAttributes attributes, DokanNet.DokanFileInfo info ) : NtStatus
SetFileSecurity ( string fileName, FileSystemSecurity security, AccessControlSections sections, DokanNet.DokanFileInfo info ) : NtStatus
SetFileTime ( string fileName, System.DateTime creationTime, System.DateTime lastAccessTime, System.DateTime lastWriteTime, DokanNet.DokanFileInfo info ) : NtStatus
UnlockFile ( string fileName, long offset, long length, DokanNet.DokanFileInfo info ) : NtStatus
Unmount ( DokanNet.DokanFileInfo info ) : NtStatus
WriteFile ( string fileName, byte buffer, int &bytesWritten, long offset, DokanNet.DokanFileInfo info ) : NtStatus

Private Methods

Method Description
GetPath ( string fileName ) : string
ToTrace ( System.DateTime date ) : string
ToTrace ( DokanNet.DokanFileInfo info ) : string
Trace ( string method, string fileName, DokanNet.DokanFileInfo info, DokanNet.FileAccess access, FileShare share, FileMode mode, FileOptions options, FileAttributes attributes, NtStatus result ) : NtStatus
Trace ( string method, string fileName, DokanNet.DokanFileInfo info, NtStatus result ) : NtStatus

Method Details

Cleanup() public method

public Cleanup ( string fileName, DokanNet.DokanFileInfo info ) : void
fileName string
info DokanNet.DokanFileInfo
return void

CloseFile() public method

public CloseFile ( string fileName, DokanNet.DokanFileInfo info ) : void
fileName string
info DokanNet.DokanFileInfo
return void

CreateDirectory() public method

public CreateDirectory ( string fileName, DokanNet.DokanFileInfo info ) : NtStatus
fileName string
info DokanNet.DokanFileInfo
return NtStatus

CreateFile() public method

public CreateFile ( string fileName, DokanNet.FileAccess access, FileShare share, FileMode mode, FileOptions options, FileAttributes attributes, DokanNet.DokanFileInfo info ) : NtStatus
fileName string
access DokanNet.FileAccess
share FileShare
mode FileMode
options FileOptions
attributes FileAttributes
info DokanNet.DokanFileInfo
return NtStatus

DeleteDirectory() public method

public DeleteDirectory ( string fileName, DokanNet.DokanFileInfo info ) : NtStatus
fileName string
info DokanNet.DokanFileInfo
return NtStatus

DeleteFile() public method

public DeleteFile ( string fileName, DokanNet.DokanFileInfo info ) : NtStatus
fileName string
info DokanNet.DokanFileInfo
return NtStatus

EnumerateNamedStreams() public method

public EnumerateNamedStreams ( string fileName, IntPtr enumContext, string &streamName, long &streamSize, DokanNet.DokanFileInfo info ) : NtStatus
fileName string
enumContext System.IntPtr
streamName string
streamSize long
info DokanNet.DokanFileInfo
return NtStatus

FindFiles() public method

public FindFiles ( string fileName, IList &files, DokanNet.DokanFileInfo info ) : NtStatus
fileName string
files IList
info DokanNet.DokanFileInfo
return NtStatus

FlushFileBuffers() public method

public FlushFileBuffers ( string fileName, DokanNet.DokanFileInfo info ) : NtStatus
fileName string
info DokanNet.DokanFileInfo
return NtStatus

GetDiskFreeSpace() public method

public GetDiskFreeSpace ( long &free, long &total, long &used, DokanNet.DokanFileInfo info ) : NtStatus
free long
total long
used long
info DokanNet.DokanFileInfo
return NtStatus

GetFileInformation() public method

public GetFileInformation ( string fileName, DokanNet.FileInformation &fileInfo, DokanNet.DokanFileInfo info ) : NtStatus
fileName string
fileInfo DokanNet.FileInformation
info DokanNet.DokanFileInfo
return NtStatus

GetFileSecurity() public method

public GetFileSecurity ( string fileName, FileSystemSecurity &security, AccessControlSections sections, DokanNet.DokanFileInfo info ) : NtStatus
fileName string
security System.Security.AccessControl.FileSystemSecurity
sections AccessControlSections
info DokanNet.DokanFileInfo
return NtStatus

GetVolumeInformation() public method

public GetVolumeInformation ( string &volumeLabel, FileSystemFeatures &features, string &fileSystemName, DokanNet.DokanFileInfo info ) : NtStatus
volumeLabel string
features FileSystemFeatures
fileSystemName string
info DokanNet.DokanFileInfo
return NtStatus

LockFile() public method

public LockFile ( string fileName, long offset, long length, DokanNet.DokanFileInfo info ) : NtStatus
fileName string
offset long
length long
info DokanNet.DokanFileInfo
return NtStatus

Mirror() public method

public Mirror ( string path ) : System
path string
return System

MoveFile() public method

public MoveFile ( string oldName, string newName, bool replace, DokanNet.DokanFileInfo info ) : NtStatus
oldName string
newName string
replace bool
info DokanNet.DokanFileInfo
return NtStatus

OpenDirectory() public method

public OpenDirectory ( string fileName, DokanNet.DokanFileInfo info ) : NtStatus
fileName string
info DokanNet.DokanFileInfo
return NtStatus

ReadFile() public method

public ReadFile ( string fileName, byte buffer, int &bytesRead, long offset, DokanNet.DokanFileInfo info ) : NtStatus
fileName string
buffer byte
bytesRead int
offset long
info DokanNet.DokanFileInfo
return NtStatus

SetAllocationSize() public method

public SetAllocationSize ( string fileName, long length, DokanNet.DokanFileInfo info ) : NtStatus
fileName string
length long
info DokanNet.DokanFileInfo
return NtStatus

SetEndOfFile() public method

public SetEndOfFile ( string fileName, long length, DokanNet.DokanFileInfo info ) : NtStatus
fileName string
length long
info DokanNet.DokanFileInfo
return NtStatus

SetFileAttributes() public method

public SetFileAttributes ( string fileName, FileAttributes attributes, DokanNet.DokanFileInfo info ) : NtStatus
fileName string
attributes FileAttributes
info DokanNet.DokanFileInfo
return NtStatus

SetFileSecurity() public method

public SetFileSecurity ( string fileName, FileSystemSecurity security, AccessControlSections sections, DokanNet.DokanFileInfo info ) : NtStatus
fileName string
security System.Security.AccessControl.FileSystemSecurity
sections AccessControlSections
info DokanNet.DokanFileInfo
return NtStatus

SetFileTime() public method

public SetFileTime ( string fileName, System.DateTime creationTime, System.DateTime lastAccessTime, System.DateTime lastWriteTime, DokanNet.DokanFileInfo info ) : NtStatus
fileName string
creationTime System.DateTime
lastAccessTime System.DateTime
lastWriteTime System.DateTime
info DokanNet.DokanFileInfo
return NtStatus

UnlockFile() public method

public UnlockFile ( string fileName, long offset, long length, DokanNet.DokanFileInfo info ) : NtStatus
fileName string
offset long
length long
info DokanNet.DokanFileInfo
return NtStatus

Unmount() public method

public Unmount ( DokanNet.DokanFileInfo info ) : NtStatus
info DokanNet.DokanFileInfo
return NtStatus

WriteFile() public method

public WriteFile ( string fileName, byte buffer, int &bytesWritten, long offset, DokanNet.DokanFileInfo info ) : NtStatus
fileName string
buffer byte
bytesWritten int
offset long
info DokanNet.DokanFileInfo
return NtStatus