hi every 1
can any 1 help me
i have windows app i want to disaple the sound card and enable the sound card by using command button
thank you
Printable View
hi every 1
can any 1 help me
i have windows app i want to disaple the sound card and enable the sound card by using command button
thank you
no one to answer u diff question
u need prof to do that
I am pretty sure disabling the sound card would be a bad thing, it is heading towards making a virus. If you mean muting the volume, use the waveOutSetVolume:
(taken from PInvoke.net)Code:Public Declare Function waveOutSetVolume Lib "coredll.dll" (ByVal device As IntPtr, ByVal volume As Integer) As Integer
Where the volume is a bundle of two shorts, which can also be seen as this:
Code:Public Structure volume
Public left As Short
Public right As Short
End Structure
Public Declare Function waveOutSetVolume Lib "coredll.dll" (ByVal device As IntPtr, ByVal volume As volume) As Integer
Mutes the volume.Code:Dim rval As Integer = waveOutSetVolume(0, 0)
For enabling/disabling take a look at this post (in c++)
http://stackoverflow.com/questions/1...disable-device