04 2013 档案
摘要:static class NativeMethods { [DllImport("winmm.dll", EntryPoint = "waveOutSetVolume")] public static extern int WaveOutSetVolume(IntPtr hwo, uint dwVolume); }调用:NativeMethods.WaveOutSetVolume(IntPtr.Zero,音量大小)windows7下测试通过,因为win7有增强型音量控制, 不清楚xp下行不行, 待会虚拟机上...
阅读全文