[Version]
Signature = "$WINDOWS NT$"
ClassGUID = {D421B08E-6D16-41CA-9C4D-9147E5AC98E0}
Class = Miracast
Provider = %MSFT%
PnpLockdown = 1
DriverVer = 06/21/2006,10.0.20348.4405

;
;  Miracast Display Class Section
;

[ClassInstall32]
Addreg = MiracastClassReg

[MiracastClassReg]
HKR,,,,%ClassName%
HKR,,IconPath,%REG_MULTI_SZ%,"%%SystemRoot%%\System32\imageres.dll,-5371"

[SourceDisksNames]
3426 = windows cd

[SourceDisksFiles]
MiraDisp.dll = 3426

[DestinationDirs]
MiraDisp.Files = 12, UMDF

[ControlFlags]
ExcludeFromSelect   = *

[Manufacturer]
%MiraDisp% = MiraDisp.Mfg,NTamd64

[MiraDisp.Mfg.NTamd64]
%MiraDisp% = MiraDisp_Inst, WFD\MiracastDisplayDevice

;
; Miracast Display Port Driver Section
;

[MiraDisp_Inst]
CopyFiles = MiraDisp.Files
AddReg = MiraDisp_SoftwareDeviceSettings

[MiraDisp.Files]
MiraDisp.dll,,,0x100

[MiraDisp_SoftwareDeviceSettings]
HKR,, MiracastDriverName, %REG_SZ%, MsMiraDisp.dll

;
; Hardware Setting Installation
;

[MiraDisp_Inst.HW]
AddReg = MiraDisp_HardwareDeviceSettings

[MiraDisp_HardwareDeviceSettings]
HKR,, "UpperFilters", %REG_MULTI_SZ%, "IndirectKmd"
HKR,, "LowerFilters", %REG_MULTI_SZ%, "vhf"
HKR, "WUDF", "DeviceGroupId", %REG_SZ%, "MiracastDevices"
HKR,, Security, , "D:P(A;;GA;;;SY)(A;;GA;;;LS)(A;;GA;;;BA)(A;;GA;;;AU)" ; Allow generic-all access to System, Local System, built-in Admins, and Authenticated Users.
                                                                        ; This is further restricted in the driver itself.

;
; Service Installation
;

[MiraDisp_Inst.Services]
AddService = WUDFRd,0x000001fa,WUDFRD_ServiceInstall

[WUDFRD_ServiceInstall]
DisplayName = %WudfRdDisplayName%
ServiceType = 1
StartType = 3
ErrorControl = 1
ServiceBinary = %12%\WUDFRd.sys

;
; WUDF driver installation
;

[MiraDisp_Inst.Wdf]
UmdfService = MiraDisp, MiraDisp_Install
UmdfServiceOrder = MiraDisp
UmdfKernelModeClientPolicy = AllowKernelModeClients
UmdfMethodNeitherAction	= Copy
UmdfFileObjectPolicy = AllowNullAndUnknownFileObjects
UmdfImpersonationLevel = Impersonation

[MiraDisp_Install]
UmdfLibraryVersion = 2.0.0
DriverCLSID = "{D421B08E-6D16-41CA-9C4D-9147E5AC98E0}"
ServiceBinary = %12%\UMDF\MiraDisp.dll
UmdfExtensions = IddCx0102

[Strings]

;
; Non-Localizable Strings
;

SERVICE_BOOT_START = 0x0
SERVICE_SYSTEM_START = 0x1
SERVICE_AUTO_START = 0x2
SERVICE_DEMAND_START = 0x3
SERVICE_DISABLED = 0x4

SERVICE_KERNEL_DRIVER = 0x1
SERVICE_ERROR_IGNORE = 0x0
SERVICE_ERROR_NORMAL = 0x1
SERVICE_ERROR_SEVERE = 0x2
SERVICE_ERROR_CRITICAL = 0x3

REG_SZ = 0x00000000
REG_MULTI_SZ = 0x00010000
REG_EXPAND_SZ = 0x00020000
REG_DWORD = 0x00010001

;
; Localizable Strings
;

MSFT = "Microsoft"
ClassName = "Miracast display devices"
MiraDisp = "Miracast display port driver V3"
WudfRdDisplayName = "Windows Driver Foundation - User-mode Driver Framework Reflector"
