0xC0000054 error during ZwReadFile under XP

Hi all,

I have a FSFD that copy a file using ZwReadFile and ZwWriteFile.
Here are what my driver work.

  1. It trapped IRP_MJ_WRITE to file ‘A’.
  2. Create a new file ‘A1’.
  3. Reopen file ‘A’ and copy to ‘A1’.

These work well under w2k, but 0xC0000054 occurred during ZwReadFile under
XP.
I can open file ‘A’ and can get filesize of ‘A’ also.
I don’t know what’re wrong on my driver.

Thanks,
eddie


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

I’m sorry, I missed one thing.
Not all the cases failed to read.
I want to know why I can’t read a file even though can get the filesize?

Thanks,
eddie


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com