@echo off
setlocal ENABLEDELAYEDEXPANSION
::设置网卡通知区图标显示
for /f "skip=9" %%I in ('REG QUERY HKLM\SYSTEM\CurrentControlSet\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}') do (
for /f "tokens=3* skip=4" %%k in ('REG QUERY %%I\Connection /v PnpInstanceID') do (
set m=%%k
set id=!m:~13,8!
)
devcon disable *!id!*
REG ADD %%I\Connection /v ShowIcon /t REG_DWORD /d 00000001 /f
REG ADD %%I\Connection /v IpCheckingEnabled /t REG_DWORD /d 00000001 /f
devcon enable *!id!*
)
for /f "skip=5" %%I in ('REG QUERY HKLM\SYSTEM\CurrentControlSet\Control\DeviceClasses\{6994AD04-93EF-11D0-A3CC-00A0C9223196}') do (
set m=%%I
set id=!m:~123,8!
devcon disable *!id!*
::音量控制
REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings" /v "MasterVolume" /t REG_BINARY /d 0303 /f
REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings" /v "MasVolL" /t REG_DWORD /d 0xfffc18ae /f
REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0005\Settings" /v "MasVolR" /t REG_DWORD /d 0xfffc18ae /f
REG ADD "%%I\#Wave\Device Parameters\Mixer\ 0\Controls\ 0" /v "Channel 0" /t REG_DWORD /d 0x0000a353 /f
REG ADD "%%I\#Wave\Device Parameters\Mixer\ 0\Controls\ 0" /v "Channel 1" /t REG_DWORD /d 0x0000a353 /f
::波形控制
REG ADD "%%I\#Wave\Device Parameters\Mixer\ 2\Controls\ 0" /v "Channel 0" /t REG_DWORD /d 0x0000147b /f
REG ADD "%%I\#Wave\Device Parameters\Mixer\ 2\Controls\ 0" /v "Channel 1" /t REG_DWORD /d 0x0000147b /f
REG ADD "%%I\#Wave\Device Parameters\Mixer\ 2\Controls\ 0" /v "Channel Count" /t REG_DWORD /d 0x00000002 /f
REG ADD "%%I\#Wave\Device Parameters\Mixer\ 2\Controls\ 0" /v "Control Type" /t REG_DWORD /d 0x50030001 /f
REG ADD "%%I\#Wave\Device Parameters\Mixer\ 2\Controls\ 0" /v "Multiple Items" /t REG_DWORD /d 0x00000000 /f
devcon enable *!id!*
goto end
)
:end
15.45 KB, 下载次数: 272, 下载积分: 无忧币 -2
原帖由 netwinxp 于 2007-7-15 12:15 PM 发表
识别PCI设备其实还挺麻烦的,以你的声卡为例PCI\VEN_8086&DEV_266E&SUBSYS_006A1025&REV_03,首先,VEN_8086也就是说Vendor ID=8086,到http://www.pcidatabase.com/找到厂商为Intel,然后再到Intel主页查找Dev ...
[url]REG ADD "%%I\#Wave\Device Parameters\Mixer\ 0\Controls\ 0" /v "Channel 0" /t REG_DWORD /d 0x0000a353 /f
直接用Devcon disable=class就解决了,多媒体的class="Media",网卡class="Net"。
欢迎光临 无忧启动论坛 (http://bbs.wuyou.net/) | Powered by Discuz! X3.3 |