hi,
I am writing an Encryption/Decryption Driver. I encrypt data during
IRP_MJ_WRITE. I have a trailer after the file data which contains metadata
for my driver use. Since the file size is increased after encryption then i
increase the file size during IRP_MJ_SET_INFORMATION.
PROBLEM :-
I see the EOF and valid data length as different. Basically EOF is correct
but Valid data length is wrong (less then EOF) which causes the end of my
trailer to be zeros.
I am changing the File size and allocation size when IRP_PAGING_IO is not
set. I want to know what do i need to do for making my Valid Data Length to
be of correct value. Is there any other place where i need to set file size
or valid data length?
Thanks
Suhail
Is your PC infected? Get a FREE online computer virus scan from McAfee®
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963