; $Header: https://svn.local.mstarlabs.com/svn/msl/Rel/Eng/DAPcell/Wdf/800/Install/Src/Inf/Kmdf/PciUsb/DAPcellSetupKernel.inf 9200 2020-01-13 21:20:19Z Xiaozhi $ 
; Copyright (c) 1996-2020 Microstar Laboratories, Inc.
;
; This .INF installs Data Acquisition Processors services as a kernel mode WDF driver 
; under Windows 10 and later.
;
; DAPcellSetupKernel.inf
;

[Version]
Signature="$WINDOWS NT$"
Class=Data Acquisition Processors
ClassGuid={f35b8bfa-2f12-11d3-85e2-00a0244aea59}
Provider=%MSTAR%
DriverVer=01/12/2020,8.0.0.0
CatalogFile.ntx86=DAPcellKernel.cat
CatalogFile.ntamd64=DAPcellKernel64.cat

[DestinationDirs]
DefaultDestDir = 12
CoinstallerFiles=11

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

[Classinstall32.ntx86]
AddReg=ClassReg, ClassCoinstallReg
CopyFiles=CoinstallerFiles

[Classinstall32.ntamd64]
AddReg=ClassReg, ClassCoinstallReg
CopyFiles=CoinstallerFiles

[ClassReg]
HKR,,,0,%DAP_CLASSNAME%
HKR,,Icon,,-5

[ClassReg.Security]
"D:(A;OICI;KA;;;BA)"

[ClassCoinstallReg]
HKLM,System\CurrentControlSet\Control\Class\{f35b8bfa-2f12-11d3-85e2-00a0244aea59},\
  Installer32,0,"DAPcellInstl.dll,CLASSINSTALLER"
HKLM,System\CurrentControlSet\Control\CoDeviceInstallers,\
  {f35b8bfa-2f12-11d3-85e2-00a0244aea59},\
  0x00010000,"DAPcellInstl.dll,CLASSCOINSTALLER"

[SourceDisksNames.x86]
1=%DISK_NAME%,daptl800,,Driver\x86

[SourceDisksNames.amd64]
1=%DISK_NAME%,daptl800,,Driver\x64

[SourceDisksFiles.x86]
DAPcellDriverKernel.sys = 1
DAPcellInstl.dll = 1

[SourceDisksFiles.amd64]
DAPcellDriverKernel.sys = 1
DAPcellInstl.dll = 1

[AcomkMediaInfo]
; Used by the class installer to figure out where the original media is
; located (so it can launch the setup programs).
OriginalInfSourcePath = %1%

[SupportedHardwareInfo]
HardwareID1 = %PCI_DAP_9080_ID%
HardwareID2 = %PCI_DAP_9054_ID% 
HardwareID3 = %USB_DAP_2280_ID% 

;*****************************************
; Install Section
;*****************************************

[Manufacturer]
%MSTAR%=DapList,ntx86,ntamd64

[DapList.ntx86]
%VEN_10B5&DEV_9080%=DriverInstall,%PCI_DAP_9080_ID%
%VEN_10B5&DEV_9054%=DriverInstall,%PCI_DAP_9054_ID%
%VID_0525&PID_A6D0%=DriverInstall,%USB_DAP_2280_ID%

[DapList.ntamd64]
%VEN_10B5&DEV_9080%=DriverInstall,%PCI_DAP_9080_ID%
%VEN_10B5&DEV_9054%=DriverInstall,%PCI_DAP_9054_ID%
%VID_0525&PID_A6D0%=DriverInstall,%USB_DAP_2280_ID%

[DriverInstall.ntx86]
CopyFiles= DeviceFiles

[DriverInstall.ntamd64]
CopyFiles= DeviceFiles

[DeviceFiles]
DAPcellDriverKernel.sys

;-------------- Service installation

[DriverInstall.ntx86.Services]
AddService=DAPcellDriverKernel,2,DriverService,EventlogService

[DriverInstall.ntamd64.Services]
AddService=DAPcellDriverKernel,2,DriverService,EventlogService


; -------------- DAPcellDriverKernel driver install sections
[DriverService]
DisplayName    = %ACOMK_DISPLAYNAME%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\DAPcellDriverKernel.sys

[EventlogService]
AddReg=EventlogReg

[EventlogReg]
HKR,,EventMessageFile,0x00020000,"%%SystemRoot%%\System32\IoLogMsg.dll;%%SystemRoot%%\System32\drivers\DAPcellDriverKernel.sys"
HKR,,TypesSupported,0x00010001,7

;
;--- DAPcell device Coinstaller installation ------
;

[DriverInstall.ntx86.CoInstallers]
AddReg=DeviceCoinstallReg
CopyFiles=CoinstallerFiles

[DriverInstall.ntamd64.CoInstallers]
AddReg=DeviceCoinstallReg
CopyFiles=CoinstallerFiles

[DeviceCoinstallReg]
HKR,,CoInstallers32,0x00010000, "DAPcellInstl.dll,DEVICECOINSTALLER"

[CoinstallerFiles]
DAPcellInstl.dll

;--------------- Wdf section ------------------

[DriverInstall.ntx86.Wdf]
KmdfService = DAPcellDriverKernel, DriverInstall_wdfsect

[DriverInstall.ntamd64.Wdf]
KmdfService = DAPcellDriverKernel, DriverInstall_wdfsect

[DriverInstall_wdfsect]
kmdfLibraryVersion = 1.17


[Strings]
MSTAR               = "Microstar Laboratories, Inc. (http://www.mstarlabs.com)"
DAP_CLASSNAME	    = "Data Acquisiton Processors"
ACOMK_DISPLAYNAME   = "KMDF Driver for Data Acquisition Processors"
VEN_10B5&DEV_9080   = "PCI Data Acquisition Processor"
VEN_10B5&DEV_9054   = "PCI Data Acquisition Processor"
VID_0525&PID_A6D0   = "USB Data Acquisition Processor"
DISK_NAME           = "Microstar Laboratories Data Acquisition Processor Service Disk"
PCI_DAP_9080_ID     = "PCI\VEN_10B5&DEV_9080&SUBSYS_90801111"
PCI_DAP_9054_ID     = "PCI\VEN_10B5&DEV_9054&SUBSYS_00001111"
USB_DAP_2280_ID     = "USB\VID_0525&PID_A6D0"

