The FILE_RENAME_INFORMATION structure has a RootDirectory field that may be
non-NULL

RootDirectory
If the file is not being moved to a different directory, or if the FileName
member contains the full pathname, this member is NULL. Otherwise, it is a
handle for the root directory under which the file will reside after it is
renamed.

However, my testing so far has failed to create a non-NULL RootDirectory.
I'd like to test my code that will handle this case, but I've not been able
to create one .

On NTFS file systems:
Moving files between Directories with DOS does not do it.
Moving files with Explorer does not do this.
Rename from DOS does not support moving files between Directorys.

Can anyone tell me how to cause this to happen ?


--
Gak -
Finecats

RE: Renaming a file by usfinecats

usfinecats
Mon May 30 11:52:14 CDT 2005

I might add that I am referring to handling this question in the context of
IRP_MJ_SET_INFORMATION

--
Gak -
Finecats


"usfinecats" wrote:

> The FILE_RENAME_INFORMATION structure has a RootDirectory field that may be
> non-NULL
>
> RootDirectory
> If the file is not being moved to a different directory, or if the FileName
> member contains the full pathname, this member is NULL. Otherwise, it is a
> handle for the root directory under which the file will reside after it is
> renamed.
>
> However, my testing so far has failed to create a non-NULL RootDirectory.
> I'd like to test my code that will handle this case, but I've not been able
> to create one .
>
> On NTFS file systems:
> Moving files between Directories with DOS does not do it.
> Moving files with Explorer does not do this.
> Rename from DOS does not support moving files between Directorys.
>
> Can anyone tell me how to cause this to happen ?
>
>
> --
> Gak -
> Finecats