;
; CIR115.inf
; Copyright (c) 2019, AB Circle Limited
; 
; KMDF Smart Card Reader Driver for the CIR115 reader

[Version]
DriverVer=09/26/2019,2.0.0.0
Signature="$WINDOWS NT$"
Class=SmartCardReader
ClassGuid={50dd5230-ba8a-11d1-bf5d-0000f805f530}
Provider=%ManufacturerName%
DriverPackageType=PlugAndPlay
DriverPackageDisplayName=%DriverDisplayName%
CatalogFile.NT=cir115.cat

[DestinationDirs]
DefaultDestDir = 12
ABC.CIR115ICC.CoInstaller_CopyFiles.NTx86   = 11
ABC.CIR115ICC.CoInstaller_CopyFiles.NTamd64 = 11

[SourceDisksNames]
1 = %DiskName%,,,""

[SourceDisksFiles.x86]
CIRKMDFDriverx86.sys= 1,,
WdfCoInstaller01009.dll=1,\WdfCoInstaller\x86,

[SourceDisksFiles.amd64]
CIRKMDFDriverx64.sys= 1,,
WdfCoInstaller01009.dll=1,\WdfCoInstaller\x64,

;*****************************************
; Install Section
;*****************************************

[Manufacturer]
%ManufacturerName%=ABC,NTx86,NTamd64

[ABC.NTx86]
%ABC.CIR115ICC.DeviceDesc%=ABC.CIR115ICC, USB\VID_31AA&PID_1000

[ABC.NTamd64]
%ABC.CIR115ICC.DeviceDesc%=ABC.CIR115ICC, USB\VID_31AA&PID_1000

;*****************************************
; CIR115 ICC
;*****************************************

[ABC.CIR115ICC.NTx86]
AddReg       = ABC.CIR115ICC.AddReg.NT,ABC.Common.AddReg
CopyFiles    = ABC.CIR115ICC.CopyFiles.NTx86

[ABC.CIR115ICC.NTamd64]
AddReg       = ABC.CIR115ICC.AddReg.NT,ABC.Common.AddReg
CopyFiles    = ABC.CIR115ICC.CopyFiles.NTamd64

[ABC.CIR115ICC.CopyFiles.NTx86]
%ABC.CIR115ICC.DriverName%.sys,CIRKMDFDriverx86.sys

[ABC.CIR115ICC.CopyFiles.NTamd64]
%ABC.CIR115ICC.DriverName%.sys,CIRKMDFDriverx64.sys

[ABC.CIR115ICC.AddReg.NT]
HKR,,"IFDName",0,%ABC.CIR115ICC.DeviceDesc%
HKR,,"DRIVERNAME",0,%ABC.CIR115ICC.DriverName%
HKR,,"Slot0GT", 0x00010001,0x16
HKR,,"Slot0Flags",0x00010000,"0011"

[ABC.CIR115ICC.NTx86.Services]
AddService = CIR115ICC, 2, ABC.CIR115ICC.Service, ABC.CIR115ICC.EventLog

[ABC.CIR115ICC.NTamd64.Services]
AddService = CIR115ICC, 2, ABC.CIR115ICC.Service, ABC.CIR115ICC.EventLog

[ABC.CIR115ICC.Service]
DisplayName     = %ABC.CIR115ICC.DeviceDesc%
ServiceType     = 1
StartType       = 3
ErrorControl    = 1
ServiceBinary   = %12%\%ABC.CIR115ICC.DriverName%.sys

[ABC.CIR115ICC.EventLog]
AddReg = ABC.CIR115ICC.AddEventLog.reg

[ABC.CIR115ICC.AddEventLog.reg]
HKR,, EventMessageFile, 0x00020000, "%%SystemRoot%%\System32\drivers\%ABC.CIR115ICC.DriverName%.sys"
HKR,, TypesSupported,   0x00010001, 7

; -------------- common ---------------------

[ABC.Common.AddReg]
HKR,,AdapterType, 0, "0100"
HKR,,"VendorName",0,%Vendor%
HKLM,"Software\Microsoft\Cryptography\Calais\Readers",,,
HKLM,"System\CurrentControlSet\Services\SCardSvr","Start", 0x00010001,2
HKLM,"System\CurrentControlSet\Services\CertPropSvc","Start", 0x00010001,2

;
;--- CIR115 Device Coinstaller installation ------
;

[ABC.CIR115ICC.NTx86.CoInstallers]
AddReg=ABC.CIR115ICC.CoInstaller_AddReg
CopyFiles=ABC.CIR115ICC.CoInstaller_CopyFiles.NTx86

[ABC.CIR115ICC.NTamd64.CoInstallers]
AddReg=ABC.CIR115ICC.CoInstaller_AddReg
CopyFiles=ABC.CIR115ICC.CoInstaller_CopyFiles.NTamd64

[ABC.CIR115ICC.CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000, "WdfCoInstaller01009.dll,WdfCoInstaller"

[ABC.CIR115ICC.CoInstaller_CopyFiles.NTx86]
WdfCoInstaller01009.dll

[ABC.CIR115ICC.CoInstaller_CopyFiles.NTamd64]
WdfCoInstaller01009.dll

[ABC.CIR115ICC.NTx86.Wdf]
KmdfService =  CIR115ICC, CIR115_wdfsect

[ABC.CIR115ICC.NTamd64.Wdf]
KmdfService =  CIR115ICC, CIR115_wdfsect

[CIR115_wdfsect]
KmdfLibraryVersion = 1.9

[Strings]
ManufacturerName         = "AB Circle Limited"
Vendor                   = "Circle"
DiskName                 = "AB Circle CIR115 Driver Installation Disk"
DriverDisplayName        = "AB Circle CIR115 CCID Driver"
ABC.CIR115ICC.DeviceDesc = "CIR115 ICC"
ABC.CIR115ICC.DriverName = "CIR115ICC"
