; okiccdwdm.inf
; Copyright (c) 2000 - 2007 OMNIKEY

[Version]
Signature=$CHICAGO$
Class=SmartCardReader
ClassGuid={50DD5230-BA8A-11D1-BF5D-0000F805F530}
Provider=%Provider%
DriverVer=04/21/2009,1.0.0.4
CatalogFile=okiccdwdm.cat

[SourceDisksNames]
1=%DiskDescription%,,

[SourceDisksFiles]
chksvrn.dll=1,,
okiccdwdm.sys=1,,

[DestinationDirs]
DefaultDestDir = 10,system32\drivers
okiccdwdm.Install.CopyFiles=10,system32\drivers
okiccdwdm.Install.NT.CopyFiles=10,system32\drivers
okiccdwdm.Install.NT.W2kTools=11

[Manufacturer]
%Manufacturer%=OMNIKEY

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

[ClassInstall]
Addreg=SmartCardReaderClassReg

[ClassInstall32]
Addreg=SmartCardReaderClassReg

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


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

[ControlFlags]
ExcludeFromSelect.NT = USB\VID_0471&PID_040f
ExcludeFromSelect.NT = USB\VID_04cc&PID_5072
ExcludeFromSelect.NT = USB\VID_1059&PID_000C
ExcludeFromSelect.NT = USB\VID_1059&PID_000D
ExcludeFromSelect.NT = USB\VID_04B9&PID_1400
ExcludeFromSelect.NT = USB\VID_04CC&PID_2C02



[OMNIKEY]
; DisplayName       	Section           DeviceId
; -----------       	-------           --------
%ReaderDescription% =  ICCD.Install, USB\VID_0471&PID_040f
%ReaderDescription% =  ICCD.Install, USB\VID_04cc&PID_5072
%ReaderDescription% =  ICCD.Install, USB\VID_1059&PID_000C
%ReaderDescription% =  ICCD.Install, USB\VID_1059&PID_000D
%ReaderDescription% =  ICCD.Install, USB\VID_04B9&PID_1400
%ReaderDescription% =  ICCD.Install, USB\VID_04CC&PID_2C02


; ================== Win2000 specific =====================

[ICCD.Install.NT]
AddReg    = okiccdwdm.Install.NT.AddReg
CopyFiles = okiccdwdm.Install.NT.CopyFiles,okiccdwdm.Install.NT.W2kTools

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

[ICCD.Install.NT.Services]
AddService = okiccdwdm, 2, ICCD.Service.NT,okiccdwdm.EventLog.NT

[okiccdwdm.Install.NT.AddReg]
HKR,, AdapterType, 0, "0100"
HKLM,"SYSTEM\CurrentControlSet\Services\SCardSvr",Start,0x00010001,2
HKLM,"Software\Microsoft\Windows\CurrentVersion\RunOnce",chksvrn,,"rundll32 chksvrn.dll,StartScardsvr"
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

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

[okiccdwdm.Install.NT.W2kTools]
chksvrn.dll

[ICCD.Service.NT]
DisplayName     = %ReaderDescription%
ServiceType     = 1 ;%SERVICE_KERNEL_DRIVER%
StartType       = 3 ;%SERVICE_AUTO_START%
ErrorControl    = 1 ;%SERVICE_ERROR_NORMAL%
ServiceBinary   = %12%\okiccdwdm.sys

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

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


; =====================
; === ICCD ====
; =====================
[ICCD.Install.AddReg.HW]
HKR,,"VendorName",,"OMNIKEY"
HKR,,"IfdType",, "ICCD"


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

[Strings]
Provider		= "VYGISOFT"
Manufacturer    	= "VYGISOFT"
ReaderDescription     = "Vygis Dongle Smart Card"
DiskDescription         = "Vygis Smart Card Driver Disk"
ClassName 		= "Vygis Smart Card Readers"
