944,049 Members | Top Members by Rank

Ad:
Jul 24th, 2006
0

How to temporarily disable Sound Card/Driver

Expand Post »
Hello all,

How can the sound card be Enabled/Disabled with Vb Code? Is this possible through API call? or maybe registry edit?

My app. needs to disable sound card while running then enable afterward. This app will be running on a dedicated system.

Using "black box" object. The object's method (for which I don't have source code) uses .wav file play that can overwhelm the sound card to the point of BSOD. After manually disabling my sound device the BSOD events dissapeared. Mute does not work, BSOD still occurs.

Any help is greatly appreciated.

Thank you.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
cyman73 is offline Offline
11 posts
since Jul 2006
Jul 24th, 2006
0

Re: How to temporarily disable Sound Card/Driver

After some pretty hard-core searching, I've settled on the fact that you simply can't by yourself. I've looked into API's, WMI, and using Sendkeys to the device manager window itself :eek: (which works, btw, but it's really tacky, and certainly not something I'm going to suggest). After all is said and done, it looks like there is a utility called "devcon" from microsoft, that can be used to do what you want (http://support.microsoft.com/?kbid=311272). I'm quite a bit disappointed that I can't find a VB solution to this, or even a solution in another language that I could port to VB. Everything seems to rely on this tool...... good luck.
Last edited by Comatose; Jul 24th, 2006 at 11:08 am.
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004
Jul 24th, 2006
0

Re: How to temporarily disable Sound Card/Driver

Thank you very much for your help. I tried the link, but it does not work.
Last edited by cyman73; Jul 24th, 2006 at 8:21 am.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
cyman73 is offline Offline
11 posts
since Jul 2006
Jul 24th, 2006
0

Re: How to temporarily disable Sound Card/Driver

Sorry about that, vBulletin assumed the trailing ) as part of the URL, but it's not: http://support.microsoft.com/?kbid=311272
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004
Aug 14th, 2010
0
Re: How to temporarily disable Sound Card/Driver
i need an asisstance on how i disable the keboard using visual basic 6.0. let it works like a cyber cafe timer billing software
Reputation Points: 10
Solved Threads: 0
Newbie Poster
samju is offline Offline
1 posts
since Aug 2010

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: adding a record to a table in Access
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: generate loan repayment schedule





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC