静音/取消静音,更改主音量在Windows 7 64位系统用C# [英] Mute/unmute, Change master volume in Windows 7 x64 with C#

查看:550
本文介绍了静音/取消静音,更改主音量在Windows 7 64位系统用C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何调整Windows 7的主音量与C#?

How can I adjust master volume in Windows 7 with C#?

我已经看到了使用WINMM.DLL <一个极好的实现href=\"http://www.$c$cguru.com/csharp/csharp/cs_graphics/sound/article.php/c10931/Windows-Mixer-Control-in-C.htm\">here,但它与XP而不是Windows 7操作系统。

I have seen an excellent implementation using winmm.dll here, but it works with XP and not with Windows 7.

推荐答案

$ C $的CProject有一个很好的样本的此处。请注意,它依赖于COM互操作完全(检查COM接口如 IAudioEndpointVolume IAudioMeterInformation MSDN上如果您有兴趣的实施细则),并仅适用于VISTA / Win7和更高版本。

CodeProject has a very good sample here. Note that it relies on COM interop completely (check COM interface like IAudioEndpointVolume and IAudioMeterInformation on MSDN if you are interested in implementation details), and works ONLY for Vista/Win7 and higher.

最低支持的客户端:Windows Vista中

Minimum supported client: Windows Vista

最低支持的服务器:在Windows Server 2008

Minimum supported server: Windows Server 2008

这篇关于静音/取消静音,更改主音量在Windows 7 64位系统用C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆