FileNameInformation STATUS_INVALID_PARAMETER

Hello All,
I am writing filesystem filter driver for Windows 2K/XP enviorment. In Pre - IRP_MJ_CREATE, in case of relative opens, I am trying to do query IRP_MJ_QUERY_INFORMATION with FileNameInformation but i get error 0xC0000008 which is invalid parameter. Is it not right way to get absolute file name in terms of relative file open??

Thanks
Ashish

Do you query name for RelatedFileObject?

Alexei.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of
xxxxx@yahoo.com
Sent: Thursday, November 30, 2006 11:20 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] FileNameInformation STATUS_INVALID_PARAMETER

Hello All,
I am writing filesystem filter driver for Windows 2K/XP enviorment. In Pre -
IRP_MJ_CREATE, in case of relative opens, I am trying to do query
IRP_MJ_QUERY_INFORMATION with FileNameInformation but i get error 0xC0000008
which is invalid parameter. Is it not right way to get absolute file name in
terms of relative file open??

Thanks
Ashish


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@vmware.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

We need more information to help.

0xC0000008 = STATUS_INVALID_HANDLE
0xC000000D = STATUS_INVALID_PARAMETER

Which is it?

Is the error from FltGetFileNameInformation or from FltCreateFile or from
FltQueryInformationFile?

Assuming you are calling FltGetFileNameInformation to get
FileNameInformation, look at the documented reasons you might get
STATUS_INVALID_PARAMETER.

In general, FltGetFileNameInformation works fine with relative opens, but
there are cases when the filename cannot be obtained. You must recognize
and handle those cases.

It might help if you showed us the call(s).

Ken

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@yahoo.com
Sent: Thursday, November 30, 2006 2:20 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] FileNameInformation STATUS_INVALID_PARAMETER

Hello All,
I am writing filesystem filter driver for Windows 2K/XP enviorment. In Pre -
IRP_MJ_CREATE, in case of relative opens, I am trying to do query
IRP_MJ_QUERY_INFORMATION with FileNameInformation but i get error 0xC0000008
which is invalid parameter. Is it not right way to get absolute file name in
terms of relative file open??

Thanks
Ashish


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@comcast.net
To unsubscribe send a blank email to xxxxx@lists.osr.com

Or if this isn’t a minifilter (duh!) and you’re calling
ZwQueryInformationFile and the error really is 0xC0000008, check the handle
you’re passing.

Ken

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ken Cross
Sent: Thursday, November 30, 2006 8:04 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] FileNameInformation STATUS_INVALID_PARAMETER

We need more information to help.

0xC0000008 = STATUS_INVALID_HANDLE
0xC000000D = STATUS_INVALID_PARAMETER

Which is it?

Is the error from FltGetFileNameInformation or from FltCreateFile or from
FltQueryInformationFile?

Assuming you are calling FltGetFileNameInformation to get
FileNameInformation, look at the documented reasons you might get
STATUS_INVALID_PARAMETER.

In general, FltGetFileNameInformation works fine with relative opens, but
there are cases when the filename cannot be obtained. You must recognize
and handle those cases.

It might help if you showed us the call(s).

Ken

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@yahoo.com
Sent: Thursday, November 30, 2006 2:20 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] FileNameInformation STATUS_INVALID_PARAMETER

Hello All,
I am writing filesystem filter driver for Windows 2K/XP enviorment. In Pre -
IRP_MJ_CREATE, in case of relative opens, I am trying to do query
IRP_MJ_QUERY_INFORMATION with FileNameInformation but i get error 0xC0000008
which is invalid parameter. Is it not right way to get absolute file name in
terms of relative file open??

Thanks
Ashish


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@comcast.net
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@comcast.net
To unsubscribe send a blank email to xxxxx@lists.osr.com