winform程序静音
2020-12-13 02:40
标签:winform c a tar ext int using System.Runtime.InteropServices; //命名空间 const uint WM_APPCOMMAND = 0x319; [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError =
true)] private void music_Click(object sender, EventArgs e) winform程序静音,搜素材,soscw.com winform程序静音 标签:winform c a tar ext int 原文地址:http://www.cnblogs.com/FLWL/p/3777625.html
const uint APPCOMMAND_VOLUME_UP
= 0x0a;
const uint APPCOMMAND_VOLUME_DOWN = 0x09;
const
uint APPCOMMAND_VOLUME_MUTE = 0x08;
static extern IntPtr SendMessage(IntPtr hWnd, uint Msg, uint
wParam, uint lParam);
{
SendMessage(this.Handle, WM_APPCOMMAND, 0x200eb0, APPCOMMAND_VOLUME_MUTE *
0x10000);
}