jjzjj

APPCOMMAND

全部标签

c# - 使用 C# 使 Windows 音量静音

有人知道如何使用C#以编程方式使WindowsXP音量静音吗? 最佳答案 为P/Invoke声明:privateconstintAPPCOMMAND_VOLUME_MUTE=0x80000;privateconstintWM_APPCOMMAND=0x319;[DllImport("user32.dll")]publicstaticexternIntPtrSendMessageW(IntPtrhWnd,intMsg,IntPtrwParam,IntPtrlParam);然后使用这一行来静音/取消静音。SendMessageW(thi

windows - 调整 Windows 扬声器音量 VB.NET

如何通过VB.NET更改Windows扬声器音量(主输出音量控制音量值)?我想要一种方法来间接更改整个系统的音量,就像我们在Windows7上的音量控制应用程序中所做的那样 最佳答案 来自:http://social.msdn.microsoft.com/Forums/vstudio/en-US/8308f020-b9e6-472c-aaac-93619a8a5a7d/vbnet-control-the-system-volume-mute-and-output-the-current-level-to-the-user?forum