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

[Version]
Signature=$WINDOWS NT$
Class=SmartCardReader
ClassGuid={50DD5230-BA8A-11D1-BF5D-0000F805F530}
Provider=%Provider%
DriverVer=04/25/2012, 1.0.0.9
CatalogFile=hv0uwx64.cat

[SourceDisksNames]
1=%DiskDescription%,,

[SourceDisksFiles]
hv0uwx64.sys=1,,

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

[Manufacturer]
%Manufacturer%=HID Global, NTamd64

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

[ClassInstall]
Addreg=SmartCardReaderClassReg

[ClassInstall32]
Addreg=SmartCardReaderClassReg

[SmartCardReaderClassReg]
HKR,,,0,%ClassName%
HKR,,Icon,,-25

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

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

[HID Global.NTamd64]
; DisplayName       	Section           DeviceId
; -----------       	-------           --------
%VID1PID1ReaderDescription% =  bootldr.Install, USB\VID_076B&PID_F021
%VID1PID2ReaderDescription% =  ok5326.Install, USB\VID_076B&PID_5326

; ================== NT specific =====================
[bootldr.Install.NT]
AddReg = hv0uwx64.Install.NT.AddReg
CopyFiles = hv0uwx64.Install.NT.CopyFiles

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

[bootldr.Install.NT.Services]
AddService = hv0uwx64, 2, bootldr.Service.NT, hv0uwx64.EventLog.NT



[ok5326.Install.NT]
AddReg = hv0uwx64.Install.NT.AddReg
CopyFiles = hv0uwx64.Install.NT.CopyFiles

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

[ok5326.Install.NT.Services]
AddService = hv0uwx64, 2, ok5326.Service.NT, hv0uwx64.EventLog.NT


[hv0uwx64.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


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

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

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


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

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

; =====================
; ===  BOOTLOADER  ====
; =====================
[bootldr.Install.AddReg.HW]
HKR,,"VendorName",,"HID OMNIKEY"
HKR,,"IfdType",, "Bootloader"
HKR,,"VidPid",, USB\VID_076B&PID_F021

; =====================
; === OMNIKEY 5326 ====
; =====================
[ok5326.Install.AddReg.HW]
HKR,,"VendorName",,"OMNIKEY"
HKR,,"IfdType",, "CardMan 5326"
HKR,,"VidPid",, USB\VID_076B&PID_5326

; ============================================================
; === Strings ================================================
; ============================================================
[Strings]
Provider = "HID Global Corporation"
Manufacturer = "HID Global Corporation"
VID1PID1ReaderDescription = "HID OMNIKEY Bootloader"
VID1PID2ReaderDescription = "HID OMNIKEY 5326 DFR"
DiskDescription = "HID OMNIKEY PC/SC Driver Disk"
ClassName = "Smart Card Readers"
