954,558 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to temporarily disable Sound Card/Driver

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.

cyman73
Newbie Poster
11 posts since Jul 2006
Reputation Points: 10
Solved Threads: 0
 

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.

Comatose
Taboo Programmer
Team Colleague
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215
 

Thank you very much for your help. I tried the link, but it does not work.

cyman73
Newbie Poster
11 posts since Jul 2006
Reputation Points: 10
Solved Threads: 0
 

Sorry about that, vBulletin assumed the trailing ) as part of the URL, but it's not: http://support.microsoft.com/?kbid=311272

Comatose
Taboo Programmer
Team Colleague
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215
 

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

samju
Newbie Poster
1 post since Aug 2010
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You