Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > Forwarding IO requests

Reply
Thread Tools Display Modes

Forwarding IO requests

 
 
sh192
Guest
Posts: n/a

 
      02-08-2011
Hi,
I implemented a bus driver in kernel mode. The drivers for the devices
enumerated by the bus driver should forward their IO requests to the
bus driver, after modifying them.
The forwarding runs fine for KMDF, but does not work for UMDF drivers.

Here the KMDF code (this one works):
// .......
hDevice = WdfIoQueueGetDevice(Queue); // retrieve a handle to the
device
WDF_REQUEST_PARAMETERS_INIT(&params);
WdfRequestGetParameters(Request, &params);
WdfRequestFormatRequestUsingCurrentType(Request);
WDF_REQUEST_SEND_OPTIONS_INIT(&options,
WDF_REQUEST_SEND_OPTION_SYNCHRONOUS);
WDF_REQUEST_SEND_OPTIONS_SET_TIMEOUT(&options,
WDF_REL_TIMEOUT_IN_SEC(1));
ioTargetHandle = WdfDeviceGetIoTarget(hDevice);
WdfRequestSend(Request, ioTargetHandle, &options)
// .......

Here the UMDF code (this does not work):
// .......
IWDFDevice *dev;
pWdfQueue->GetDevice(&dev);
pWdfRequest->FormatUsingCurrentType();
IWDFIoTarget* pWdfIoTarget = NULL;
dev->GetDefaultIoTarget(&pWdfIoTarget);
hr = pWdfRequest->Send (pWdfIoTarget, WDF_REQUEST_SEND_OPTION_TIMEOUT,
-10000000);
// .......

For the UMDF hr is set to 0xD0000128, which looks like
STATUS_FILE_CLOSED = 0xC0000128L, but reserved bit (bit 28) set.

How can I solve this issue?

Thanks in advice
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ISA 2004 not forwarding requests to particular site Adrian Buchan Windows Small Business Server 5 04-09-2010 03:44 PM
2008R2 DC w/ DNS not forwarding some requests Mr Troy DNS Server 3 03-15-2010 08:23 PM
Problems setting up a forwarding address snorbens Active Directory 1 01-11-2010 08:43 PM
Meeting requests not received correctly revisited JD Windows Small Business Server 8 11-23-2009 04:32 AM
synchronizing Tasks requests with the Mobile Device Pedro CR ActiveSync 0 01-15-2008 12:38 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59