Requesting ExecutionLevel for Read|write Evt handlers

Hi,
In my KMDF based volume filter, I tried to request
WdfExecutionLevelPassive (in the WDF_OBJECT_ATTRIBUTES) while trying to
create the IO Q. WdfIoQueueCreate failed with an error code 0xc0200211.
Having read the documentation I realized that ExecutionLevel has to be
set to ExecutionLevelDefault. So, that explains the failure but I have a
couple of questions.

  1. What is this error code. I did not find it in ntstatus.h
  2. What is the right way to tell KMDF that please invoke my read|write
    evt handlers at Passive level.

I am using 3790.1830 DDK and KMDF vers 1.1. The driver is running on win
2003 std edition.

Thanks
Harish

  1. look in wdfstatus.h as well. If you are filtering a volume, you
    cannot force passive level (even if you get KMDF to do it) since I/O
    will flow through the stack at dispatch and you could potentially
    deadlock the machine if you pend paging i/o.

  2. one easy way to figure out how to set WdfExecutionLevelPassive is to
    search for its use under the KMDF samples source. A search for me shows
    that kmdf\toaster\func\featured\toaster.c sets this value

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Harish Arora
Sent: Tuesday, November 21, 2006 10:11 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Requesting ExecutionLevel for Read|write Evt handlers

Hi,
In my KMDF based volume filter, I tried to request
WdfExecutionLevelPassive (in the WDF_OBJECT_ATTRIBUTES) while trying to
create the IO Q. WdfIoQueueCreate failed with an error code 0xc0200211.
Having read the documentation I realized that ExecutionLevel has to be
set to ExecutionLevelDefault. So, that explains the failure but I have a
couple of questions.

  1. What is this error code. I did not find it in ntstatus.h
  2. What is the right way to tell KMDF that please invoke my read|write
    evt handlers at Passive level.

I am using 3790.1830 DDK and KMDF vers 1.1. The driver is running on win
2003 std edition.

Thanks
Harish


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer