--
You received this message because you are subscribed to the Google Groups "Dokan" group.
To post to this group, send email to do...@googlegroups.com.
To unsubscribe from this group, send email to dokan+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dokan?hl=en.
I've similar problem, that is I've created a virtual directory using
Dokan library and it acts as a file system.
But when i get into the drive it automatically triggers the read file
or when i mouse hover on the file.
Is it possible for to trigger the read event only when i click the
file or folder?
Thanks
Siva
On Nov 25 2009, 10:50 pm, Saleem Haider <saleemhai...@gmail.com>
wrote:
> Dear Joe,
>
> Thanks for your quick response. After a bit of digging in the code I
> have found the culprit. Basically I had mistakenly commented the code
> in the GetFileInfomation method which was setting the correct size of
> the file instead it was setting to a hard-coded value zero which we
> set for the case of folder.
>
> Anyway, thanks for your responses :)
>
> Regards,
> Saleem
>
> On Nov 25, 9:38 pm, Joe Burmeister <joe.a.burmeis...@googlemail.com>
> wrote:
>
> > Hi Saleem,
>
> > Looks like I'm talking rubbish. Sorry.
>
> > ERROR_HANDLE_EOF is the error I return when areadgoes past the end. That's
> > what I expected to have to do.
>
> > But looking at \dokan\read.c from svn, I see it doesn't matter what I
> > return. If it's negative, STATUS_INVALID_PARAMETER is passed on to the
> > system.
>
> > It passes on STATUS_END_OF_FILE to the system only when returned value is 0
> > or above and the length of bytesreadis 0.
>
> > The value of number of bytesreadis set to 0 by default.
> > > > > from the start andreadthe complete file. It happens three times, and
I've similar problem, that is I've created a virtual directory using
Dokan library and it acts as a file system.
But when i get into the drive it automatically triggers the read file
or when i mouse hover on the file.
Is it possible for to trigger the read event only when i click the
file or folder?
--
You received this message because you are subscribed to the Google Groups "Dokan" group.
To post to this group, send email to do...@googlegroups.com.
To unsubscribe from this group, send email to dokan+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dokan?hl=en.
Hi,
I have resolved this problem of ReadFile with the help of following two things:
1) I have used Dokan network drive but didn't set the attribute "opt.NetworkDrive" to true.
2) I have also set the "Attribute" property of "FileInformation" class to "Offline". Please see code below.
FileInformation fi = new FileInformation();
fi.Attributes = (f.IsFolder) ? System.IO.FileAttributes.Directory : System.IO.FileAttributes.Offline;
Initially, my network drive was appearing as Disconnected drive, and I was unable to change the drive label. Due to this reason, I changed the "opt.NetworkDrive" to false. Now, I can change the drive volume label, and application don't call the ReadFile method when user take mouse over a file.
Thanks,
Saleem Haider