; This is the "O2Micro OZ776 USB CCID Smartcard Reader" INF file for windows
; Copyright (c) 2001-2015 O2Micro
; 

[Version]
Signature   = $CHICAGO$
Class       = SmartCardReader
ClassGuid   = {50DD5230-BA8A-11D1-BF5D-0000F805F530}
Provider    = %MFGNAME%
DriverVer   = 05/29/2015,2.1.4.240
CatalogFile = oz776x64.cat

[ControlFlags]
ExcludeFromSelect = *

[Manufacturer]
%MFGNAME% = O2M,NTamd64

[DestinationDirs]
DefaultDestDir  = 10,System32\Drivers
DriverCopyFiles = 10,System32\Drivers
CopyCTAPI = 11
CopyCTAPI64 = 10,SysWOW64

[SourceDisksFiles]
oz776x64.sys = 1
ct32O2.dll = 1

[SourceDisksNames]
1=%INSTDISK%,,,

[O2M.NTamd64]
;USB CCID
;%O2MCCID.DeviceDesc%=DriverInstall,USB\VID_0B97&PID_7762&REV_0110 ;UID/PID/REV
%O2MCCID.DeviceDesc%=DriverInstallSS,USB\VID_0B97&PID_7772&REV_0110 ;UID/PID/REV

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

;[DriverInstall.NT]
;CopyFiles=DriverCopyFiles
;CopyFiles=CopyCTAPI
;CopyFiles=CopyCTAPI64

[DriverCopyFiles]
oz776x64.sys,,,2

[CopyCTAPI]
ct32O2.dll

[CopyCTAPI64]
ct32O2.dll

;[DriverInstall.NT.Services]
;Addservice = guardian2, 2, DriverService

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

;[ParamAddReg]
;HKR, "Parameters", "SSuspendEnable",      0x00010001, 0x00000000
;HKR, "Parameters", "eGateDisable",      0x00010001, 0x00000001
;HKR, "Parameters", "ShowSafelyRemove",      0x00010001, 0x00000000
;HKR, "Parameters", "DevRemovable",      0x00010001, 0x00000000
;HKR, "Parameters", "FiveVonly",      0x00010001, 0x00000001
;HKR, "Parameters", "timeout",      0x00010001, 0x00000000
;HKR, "Parameters", "cmdset",      0x00010001, 0x00000001
;HKLM, System\CurrentControlSet\Services\SCardSvr,Start,0x00010001,2	; Fix #565 item in WLK1.5, For win7/Vista DTM
;HKLM, System\CurrentControlSet\Services\CertPropSvc,Start,0x00010001,2 ; Fix #565 item in WLK1.5, For win7/Vista DTM

;------------------------------------------------------------------------------
;  Oz7772 Need enable Selective Suspend
;------------------------------------------------------------------------------

[DriverInstallSS.NT]
CopyFiles=DriverCopyFiles
CopyFiles=CopyCTAPI
CopyFiles=CopyCTAPI64

[DriverInstallSS.NT.Services]
Addservice = guardian2, 2, DriverServiceSS

[DriverServiceSS]
ServiceType    = 1                                      ; SERVICE_KERNEL_DRIVER
StartType      = 3                                      ; SERVICE_DEMAND_START
ErrorControl   = 1                                      ; SERVICE_ERROR_NORMAL
ServiceBinary  = %10%\System32\Drivers\oz776x64.sys
AddReg = ParamAddRegSS

[ParamAddRegSS]
HKR, "Parameters", "SSuspendEnable",      0x00010001, 0x00000001
HKR, "Parameters", "eGateDisable",      0x00010001, 0x00000001
HKR, "Parameters", "ShowSafelyRemove",      0x00010001, 0x00000000
HKR, "Parameters", "DevRemovable",      0x00010001, 0x00000000
HKR, "Parameters", "FiveVonly",      0x00010001, 0x00000001
HKR, "Parameters", "timeout",      0x00010001, 0x00000000
HKR, "Parameters", "cmdset",      0x00010001, 0x00000000
HKR, "Parameters", "sysdelayi",      0x00010001, 0x00000000
HKR, "Parameters", "sysdelayo",      0x00010001, 0x00000000
HKR, "Parameters", "pwrdelay",      0x00010001, 0x00000000

;------------------------------------------------------------------------------
;  Windows 98 Sections
;------------------------------------------------------------------------------

[DriverInstall]
AddReg=DriverAddReg
CopyFiles=DriverCopyFiles
CopyFiles=CopyCTAPI
CopyFiles=CopyCTAPI64

[DriverAddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,oz776x64.sys
HKR,,Description,,%O2MCCID.DeviceDesc%
						
[DriverInstall.hw]
;AddReg=DriverHwAddReg

;------------------------------------------------------------------------------
;  String Definitions
;------------------------------------------------------------------------------

[Strings]
MFGNAME            = "O2Micro"
INSTDISK           = "O2Micro OZ776 USB CCID Smartcard Reader Installation Disk"
O2MCCID.DeviceDesc = "O2Micro OZ776 USB CCID Smartcard Reader"
ClassName          = "SmartCardReader"
CardName           = "SmartCard"
