What exactly do you want to achieve? Just the new file name? Or do you want
to actually issue a rename operation?
If you want to get the new file name and you are in presetinformation
callback, then call FltGetDestinationFileNameInformation. If you are trying
to get the new name in postsetinformation, then try
FltGetFileNameInformation. All the relevant parameters can be found in
FLT_PARAMETERS structure for IRP_MJ_SET_INFORMATION.
If you want to issue a rename request from your minifilter, you should use
FltSetInformationFile. And in that case WHY should you expect any output
except for the status code of the operation?
Regards,
Ayush Gupta
Software Consultant & Owner,
AI Consulting
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of George Gauci
Sent: Thursday, February 24, 2011 10:37 PM
To: Windows File Systems Devs Interest List
Cc: Bill Wandel; Alex Carp
Subject: Re: [ntfsd] process renames using a minifilter
just one more question… from where can I access this data structure (which
callback parameter)?
MSDN mentions FltSetinformationFile, but once again, it seems that this
function only accepts data input not output.
On 24 February 2011 17:25, George Gauci wrote:
Thx Bill, just what I needed!
On 24 February 2011 17:20, Bill Wandel wrote:
I pass the information from FILE_RENAME_INFORMATION data in the callback
parameters.
Bill Wandel
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of George Gauci
Sent: Thursday, February 24, 2011 11:07 AM
To: Windows File Systems Devs Interest List
Cc: Alex Carp
Subject: Re: [ntfsd] process renames using a minifilter
Regarding FltGetDestinationFileNameInformation, what should I pass to
FileName, RootDirectory and FileNameLength? MSDN says that they should
contain the “new” file name in case of a rename. So how can I detect a file
rename when a user issues one? And then how can I retrieve the new file
name?
Regards,
George.
NTSTATUS FltGetDestinationFileNameInformation(
in PFLT_INSTANCE Instance,
in PFILE_OBJECT FileObject,
in_opt HANDLE RootDirectory,
in PWSTR FileName,
in ULONG FileNameLength,
in FLT_FILE_NAME_OPTIONS NameOptions,
__out PFLT_FILE_NAME_INFORMATION *RetFileNameInformation
);
— NTFSD is sponsored by OSR For our schedule of debugging and file system
seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List
Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
—
NTFSD is sponsored by OSR
For our schedule of debugging and file system seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
— NTFSD is sponsored by OSR For our schedule of debugging and file system
seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List
Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer