How do I tell if the master volume is muted?
Posted
by
John_Sheares
on Stack Overflow
See other posts from Stack Overflow
or by John_Sheares
Published on 2010-12-30T02:21:32Z
Indexed on
2010/12/30
2:54 UTC
Read the original article
Hit count: 194
I am using the following to mute/unmute the master audio on my computer. Now, I am looking for a way to determine the mute state. Is there a just as easy way to do this in C#?
private const int APPCOMMAND_VOLUME_MUTE = 0x80000;
private const int WM_APPCOMMAND = 0x319;
[DllImport("user32.dll")]
public static extern IntPtr SendMessageW(IntPtr hWnd, int Msg, IntPtr wParam, IntPtr lParam);
© Stack Overflow or respective owner