; usbmmm.inf
;
; Installation inf for the USB Mobile Monitor Indirect Display Adapater
; http://www.usbmobilemonitor.com
; Copyright Amyuni Technologies: http://www.amyuni.com
;

[Version]
PnpLockDown=1
Signature="$Windows NT$"
Provider=%amyuni%
ClassGUID = {4D36E968-E325-11CE-BFC1-08002BE10318}
Class = Display
ClassVer = 2.0
DriverVer=08/31/2021,2.0.0.1
CatalogFile=usbmmIdd.cat

[Manufacturer]
%amyuni%=Standard,,ntx86,ntamd64

[Standard.ntx86]
%UsbmmIdd%=MyDevice_Install, usbmmIdd

[Standard.ntamd64]
%UsbmmIdd%=MyDevice_Install, usbmmIdd

[SourceDisksFiles]
usbmmIdd.dll=1

[SourceDisksNames.x86]
1 = %DiskId%,,,\Win32

[SourceDisksNames.amd64]
1 = %DiskId%,,,\x64

; =================== UMDF Device ==================================

[MyDevice_Install.NT]
CopyFiles=UMDriverCopy

[MyDevice_Install.NT.hw]
AddReg = MyDevice_HardwareDeviceSettings

[MyDevice_Install.AddReg]
HKR, "Parameters\Monitors", , %REG_SZ%, "1920,1080"
HKR, "Parameters\Monitors", "0", %REG_SZ%, "1024,768"
HKR, "Parameters\Monitors", "1", %REG_SZ%, "1360,768"
HKR, "Parameters\Monitors", "2", %REG_SZ%, "1440,900"
HKR, "Parameters\Monitors", "3", %REG_SZ%, "1600,900"
HKR, "Parameters\Monitors", "4", %REG_SZ%, "1600,1200"
HKR, "Parameters\Monitors", "5", %REG_SZ%, "1920,1080"
HKR, "Parameters\Monitors", "6", %REG_SZ%, "1920,1200"
HKR, "Parameters\Monitors", "7", %REG_SZ%, "2560,1440"
HKR, "Parameters\Monitors", "8", %REG_SZ%, "3840,2160"

[MyDevice_HardwareDeviceSettings]
HKR,, "UpperFilters",  %REG_MULTI_SZ%, "IndirectKmd"
HKR, "WUDF", "DeviceGroupId", %REG_SZ%, "usbmmIddGroup"
HKR,,Security,,"D:P(A;;GA;;;SY)(A;;GRGWGX;;;WD)(A;;GRGWGX;;;RC)"

[MyDevice_Install.NT.Services]
AddService=WUDFRd,0x000001fa,WUDFRD_ServiceInstall

[MyDevice_Install.NT.Wdf]
UmdfService=usbmmIdd,usbmmIdd_Install
UmdfServiceOrder=usbmmIdd
UmdfKernelModeClientPolicy = AllowKernelModeClients

[usbmmIdd_Install]
UmdfLibraryVersion=2.15.0 
ServiceBinary=%12%\UMDF\usbmmIdd.dll
UmdfExtensions = IddCx0102
AddReg=MyDevice_Install.AddReg

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

[DestinationDirs]
UMDriverCopy=12,UMDF ; copy to drivers\umdf

[UMDriverCopy]
usbmmIdd.dll

; =================== Generic ==================================

[Strings]
DiskId       = "USB Mobile Monitor Installation DISK"
WudfRdDisplayName="Windows Driver Foundation - User-mode Driver Framework Reflector"
amyuni      = "Amyuni"
MfgName		= "Amyuni Technologies"
UsbmmIdd	="USB Mobile Monitor Virtual Display"

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