What is an NTStatus of C0000008?

I gave up on rolling my own irp to to a FileObjectIdInformation query
because is just didn’t work and no one responded here to help.

I switched to using ZwQueryDirectoryFile (see code below) and it is
returning a NTStatus of C0000008 which is not documented in ntstatus.h. Can
someone help me out here? I’ve been trying to get an ObjectID value from
MJ_Create dispatch for four days and I’m starting to go crazy. :slight_smile:

status = ZwQueryDirectoryFile(
fileHandle, &event, NULL, NULL, &ioStatusBlock,
&fileObjectIdInfo, sizeof(FILE_OBJECTID_INFORMATION),
FileObjectIdInformation, TRUE, // single
&uFileName, TRUE ); // restart

Is is documented in ntstatus.h it is STATUS_INVALID_HANDLE.


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply

“Mark Hahn” wrote in message news:xxxxx@ntfsd…
> I gave up on rolling my own irp to to a FileObjectIdInformation query
> because is just didn’t work and no one responded here to help.
>
> I switched to using ZwQueryDirectoryFile (see code below) and it is
> returning a NTStatus of C0000008 which is not documented in ntstatus.h.
Can
> someone help me out here? I’ve been trying to get an ObjectID value from
> MJ_Create dispatch for four days and I’m starting to go crazy. :slight_smile:
>
> status = ZwQueryDirectoryFile(
> fileHandle, &event, NULL, NULL, &ioStatusBlock,
> &fileObjectIdInfo, sizeof(FILE_OBJECTID_INFORMATION),
> FileObjectIdInformation, TRUE, // single
> &uFileName, TRUE ); // restart
>
>
>

It is documented in my copy of ntstatus.h:

#define STATUS_INVALID_HANDLE ((NTSTATUS)0xC0000008L) //
winnt

Not sure why it isn’t in your copy.

Regards,

Tony

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Mark Hahn
Sent: Monday, January 10, 2005 3:18 PM
To: ntfsd redirect
Subject: [ntfsd] What is an NTStatus of C0000008?

I gave up on rolling my own irp to to a FileObjectIdInformation query
because is just didn’t work and no one responded here to help.

I switched to using ZwQueryDirectoryFile (see code below) and it is
returning a NTStatus of C0000008 which is not documented in ntstatus.h.
Can
someone help me out here? I’ve been trying to get an ObjectID value
from
MJ_Create dispatch for four days and I’m starting to go crazy. :slight_smile:

status = ZwQueryDirectoryFile(
fileHandle, &event, NULL, NULL, &ioStatusBlock,
&fileObjectIdInfo, sizeof(FILE_OBJECTID_INFORMATION),
FileObjectIdInformation, TRUE, // single
&uFileName, TRUE ); // restart


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

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

Duh… That has got to be the stupidest question I’ve ever posted. My
search in ntstatus.h was screwed up.

Thanks for the fast reponse. I’d still like to know if anyone has ever
successfully requested FileObjectIdInformation and if so what their code
looked like.

“Don Burn” wrote in message news:xxxxx@ntfsd…
> Is is documented in ntstatus.h it is STATUS_INVALID_HANDLE.
>
>
> –
> Don Burn (MVP, Windows DDK)
> Windows 2k/XP/2k3 Filesystem and Driver Consulting
> Remove StopSpam from the email to reply
>
> “Mark Hahn” wrote in message news:xxxxx@ntfsd…
>> I gave up on rolling my own irp to to a FileObjectIdInformation query
>> because is just didn’t work and no one responded here to help.
>>
>> I switched to using ZwQueryDirectoryFile (see code below) and it is
>> returning a NTStatus of C0000008 which is not documented in ntstatus.h.
> Can
>> someone help me out here? I’ve been trying to get an ObjectID value from
>> MJ_Create dispatch for four days and I’m starting to go crazy. :slight_smile:
>>
>> status = ZwQueryDirectoryFile(
>> fileHandle, &event, NULL, NULL, &ioStatusBlock,
>> &fileObjectIdInfo, sizeof(FILE_OBJECTID_INFORMATION),
>> FileObjectIdInformation, TRUE, // single
>> &uFileName, TRUE ); // restart
>>
>>
>>
>
>
>

iirc, STATUS_INVALID_HANDLE

Dan

----- Original Message -----
From: “Mark Hahn”
Newsgroups: ntfsd
To: “Windows File Systems Devs Interest List”
Sent: Monday, January 10, 2005 10:18 PM
Subject: [ntfsd] What is an NTStatus of C0000008?

>I gave up on rolling my own irp to to a FileObjectIdInformation query
>because is just didn’t work and no one responded here to help.
>
> I switched to using ZwQueryDirectoryFile (see code below) and it is
> returning a NTStatus of C0000008 which is not documented in ntstatus.h.
> Can someone help me out here? I’ve been trying to get an ObjectID value
> from MJ_Create dispatch for four days and I’m starting to go crazy. :slight_smile:
>
> status = ZwQueryDirectoryFile(
> fileHandle, &event, NULL, NULL, &ioStatusBlock,
> &fileObjectIdInfo, sizeof(FILE_OBJECTID_INFORMATION),
> FileObjectIdInformation, TRUE, // single
> &uFileName, TRUE ); // restart
>
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@rdsor.ro
> To unsubscribe send a blank email to xxxxx@lists.osr.com

My ntstatus.h has this defined as STATUS_INVALID_HANDLE

/ted

-----Original Message-----
From: Mark Hahn [mailto:xxxxx@hahnca.com]
Sent: Monday, January 10, 2005 3:18 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] What is an NTStatus of C0000008?

I gave up on rolling my own irp to to a FileObjectIdInformation query
because is just didn’t work and no one responded here to help.

I switched to using ZwQueryDirectoryFile (see code below) and it is
returning a NTStatus of C0000008 which is not documented in ntstatus.h. Can

someone help me out here? I’ve been trying to get an ObjectID value from
MJ_Create dispatch for four days and I’m starting to go crazy. :slight_smile:

status = ZwQueryDirectoryFile(
fileHandle, &event, NULL, NULL, &ioStatusBlock,
&fileObjectIdInfo, sizeof(FILE_OBJECTID_INFORMATION),
FileObjectIdInformation, TRUE, // single
&uFileName, TRUE ); // restart


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

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