Re[2]: IRP_MJ_SET_INFORMATION - FileValidDataLengthInformation

> Is it possible to query this information for same file from the user mode?

Attempt to query this information returns
STATUS_INVALID_INFO_CLASS, at least in FileTest.
I don’t think this can be queried :slight_smile:

L.

You can’t query it, you can query the blocks the file resides in and that
with the End Of File will give you the valid data length. For the people
who answered here and directly, I finally got it working, it was a
combination of problems, both a create that was not exactly correct and a
problem with setting the EOF of the file to extend it.


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
http://www.windrvr.com
Remove StopSpam from the email to reply

wrote in message news:xxxxx@ntfsd…
> Is it possible to query this information for same file from the user
> mode?
>