; A38USAMP.INF
; Copyright (c) 2009 Advanced Card System Ltd.

[Version]
DriverVer=11/03/2009,1.0.2.6
Signature="$CHICAGO$"
Class=SmartCardReader
ClassGuid={50DD5230-BA8A-11D1-BF5D-0000F805F530}
Provider=%ACS%
CatalogFile.NT=a38usamp.cat

; ======= Source and Destination section =============

[SourceDisksNames]
1 = "ACR38(SAM) USB Smart Card Installation Disk",,,

[SourceDisksFiles]
a38usp98.sys 	= 1
a38usp.sys	= 1
a38uspx64.sys 	= 1

[DestinationDirs]
ACS.Install.CopyFiles	      = 10,System32\Drivers
ACS.Install.CopyFiles.NTx86   = 12
ACS.Install.CopyFiles.NTamd64 = 12

; ================= Class section =====================

[ClassInstall32]
Addreg=SmartCardReaderClassReg     

[ClassInstall]
Addreg=SmartCardReaderClassReg

[SmartCardReaderClassReg]
HKR,,,0,%ClassName%
HKR,,Icon,,-25
HKLM,"\Software\Microsoft\Cryptography\Calais\Readers",,,

[Manufacturer]
%ACS%=ACS,NTamd64

; ================= ACS SCR Reader =====================

[ACS]
; DisplayName       Section     DeviceId
; -----------       -------     --------
%ACS.DeviceDesc% = ACS.Install, USB\VID_072F&PID_90CF

[ACS.NTamd64]
; DisplayName       Section     DeviceId
; -----------       -------     --------
%ACS.DeviceDesc% = ACS.Install, USB\VID_072F&PID_90CF

[ACS.Install]
AddReg          = ACS.Install.AddReg
CopyFiles	= ACS.Install.CopyFiles

[ACS.Install.NTx86]
AddReg          = ACS.Install.AddReg.NT
CopyFiles	= ACS.Install.CopyFiles.NTx86

[ACS.Install.NTamd64]
AddReg          = ACS.Install.AddReg.NT
CopyFiles	= ACS.Install.CopyFiles.NTamd64

[ACS.Install.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,a38usp98.sys
HKR,, AdapterType, 0, "0100"
HKLM,%NameKey%,"VendorName",0,%Vendor%
HKLM,%NameKey%,"IFDName",0,%Reader%
HKLM,%NameKey%,"USBTimeout",0x00010001,78,00,00,00
HKLM,%NameKey%,"CommandMode",0x00010001,02,00,00,00	;02-PCSC 01-EMV 00-Auto

[ACS.Install.AddReg.NT]
HKR,, AdapterType, 0, "0100"
HKLM,%NameKey%,"VendorName",0,%Vendor%
HKLM,%NameKey%,"IFDName",0,%Reader%
HKLM,%NameKey%,"USBTimeout",0x00010001,%Timeout%
HKLM,%NameKey%,"CommandMode",0x00010001,%CmdMode%
HKLM,"System\CurrentControlSet\Services\SCardSvr","Start", 0x00010001,2

[ACS.Install.CopyFiles]
a38usp98.sys,,,2

[ACS.Install.CopyFiles.NTx86]
a38usp.sys

[ACS.Install.CopyFiles.NTamd64]
a38usp.sys,a38uspx64.sys

[ACS.Install.Services]
AddService = ACR38SAM, 2, ACS.Service

[ACS.Install.NTx86.Services]
AddService = ACR38SAM, 2, ACS.Service, ACS.EventLog

[ACS.Install.NTamd64.Services]
AddService = ACR38SAM, 2, ACS.Service, ACS.EventLog

[ACS.Service]
DisplayName     = %ACS.DeviceDesc%
ServiceType     = 1 ;%SERVICE_KERNEL_DRIVER%
StartType       = 3 ;%SERVICE_DEMAND_START%
ErrorControl    = 1 ;%SERVICE_ERROR_NORMAL%
ServiceBinary   = %12%\a38usp.sys

[ACS.EventLog]
AddReg = ACS.AddEventLog.reg

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

; ================= Strings =====================

[Strings]
Msft			= "Advanced Card Systems Ltd."
ACS			= "ACS"
ACS.DeviceDesc		= "ACR38 SAM Smart Card Reader"
ClassName 		= "Smart Card Readers"
NameKey			= "System\CurrentControlSet\Services\A38USAM"
Vendor			= "ACS"
Reader			= "ACR38USB"
Timeout			= "120"		;timeout in seconds
CmdMode			= "02"		;02-PCSC 01-EMV