[wdmaudiodev] Re: Port Class Mini-ports

  • From: Mathieu Routhier <MRouthier@xxxxxxxxxxxxx>
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Tue, 22 Apr 2003 08:57:55 -0400

Are you guys saying that you had a PortCls audio driver to control a USB or
FireWire device?

I posted a question lately about that topic.  I have "inherited" such a
driver and my job is to make it work.  That driver unloads correctly most of
the time when I unplug the device.  But if I unplug the device while a
stream is opened, there is a reference to the device object that is not
decremented and that prevents my driver from being unloaded.  Needless to
say, that referencing is not mine.

Did you guys have problems with this scenario?  Surprise Removal of a device
driven by a PortCls-based driver while a stream is opened?  Got XP SP1.

Mat

-----Original Message-----
From: bart@xxxxxxxxxxxxx [mailto:bart@xxxxxxxxxxxxx] 
Sent: Tuesday, April 22, 2003 5:27 AM
To: wdmaudiodev@xxxxxxxxxxxxx
Subject: [wdmaudiodev] Re: Port Class Mini-ports



> You can set your own manager functions in DriverEntry :
> DriverObject->MajorFunction[IRP_MJ_CREATE]  = YourOwn;
> DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL]]  = YourOwn;
> etc...
> I did it a few times..
> 
That was the 'indecent hacking' I meant :) I don't know it PortCls relies
on the handles it installs itself at this place. You even could 'intercept'
the original PortCls function pointers and calll these when the IOCTL or PNP
is not handled by your own code. But if surprise removal still works
properly
after this hacks.....

Regards,
        Bart
******************

WDMAUDIODEV addresses:
Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx
Subscribe:    mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe
Unsubscribe:  mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe
Moderator:    mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx

URL to WDMAUDIODEV page:
http://www.wdmaudiodev.de/
******************

WDMAUDIODEV addresses:
Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx
Subscribe:    mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe
Unsubscribe:  mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe
Moderator:    mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx

URL to WDMAUDIODEV page:
http://www.wdmaudiodev.de/

Other related posts: