; hidgcx64.inf
; Copyright (c) 2012 HID Global Corporation

[Version]
Signature=$Windows NT$
Class=SmartCardReader
ClassGuid={50DD5230-BA8A-11D1-BF5D-0000F805F530}
Provider=%Provider%
DriverVer=03/23/2012,1.0.0.14
CatalogFile=hidgcx64.cat

[SourceDisksNames]
1=%DiskDescription%,,

[SourceDisksFiles]
hidgcx64.sys=1,,

[DestinationDirs]
DefaultDestDir = 10,system32\drivers
hidgcx64.Install.NT.CopyFiles=10,system32\drivers

[Manufacturer]
%Manufacturer%=HID,NTamd64

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

[ClassInstall]
Addreg=SmartCardReaderClassReg

[ClassInstall32]
Addreg=SmartCardReaderClassReg

[SmartCardReaderClassReg]
HKR,,,0,%ClassName%
HKR,,Icon,,-25
HKR,,NoInstallClass,,1
HKR,,Installer32,,"winscard.dll,ClassInstall32"

; ===================== PnP IDs ===========================

[ControlFlags]
; All PnP devices should be excluded from manual AddDevice Applet list
ExcludeFromSelect=*

[HID.NTamd64]
; DisplayName       	Section           DeviceId
; -----------       	-------           --------
%VID1PID1ReaderDescription% =  HIDGENDRV1.Install, USB\VID_076B&PID_5400&MI_00
%VID1PID2ReaderDescription% =  HIDGENDRV2.Install, USB\VID_076B&PID_5127&MI_00
%VID1PID3ReaderDescription% =  HIDGENDRV3.Install, USB\VID_076B&PID_5427&MI_00



; ================== NT specific =====================

[HIDGENDRV1.Install.NT]
AddReg    = hidgcx64.Install.NT.AddReg
CopyFiles = hidgcx64.Install.NT.CopyFiles

[HIDGENDRV1.Install.NT.HW]
AddReg    = HIDGENDRV1.Install.AddReg.HW

[HIDGENDRV1.Install.NT.Services]
AddService = hidgcx64, 2, HIDGENDRV1.Service.NT,hidgcx64.EventLog.NT

[HIDGENDRV2.Install.NT]
AddReg    = hidgcx64.Install.NT.AddReg
CopyFiles = hidgcx64.Install.NT.CopyFiles

[HIDGENDRV2.Install.NT.HW]
AddReg    = HIDGENDRV2.Install.AddReg.HW

[HIDGENDRV2.Install.NT.Services]
AddService = hidgcx64, 2, HIDGENDRV2.Service.NT,hidgcx64.EventLog.NT

[HIDGENDRV3.Install.NT]
AddReg    = hidgcx64.Install.NT.AddReg
CopyFiles = hidgcx64.Install.NT.CopyFiles

[HIDGENDRV3.Install.NT.HW]
AddReg    = HIDGENDRV3.Install.AddReg.HW

[HIDGENDRV3.Install.NT.Services]
AddService = hidgcx64, 2, HIDGENDRV3.Service.NT,hidgcx64.EventLog.NT




[hidgcx64.Install.NT.AddReg]
HKR,, AdapterType, 0, "0100"
HKLM,"SYSTEM\CurrentControlSet\Services\SCardSvr",Start,0x00010001,2
HKLM,"System\CurrentControlSet\Services\CertPropSvc",Start,0x00010001,2
HKLM, Software\Microsoft\Cryptography\Calais\Readers,,,
HKLM, SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Notify\ScCertProp,DLLName,0,wlnotify.dll
HKLM, SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Notify\ScCertProp,Logon,0,SCardStartCertProp
HKLM, SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Notify\ScCertProp,Logoff,0,SCardStopCertProp
HKLM, SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Notify\ScCertProp,Lock,0,SCardSuspendCertProp
HKLM, SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Notify\ScCertProp,Unlock,0,SCardResumeCertProp
HKLM, SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Notify\ScCertProp,Enabled,0x00010001,1
HKLM, SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Notify\ScCertProp,Impersonate,0x00010001,1
HKLM, SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Notify\ScCertProp,Asynchronous,0x00010001,1

[hidgcx64.Install.NT.CopyFiles]
hidgcx64.sys,,,2



[HIDGENDRV1.Service.NT]
DisplayName     = %VID1PID1ReaderDescription%
ServiceType     = 1 ;%SERVICE_KERNEL_DRIVER%
StartType       = 3 ;%SERVICE_AUTO_START%
ErrorControl    = 1 ;%SERVICE_ERROR_NORMAL%
ServiceBinary   = %12%\hidgcx64.sys

[HIDGENDRV2.Service.NT]
DisplayName     = %VID1PID2ReaderDescription%
ServiceType     = 1 ;%SERVICE_KERNEL_DRIVER%
StartType       = 3 ;%SERVICE_AUTO_START%
ErrorControl    = 1 ;%SERVICE_ERROR_NORMAL%
ServiceBinary   = %12%\hidgcx64.sys

[HIDGENDRV3.Service.NT]
DisplayName     = %VID1PID3ReaderDescription%
ServiceType     = 1 ;%SERVICE_KERNEL_DRIVER%
StartType       = 3 ;%SERVICE_AUTO_START%
ErrorControl    = 1 ;%SERVICE_ERROR_NORMAL%
ServiceBinary   = %12%\hidgcx64.sys















[hidgcx64.EventLog.NT]
AddReg = hidgcx64.AddEventLog.reg

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

; =======================================
; === HID veriCLASS Smart Card Reader 
; =======================================
[HIDGENDRV1.Install.AddReg.HW]
HKR,,"VendorName",,"HID Global"
HKR,,"IfdType",, "CCID Reader"
HKR,,"VidPid",, USB\VID_076B&PID_5400&MI_00


; =======================================
; === HID OMNIKEY 5127 CK 
; =======================================
[HIDGENDRV2.Install.AddReg.HW]
HKR,,"VendorName",,"HID Global"
HKR,,"IfdType",, "OK 5127 CK Reader"
HKR,,"VidPid",, USB\VID_076B&PID_5127&MI_00


; =======================================
; === HID OMNIKEY 5427 CK 
; =======================================
[HIDGENDRV3.Install.AddReg.HW]
HKR,,"VendorName",,"HID Global"
HKR,,"IfdType",, "OK 5427 CK Reader"
HKR,,"VidPid",, USB\VID_076B&PID_5427&MI_00




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

[Strings]
Provider		= "HID Global Corporation"
Manufacturer    	= "HID Global Corporation"
VID1PID1ReaderDescription     = "HID veriCLASS Smart Card Reader"
VID1PID2ReaderDescription     = "HID OMNIKEY 5127 CK"
VID1PID3ReaderDescription     = "HID OMNIKEY 5427 CK"
DiskDescription         = "HID Smartcard Reader PC/SC Driver Disk"
ClassName 		= "Smart Card Readers"
