Re: Completion routine isn't called when reading from a interrupt pipe

From: Randy Aull \(MSFT\) (randyau_at_microsoft.com)
Date: 10/22/04


Date: Fri, 22 Oct 2004 09:43:39 -0700

It doesn't sound like installation would be the problem since you are seeing
the URB get cancelled.

Why does your device require you to write a driver if it is a HID USB
device? Windows already supports USB HID devices.

Randy

-- 
This posting is provided "AS IS" with no warranties, and confers no rights.
"Edgard Lima" <enagl@cin.ufpe.br> wrote in message 
news:%23bFuEUFuEHA.1308@tk2msftngp13.phx.gbl...
>
> Hi Walter,
>
> I'm using a driver almost like the int42 sample from your book (2snd 
> edition).
> And every thing seems to be right.
> But, Would it (this unexpected behaviour) be possible because the way I'm 
> istalling the driver?
> My device is a touch-screen HID USB device. And I haven't certified it yet 
> (WQHL) so I've to do some tricks in the Device Manager to put my driver 
> working instead of the default windows hid driver.
> What do you think?
>
> Thanks again,
> Edgard
>
>
>
> "Walter Oney" <waltoney@oneysoft.com> wrote in message 
> news:41792711.5334E2FE@oneysoft.com...
>> Edgard Lima wrote:
>>> I'm trying to get my function "OnInterrupt" called when I touch the 
>>> device,
>>> but my functions isn't called. My "OnInterrupt" function is only called 
>>> when
>>> I remove the device, because the irp is cancelled.
>>
>> It looks like you're doing everything right, and you would not be seeing
>> the IRP cancellation if you weren't. Is it possible that the device is
>> not actually responding to IN transactions when you think it should be?
>>
>> --
>> Walter Oney, Consulting and Training
>> Basic and Advanced Driver Programming Seminars
>> Check out our schedule at http://www.oneysoft.com
>
> 


Relevant Pages

  • Re: DRIVER_UNLOADED_WITHOUT_CANCELLING_PENDING_OPERATIONS
    ... >>> other such items before unload. ... my driver doesn't contain DPCs and worker ... Remember that IRP cancellation is just a suggestion to the lower-level ...
    (microsoft.public.development.device.drivers)
  • Re: Phase issue
    ... I mic'ed one driver with a 57 and one driver with a 414XLS. ... that cancellation, so you can use the resulting comb filtering to your ... But if you don't listen in mono and move the mikes around until ... Rhythm Guitar Sound, unless there is a way to keep both mic colors (which ...
    (rec.audio.pro)
  • Avoiding cleanup race conditions: How to?
    ... Suppose we have a function in the kernel driver that potentially waits ... Suppose we implemented cancellation logic and IRP_MJ_CLEANUP with ... IO request was saved/queued in the device extension before arrival ... In the second case IRP_MJ_CLEANUP can't find the IRP. ...
    (microsoft.public.development.device.drivers)
  • Re: a question about driver completion routine
    ... we can implement driver Cancel-Safe IRP Queues using ... These functions ensure that IRP cancellation is ... driver's completion routine get called? ...
    (microsoft.public.development.device.drivers)
  • Re: Creating a Serial to USB Driver
    ... > Bill McKenzie wrote: ... a good WDM book such as that written by Walter Oney is a must. ... > Walter Oney is the author of several instances of this driver. ...
    (microsoft.public.development.device.drivers)