Hello all ,
I am having a strange problem , I hope you guys can help me out ;-
-> I am working on a MSVAD like VAD which transfers data over a network to a remote system , the problem is when a remote device is removed when it is in use ( say when I am using that as the audio device in WMP on the host device ), then I am unable to remove the device in the host system as the device still holds a handle but the remote device is removed physically !
-> So is there any way to inform the WMP(audio application) that the device has been removed ? Or do we have anyway using which I can forcefully close all the open handles of a device ?
-> Any possible solution either in the user mode or in the kernel mode would do .
Any help would be greatly appreciated .
TIA,
Venkatesh
xxxxx@gmail.com wrote:
Hello all ,
I am having a strange problem , I hope you guys can help me out ;-
-> I am working on a MSVAD like VAD which transfers data over a network to a remote system , the problem is when a remote device is removed when it is in use ( say when I am using that as the audio device in WMP on the host device ), then I am unable to remove the device in the host system as the device still holds a handle but the remote device is removed physically !
-> So is there any way to inform the WMP(audio application) that the device has been removed ? Or do we have anyway using which I can forcefully close all the open handles of a device ?
-> Any possible solution either in the user mode or in the kernel mode would do .
When this happens, are you returning errors in your VAD? That’s about
all you can do. Return errors and hope the applications get the hint.
You cannot forcefully close a handle.
–
Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.
> -> So is there any way to inform the WMP(audio application) that the device has been removed ?
I think you can emulate the speakers plug being out in some way.
Vista+ audio stack supports such things.
–
Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com