;*******************************************************************************
;*                                                                            **
;*                     I N T E L   P R O P R I E T A R Y                      **
;*                                                                            **
;*   COPYRIGHT (c) 2012-2022 BY INTEL CORPORATION. ALL RIGHTS RESERVED.  NO   **
;*   PART  OF  THIS  PROGRAM OR PUBLICATION MAY BE REPRODUCED, TRANSMITTED,   **
;*   TRANSCRIBED, STORED IN A RETRIEVAL  SYSTEM,  OR  TRANSLATED  INTO  ANY   **
;*   LANGUAGE OR COMPUTER LANGUAGE IN ANY FORM OR BY ANY MEANS, ELECTRONIC,   **
;*   MECHANICAL, MAGNETIC, OPTICAL, CHEMICAL, MANUAL, OR OTHERWISE, WITHOUT   **
;*   THE PRIOR WRITTEN PERMISSION OF :                                        **
;*                                                                            **
;*                             INTEL CORPORATION                              **
;*                                                                            **
;*                          2200 MISSION COLLEGE BLVD                         **
;*                                                                            **
;*                     SANTA CLARA, CALIFORNIA 95052-8119                     **
;*                                                                            **
;*******************************************************************************

[Version]
Signature="$WINDOWS NT$"
Class=System
ClassGuid={4D36E97D-E325-11CE-BFC1-08002BE10318}
Provider=%ManufacturerName%
DriverVer = 11/04/2022,3.1.0.4589
PnpLockDown=1
CatalogFile=ISH_BusDriver.cat


[DestinationDirs]
DefaultDestDir = 13

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

[SourceDisksFiles.amd64]
ISH_BusDriver.sys  = 1,.

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

[Manufacturer]
%StdMfg%=Intel, NTamd64.10.0

[Intel.NTamd64.10.0]
; ----- Win 10 ; x64 -------
%DynamicBus.DeviceDesc%=Bus_DDI, {DEA5AE2A-D1FD-438A-A091-CBD484788435}\ISH_BUS

[Bus_DDI]
CopyFiles=Drivers_Dir

[Bus_DDI.HW]
AddReg=BUS_NT_AddReg.AddReg

[BUS_NT_AddReg.AddReg]                            
HKR,,DeviceCharacteristics,0x10001,0x0100         ; Use same security checks on relative opens
HKR,,Security,,"D:P(A;;GA;;;BA)(A;;GA;;;SY)"      ; Allow generic-all access to Built-in administrators and Local system 

[Drivers_Dir]
ISH_BusDriver.sys

;-------------- Service installation
[Bus_DDI.Services]
AddService = ISH_BusDriver,%SPSVCINST_ASSOCSERVICE%, ISH_BUS_Service_Inst, ISH_BUS_EventLog_Inst

; -------------- ISH_BusDriver driver install sections
[ISH_BUS_Service_Inst]
DisplayName    = %ISH_BusDriver.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START 
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %13%\ISH_BusDriver.sys
LoadOrderGroup = Extended Base

;-----------------------------------------------------------------------------
; Common base for all drivers for Eventlog
;
[ISH_BUS_EventLog_Inst]
AddReg = ISH_BUS_EventLog.AddReg

[ISH_BUS_EventLog.AddReg]
HKR, , EventMessageFile, 0x00020000, "%%SystemRoot%%\system32\IoLogMsg.dll;%%13%%\ISH_BusDriver.sys"
HKR, , TypesSupported,   0x00010001, 7


;--------------- Events Installation
[Bus_DDI.Events]
AddEventProvider = {C28D3B7F-9B3C-426D-8842-A1DD4DD57138},ISH_BUS_ETW_Inst

[ISH_BUS_ETW_Inst]
ProviderName  = ISH_BUS
ResourceFile  = "%%13%%\ISH_BusDriver.sys"
MessageFile   = "%%13%%\ISH_BusDriver.sys"
ImportChannel = System
AddChannel    = Intel-ISH-BUS/Performance,0x3,performance_Channel_Inst      ;Channel-type: Analytic
AddChannel    = Intel-ISH-BUS/Debug,0x3,debug_Channel_Inst                  ;Channel-type: Analytic

[debug_Channel_Inst]
OwningPublisher = "{C28D3B7F-9B3C-426D-8842-A1DD4DD57138}"
Isolation       = 2                                                         ;System
Enabled         = 0
ChannelAccess   = "O:BAG:SYD:(A;;0xf0007;;;SY)(A;;0x7;;;BA)(A;;0x3;;;BO)(A;;0x5;;;SO)(A;;0x1;;;IU)(A;;0x3;;;SU)(A;;0x1;;;S-1-5-3)(A;;0x2;;;S-1-5-33)(A;;0x1;;;S-1-5-32-573)"

[performance_Channel_Inst]
OwningPublisher = "{C28D3B7F-9B3C-426D-8842-A1DD4DD57138}"
Isolation       = 2                                                         ;System
Enabled         = 0
ChannelAccess   = "O:BAG:SYD:(A;;0xf0007;;;SY)(A;;0x7;;;BA)(A;;0x3;;;BO)(A;;0x5;;;SO)(A;;0x1;;;IU)(A;;0x3;;;SU)(A;;0x1;;;S-1-5-3)(A;;0x2;;;S-1-5-33)(A;;0x1;;;S-1-5-32-573)"



;--------- Strings Section ---------------------------------------------------

[Strings]
ETW_ISH_BUS_PROVIER = "SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{C28D3B7F-9B3C-426D-8842-A1DD4DD57138}"

SPSVCINST_ASSOCSERVICE= 0x00000002
ManufacturerName="Intel" ;
StdMfg = "(Standard system devices)"
DiskId1 = " Integrated Sensor Solution Bus Installation Disk #1"
DynamicBus.DeviceDesc = "ISS Dynamic Bus Enumerator"
ISH_BusDriver.SVCDESC = " ISS Bus Enumerator"

