RE: about IoQueryFileInformation()

The documentation on ZwQueryFileInformation is more or less clear and complete in the IFS kit. If you just want the name of the object see the IFS kit documentation for ObQueryNameString.

=====================
Mark Roddy
Windows .NET/XP/2000 Consulting
Hollis Technology Solutions 603-321-1032
www.hollistech.com


From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of jackzdk
Sent: Monday, January 03, 2005 10:51 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] about IoQueryFileInformation()

I found this founction in ntifs.h
NTKERNELAPI
NTSTATUS
IoQueryFileInformation(
IN PFILE_OBJECT FileObject,
IN FILE_INFORMATION_CLASS FileInformationClass,
IN ULONG Length,
OUT PVOID FileInformation,
OUT PULONG ReturnedLength
);
and I used it like this:

Filename = ExAllocatePool(NonPagedPool, length);

ULONG length = sizeof (FILE_NAME_INFORMATION) + (sizeof (WCHAR)*(MAXIMUM_FILENAME_LENGTH -1));

ntStatus = IoQueryFileInformation(FileObject, FileNameInformation,length,nameInformation,&length);

but the IoQueryFileInformation() returned STATUS_INVALID_PARAMETER.
please give me a hint.

·飞飞,第一款会飞的网游欢迎您! http:</http:>
· http: 1.5G全国最大空间——网易126免费邮箱 http://www.126.com 火热抢注中>>>
— Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17 You are currently subscribed to $subst(‘List.Name’) as: $subst(‘Recip.EmailAddr’) To unsubscribe send a blank email to $subst(‘Email.UnSub’)</http:>