Hi:
I need to create a sequential queue in a PDO KMDF Windows Driver but when i try it, it fails and the error a got is the next: 0xc020020b but i can not find it in the NTSATUS list.
NTSTATUS
CreateQueues(
WDFDEVICE Device,
PFILTER_EXTENSION Context
)
{
NTSTATUS status = STATUS_SUCCESS;
WDF_IO_QUEUE_CONFIG ioQConfig;
KdPrint( ( __DRIVER_NAME “–>Creating queues\n”));
WDF_IO_QUEUE_CONFIG_INIT_DEFAULT_QUEUE(&ioQConfig,
WdfIoQueueDispatchSequential);
ioQConfig.EvtIoDeviceControl = EvtDeviceIoControlEntry;//IRP_MJ_DEVICE_CONTROL event handler
ioQConfig.EvtIoInternalDeviceControl = EvtIoInternalDeviceControlEntry;//IRP_MJ_INTERNAL_DEVICE_CONTROL event handler
status = WdfIoQueueCreate(Device,
&ioQConfig,
WDF_NO_OBJECT_ATTRIBUTES,
&Context->IoControlEntryQueue);
if(!NT_SUCCESS(status))
{
KdPrint( ( __DRIVER_NAME
“WdfIoQueueCreate failed with status 0x%08x\n”, status));
return status;
}
return status;
}
Does anybody know about it? thanks.
What does !wdfkd.wdflogdump say?
d
dent from a phine with no keynoard
-----Original Message-----
From: xxxxx@hotmail.com
Sent: Thursday, March 31, 2011 1:16 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] NSTATUS ERROR not found
Hi:
I need to create a sequential queue in a PDO KMDF Windows Driver but when i try it, it fails and the error a got is the next: 0xc020020b but i can not find it in the NTSATUS list.
NTSTATUS
CreateQueues(
WDFDEVICE Device,
PFILTER_EXTENSION Context
)
{
NTSTATUS status = STATUS_SUCCESS;
WDF_IO_QUEUE_CONFIG ioQConfig;
KdPrint( ( __DRIVER_NAME “–>Creating queues\n”));
WDF_IO_QUEUE_CONFIG_INIT_DEFAULT_QUEUE(&ioQConfig,
WdfIoQueueDispatchSequential);
ioQConfig.EvtIoDeviceControl = EvtDeviceIoControlEntry;//IRP_MJ_DEVICE_CONTROL event handler
ioQConfig.EvtIoInternalDeviceControl = EvtIoInternalDeviceControlEntry;//IRP_MJ_INTERNAL_DEVICE_CONTROL event handler
status = WdfIoQueueCreate(Device,
&ioQConfig,
WDF_NO_OBJECT_ATTRIBUTES,
&Context->IoControlEntryQueue);
if(!NT_SUCCESS(status))
{
KdPrint( (__DRIVER_NAME
“WdfIoQueueCreate failed with status 0x%08x\n”, status));
return status;
}
return status;
}
Does anybody know about it? thanks.
—
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
>I need to create a sequential queue in a PDO KMDF Windows Driver but when i
try it, it fails and the error a got is the next: 0xc020020b >but i can not
find it in the NTSATUS list.
Check wdfstatus.h:
//
// MessageId: STATUS_WDF_NO_CALLBACK
//
// MessageText:
//
// A required Event Callback has not been registered.
//
#define STATUS_WDF_NO_CALLBACK ((NTSTATUS)0xC020020BL)
The IFR should have more details.
-scott
–
Scott Noone
Consulting Associate and Chief System Problem Analyst
OSR Open Systems Resources, Inc.
http://www.osronline.com
STATUS_WDF_NO_CALLBACK
The WDF_IO_QUEUE_CONFIG structure does not specify any request handlers, and the dispatching method is not WdfIoQueueDispatchManual.
Thanks
This is the return error, but i specify a Handler in the Context Structure or in the local function and the same error is return.
I also change the dispatch to Manual and i still have the same error, any suggestion?
If the code you posted in the original thread is in fact your code, and the variable “Device” is a handle to your WDFDEVICE, then I don’t see how it fails with this error.
Are you SURE this is the code path that’s failing?? Did you, like, single-step through it? Because I can’t SEE any error in that code…
Peter
OSR
Thanks for your help.
Now it works, there was no error in code.