;
; PowerMonitor.inf
;
; Installs WinUsb
;

[Version]
Signature = "$Windows NT$"
Class     = USBDevice
ClassGUID = {88BAE032-5A81-49f0-BC3D-A4FF138216D6}
Provider = %ManufacturerName%
CatalogFile=PowerMonitor.cat
DriverVer=01/09/2017,2.0.2.0

; ========== Manufacturer/Models sections ===========

[Manufacturer]
%ManufacturerName% =DeviceList,ntx86,ntx86.6.0,ntamd64,ntamd64.6.0

[DeviceList.ntx86]; Windows 2000 and XP
%DeviceName%=USB_Install, USB\VID_2AB9&PID_0001
 
 [DeviceList.ntx86.6.0]; Vista and later
%DeviceName%=USB_Install, USB\VID_2AB9&PID_0001
 
[DeviceList.ntamd64]
%DeviceName%=USB_Install, USB\VID_2AB9&PID_0001

[DeviceList.ntamd64.6.0]
%DeviceName%=USB_Install, USB\VID_2AB9&PID_0001


; ========== Class definition ===========

[ClassInstall32]
AddReg = ClassInstall_AddReg

[ClassInstall_AddReg]
HKR,,,,%ClassName%
HKR,,NoInstallClass,,1
HKR,,IconPath,%REG_MULTI_SZ%,"%systemroot%\system32\setupapi.dll,-20"
HKR,,LowerLogoVersion,,5.2

; ======================= WinUsbDriver Sections =======================

[WinUsbDriver.NT]
Include = Winusb.inf
Needs   = WINUSB.NT

[WinUsbDriver.NT.Services]
Include = Winusb.inf
Needs   = WINUSB.NT.Services

; =================== Installation ===================

[USB_Install]
Include=winusb.inf
Needs=WINUSB.NT

[USB_Install.Services]
Include=winusb.inf
AddService=WinUsb,0x00000002,WinUsb_ServiceInstall

[WinUsb_ServiceInstall]
DisplayName     = %WinUsb_SvcDesc%
ServiceType     = 1
StartType       = 3
ErrorControl    = 1
ServiceBinary   = %12%\WinUSB.sys

[USB_Install.Wdf]
KmdfService=WINUSB, WinUsb_Install

[WinUsb_Install]
KmdfLibraryVersion=1.11

[USB_Install.HW]
AddReg=Dev_AddReg

[Dev_AddReg]
; By default, USBDevice class uses iProduct descriptor to name the device in
; Device Manager on Windows 8 and higher.
; Uncomment for this device to use %DeviceName% on Windows 8 and higher:
;HKR,,FriendlyName,,%DeviceName%
HKR,,DeviceInterfaceGUIDs,0x10000,"{3a15d3f9-8bff-4627-933c-906c8e959788}"

[USB_Install.CoInstallers]
AddReg=CoInstallers_AddReg
CopyFiles=CoInstallers_CopyFiles

[CoInstallers_AddReg]
HKR,,CoInstallers32,0x00010000,"WdfCoInstaller01011.dll,WdfCoInstaller","WinUsbCoInstaller2.dll"

[CoInstallers_CopyFiles]
WinUsbCoInstaller2.dll
WdfCoInstaller01011.dll

[DestinationDirs]
CoInstallers_CopyFiles=11

; ================= Source Media Section =====================

[SourceDisksNames]
1 = %DiskName%

[SourceDisksFiles]
WinUsbCoInstaller2.dll=1
WdfCoInstaller01011.dll=1

; =================== Strings ===================

[Strings]
ManufacturerName=""
ClassName="Universal Serial Bus devices"
DiskName="Power Monitor Installation Disk"
WinUsb_SvcDesc="WinUSB Driver"
DeviceName="Monsoon Power Monitor"
REG_MULTI_SZ = 0x00010000


