How word transfer from *.temp to the *.doc?

Hi all,
I monitor word file modify and save.
There is a temporary file XXX.temp after click “save” and lots of
IRP_MJ_SET_INFORMATION and IRP_MJ_WRITE are sent to ntfs for this temp file
object.
But finally, this file is deleted and the and the orginal *.doc file is
renewed.

Did any one know how word change from this temp file to the *.doc file?

Thanks

Laura.


Do You Yahoo!?

Get your free @yahoo.com address at http://mail.yahoo.com

Did you look at the rename request? WINWORD works with the .TMP files and
then renames one to the .DOC file. There is one .TMP file that is not a
part of the real doc, but just a work file. The real doc is deleted either
by a delete request or a delete on close open.

----- Original Message -----
From: “gaoren”
To: “File Systems Developers”
Sent: Friday, June 28, 2002 4:20 PM
Subject: [ntfsd] How word transfer from *.temp to the *.doc?

> Hi all,
> I monitor word file modify and save.
> There is a temporary file XXX.temp after click “save” and lots of
> IRP_MJ_SET_INFORMATION and IRP_MJ_WRITE are sent to ntfs for this temp
file
> object.
> But finally, this file is deleted and the and the orginal *.doc file is
> renewed.
>
> Did any one know how word change from this temp file to the *.doc file?
>
> Thanks
>
> Laura.
>
>
>
> _________________________________________________________
>
> Do You Yahoo!?
>
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@yoshimuni.com
> To unsubscribe send a blank email to %%email.unsub%%
>

Essentially word creates two files, a tmp file and the actual file. It
actually creates two tmp files during the processing. Then during the
processing, all IO is performed on one of the tmp files. At some point,
the files are renamed and the tmp’s deleted so in the end you have one
file with the name of the original.

You will also some very bizarre byte range locking performed on ranges
beyond the end of the file. This is Words way of locking the file for
IO, etc.

Pete

Peter Scott
xxxxx@KernelDrivers.com
http://www.KernelDrivers.com

>-----Original Message-----
>From: xxxxx@lists.osr.com [mailto:bounce-ntfsd-
>xxxxx@lists.osr.com] On Behalf Of gaoren
>Sent: Friday, June 28, 2002 2:20 PM
>To: File Systems Developers
>Subject: [ntfsd] How word transfer from *.temp to the *.doc?
>
>Hi all,
>I monitor word file modify and save.
>There is a temporary file XXX.temp after click “save” and lots of
>IRP_MJ_SET_INFORMATION and IRP_MJ_WRITE are sent to ntfs for this temp
>file
>object.
>But finally, this file is deleted and the and the orginal *.doc file
is
>renewed.
>
>Did any one know how word change from this temp file to the *.doc
file?
>
>Thanks
>
>Laura.
>
>
>
>_________________________________________________________
>
>Do You Yahoo!?
>
>Get your free @yahoo.com address at http://mail.yahoo.com
>
>
>
>
>—
>You are currently subscribed to ntfsd as: xxxxx@KernelDrivers.com
>To unsubscribe send a blank email to %%email.unsub%%