Helper methods to Dokan. More...

Inheritance diagram for DokanNet.Dokan:

Classes

class  Notify
 Dokan User FS file-change notifications More...
 

Public Member Functions

 Dokan (ILogger logger)
 Initialize all required Dokan internal resources. More...
 
bool Unmount (char driveLetter)
 Unmount a dokan device from a driver letter. More...
 
bool RemoveMountPoint (string mountPoint)
 Unmount a dokan device from a mount point. More...
 
void Dispose ()
 Dispose the native Dokan Library resources More...
 

Public Attributes

int Version => (int)NativeMethods.DokanVersion()
 Retrieve native dokan dll version supported. More...
 
int DriverVersion => (int)NativeMethods.DokanDriverVersion()
 Retrieve native dokan driver version supported. More...
 

Protected Member Functions

virtual void Dispose (bool disposing)
 Dispose the native Dokan Library resources More...
 

Detailed Description

Helper methods to Dokan.

Constructor & Destructor Documentation

DokanNet.Dokan.Dokan ( ILogger  logger)
inline

Initialize all required Dokan internal resources.

This needs to be called only once before trying to use DokanInstance.DokanInstance for the first time. Otherwise both will fail and raise an exception.

Parameters
loggerILogger that will log all DokanNet debug informations.

Member Function Documentation

virtual void DokanNet.Dokan.Dispose ( bool  disposing)
inlineprotectedvirtual

Dispose the native Dokan Library resources

Parameters
disposingWhether this was called from Dispose()
void DokanNet.Dokan.Dispose ( )
inline

Dispose the native Dokan Library resources

bool DokanNet.Dokan.RemoveMountPoint ( string  mountPoint)
inline

Unmount a dokan device from a mount point.

Parameters
mountPointMount point to unmount (Z, Z:, Z:\, Z:\MyMountPoint).
Returns
true if device was unmount -or- false in case of failure or device not found.
bool DokanNet.Dokan.Unmount ( char  driveLetter)
inline

Unmount a dokan device from a driver letter.

Parameters
driveLetterDriver letter to unmount.
Returns
true if device was unmount -or- false in case of failure or device not found.

Member Data Documentation

int DokanNet.Dokan.DriverVersion => (int)NativeMethods.DokanDriverVersion()

Retrieve native dokan driver version supported.

Returns
Return native dokan driver version supported.
int DokanNet.Dokan.Version => (int)NativeMethods.DokanVersion()

Retrieve native dokan dll version supported.

Returns
Return native dokan dll version supported.

The documentation for this class was generated from the following file:
  • Dokan.cs