; GemCCID.inf 
; Copyright (c) 2007 Gemalto

[Version]
Signature="$Windows NT$"
Class=SmartCardReader
ClassGuid={50DD5230-BA8A-11D1-BF5D-0000F805F530}
provider=%MFGNAME1%
CatalogFile=GemCCID.cat
DriverVer=03/26/2008,4.0.3.7

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

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

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

[SourceDisksFiles]
GemCCID.sys=1

[SourceDisksNames]
1=%INSTDISK%,,


[DeviceListMfg1.NTx86.5.1]
%USB\VID_08E6&PID_3437.DeviceDesc%=DriverInstallB, USB\VID_08E6&PID_3437 ; GemPCTwin USB
%USB\VID_08E6&PID_3438.DeviceDesc%=DriverInstallB, USB\VID_08E6&PID_3438 ; GemPCKey
%USB\VID_08E6&PID_34EC.DeviceDesc%=DriverInstallB, USB\VID_08E6&PID_34EC ; GemPC Express
%USB\VID_08E6&PID_3440.DeviceDesc%=DriverInstallB, USB\VID_08E6&PID_3440 ;
%USB\VID_08E6&PID_3441.DeviceDesc%=DriverInstallB, USB\VID_08E6&PID_3441 ;
%USB\VID_04da&PID_117a.DeviceDesc%=DriverInstallB, USB\VID_04da&PID_117a ;
[DeviceListMfg1]
%USB\VID_08E6&PID_3437.DeviceDesc%=DriverInstallA, USB\VID_08E6&PID_3437 ; GemPCTwin USB
%USB\VID_08E6&PID_3438.DeviceDesc%=DriverInstallA, USB\VID_08E6&PID_3438 ; GemPCKey
%USB\VID_08E6&PID_34EC.DeviceDesc%=DriverInstallA, USB\VID_08E6&PID_34EC ; GemPC Express
%USB\VID_08E6&PID_3440.DeviceDesc%=DriverInstallA, USB\VID_08E6&PID_3440 ;
%USB\VID_08E6&PID_3441.DeviceDesc%=DriverInstallA, USB\VID_08E6&PID_3441 ;
%USB\VID_04da&PID_117a.DeviceDesc%=DriverInstallA, USB\VID_04da&PID_117a ;
;------------------------------------------------------------------------------
;  Windows XP and later, x86 only
;------------------------------------------------------------------------------
[DriverInstallB]
CopyFiles=DriverCopyFiles

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

[DriverInstallB.hw]
AddReg=DriverHwAddReg

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

[DriverInstallA.NT]
CopyFiles=DriverCopyFiles

[DriverCopyFiles]
GemCCID.sys,,,2

[DriverInstallA.NT.Services]
Addservice = GemCCID, 2, DriverService,EventLogging

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

[EventLogging]
AddReg=EventLogAddReg

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

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


[DriverHwAddReg]
HKLM, Software\Microsoft\Cryptography\Calais\Readers,,,
HKLM, System\CurrentControlSet\Services\SCardSvr,Start,0x00010001,2
HKLM, System\CurrentControlSet\Services\CertPropSvc,Start,0x00010001,2



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

[Reader.Install.AddReg]
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_3437.DeviceDesc = "USB Smart Card Reader"
USB\VID_08E6&PID_3438.DeviceDesc = "USB Key Smart Card Reader"
USB\VID_08E6&PID_34EC.DeviceDesc = "GemPC Express"
USB\VID_08E6&PID_3440.DeviceDesc = "USB Smart Card Reader"
USB\VID_08E6&PID_3441.DeviceDesc = "USB Smart Card Reader"
USB\VID_04da&PID_117a.DeviceDesc = "PanaSCR7A Smart"

INSTDISK="Installation Disc for CCID Smart Card Reader"
