[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ms-smartcardddk
Subject:    Converting a 2000 INF file to work on 98
From:       Derek Diamond <derek () DIAMONDSOFTWARECONCEPTS ! COM>
Date:       2001-02-23 7:16:13
[Download RAW message or body]


I have just completed a smartcard reader driver for Win2000. I have rebuilt
it for win 98, but need to convert the INF file to install correctly.

I see that the Addservice keyword is not supported. I have tried to set the
appropriate registry keys, but so far though the device is installed in 98,
it seems that the driver code is not invoked.

Any help will be very much appreciated.

Here is my INF (for both 2000 and 98):

; ZaptronixSC.INF
; Copyright (c) 2001 Zaptronix

[Version]
DriverVer=02/20/2001,5.0.2072.0
; CatalogFile=ZapSC.cat
Signature="$Chicago$"
Class=SmartCardReader
ClassGuid={50dd5230-ba8a-11d1-bf5d-0000f805f530}
Provider=%DSC%

[ControlFlags]
ExcludeFromSelect=HID\VID_0AFC&PID_0100

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

[ClassInstall ]
Addreg=SmartCardReaderClassReg

[ClassInstall32]
Addreg=SmartCardReaderClassReg

[SmartCardReaderClassReg]
HKR,,,0,%ClassName%
HKR,,Icon,,-25
HKLM,"\Software\Microsoft\Cryptography\Calais\Readers",,,


[Manufacturer]
%ZAPTRONIX%=ZAPTRONIX

; ================= Zaptronix readers =====================

[ZAPTRONIX]
; DisplayName        Section           DeviceId
; -----------        -------           --------
%ZapSC.DeviceDesc% = ZapSC.Install, HID\VID_0AFC&PID_0100

[ZapSC.Install]
AddReg  = ZapSC.Install.AddReg
CopyFiles = ZapSC.Install.CopyFiles

[ZapSC.Install.NT]
AddReg  = ZapSC.Install.AddReg
CopyFiles = ZapSC.Install.CopyFiles

[ZapSC.Install.nt.AddReg]
HKR,, AdapterType, 0, "0100"
;HKLM, Software\Microsoft\Cryptography\Calais\Readers,,,
;HKLM,"SYSTEM\CurrentControlSet\Services\ZapSc","ErrorControl",0x10001,01,00
,00,00
;HKLM,"SYSTEM\CurrentControlSet\Services\ZapSc","Start",0x10001,03,00,00,00
;HKLM,"SYSTEM\CurrentControlSet\Services\ZapSc","Type",0x10001,01,00,00,00
;HKLM,"SYSTEM\CurrentControlSet\Services\ZapSc","DisplayName",0,"ZapSc"
;HKLM,"SYSTEM\CurrentControlSet\Services\ZapSc","DependOnGroup",0x10000,%
SCardDepends%
;HKLM,"SYSTEM\CurrentControlSet\Services\ZapSc","Group",0,"Smart Card
Reader"
;HKLM,"SYSTEM\CurrentControlSet\Services\EventLog\System\ZapSc","EventMessag
eFile",0,"%SystemRoot%\System32\drivers\ZapSc.sys"
;HKLM,"SYSTEM\CurrentControlSet\Services\EventLog\System\ZapSc","TypesSuppor
ted",0x10001,07,00,00,00

[ZapSC.Install.AddReg]
HKR,, AdapterType, 0, "0100"
HKLM, Software\Microsoft\Cryptography\Calais\Readers,,,
HKR,,DevLoader,,*NTKERN
HKLM,"SYSTEM\CurrentControlSet\Services\ZapSc",
 "ErrorControl",  0x10001, 01,
HKLM,"SYSTEM\CurrentControlSet\Services\ZapSc",
 "Start",   0x10001, 03
HKLM,"SYSTEM\CurrentControlSet\Services\ZapSc",
 "Type",    0x10001, 01
HKLM,"SYSTEM\CurrentControlSet\Services\ZapSc",
 "DisplayName",  0,   "ZapSc"
HKLM,"SYSTEM\CurrentControlSet\Services\ZapSc",
 "DependOnGroup", 0x10000, %SCardDepends%
HKLM,"SYSTEM\CurrentControlSet\Services\ZapSc",
 "Group",   0,   "Smart Card
Reader"
HKLM,"SYSTEM\CurrentControlSet\Services\EventLog\System\ZapSc",
 "EventMessageFile", 0,   "%10%\System32
\drivers\ZapSc.sys"
HKLM,"SYSTEM\CurrentControlSet\Services\EventLog\System\ZapSc",
 "TypesSupported", 0x10001, 07
HKLM,"SYSTEM\CurrentControlSet\Services\ZapSc",
 "ImagePath",  0,   "%10%\system32
\drivers\zapsc.sys"

[ZapSC.Install.CopyFiles]
ZapSC.sys,,,2

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

[ZapSC.Install.Services]
AddService = ZapSC, 2, ZapSC.Service, ZapSC.EventLog

[ZapSC.Service]
DisplayName     = %ZapSC.DeviceDesc%
ServiceType     = 1
StartType       = 3
ErrorControl    = 1
ServiceBinary   = %12%\ZapSC.sys

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

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

[DestinationDirs]
DefaultDestDir = 10
ZapSC.Install.CopyFiles = 10, "system32\drivers"

[SourceDisksNames]
1 = %InstallDisk%,,,

[SourceDisksFiles]
ZapSC.sys = 1

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

[Strings]
DSC     = "Diamond Software Concepts"
ZAPTRONIX   = "Zaptronix"
ZapSC.DeviceDesc = "Zaptronix USB Smart Card Reader"
ClassName    = "Smart Card Reader"
InstallDisk   = "Zaptronix USB Smartcard Reader Install
Disk"
SCardDepends  = "Extended base"

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic