;
;Module Name:
;    fresco_iddcx.INF
;
;Abstract:
;    INF file for installing the FL2000 UMDF2 Driver
;

[Version]
Signature="$Windows NT$"
ClassGUID = {4D36E968-E325-11CE-BFC1-08002BE10318}
Class = Display
ClassVer = 2.0
Provider=%FRESCO%
CatalogFile=fresco_iddcx.cat
DriverVer=11/13/2017,2.1.34054.0

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

[SourceDisksNames.x86]
1=%DISK_NAME%,,

[SourceDisksNames.amd64]
1=%DISK_NAME%,,

[SourceDisksFiles.x86]
fresco_iddcx.dll = 1,x86

[SourceDisksFiles.amd64]
fresco_iddcx.dll = 1,x64

;*****************************************
; IDDCX UMDF  Install Section
;*****************************************

[Manufacturer]
%FRESCO%=IDDCX, NTx86, NTamd64

[IDDCX.NTx86]
%IDDCX.DeviceDesc%=IDDCX_INSTALL, FL2000\IDDCX   ; FL2000.

[IDDCX.NTAMD64]
%IDDCX.DeviceDesc%=IDDCX_INSTALL, FL2000\IDDCX   ; FL2000.

;---------------- copy files
[IDDCX_INSTALL.NT]
CopyFiles=UMDriverCopy

[UMDriverCopy]
fresco_iddcx.dll,,,0x00004000  ; COPYFLG_IN_USE_RENAME

;---------------- Hardware key
[IDDCX_INSTALL.NT.hw]
AddReg = IDDCX_HwAddReg

[IDDCX_HwAddReg]
HKR,, "UpperFilters",  %REG_MULTI_SZ%, "IndirectKmd"
HKR, "WUDF", "DeviceGroupId", %REG_SZ%, "IddSampleDriverGroup" ; TODO: edit driver group name, see README.md for more info

;-------------- Service installation
[IDDCX_INSTALL.NT.Services]
AddService=WUDFRd,0x000001fa,WUDFRD_ServiceInstall

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

;-------------- WDF specific section -------------
[IDDCX_INSTALL.NT.Wdf]
UmdfService=fresco_iddcx, IDDCX_INSTALL
UmdfServiceOrder=fresco_iddcx
UmdfKernelModeClientPolicy = AllowKernelModeClients

[IDDCX_INSTALL]
UmdfLibraryVersion=2.15.0
ServiceBinary=%12%\UMDF\fresco_iddcx.dll
UmdfExtensions = IddCx0102

[Strings]
REG_MULTI_SZ        = 0x00010000
REG_SZ              = 0x00000000
REG_EXPAND_SZ       = 0x00020000
REG_DWORD           = 0x00010001
FRESCO              = "Fresco Logic"
IDDCX.DeviceDesc    = "Fresco Logic IDDCX Adapter"
DISK_NAME           = "Device Install Disk"
WudfRdDisplayName   = "Windows Driver Foundation - User-mode Driver Framework Reflector"

