DokanNet.IDokanFileInfo Interface Reference

Dokan file information interface. More...

Inheritance diagram for DokanNet.IDokanFileInfo:
DokanNet.DokanFileInfo DokanNet.MockDokanFileInfo

Public Member Functions

WindowsIdentity GetRequestor ()
 This method needs to be called in IDokanOperations.CreateFile. More...
 
bool TryResetTimeout (int milliseconds)
 Extends the time out of the current IO operation in driver. More...
 

Properties

object Context [get, set]
 Gets or sets context that can be used to carry information between operation. The Context can carry whatever type like System.IO.FileStream, struct, int, or internal reference that will help the implementation understand the request context of the event. More...
 
bool DeleteOnClose [get, set]
 Gets or sets a value indicating whether the file has to be delete during the IDokanOperations.Cleanup event. More...
 
bool IsDirectory [get, set]
 Gets or sets a value indicating whether it requesting a directory file. Must be set in IDokanOperations.CreateFile if the file appear to be a folder. More...
 
bool NoCache [get]
 Read or write directly from data source without cache. More...
 
bool PagingIo [get]
 Read or write is paging IO. More...
 
int ProcessId [get]
 Process id for the thread that originally requested a given I/O operation. More...
 
bool SynchronousIo [get]
 Read or write is synchronous IO. More...
 
bool WriteToEndOfFile [get]
 If true, write to the current end of file instead of using the Offset parameter. More...
 

Detailed Description

Dokan file information interface.

This interface can be inherited in order to testunit user IDokanOperations implementation.

Member Function Documentation

WindowsIdentity DokanNet.IDokanFileInfo.GetRequestor ( )

This method needs to be called in IDokanOperations.CreateFile.

Returns
An WindowsIdentity with the access token, -or- null if the operation was not successful.

Implemented in DokanNet.DokanFileInfo, and DokanNet.MockDokanFileInfo.

bool DokanNet.IDokanFileInfo.TryResetTimeout ( int  milliseconds)

Extends the time out of the current IO operation in driver.

Parameters
millisecondsNumber of milliseconds to extend with.
Returns
If the operation was successful.

Implemented in DokanNet.DokanFileInfo, and DokanNet.MockDokanFileInfo.

Property Documentation

object DokanNet.IDokanFileInfo.Context
getset

Gets or sets context that can be used to carry information between operation. The Context can carry whatever type like System.IO.FileStream, struct, int, or internal reference that will help the implementation understand the request context of the event.

bool DokanNet.IDokanFileInfo.DeleteOnClose
getset

Gets or sets a value indicating whether the file has to be delete during the IDokanOperations.Cleanup event.

bool DokanNet.IDokanFileInfo.IsDirectory
getset

Gets or sets a value indicating whether it requesting a directory file. Must be set in IDokanOperations.CreateFile if the file appear to be a folder.

bool DokanNet.IDokanFileInfo.NoCache
get

Read or write directly from data source without cache.

bool DokanNet.IDokanFileInfo.PagingIo
get

Read or write is paging IO.

int DokanNet.IDokanFileInfo.ProcessId
get

Process id for the thread that originally requested a given I/O operation.

bool DokanNet.IDokanFileInfo.SynchronousIo
get

Read or write is synchronous IO.

bool DokanNet.IDokanFileInfo.WriteToEndOfFile
get

If true, write to the current end of file instead of using the Offset parameter.


The documentation for this interface was generated from the following file:
  • IDokanFileInfo.cs