Also, how does this compare to the status returned in
IoStatusBlock.Status? Maybe you need to key failure on this status and
not the actual return status. STATUS_WAIT_n is not an error, so
NT_SUCCESS() should succeed on it.
Jamey
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Peter Wieland
Sent: Thursday, October 17, 2002 12:00 PM
To: NT Developers Interest List
Subject: [ntdev] RE: STATUS_WAIT_2 and removal
IoCallDriver simply returns what the dispatch routine of the driver you
specified returned. If you got back STATUS_WAIT_2 it’s because the
lower driver returned STATUS_WAIT_2.
so the better question is, why is the driver below you returning
STATUS_WAIT_2. Assuming it’s not your code, you’ll need to say what the
driver is before anyone can really help.
-p
-----Original Message-----
From: Chris Dor? [mailto:xxxxx@connecttech.com]
Sent: Thursday, October 17, 2002 9:57 AM
To: NT Developers Interest List
Subject: [ntdev] STATUS_WAIT_2 and removal
In my query_remove IoCallDriver returns a status of STATUS_WAIT_2 when
passing the IRP down. Does anyone know what this could mean?
What’s happening is this:
disable in device manager -> query_dev_relations -> query_remove ->
cancel_remove
IoCallDriver returns the same thing during cancel_remove as well.
I then get a “Your hardware settings have changed. You must restart…
do you want to now?” message box.
Another one of my drivers is “attached” to this device due to it (it,
being the other driver) calling IoGetDeviceObjectPointer (I also need to
rework this so that I don’t have to name my FDO in order for my other
drivers to get the pointer…any hints here would be great as well).
Could this have anything to do with what I am seeing, since
ObDereferenceObject has not been called on the file object yet (the file
object returned by IoGetDeviceObjectPointer)?
I hope this makes sense.
Thanks, Chris
You are currently subscribed to ntdev as: xxxxx@microsoft.com To
unsubscribe send a blank email to %%email.unsub%%
You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to %%email.unsub%%