;
; ibtusbbl.inf
;

[Version]
Signature="$WINDOWS NT$"
Class=Bootloader
ClassGuid={854D3F8A-4921-43E3-BBA3-D4F1911611F9}
Provider=%ManufacturerName%
CatalogFile=ibtusbbl.cat
DriverVer=08/12/2015,14.41.33.390

[DestinationDirs]
DefaultDestDir = 12

[SourceDisksNames]
1 = %DiskName%,,,""

[SourceDisksFiles]
ibtusbbl.sys  = 1,,

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

[Manufacturer]
%ManufacturerName%=Standard,NTx86

[Standard.NTx86]
%ibtusbbl.DeviceDesc.0A5A%=ibtusbbl_Device, USB\VID_FFFF&PID_0A5A
%ibtusbbl.DeviceDesc%=ibtusbbl_Device, USB\VID_FFFF&PID_0A5B

[ibtusbbl_Device.NTx86]
CopyFiles=Drivers_Dir

[Drivers_Dir]
ibtusbbl.sys

[ibtusbbl_Device.NTx86.HW]
AddReg=ibtusbbl_AddReg

[ibtusbbl_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,,%ibtusbbl.DeviceDesc%

;-------------- 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

;-------------- Service installation
[ibtusbbl_Device.NTx86.Services]
AddService = ibtusbbl,%SPSVCINST_ASSOCSERVICE%, ibtusbbl_Service_Inst

; -------------- ibtusbbl driver install sections
[ibtusbbl_Service_Inst]
DisplayName    = %ibtusbbl.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\ibtusbbl.sys
LoadOrderGroup = Extended Base
AddReg = ibtusbbl_Service_Events_AddReg

[ibtusbbl_Device.NTx86.Wdf]
KmdfService =  ibtusbbl, ibtusbbl_wdfsect

[ibtusbbl_wdfsect]
KmdfLibraryVersion = 1.11

[ibtusbbl_Service_Events_AddReg]
HKLM, %PathToEtwPublishers%\%ProviderGuid%, "", 0x00000000,"Intel-Bluetooth-Bootloader-USB"
HKLM, %PathToEtwPublishers%\%ProviderGuid%, "MessageFileName", 0x00020000, "%%SystemRoot%%\System32\Drivers\ibtusbbl.sys"
HKLM, %PathToEtwPublishers%\%ProviderGuid%, "ResourceFileName", 0x00020000, "%%SystemRoot%%\System32\Drivers\ibtusbbl.sys"
HKLM,"SOFTWARE\Intel\Bluetooth",PatchType,0x00010001,1

[Strings]
SPSVCINST_ASSOCSERVICE= 0x00000002
ManufacturerName="Intel Corporation"
ClassName="Bootloaders"
DiskName = "ibtusbbl Installation Disk"
ibtusbbl.DeviceDesc.0A5A = "Intel Bluetooth (LnP/SfP-A0) Bootloader Device"
ibtusbbl.DeviceDesc = "Intel Bluetooth (LnP/SfP-A0) Bootloader Device"
ibtusbbl.SVCDESC = "Intel Bluetooth Bootloader Service"
REG_MULTI_SZ = 0x00010000
PathToEtwPublishers = "SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers"
ProviderGuid = "{6FE328FC-9569-4BF0-993A-22B37EA6F688}"
