I have an HID upper filter driver, and under some conditions, I want to cancel read requests coming from hardware (not to reach the user mode application reading from the HID device).
When the condition is met, I complete the request using
WdfRequestComplete(Request,STATUS_CANCELLED);
Surprisingly, the user mode application still sees the request. What I am doing wrong?
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
Sent: Wednesday, June 05, 2013 9:59 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] STATUS_CANCELLED not working
Hi,
I have an HID upper filter driver, and under some conditions, I want to
cancel read requests coming from hardware (not to reach the user mode
application reading from the HID device).
When the condition is met, I complete the request using
WdfRequestComplete(Request,STATUS_CANCELLED);
Surprisingly, the user mode application still sees the request. What I am
doing wrong?
Are you filtering the miniport stack (the fdo) or a hid enumerated pdo stack?
d
Bent from my phone
From: xxxxx@gmail.commailto:xxxxx Sent: ?6/?5/?2013 7:01 AM To: Windows System Software Devs Interest Listmailto:xxxxx Subject: [ntdev] STATUS_CANCELLED not working
Hi,
I have an HID upper filter driver, and under some conditions, I want to cancel read requests coming from hardware (not to reach the user mode application reading from the HID device).
When the condition is met, I complete the request using
WdfRequestComplete(Request,STATUS_CANCELLED);
Surprisingly, the user mode application still sees the request. What I am doing wrong?
Are you sure your code is doing what you think it is? What status is the app seeing on the canceled read?
d
Bent from my phone
From: xxxxx@gmail.commailto:xxxxx Sent: ?6/?5/?2013 8:18 AM To: Windows System Software Devs Interest Listmailto:xxxxx Subject: RE:[ntdev] STATUS_CANCELLED not working