[Version]
Signature   = "$WINDOWS NT$"
Class       = Image
ClassGuid   = {6bdd1fc6-810f-11d0-bec7-08002be2092f}
Provider    = %MSFT%
PnpLockdown = 1
DriverVer = 06/21/2006,10.0.22621.1

[ClassInstall32]
AddReg = ClassInstall_AddReg

[ClassInstall_AddReg]
HKR,,,,"@%%SystemRoot%%\system32\sti_ci.dll,-52"
HKR,,"UpperFilters",%REG_MULTI_SZ_APPEND%,"ksthunk"
HKR,,IconPath,%REG_MULTI_SZ%,"%%SystemRoot%%\system32\sti_ci.dll,-1000"
HKR,,LowerLogoVersion,,5.2
HKR,,ConfigurableClassVersion,,2.0

HKR,,Installer32,,"sti_ci.dll,ClassInstall"

HKR,,ConfigureSchemaSettings,,1

[ClassInstall32.Configuration]
AddReg = ClassConfiguration_AddReg

[ClassConfiguration_AddReg]
HKR,Reset\Driver,PreferDeviceInfo,%FLG_ADDREG_DELVAL%
HKR,Reset\Driver,MediaInterfaces,%FLG_ADDREG_DELVAL%

; 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"

[Strings]
; localizable strings
MSFT = "Microsoft"

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