Problem with "get file size" function.

Hi there,all!!!

I’ve faced the problem I can not solve. I use filter driver, but
in some application (wordpad forWin2K) inside the IRP_MJ_WRITE routine
I can not work with the file (for example, I can not get the file’s size)
before I call IoCallDriver, only after. I use for this function from
the Filemon(by Russinovich). What is wrong? What should I do?


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

So, what is the actual problem ? What status code do you get when you query
the file size ?

At 01:23 PM 8/18/01 +0400, you wrote:

I’ve faced the problem I can not solve. I use filter driver, but
in some application (wordpad forWin2K) inside the IRP_MJ_WRITE routine
I can not work with the file (for example, I can not get the file’s size)
before I call IoCallDriver, only after. I use for this function from
the Filemon(by Russinovich). What is wrong? What should I do?

Bartjan Wattel
ThunderStore B.V., The Netherlands


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

Hello Bartjan,

This function always return ZERO status code, but return ZERO file
size before I call IoCallDriver and new file size after. But I need
before!!! That is the problem!!!

BW> So, what is the actual problem ? What status code do you get when you query
BW> the file size ?

BW> At 01:23 PM 8/18/01 +0400, you wrote:

> I’ve faced the problem I can not solve. I use filter driver, but
>in some application (wordpad forWin2K) inside the IRP_MJ_WRITE routine
>I can not work with the file (for example, I can not get the file’s size)
>before I call IoCallDriver, only after. I use for this function from
>the Filemon(by Russinovich). What is wrong? What should I do?

BW> Bartjan Wattel
BW> ThunderStore B.V., The Netherlands

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


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