; O2CF4.INF, O2Micro Integrated O2CF4 Controller INF file
; Copyright (c) 2008-2015 O2Micro Corp.

[Version]
Signature   = "$Windows NT$"
Class       = SCSIAdapter
ClassGuid   = {4D36E97B-E325-11CE-BFC1-08002BE10318}
Provider    = %O2Micro%
DriverVer   = 01/19/2015,1.2.2.7029
Catalogfile = O2CF4.cat

[SourceDisksNames]
1 = %O2CF4.DriverDisk%

[SourceDisksFiles]
O2CF4.sys = 1
O2CFSrv.exe = 1

[DestinationDirs]
DefaultDestDir = 12
CopyO2CFSrv = 12

[ControlFlags]
ExcludeFromSelect = *

[Manufacturer]
%O2Micro% = O2CF4DR

[O2CF4DR]
%O2CF4.DeviceDesc% = DriverInstall, PCI\VEN_1217&DEV_8234
%O2CF4.DeviceDesc% = DriverInstall, PCI\VEN_1217&DEV_8150

[DriverInstall.NT]
CopyFiles = @O2CF4.sys
CopyInf   = O2CF4disk.inf
CopyFiles = CopyO2CFSrv

[CopyO2CFSrv]
O2CFSrv.exe

[DriverInstall.NT.Services]
AddService = O2CF4DR, 0x00000002 , DriverService, EventLogService
AddService = O2CFSrv, 0x00000800 , Flash_Service_Inst

[Flash_Service_Inst]
DisplayName    = O2CFSrv
ServiceType    = 0x0010             ; SERVICE_KERNEL_DRIVER
StartType      = 2                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  
ServiceBinary  = %12%\O2CFSrv.exe

[DriverService]
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 0                  ; 
ErrorControl   = 1                  
;LoadOrderGroup = SCSI Miniport
LoadOrderGroup = Boot Bus Extender	; we use this order to load before PCMCIA driver
ServiceBinary  = %12%\O2CF4.sys
AddReg         = pnpsafe_pci_addreg
AddReg         = bus_type_o2
AddReg         = change_PCMCIA_StartType
;;;;;;;;;;;;;;;;;;;;;;
AddReg         = icon_label

[EventLogService]
AddReg = EventLogService_AddReg

[EventLogService_AddReg]
HKR,,EventMessageFile, 0x00020000, "%%SystemRoot%%\System32\drivers\O2CF4.sys"
HKR,,TypesSupported,   0x00010001, 7

[pnpsafe_pci_addreg]
HKR, "Parameters\PnpInterface", "5", 0x00010001, 0x00000001

[bus_type_o2]
HKR,"Parameters", "BusType", 0x00010001, 0x00000000

; we need this registry to start before PCMCIA driver
[change_PCMCIA_StartType]
;HKLM,"System\CurrentControlSet\Services\PCMCIA","Start",0x00010001,3

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SCSI\DiskO2Micro_CF4_____________0001
[icon_label]
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\PerHwIdStorage\SCSI#DiskO2Micro_CF4_____________0001","Icons",0x00010000,"%SystemRoot%\system32\shell32.dll,8"
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\PerHwIdStorage\SCSI#DiskO2Micro_CF4_____________0001","Label",,"CompactFlash Disk"
;HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\PerHwIdStorage\SCSI#DiskO2Micro_CF4_____________0001","NoSoftEject",0x00010001,0x00000001
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\PerHwIdStorage\SCSI#DiskO2Micro_CF4_____________0001","DeviceGroup",,"CFStorage"

[Strings]
REG_SZ        = 0x00000000
REG_MULTI_SZ  = 0x00010000
REG_EXPAND_SZ = 0x00020000
REG_BINARY    = 0x00000001
REG_DWORD     = 0x00010001
SERVICEROOT   = "System\CurrentControlSet\Services"

O2Micro          = "O2Micro"
O2CF4.DeviceDesc = "O2Micro Integrated CF4 Controller"
O2CF4.DriverDisk = "O2Micro Integrated CF4 Controller Driver Disk"
