【发布时间】:2015-01-01 03:29:46
【问题描述】:
我发现这个脚本可以改变系统音量,它可以工作。但是这些恒量代码叫什么,我在哪里可以找到这些代码的完整列表,这些代码可以做更多的事情。
[DllImport("user32.dll")]
static extern IntPtr SendMessage(IntPtr hWnd, int Msg, IntPtr wParam, IntPtr lParam);
//Volume codes, or messages, or whatever they are called
const int VOLUME_MUTE = 0x80000;
const int VOLUME_DOWN = 0x90000;
const int VOLUME_UP = 0xA0000;
SendMessage(this.Handle, 0x319, IntPtr.Zero, (IntPtr)VOLUME_UP);
【问题讨论】: