rename info

Hi. all.

How can i get the new name of a file in the case IRP_MJ_SET_INFORMATION (Parameters.SetFile.FileInformationClass == FileRenameInformation) ?

thanks in advance.

From the FILE_RENAME_INFORMATION struct.
----- Original Message -----
From: gyver-park
To: File Systems Developers
Sent: Wednesday, August 07, 2002 2:59 PM
Subject: [ntfsd] rename info

Hi. all.

How can i get the new name of a file in the case IRP_MJ_SET_INFORMATION (Parameters.SetFile.FileInformationClass == FileRenameInformation) ?

thanks in advance.

b??箷????vڵ???ʷ??N???zǧu?jy???j???vBX???&

Do you can get rename file name using declaring one variable at PFILE_RENAME_INFORMATION.

and point to Irp->AssociatedIrp.SystemBuffer.

sample

PFILE_RENAME_INFORMATION RenameInformation;

RenameInformation = (PFILE_RENAME_INFORMATION)Irp->AssociatedIrp.SystemBuffer;

Heldai
----- Original Message -----
From: gyver-park
To: File Systems Developers
Sent: Wednesday, August 07, 2002 8:59 AM
Subject: [ntfsd] rename info

Hi. all.

How can i get the new name of a file in the case IRP_MJ_SET_INFORMATION (Parameters.SetFile.FileInformationClass == FileRenameInformation) ?

thanks in advance.

b??箷????vڵ??ֱ˱??+r??:.?˛???m??֛???zf???y?ޞ??_5?b??(??(

thanks Heldai, Dan.

Is the FILE_RENAME_INFORMATION struct same to FILE_NAME_INFORMATION struct ?
(i can’t see the …RENAME… struct in my DDK)

Sincerely, thanks.

----- Original Message -----
From: Heldai
To: File Systems Developers
Sent: Wednesday, August 07, 2002 9:27 PM
Subject: [ntfsd] Re: rename info

Do you can get rename file name using declaring one variable at PFILE_RENAME_INFORMATION.

and point to Irp->AssociatedIrp.SystemBuffer.

sample

PFILE_RENAME_INFORMATION RenameInformation;

RenameInformation = (PFILE_RENAME_INFORMATION)Irp->AssociatedIrp.SystemBuffer;

Heldai

This structure is :

typedef struct _FILE_RENAME_INFORMATION
{
BOOLEAN ReplaceIfExists;
HANDLE RootDirectory;
ULONG FileNameLength;
WCHAR FileName[1];
} FILE_RENAME_INFORMATION, *PFILE_RENAME_INFORMATION;

It is documented in NTIFS.h
----- Original Message -----
From: gyver-park
To: File Systems Developers
Sent: Wednesday, August 07, 2002 1:41 PM
Subject: [ntfsd] Re: rename info

thanks Heldai, Dan.

Is the FILE_RENAME_INFORMATION struct same to FILE_NAME_INFORMATION struct ?
(i can’t see the …RENAME… struct in my DDK)

Sincerely, thanks.

----- Original Message -----
From: Heldai
To: File Systems Developers
Sent: Wednesday, August 07, 2002 9:27 PM
Subject: [ntfsd] Re: rename info

Do you can get rename file name using declaring one variable at PFILE_RENAME_INFORMATION.

and point to Irp->AssociatedIrp.SystemBuffer.

sample

PFILE_RENAME_INFORMATION RenameInformation;

RenameInformation = (PFILE_RENAME_INFORMATION)Irp->AssociatedIrp.SystemBuffer;

Heldai

b???v?j???r?.?˛???m??֛???zf???y?ޞ??_5?b??(??(

Sorry, It is documented too on book File System Internals by Rajeev Nagar.

Heldai
----- Original Message -----
From: gyver-park
To: File Systems Developers
Sent: Wednesday, August 07, 2002 1:41 PM
Subject: [ntfsd] Re: rename info

thanks Heldai, Dan.

Is the FILE_RENAME_INFORMATION struct same to FILE_NAME_INFORMATION struct ?
(i can’t see the …RENAME… struct in my DDK)

Sincerely, thanks.

----- Original Message -----
From: Heldai
To: File Systems Developers
Sent: Wednesday, August 07, 2002 9:27 PM
Subject: [ntfsd] Re: rename info

Do you can get rename file name using declaring one variable at PFILE_RENAME_INFORMATION.

and point to Irp->AssociatedIrp.SystemBuffer.

sample

PFILE_RENAME_INFORMATION RenameInformation;

RenameInformation = (PFILE_RENAME_INFORMATION)Irp->AssociatedIrp.SystemBuffer;

Heldai

b???v?j???r?.?˛???m??֛???zf???y?ޞ??_5?b??(??(