;/*++
;
;Module Name:
;
;    ptusbews.inf
;
;--*/

[Version]
Signature="$WINDOWS NT$"
Class=USB
ClassGUID={36FC9E60-C465-11CF-8056-444553540000}
Provider="Pantum"
DriverVer=05/12/2020,7.1.0.6
CatalogFile=ptusbews.cat


; ================= Device section =====================

[Manufacturer]
%MFG%=Pantum,NTx86,NTamd64

; For Win2K
[Pantum]
"BM4100FDN USB EWS Device Driver"       = mvusbews.Dev,USB\VID_232B&PID_FF3D&MI_02
"BM4100FDW USB EWS Device Driver"       = mvusbews.Dev,USB\VID_232B&PID_FF3C&MI_02

; For x86 XP and later
[Pantum.NTx86]
"BM4100FDN USB EWS Device Driver"       = mvusbews.Dev,USB\VID_232B&PID_FF3D&MI_02
"BM4100FDW USB EWS Device Driver"       = mvusbews.Dev,USB\VID_232B&PID_FF3C&MI_02

; For x64 XP and later
[Pantum.NTamd64]
"BM4100FDN USB EWS Device Driver"       = mvusbews.Dev,USB\VID_232B&PID_FF3D&MI_02
"BM4100FDW USB EWS Device Driver"       = mvusbews.Dev,USB\VID_232B&PID_FF3C&MI_02

[mvusbews.Dev.NT]
CopyFiles=mvusbews.Files.Ext


[mvusbews.Dev.NT.Services]
Addservice = mvusbews, %SPSVCINST_ASSOCSERVICE%, mvusbews.AddService

[mvusbews.AddService]
DisplayName    = %mvusbews.SvcDesc%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %10%\System32\Drivers\ptusbews.sys
LoadOrderGroup = Base

[mvusbews.Files.Ext]
ptusbews.sys

[SourceDisksNames.x86]
1=%Disk_Description%,,,x32

[SourceDisksNames.amd64]
1=%Disk_Description%,,,x64

[SourceDisksFiles]
ptusbews.sys = 1
WdfCoInstaller01009.dll=1 ; make sure the number matches with SourceDisksNames

[DestinationDirs]
DefaultDestDir = 12
CoInstaller_CopyFiles = 11

;-------------- WDF Coinstaller installation

[mvusbews.Dev.NT.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[CoInstaller_CopyFiles]
WdfCoInstaller01009.dll

[CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000, "WdfCoInstaller01009.dll,WdfCoInstaller"

[mvusbews.Dev.NT.Wdf]
KmdfService = mvusbews, mvusbews_wdfsect
[mvusbews_wdfsect]
KmdfLibraryVersion = 1.9

;---------------------------------------------------------------;

[Strings]
MFG="Pantum"
MfgName="mvusbews"
Disk_Description="USB EWS Device Driver Installation Disk"
mvusbews.SvcDesc="USB EWS Device"
SPSVCINST_ASSOCSERVICE= 0x00000002
