; Athena.INF
; Copyright (c) 1998 Microsoft Corporation

[Version]
DriverVer=03/02/2014,2.0.0.1
Signature="$Windows NT$"
Class=SmartCardReader
ClassGuid={50DD5230-BA8A-11D1-BF5D-0000F805F530}
Provider=%MFGNAME%
CatalogFile = Athena.cat

[ControlFlags]
; Prevent legacy install for PnP readers
ExcludeFromSelect=USB\VID_0DC3&PID_0802, SERENUM\ATN1001

[Manufacturer]
%ATHENA%=ATHENA, NTx86.6.0, NTia64.6.0, NTamd64.6.0,

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

[Reader.Install.AddReg]
HKR,,EnumPropPages32,,"ASEDriveProp.dll, EnumPropPages"
HKLM, Software\Microsoft\Cryptography\Calais\Readers,,,
HKLM, System\CurrentControlSet\Services\SCardSvr,Start,0x00010001,2
HKLM, System\CurrentControlSet\Services\CertPropSvc,Start,0x00010001,2
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


; ================= ATHENA readers =====================

[ATHENA]

[ATHENA.NTx86.6.0]
%ATHENA3.DeviceDesc% = 	ATHENA3.Install.NTx86, USB\VID_0DC3&PID_0802
%KBDESCRIPTION%=ATHENA3.Install.NTx86,USB\VID_0DC3&PID_1104&MI_01
%KBPDESCRIPTION%=ATHENA3.Install.NTx86,USB\VID_0DC3&PID_1107&MI_01
%BPDESCRIPTION%=ATHENA3.Install.NTx86,USB\VID_0DC3&PID_1108&MI_00
%BP2DESCRIPTION%=ATHENA3.Install.NTx86,USB\VID_0DC3&PID_1109&MI_00
%KBP2DESCRIPTION%=ATHENA3.Install.NTx86,USB\VID_0DC3&PID_110A&MI_01
%CLDESCRIPTION%=ATHENA3.Install.NTx86,USB\VID_0DC3&PID_110B
%PPDESCRIPTION%=ATHENA3.Install.NTx86,USB\VID_0DC3&PID_110C
%ACDESCRIPTION%=ATHENA3.Install.NTx86,USB\VID_0DC3&PID_110D
%USB2DESCRIPTION%=ATHENA3.Install.NTx86,USB\VID_0DC3&PID_110E&MI_00
%CL2DESCRIPTION%=ATHENA3.Install.NTx86,USB\VID_0DC3&PID_110E&MI_01
%ATHENA3SERIAL.DeviceDesc%=ATHENA3.Install.NTx86, SERENUM\ATN1001

[ATHENA.NTamd64.6.0]
%ATHENA3.DeviceDesc% = 	ATHENA3.Install.NTia64, USB\VID_0DC3&PID_0802
%KBDESCRIPTION%=ATHENA3.Install.NTia64,USB\VID_0DC3&PID_1104&MI_01
%KBPDESCRIPTION%=ATHENA3.Install.NTia64,USB\VID_0DC3&PID_1107&MI_01
%BPDESCRIPTION%=ATHENA3.Install.NTia64,USB\VID_0DC3&PID_1108&MI_00
%BP2DESCRIPTION%=ATHENA3.Install.NTia64,USB\VID_0DC3&PID_1109&MI_00
%KBP2DESCRIPTION%=ATHENA3.Install.NTia64,USB\VID_0DC3&PID_110A&MI_01
%CLDESCRIPTION%=ATHENA3.Install.NTia64,USB\VID_0DC3&PID_110B
%PPDESCRIPTION%=ATHENA3.Install.NTia64,USB\VID_0DC3&PID_110C
%ACDESCRIPTION%=ATHENA3.Install.NTia64,USB\VID_0DC3&PID_110D
%USB2DESCRIPTION%=ATHENA3.Install.NTia64,USB\VID_0DC3&PID_110E&MI_00
%CL2DESCRIPTION%=ATHENA3.Install.NTia64,USB\VID_0DC3&PID_110E&MI_01
%ATHENA3SERIAL.DeviceDesc%=ATHENA3.Install.NTia64, SERENUM\ATN1001

[ATHENA.NTia64.6.0]
%ATHENA3.DeviceDesc% = 	ATHENA3.Install.NTamd64, USB\VID_0DC3&PID_0802
%KBDESCRIPTION%=ATHENA3.Install.NTamd64,USB\VID_0DC3&PID_1104&MI_01
%KBPDESCRIPTION%=ATHENA3.Install.NTamd64,USB\VID_0DC3&PID_1107&MI_01
%BPDESCRIPTION%=ATHENA3.Install.NTamd64,USB\VID_0DC3&PID_1108&MI_00
%BP2DESCRIPTION%=ATHENA3.Install.NTamd64,USB\VID_0DC3&PID_1109&MI_00
%KBP2DESCRIPTION%=ATHENA3.Install.NTamd64,USB\VID_0DC3&PID_110A&MI_01
%CLDESCRIPTION%=ATHENA3.Install.NTamd64,USB\VID_0DC3&PID_110B
%PPDESCRIPTION%=ATHENA3.Install.NTamd64,USB\VID_0DC3&PID_110C
%ACDESCRIPTION%=ATHENA3.Install.NTamd64,USB\VID_0DC3&PID_110D
%USB2DESCRIPTION%=ATHENA3.Install.NTamd64,USB\VID_0DC3&PID_110E&MI_00
%CL2DESCRIPTION%=ATHENA3.Install.NTamd64,USB\VID_0DC3&PID_110E&MI_01
%ATHENA3SERIAL.DeviceDesc%=ATHENA3.Install.NTamd64, SERENUM\ATN1001

[ATHENA3.Install.NTx86]
AddReg          = ATHENA3.Install.AddReg, Reader.Install.AddReg
CopyFiles	= ATHENA3.Install.CopyFiles.NTx86

[ATHENA3.Install.NTia64]
AddReg          = ATHENA3.Install.AddReg, Reader.Install.AddReg
CopyFiles	= ATHENA3.Install.CopyFiles.NTx64

[ATHENA3.Install.NTamd64]
AddReg          = ATHENA3.Install.AddReg, Reader.Install.AddReg
CopyFiles	    = ATHENA3.Install.CopyFiles.NTx64

[ATHENA3.Install.AddReg]
HKR,, AdapterType, 0, "0100"

[ATHENA3.Install.CopyFiles.NTx86]
ASEDRV3.sys,ASEDRV3_32.sys,,2

[ATHENA3.Install.CopyFiles.NTx64]
ASEDRV3.sys,ASEDRV3_64.sys,,2 



[ATHENA3.Install.NTx86.Services]
AddService = ATHENA3, 2, ATHENA3.Service, ATHENA3.EventLog

[ATHENA3.Install.NTia64.Services]
AddService = ATHENA3, 2, ATHENA3.Service, ATHENA3.EventLog

[ATHENA3.Install.NTamd64.Services]
AddService = ATHENA3, 2, ATHENA3.Service, ATHENA3.EventLog

[ATHENA3.Service]
DisplayName     = %ATHENA3.DeviceDesc%
ServiceType     = 1 ;%SERVICE_KERNEL_DRIVER%
StartType       = 3 ;%SERVICE_AUTO_START%
ErrorControl    = 1 ;%SERVICE_ERROR_NORMAL%
ServiceBinary   = %12%\ASEDRV3.sys

[ATHENA3.EventLog]
AddReg = ATHENA3.AddEventLog.reg

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

[DestinationDirs]
DefaultDestDir = 12
ATHENA3_CoInstaller_CopyFiles = 11
PropsCopyFiles.NTx86 = 10,System32
PropsCopyFiles.NTx64 = 10,System32


[SourceDisksNames.x86]
1 = %InstallDisk%,ASEDRV3_32.sys,,

[SourceDisksNames.ia64]
1 = %InstallDisk%,ASEDRV3_64.sys,,

[SourceDisksNames.amd64]
1 = %InstallDisk%,ASEDRV3_64.sys,,


;
;--- ATHENA3.Install_Device WDF Coinstaller installation ------
;

[ATHENA3.Install.NTx86.CoInstallers]
AddReg=ATHENA3_CoInstaller_AddReg_32
CopyFiles=ATHENA3_CoInstaller_CopyFilesx86, PropsCopyFiles.NTx86

[ATHENA3.Install.NTia64.CoInstallers]
AddReg=ATHENA3_CoInstaller_AddReg_64
CopyFiles=ATHENA3_CoInstaller_CopyFilesx64, PropsCopyFiles.NTx64

[ATHENA3.Install.NTamd64.CoInstallers]
AddReg=ATHENA3_CoInstaller_AddReg_64
CopyFiles=ATHENA3_CoInstaller_CopyFilesx64, PropsCopyFiles.NTx64

[ATHENA3_CoInstaller_AddReg_32]
HKR,,CoInstallers32,0x00010000, "wdfcoinstaller01009_32.dll,WdfCoInstaller"

[ATHENA3_CoInstaller_AddReg_64]
HKR,,CoInstallers32,0x00010000, "wdfcoinstaller01009_64.dll,WdfCoInstaller"

[ATHENA3_CoInstaller_CopyFilesx86]
wdfcoinstaller01009_32.dll

[ATHENA3_CoInstaller_CopyFilesx64]
wdfcoinstaller01009_64.dll

[PropsCopyFiles.NTx86]
ASEDriveProp.dll,ASEDriveProp_32.dll,,2

[PropsCopyFiles.NTx64]
ASEDriveProp.dll,ASEDriveProp_64.dll,,2


[SourceDisksFiles.x86]
ASEDRV3_32.sys = 1
wdfcoinstaller01009_32.dll=1 ; make sure the number matches with SourceDisksNames
ASEDriveProp_32.dll = 1

[SourceDisksFiles.ia64]
ASEDRV3_64.sys = 1
wdfcoinstaller01009_64.dll=1 ; make sure the number matches with SourceDisksNames
ASEDriveProp_64.dll = 1

[SourceDisksFiles.amd64]
ASEDRV3_64.sys = 1
wdfcoinstaller01009_64.dll=1 ; make sure the number matches with SourceDisksNames
ASEDriveProp_64.dll = 1

[ATHENA3.Install.NT.Wdf]
KmdfService = ATHENA3, ATHENA3_Wdfsection
[ATHENA3_Wdfsection]
KmdfLibraryVersion = 1.9


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

[Strings]
MFGNAME		  	 = "Athena Smartcard Solutions"
ATHENA		 	 = "Athena Smartcard Solutions"
ATHENA3.DeviceDesc	 = "Athena ASEDrive IIIe USB"
KBDESCRIPTION="Athena ASEDrive IIIe KB"
KBPDESCRIPTION="Athena ASEDrive IIIe KB BIO-PIV"
BPDESCRIPTION="Athena ASEDrive IIIe BIO-PIV"
BP2DESCRIPTION="Athena ASEDrive IIIe BIO-PIV2"
KBP2DESCRIPTION="Athena ASEDrive IIIe KB BIO-PIV2"
CLDESCRIPTION="Athena ASEDrive IIIe CL"
PPDESCRIPTION="Athena ASEDrive IIIe PP"
ACDESCRIPTION="Athena ASEDrive IIIe AC"
USB2DESCRIPTION="Athena ASEDrive IIIe USB2"
CL2DESCRIPTION="Athena ASEDrive IIIe CL2"
ATHENA3SERIAL.DeviceDesc = "Athena ASEDrive IIIe Serial"
ClassName 		 = "Smart Card Readers"
InstallDisk		 = "Athena Smartcard Solutions Installation Disc"

