[Version]
Signature   = "$WINDOWS NT$"
Class       = MEDIA
ClassGuid   = {4d36e96c-e325-11ce-bfc1-08002be10318}
Provider    = %MSFT%
PnpLockdown = 1
DriverVer = 06/21/2006,10.0.22621.1

[ClassInstall32]
AddReg = ClassInstall_AddReg

[ClassInstall_AddReg]
HKR,,,,"%ClassDesc%"
HKR,,UpperFilters,%REG_MULTI_SZ_APPEND%,"ksthunk"
HKR,,IconPath,%REG_MULTI_SZ%,"%%SystemRoot%%\system32\mmsys.cpl,-3004"
HKR,,LowerLogoVersion,,5.1
HKR,,ConfigurableClassVersion,,2.0
HKR,,ConfigureSchemaSettings,,1

[ClassInstall32.Configuration]
AddReg = ClassConfiguration_AddReg

[ClassConfiguration_AddReg]
HKR,Reset\Driver\Drivers,,%FLG_ADDREG_DELKEY%
HKR,Reset\Driver\UnretainedSettings,,%FLG_ADDREG_DELKEY%
HKR,Reset\Driver,DevLoader,%FLG_ADDREG_DELVAL%
HKR,Reset\Driver,Driver,%FLG_ADDREG_DELVAL%
HKR,Reset\Driver,DriverType,%FLG_ADDREG_DELVAL%
HKR,Reset\Driver,EnumPropPages,%FLG_ADDREG_DELVAL%
HKR,Reset\Driver,NTMPDriver,%FLG_ADDREG_DELVAL%
HKR,Reset\Driver,AssociatedFilters,%FLG_ADDREG_DELVAL%
HKR,Reset\Driver,FDMA,%FLG_ADDREG_DELVAL%
HKR,Reset\Driver,PreferDeviceInfo,%FLG_ADDREG_DELVAL%
HKR,Reset\Driver,MediaInterfaces,%FLG_ADDREG_DELVAL%
HKR,Reset\Instance,Service,%FLG_ADDREG_DELVAL%
HKR,Reset\Properties,"{b3f8fa53-0004-438e-9003-51a46e139bfc},7",%FLG_ADDREG_DELVAL% ; PKEY_Endpoint_NameDiscriminator

; FriendlyName = ((PreferDeviceInfo != 0) && (RootEnum != "ROOT")) ? BusDeviceDesc : none
HKR,Instance,$!BusFriendlyName,,"$BusDeviceDesc"
HKR,Variables\BusDeviceDesc,,,"DeviceProperty"
HKR,Variables\BusDeviceDesc,PropertyGuid,,"{540b947e-8b40-45bc-a8a2-6a0b894cbda2}"
HKR,Variables\BusDeviceDesc,PropertyId,%REG_DWORD%,4
HKR,Variables\PreferDeviceInfo,,,"KeyValue"
HKR,Variables\PreferDeviceInfo,KeyRoot,,"Driver"
HKR,Variables\PreferDeviceInfo,ValueName,,"PreferDeviceInfo"
HKR,Variables\PreferDeviceInfo,DefaultValue,%REG_DWORD%,0
HKR,Variables\EnumName,,,"DeviceProperty"
HKR,Variables\EnumName,PropertyGuid,,"{a45c254e-df1c-4efd-8020-67d146a850e0}"
HKR,Variables\EnumName,PropertyId,%REG_DWORD%,24
HKR,Variables\RootEnumName,,,"Constant"
HKR,Variables\RootEnumName,Value,,"ROOT"
HKR,Variables\NeedFriendlyName,,,"Expression"
HKR,Variables\NeedFriendlyName,Tokens,%REG_MULTI_SZ%,"PreferDeviceInfo","0","!=","EnumName","RootEnumName","!=","&&"
HKR,Variables\BusFriendlyName,,,"Expression"
HKR,Variables\BusFriendlyName,Tokens,%REG_MULTI_SZ%,"NeedFriendlyName","FriendlyName","NoFriendlyName","?:"
HKR,Variables\FriendlyName,,,"Constant"
HKR,Variables\FriendlyName,Value,,"FriendlyName"
HKR,Variables\NoFriendlyName,,,"Constant"
HKR,Variables\NoFriendlyName,Value,%REG_DWORD%,0

HKR,Interfaces\$MediaInterfaces\Properties,$InterfaceFriendlyName,,"$BusDeviceDesc"
HKR,Variables\MediaInterfaces,,,"KeyValue"
HKR,Variables\MediaInterfaces,KeyRoot,,"Driver"
HKR,Variables\MediaInterfaces,ValueName,,"MediaInterfaces"
HKR,Variables\InterfaceFriendlyName,,,"Expression"
HKR,Variables\InterfaceFriendlyName,Tokens,%REG_MULTI_SZ%,"NeedFriendlyName","FriendlyNameProperty","NoFriendlyName","?:"
HKR,Variables\FriendlyNameProperty,,,"Constant"
HKR,Variables\FriendlyNameProperty,Value,,"{026e516e-b814-414b-83cd-856d6fef4822},2"

HKR,Driver,$!PreferredAudioDevicesCount,%REG_DWORD%,0
HKR,Variables\PreferredAudioDevicesCount,,,"Expression"
HKR,Variables\PreferredAudioDevicesCount,Tokens,%REG_MULTI_SZ%,"SubClasses","?","AudioDevicesCount","NoAudioDevicesCount","?:"
HKR,Variables\AudioDevicesCount,,,"Constant"
HKR,Variables\AudioDevicesCount,Value,,"SetupPreferredAudioDevicesCount"
HKR,Variables\NoAudioDevicesCount,,,"Constant"
HKR,Variables\NoAudioDevicesCount,Value,%REG_DWORD%,0
HKR,Variables\SubClasses,KeyRoot,,"Driver"
HKR,Variables\SubClasses,KeyPath,,"Drivers"
HKR,Variables\SubClasses,ValueName,,"SubClasses"

[InterfaceInstall32]
{2EEF81BE-33FA-4800-9670-1CD474972c3f} = Audiocapture_InterfaceInstall
{E5323777-F976-4f5b-9B55-B94699C46E44} = Videocapture_InterfaceInstall

[Audiocapture_InterfaceInstall]
AddReg = Audiocapture_InterfaceInstall_AddReg

[Audiocapture_InterfaceInstall_AddReg]
HKR,,,,"%AudiocaptureDesc%"

[Videocapture_InterfaceInstall]
AddReg = Videocapture_InterfaceInstall_AddReg

[Videocapture_InterfaceInstall_AddReg]
HKR,,,,"%VideocaptureDesc%"

[Strings]
; localizable strings
MSFT             = "Microsoft"
AudiocaptureDesc = "Microphone"
VideocaptureDesc = "Webcam"
ClassDesc = "Sound, video and game controllers"

; non-localizable strings
REG_MULTI_SZ        = 0x00010000 ; FLG_ADDREG_TYPE_MULTI_SZ
REG_MULTI_SZ_APPEND = 0x00010008 ; FLG_ADDREG_TYPE_MULTI_SZ | FLG_ADDREG_APPEND
REG_DWORD           = 0x00010001
FLG_ADDREG_DELVAL   = 0x00000004
FLG_ADDREG_DELKEY   = 0x00002004
