不进则退

Roger's blog @cnblogs

导航

2005年2月22日 #

在.NET程序中控制系统音量

摘要: 在windows下控制系统音量,需要通过使用win32的WDM audio components(winmm.dll)来实现,为了方便起见,将其封装到了一个AudioMixerHelper类中,可以直接通过GetVolume()和SetVolume方法来改变音量。 using System; using System.Runtime.InteropServices; ... 阅读全文

posted @ 2005-02-22 16:43 Roger Wo 阅读(3509) 评论(7) 推荐(1) 编辑