appending data to file from driver

I am writing a file from a driver. Since i want to append the new data, how to move to the end of file.
Is it ZwSetInformationFile ?

…Mani

You may get the current ifle size and write
the data at the offset of “FileSize”. This will append
the data as you wanted.

L.

You can use the “magic number” - specify FILE_WRITE_TO_END_OF_FILE as
the ByteOffset value - make sure if you do so that you set the upper
part as well (basically, the value is ((ULONGLONG)(~0))).

Regards,

Tony

Tony Mason

Consulting Partner

OSR Open Systems Resources, Inc.

http://www.osr.com http:</http:>


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Mani
Sent: Tuesday, April 12, 2005 2:41 AM
To: ntfsd redirect
Subject: [ntfsd] appending data to file from driver

I am writing a file from a driver. Since i want to append the new data,
how to move to the end of file.

Is it ZwSetInformationFile ?

…Mani


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

You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com