The MIT License (MIT)
Copyright (c) 2018 theodore26
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
没有合适的资源?快使用搜索试试~ 我知道了~
C#获取及设置系统音量
共40个文件
cs:20个
cache:3个
exe:3个
4星 · 超过85%的资源 需积分: 9 143 下载量 25 浏览量
2018-01-23
10:10:49
上传
评论 2
收藏 68KB ZIP 举报
温馨提示
在网上找设置/获取Windows操作系统音量的方法,要么只有设置的办法(通过SendMessageW发送增减音量、静音消息),要么只适用于Windows XP。找到的关于CoreAudioApi方式处理的方式,里面提供的dll已经失效(codeproject中资源已删除)。最终找到了一处用C#封装的完整代码,但是没有具体示例(有测试案例)。将其中用到的代码简单的抽取出来,组成了本项目。 代码实现了,获取操作系统的主音量、静音状态,设置操作系统主音量、静音状态。当调整操作系统主音量或静音状态时,可以回显主音量和静音状态。 已在Windows7 Windows10操作系统中测试。 使用的Core Audio APIS代码来自于“.NET Core Audio APIs” http://netcoreaudio.codeplex.com/
资源详情
资源评论
资源推荐
收起资源包目录
SetVolume.zip (40个子文件)
SetVolume
Form1.cs 2KB
Program.cs 504B
License.txt 1KB
Form1.resx 6KB
Properties
Settings.settings 249B
Resources.Designer.cs 3KB
AssemblyInfo.cs 1KB
Settings.Designer.cs 1KB
Resources.resx 5KB
SetVolume.csproj 4KB
SetVolume.csproj.user 227B
Form1.Designer.cs 4KB
CoreAudioAPIs
IMMNotificationClient.cs 3KB
VariantData.cs 1KB
IPropertyStore.cs 3KB
IMMDeviceEnumerator.cs 4KB
PublicEnum.cs 5KB
AudioEndpointVolumeCallback.cs 1KB
VolumeControl.cs 3KB
IMMDeviceCollection.cs 1KB
AUDIO_VOLUME_NOTIFICATION_DATA.cs 1KB
IMMDevice.cs 3KB
IAudioEndpointVolume.cs 10KB
PROPERTYKEY.cs 872B
PROPVARIANT.cs 1KB
IAudioEndpointVolumeCallback.cs 811B
obj
x86
Debug
SetVolume.Properties.Resources.resources 180B
SetVolume.GetAndSetVolumeForm.resources 180B
SetVolume.csproj.GenerateResource.Cache 975B
TempPE
SetVolume.csproj.FileListAbsolute.txt 547B
SetVolume.pdb 28KB
DesignTimeResolveAssemblyReferencesInput.cache 6KB
DesignTimeResolveAssemblyReferences.cache 5KB
SetVolume.exe 17KB
bin
Debug
SetVolume.pdb 28KB
SetVolume.vshost.exe.manifest 490B
SetVolume.vshost.exe 11KB
SetVolume.exe 17KB
SetVolume.suo 24KB
SetVolume.sln 869B
共 40 条
- 1
theodore26
- 粉丝: 11
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论5