📄 ac97smpl.inf
字号:
;Copyright (c) 1998-2000 Microsoft Corporation All rights Reserved
;
;Module Name:
; ac97smpl.INF
;
;Abstract:
; INF file for installing AC97 WDM Sample Driver
;
;
; During upgrade from Win98SE or Win ME, the default upgrade behavior won't upgrade the drivers
; to Win2k or Windows XP. The sample inf has implemented what's mentioned in
; WINDDK\..\src\setup\devupgrd\devupgrd.doc.
; If your driver would never be installed under Win98SE or Win ME, you don't need this new migrate.dll
; stuff.
[Version]
Signature="$CHICAGO$"
Class=MEDIA
ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
provider=%ProviderName%
;;The following line is used only when the INF comes with the Windows system
;;IHV needs to comment out the following line for their OEM redistributed disk.
;;LayoutFile=layout.inf, layout1.inf, layout2.inf
DriverVer=06/22/2000,5.00.2246.1
;You must specify which platform is supported by each SourceDisksNames section
;Valid platform identifiers include .x86, .ia64, .alpha, .axp64
[SourceDisksNames.x86]
222=%DiskDescription%,,,
;You must also specify which platform is supported by each SourceDisksFiles section
;Valid platform identifiers include .x86, .ia64, .alpha, .axp64
[SourceDisksFiles.x86]
ac97smpl.sys=222
ac97prop.dll=222
;the entries below are used by the device migration dll, on Win95/98 to Win2K upgrades
Migrate.dll=222
ac97smpl.inf=222
[Manufacturer]
%MfgName%=Intel
;; Excluding drivers from the "Add New Hardware" list.
[ControlFlags]
ExcludeFromSelect = *
[Intel]
%AC97SMPL_AA.DeviceDesc%=AC97SMPL, PCI\VEN_8086&DEV_2415
%AC97SMPL_AB.DeviceDesc%=AC97SMPL, PCI\VEN_8086&DEV_2425
%AC97SMPL_BA.DeviceDesc%=AC97SMPL, PCI\VEN_8086&DEV_2445
[DestinationDirs]
AC97SMPL.CopyList=10,system32\drivers
AC97PROP.CopyList=10,system32
DevUpgrd_Files = 10, win9xmig\DevUpgrd
WDMDriver_Files = 10, win9xmig\DevUpgrd\AC97WDM ; Replace "AC97WDM" with your favorite vendor related name
[AC97SMPL]
;;This inf is intended for use by IHV. So, it's going to be used as from OEM distributed disk
;;This is why AlsoInstall got used instead if Needs & Include
AlsoInstall=KS.Registration(ks.inf), WDMAUDIO.Registration(wdmaudio.inf)
CopyFiles=AC97SMPL.CopyList, DevUpgrd_Files, WDMDriver_Files
AddReg=AC97SMPL.AddReg,AC97SMPL_NAMES.AddReg,AC97SMPL_OEM.AddReg,DevUpgrd_AddReg
KnownRegEntries=AC97.KnownRegEntries
;;Exclude driver installation for those PnP ID's.
;;This PnP ID is an example of a machine where the driver won't work correctly
ExcludeId=PCI\VEN_8086&DEV_2415&SUBSYS_536011D4&REV_00
[AC97.KnownRegEntries]
IsWin98Gold=keep
[IsWin98Gold]
1=HKLM,Software\Microsoft\Windows\CurrentVersion,VersionNumber,0,4.10.1998
[AC97SMPL.CopyList]
AC97SMPL.sys
[DevUpgrd_Files]
;;This migrate.dll can be found in the DDK (beta2 or after) under src\setup\devupgrd
Migrate.dll
[WDMDriver_Files]
ac97smpl.inf ; Name of your INF goes here
AC97SMPL.sys ; Name of your driver file(s) goes here
ac97prop.dll
[AC97SMPL.Interfaces]
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Wave%,AC97SMPL.Interface.Wave
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_Wave%,AC97SMPL.Interface.Wave
AddInterface=%KSCATEGORY_CAPTURE%,%KSNAME_Wave%,AC97SMPL.Interface.Wave
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Topology%,AC97SMPL.Interface.Topology
[AC97SMPL.Interface.Wave]
AddReg=AC97SMPL.I.Wave.AddReg
[AC97SMPL.I.Wave.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%AC97SMPL.Wave.szPname%
[AC97SMPL.Interface.Topology]
AddReg=AC97SMPL.I.Topo.AddReg
[AC97SMPL.I.Topo.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%AC97SMPL.Topology.szPname%
[AC97SMPL.AddReg]
HKR,,AssociatedFilters,,"wdmaud,swmidi,redbook"
HKR,,Driver,,AC97SMPL.sys
HKR,,NTMPDriver,,"AC97SMPL.sys,sbemul.sys"
HKR,Drivers,SubClasses,,"wave,midi,mixer"
HKR,Drivers\wave\wdmaud.drv,Driver,,wdmaud.drv
HKR,Drivers\midi\wdmaud.drv,Driver,,wdmaud.drv
HKR,Drivers\mixer\wdmaud.drv,Driver,,wdmaud.drv
HKR,Drivers\wave\wdmaud.drv,Description,,%AC97SMPL.DeviceDesc%
HKR,Drivers\midi\wdmaud.drv, Description,,%AC97SMPL.DeviceDesc%
HKR,Drivers\mixer\wdmaud.drv,Description,,%AC97SMPL.DeviceDesc%
[DevUpgrd_AddReg]
HKLM,"Software\Microsoft\Windows\CurrentVersion\Setup\Migration DLLs","Microsoft Device Upgrade Pack",,%10%\win9xmig\DevUpgrd
HKLM,"Software\Microsoft\Windows\CurrentVersion\Setup\UpgradeDrivers","PCI\VEN_8086&DEV_2415",,%10%\win9xmig\DevUpgrd\AC97WDM\ac97smpl.inf
HKLM,"Software\Microsoft\Windows\CurrentVersion\Setup\UpgradeDrivers","PCI\VEN_8086&DEV_2425",,%10%\win9xmig\DevUpgrd\AC97WDM\ac97smpl.inf
HKLM,"Software\Microsoft\Windows\CurrentVersion\Setup\UpgradeDrivers","PCI\VEN_8086&DEV_2445",,%10%\win9xmig\DevUpgrd\AC97WDM\ac97smpl.inf
[AC97SMPL.Services]
AddService = AC97SMPL, 0x00000002, AC97SMPL_Service_Inst
[AC97SMPL_Service_Inst]
DisplayName = %AC97SMPL.SvcDesc%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %10%\system32\drivers\AC97SMPL.sys
[AC97SMPL_NAMES.AddReg]
;; Nodes
HKLM,%MediaCategories%\%ICHGUID.PhoneVolume%,Name,,%ICHNode.PhoneVolume%
HKLM,%MediaCategories%\%ICHGUID.PhoneVolume%,Display,1,00,00,00,00
HKLM,%MediaCategories%\%ICHGUID.PhoneMute%,Name,,%ICHNode.PhoneMute%
HKLM,%MediaCategories%\%ICHGUID.PhoneMute%,Display,1,00,00,00,00
HKLM,%MediaCategories%\%ICHGUID.LineInMute%,Name,,%ICHNode.LineInMute%
HKLM,%MediaCategories%\%ICHGUID.LineInMute%,Display,1,00,00,00,00
HKLM,%MediaCategories%\%ICHGUID.MainMix%,Name,,%ICHNode.MainMix%
HKLM,%MediaCategories%\%ICHGUID.MainMix%,Display,1,00,00,00,00
HKLM,%MediaCategories%\%ICHGUID.3DBypass%,Name,,%ICHNode.3DBypass%
HKLM,%MediaCategories%\%ICHGUID.3DBypass%,Display,1,00,00,00,00
HKLM,%MediaCategories%\%ICHGUID.3DEnable%,Name,,%ICHNode.3DEnable%
HKLM,%MediaCategories%\%ICHGUID.3DEnable%,Display,1,00,00,00,00
HKLM,%MediaCategories%\%ICHGUID.BeepMix%,Name,,%ICHNode.BeepMix%
HKLM,%MediaCategories%\%ICHGUID.BeepMix%,Display,1,00,00,00,00
HKLM,%MediaCategories%\%ICHGUID.HPVolume%,Name,,%ICHNode.HPVolume%
HKLM,%MediaCategories%\%ICHGUID.HPVolume%,Display,1,00,00,00,00
HKLM,%MediaCategories%\%ICHGUID.HPMute%,Name,,%ICHNode.HPMute%
HKLM,%MediaCategories%\%ICHGUID.HPMute%,Display,1,00,00,00,00
HKLM,%MediaCategories%\%ICHGUID.MonoOutSelect%,Name,,%ICHNode.MonoOutSelect%
HKLM,%MediaCategories%\%ICHGUID.MonoOutSelect%,Display,1,00,00,00,00
HKLM,%MediaCategories%\%ICHGUID.WaveInSelect%,Name,,%ICHNode.WaveInSelect%
HKLM,%MediaCategories%\%ICHGUID.WaveInSelect%,Display,1,00,00,00,00
HKLM,%MediaCategories%\%ICHGUID.MasterInVolume%,Name,,%ICHNode.MasterInVolume%
HKLM,%MediaCategories%\%ICHGUID.MasterInVolume%,Display,1,00,00,00,00
HKLM,%MediaCategories%\%ICHGUID.MasterInMute%,Name,,%ICHNode.MasterInMute%
HKLM,%MediaCategories%\%ICHGUID.MasterInMute%,Display,1,00,00,00,00
HKLM,%MediaCategories%\%ICHGUID.MicInVolume%,Name,,%ICHNode.MicInVolume%
HKLM,%MediaCategories%\%ICHGUID.MicInVolume%,Display,1,00,00,00,00
HKLM,%MediaCategories%\%ICHGUID.MicInMute%,Name,,%ICHNode.MicInMute%
HKLM,%MediaCategories%\%ICHGUID.MicInMute%,Display,1,00,00,00,00
HKLM,%MediaCategories%\%ICHGUID.SimulStereo%,Name,,%ICHNode.SimulStereo%
HKLM,%MediaCategories%\%ICHGUID.SimulStereo%,Display,1,00,00,00,00
HKLM,%MediaCategories%\%ICHGUID.SurroundVolume%,Name,,%ICHNode.SurroundVolume%
HKLM,%MediaCategories%\%ICHGUID.SurroundVolume%,Display,1,00,00,00,00
HKLM,%MediaCategories%\%ICHGUID.SurroundMute%,Name,,%ICHNode.SurroundMute%
HKLM,%MediaCategories%\%ICHGUID.SurroundMute%,Display,1,00,00,00,00
HKLM,%MediaCategories%\%ICHGUID.CenterVolume%,Name,,%ICHNode.CenterVolume%
HKLM,%MediaCategories%\%ICHGUID.CenterVolume%,Display,1,00,00,00,00
HKLM,%MediaCategories%\%ICHGUID.CenterMute%,Name,,%ICHNode.CenterMute%
HKLM,%MediaCategories%\%ICHGUID.CenterMute%,Display,1,00,00,00,00
HKLM,%MediaCategories%\%ICHGUID.LFEVolume%,Name,,%ICHNode.LFEVolume%
HKLM,%MediaCategories%\%ICHGUID.LFEVolume%,Display,1,00,00,00,00
HKLM,%MediaCategories%\%ICHGUID.LFEMute%,Name,,%ICHNode.LFEMute%
HKLM,%MediaCategories%\%ICHGUID.LFEMute%,Display,1,00,00,00,00
HKLM,%MediaCategories%\%ICHGUID.FrontVolume%,Name,,%ICHNode.FrontVolume%
HKLM,%MediaCategories%\%ICHGUID.FrontVolume%,Display,1,00,00,00,00
HKLM,%MediaCategories%\%ICHGUID.FrontMute%,Name,,%ICHNode.FrontMute%
HKLM,%MediaCategories%\%ICHGUID.FrontMute%,Display,1,00,00,00,00
;; Pins
HKLM,%MediaCategories%\%ICHGUID.Surround%,Name,,%ICHPin.Surround%
HKLM,%MediaCategories%\%ICHGUID.Surround%,Display,1,00,00,00,00
HKLM,%MediaCategories%\%ICHGUID.Center%,Name,,%ICHPin.Center%
HKLM,%MediaCategories%\%ICHGUID.Center%,Display,1,00,00,00,00
HKLM,%MediaCategories%\%ICHGUID.LFE%,Name,,%ICHPin.LFE%
HKLM,%MediaCategories%\%ICHGUID.LFE%,Display,1,00,00,00,00
HKLM,%MediaCategories%\%ICHGUID.Front%,Name,,%ICHPin.Front%
HKLM,%MediaCategories%\%ICHGUID.Front%,Display,1,00,00,00,00
[AC97SMPL_OEM.AddReg]
;;Default register value at driver startup
;;Uncomment some one of the lines if you want to overwrite the default setting
;;The value in these outcommented lines is the driver default. You can change
;;the register values (and uncomment the line) to overwrite the driver default.
;;low byte comes first, values are hexadezimal.
;HKR,Settings,MasterVolume,1,0,0 ;0dB
;HKR,Settings,HeadphoneVolume,1,0,0 ;0dB
;HKR,Settings,MonooutVolume,1,0,0 ;0dB
;HKR,Settings,ToneControls,1,F,F ;bypass
;HKR,Settings,BeepVolume,1,0,0 ;0dB
;HKR,Settings,PhoneVolume,1,8,80 ;muted
;HKR,Settings,MicVolume,1,8,80 ;muted
;HKR,Settings,LineInVolume,1,8,8 ;0dB
;HKR,Settings,CDVolume,1,8,8 ;0dB
;HKR,Settings,VideoVolume,1,8,8 ;0dB
;HKR,Settings,AUXVolume,1,8,8 ;0dB
;HKR,Settings,WaveOutVolume,1,8,8 ;0dB. This register is never touched by the system.
;HKR,Settings,RecordSelect,1,4,4 ;select LiniIn
;HKR,Settings,RecordGain,1,0,0 ;0dB
;HKR,Settings,RecordGainMic,1,0,0 ;0dB
;HKR,Settings,GeneralPurpose,1,0,0 ;pre 3D, 3D off, loudness off, mono=mix, mic1
;HKR,Settings,3DControl,1,0,0 ;0%
;HKR,Settings,PowerDown,1,0,0 ;no power down
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -