; GemSealP.inf 
; Copyright (c) 2005 Gemplus

[Version]
Signature="$Windows NT$"
Class=SmartCardReader
ClassGuid={50DD5230-BA8A-11D1-BF5D-0000F805F530}
provider=%MFGNAME1%
CatalogFile=GemSealP.cat
DriverVer=11/15/2005,1.0.0.0

[ControlFlags]
; Prevent legacy install for PnP readers
ExcludeFromSelect = *

[Manufacturer]
%MFGNAME1%=DeviceListMfg1,NTx86.5.1

[DestinationDirs]
DriverCopyFiles = 10,System32\Drivers
DefaultDestDir = 10,System32\Drivers

[SourceDisksFiles]
GemSealP.sys=1

[SourceDisksNames]
1=%INSTDISK%,,

[DeviceListMfg1.NTx86.5.1]
%USB\VID_08E6&PID_2202.DeviceDesc%=DriverInstallB, USB\VID_08E6&PID_2202&MI_01

[DeviceListMfg1]
%USB\VID_08E6&PID_2202.DeviceDesc%=DriverInstallA, USB\VID_08E6&PID_2202&MI_01


;------------------------------------------------------------------------------
;  Windows XP and later, x86 only
;------------------------------------------------------------------------------
[DriverInstallB]
CopyFiles=DriverCopyFiles

[DriverInstallB.Services]
Addservice =  GemSealP, 2, DriverService,EventLogging

[DriverInstallB.hw]
AddReg=DriverHwAddReg

;------------------------------------------------------------------------------
;  Windows 2000 Sections
;------------------------------------------------------------------------------

[DriverInstallA.NTx86]
CopyFiles=DriverCopyFiles

[DriverCopyFiles]
GemSealP.sys,,,2

[DriverInstallA.NTx86.Services]
Addservice = GemSealP, 2, DriverService,EventLogging

[DriverService]
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %10%\System32\Drivers\GemSealP.sys

[EventLogging]
AddReg=EventLogAddReg

[EventLogAddReg]
HKR,,EventMessageFile,0x00020000,"%%SystemRoot%%\system32\drivers\GemSealP.sys"
HKR,,TypesSupported,0x00010001,7

[DriverInstallA.NTx86.hw]
AddReg=DriverHwAddReg,Reader.Install.AddReg


[DriverHwAddReg]
HKLM,System\CurrentControlSet\Services\SCardSvr,Start,0x00010001,2

; ============ Add reg for all readers ===============

[Reader.Install.AddReg]
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

[Strings]
MFGNAME1="Gemplus"
USB\VID_08E6&PID_2202.DeviceDesc = "Gem e-Seal Pro USB Token"
INSTDISK="Installation Disc for 'Gem e-Seal Pro' USB Token"
