[Version]
Signature = "$WINDOWS NT$"
Class     = Display
ClassGuid = {4d36e968-e325-11ce-bfc1-08002be10318}
Provider  = %MSFT%
DriverVer = 06/21/2006,10.0.20348.1

[ClassInstall32]
AddReg = ClassInstall_AddReg

[ClassInstall_AddReg]
HKR,,,,"%ClassDesc%"
HKR,,Security,,"D:P(A;;GA;;;SY)"
HKR,,DeviceType,%REG_DWORD%,0x23
HKR,,DeviceCharacteristics,%REG_DWORD%,0x100
HKR,,IconPath,%REG_MULTI_SZ%,"%%SystemRoot%%\system32\setupapi.dll,-1"
HKR,,LowerLogoVersion,,6.0
HKR,,ConfigureSchemaSettings,,1
HKR,,ReinstallApplicableDevices,,1

[ClassInstall32.Configuration]
AddReg = ClassConfiguration_AddReg

[ClassConfiguration_AddReg]
HKR,Device,VideoID,,$VideoId
HKR,Driver,FeatureScore,,$FeatureScore
HKR,Control\Video\$VideoId\Video,Service,,$Service
HKR,Control\Video\$VideoId\Video,DeviceDesc,,$DeviceDesc
HKR,Control\Video\$VideoId\Video,FeatureScore,,$FeatureScore
HKR,Control\Video\$VideoId\Video,Driver,,$Driver
HKR,Services\$Service\Video,Service,,$Service
HKR,Services\$Service\Video,DeviceDesc,,$DeviceDesc
HKR,Services\$Service\Video,FeatureScore,,$FeatureScore
HKR,Services\$Service\Video,VideoID,,$VideoId

; VideoId = (CurrentVideoId) ? CurrentVideoId : NewVideoId
HKR,Variables\VideoId,,,"Expression"
HKR,Variables\VideoId,Tokens,%REG_MULTI_SZ%,"CurrentVideoId","CurrentVideoId","NewVideoId","?:"

; NewVideoId = {Generate GUID}
HKR,Variables\NewVideoId,,,"GenerateGuid"

; CurrentVideoId = Device\VideoId
HKR,Variables\CurrentVideoId,,,"KeyValue"
HKR,Variables\CurrentVideoId,KeyRoot,,"Device"
HKR,Variables\CurrentVideoId,ValueName,,"VideoId"

; FeatureScore = ((DriverRank & 0x00FF0000) >> 16)
HKR,Variables\FeatureScore,,,"Expression"
HKR,Variables\FeatureScore,Tokens,%REG_MULTI_SZ%,"DriverRank","FeatureScoreMask","&","16",">>"
HKR,Variables\FeatureScoreMask,,,"Constant"
HKR,Variables\FeatureScoreMask,Value,%REG_DWORD%,0x00FF0000

; DriverRank = [DEVPKEY_Device_DriverRank]
HKR,Variables\DriverRank,,,"DeviceProperty"
HKR,Variables\DriverRank,PropertyGuid,,"{a8b865dd-2e3d-4094-ad97-e593a70c75d6}"
HKR,Variables\DriverRank,PropertyId,%REG_DWORD%,14

; Service = [DEVPKEY_Device_Service]
HKR,Variables\Service,,,"DeviceProperty"
HKR,Variables\Service,PropertyGuid,,"{a45c254e-df1c-4efd-8020-67d146a850e0}"
HKR,Variables\Service,PropertyId,%REG_DWORD%,6

; DeviceDesc = [DEVPKEY_Device_DeviceDesc]
HKR,Variables\DeviceDesc,,,"DeviceProperty"
HKR,Variables\DeviceDesc,PropertyGuid,,"{a45c254e-df1c-4efd-8020-67d146a850e0}"
HKR,Variables\DeviceDesc,PropertyId,%REG_DWORD%,2

; Driver = [DEVPKEY_Device_Driver]
HKR,Variables\Driver,,,"DeviceProperty"
HKR,Variables\Driver,PropertyGuid,,"{a45c254e-df1c-4efd-8020-67d146a850e0}"
HKR,Variables\Driver,PropertyId,%REG_DWORD%,11

[Strings]
; localizable strings
MSFT = "Microsoft"
ClassDesc = "Display adapters"

; non-localizable strings
REG_MULTI_SZ = 0x00010000
REG_DWORD    = 0x00010001
