; $Header: https://svn.local.mstarlabs.com/svn/msl/Rel/Eng/DAPcell/Wdf/800/Install/Src/Inf/Umdf/Usb/DAPcellSetupUser.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.
;
; DAPcellSetupUser.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=DAPcellUser.cat
CatalogFile.ntamd64=DAPcellUser64.cat

[DestinationDirs]
DefaultDestDir = 12,UMDF
CoinstallerFiles=11
UtilDllFiles=11

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

[Classinstall32.NT]
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]
DAPcellDriverUser.dll = 1
DAPcellDriverUserHelper.dll = 1
DAPcellInstl.dll = 1

[SourceDisksFiles.amd64]
DAPcellDriverUser.dll = 1
DAPcellDriverUserHelper.dll = 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 = %USB_DAP_2280_ID% 

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

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

[DapList.ntx86]
%VID_0525&PID_A6D0%=DriverInstall,%USB_DAP_2280_ID%

[DapList.ntamd64]
%VID_0525&PID_A6D0%=DriverInstall,%USB_DAP_2280_ID%

[DriverInstall.NT]
CopyFiles= DeviceFiles
CopyFiles= UtilDllFiles

[DeviceFiles]
DAPcellDriverUser.dll

[UtilDllFiles]
DAPcellDriverUserHelper.dll

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

[DriverInstall.NT.Services]
AddService=DAPcellDriverUser,0x00000002,DriverService,EventlogService

; -------------- Acomk64 driver install sections
[DriverService]
DisplayName    = %DRIVER_DISPLAYNAME%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\WUDFRd.sys
StartName      = \Driver\WudfRd

[EventlogService]
AddReg=EventlogReg

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

;
;--- Acomk device Coinstaller installation ------
;
[DriverInstall.NT.CoInstallers]
AddReg=DeviceCoinstallReg
CopyFiles=CoinstallerFiles

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

[CoinstallerFiles]
DAPcellInstl.dll

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

[DriverInstall.NT.Wdf]
UmdfDispatcher=NativeUsb
UmdfHostProcessSharing=ProcessSharingDisabled
UmdfService=DAPcellDriverUser, WUDFDAPcellDriverUser_Install
UmdfServiceOrder=DAPcellDriverUser

[WUDFDAPcellDriverUser_Install]
UmdfLibraryVersion = 2.15.0
ServiceBinary="%12%\UMDF\DAPcellDriverUser.dll"

[Strings]
MSTAR               = "Microstar Laboratories, Inc. (http://www.mstarlabs.com)"
DAP_CLASSNAME	    = "Data Acquisiton Processors"
DRIVER_DISPLAYNAME  = "Driver Framework Reflector for User-Mode DAPcell USB Driver"
VID_0525&PID_A6D0   = "USB Data Acquisition Processor"
DISK_NAME           = "Microstar Laboratories Data Acquisition Processor Service Disk"
USB_DAP_2280_ID     = "USB\VID_0525&PID_A6D0"

