file size attribute

Dear friends,

I have some problem to set the file size . I use ZwSetInformationFile
to set the other attributes. But specifically size attribute is not
set. I use FILE_BOTH_DIR_INFORMATION structure to retrieve other
attributes. after attaching my driver if I see the attributes of file
located in my hidden drive , it will ok. runtime size of file will be
display. but I don’t able to see the attribute size of ffile before
attaching driver. can you give me idea how to set file size before
runtime.

kindly give me a reply

regards
kedar

Kedar,

you have to use FileEndOfFileInformation as the ‘FileInformationClass Value’ in ZwSetInformationFile to set the file size (and pass FILE_END_OF_FILE_INFORMATION->EndOfFile with the size u want to set).

Vikramaditya.

“Life is not measured by the number of breaths we take, but by the moments that take our breath away”

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of kedar Bhagwat
Sent: Wednesday, March 30, 2005 7:33 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] file size attribute

Dear friends,

I have some problem to set the file size . I use ZwSetInformationFile
to set the other attributes. But specifically size attribute is not
set. I use FILE_BOTH_DIR_INFORMATION structure to retrieve other
attributes. after attaching my driver if I see the attributes of file
located in my hidden drive , it will ok. runtime size of file will be
display. but I don’t able to see the attribute size of ffile before
attaching driver. can you give me idea how to set file size before
runtime.

kindly give me a reply

regards
kedar


Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@tacitnetworks.com
To unsubscribe send a blank email to xxxxx@lists.osr.com