Hi all,
For a AVStream capture USB device, when the user mode application such as
graphedt.exe is playing preview graph, the avstream data is captured and
rendered to the application.
dispatch routine for IRP_MN_SUPRISE_REMOVAL is handled for default PnP
Handler completion of the request and as part of DEVICE_CAPABILITIES’s
SurpriseRemovalOK is set to TRUE.
In addition is there any thing to be done as part of AVStream mindriver to report the surpise removal of the USB device.
Thanks,
xxxxx@techie.com wrote:
For a AVStream capture USB device, when the user mode application such as
graphedt.exe is playing preview graph, the avstream data is captured and
rendered to the application.
dispatch routine for IRP_MN_SUPRISE_REMOVAL is handled for default PnP
Handler completion of the request and as part of DEVICE_CAPABILITIES’s
SurpriseRemovalOK is set to TRUE.
In addition is there any thing to be done as part of AVStream mindriver to report the surpise removal of the USB device.
All you need to do is set a flag somewhere so that the driver stops
trying to communicate with the device. Any URBs that are outstanding at
the time of the surprise removal should cancel, but if you submit any
more URBs after that point, you’ll cause trouble.
–
Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.