STATUS_NO_SUCH_DEVICE after IoCreateDevice

Hi,

I am creating a device object using IoCreateDevice() and it succeeds but
when i use IoGetDeviceObjectPointer() it fails with STATUS_NO_SUCH_DEVICE.
Below is the code.

Actually this device object is the shadow device object for reentrancy
issue. Since i get the same error with ZwCreateFile so i tried
IoGetDeviceObjectPointer(). I am working on W2k.

RtlInitUnicodeString(&nameString, L"\Device\EFEFilter_Shadow");
status =
IoCreateDevice(gFileSpyDriverObject, sizeof(DEVICE_EXTENSION),

&nameString, FILE_DEVICE_UNKNOWN, FILE_DEVICE_SECURE_OPEN, FALSE,
&fdo);
statusRet = IoGetDeviceObjectPointer(DeviceName, FILE_READ_DATA, &dd, &pp);

Thanks
SUhail


MSN Toolbar provides one-click access to Hotmail from any Web page – FREE
download! http://toolbar.msn.click-url.com/go/onm00200413ave/direct/01/

Try clearing the DO_DEVICE_INITIALIZING bit before calling
IoGetDeviceObjectPointer.

Good luck,
Calvin

Calvin Guan Software Engineer
ATI Technologies Inc. www.ati.com

-----Original Message-----
From: Suhail Ansari [mailto:xxxxx@hotmail.com]
Sent: Friday, June 25, 2004 12:25 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] STATUS_NO_SUCH_DEVICE after IoCreateDevice

Hi,

I am creating a device object using IoCreateDevice() and it
succeeds but
when i use IoGetDeviceObjectPointer() it fails with
STATUS_NO_SUCH_DEVICE.
Below is the code.

Actually this device object is the shadow device object for
reentrancy
issue. Since i get the same error with ZwCreateFile so i tried
IoGetDeviceObjectPointer(). I am working on W2k.

RtlInitUnicodeString(&nameString, L"\Device\EFEFilter_Shadow");
status =
IoCreateDevice(gFileSpyDriverObject,
sizeof(DEVICE_EXTENSION),

&nameString,
FILE_DEVICE_UNKNOWN,
FILE_DEVICE_SECURE_OPEN,
FALSE,
&fdo);
statusRet = IoGetDeviceObjectPointer(DeviceName,
FILE_READ_DATA, &dd, &pp);

Thanks
SUhail


MSN Toolbar provides one-click access to Hotmail from any Web
page - FREE
download!
http://toolbar.msn.click-url.com/go/onm00200413ave/direct/01/


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

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