;
; Oculus_ViGEmBus.inf
;

[Version]
Signature="$WINDOWS NT$"
Class=System
ClassGuid={4D36E97D-E325-11CE-BFC1-08002BE10318}
Provider=%ManufacturerName%
CatalogFile=Oculus_ViGEmBus.cat
DriverVer = 08/02/2017,1.5.8.0

[DestinationDirs]
DefaultDestDir = 12
Oculus_ViGEmBus_Device_CoInstaller_CopyFiles = 11

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

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

[SourceDisksFiles]
Oculus_ViGEmBus.sys  = 1,,
WdfCoInstaller01009.dll=1

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

[Manufacturer]
%ManufacturerName%=Standard,NTamd64

[Standard.NTamd64]
%Oculus_ViGEmBus.DeviceDesc%=Oculus_ViGEmBus_Device, Root\Oculus_ViGEmBus

[Oculus_ViGEmBus_Device.NT]
CopyFiles=Drivers_Dir

[Drivers_Dir]
Oculus_ViGEmBus.sys

;-------------- Service installation
[Oculus_ViGEmBus_Device.NT.Services]
AddService = Oculus_ViGEmBus,%SPSVCINST_ASSOCSERVICE%, Oculus_ViGEmBus_Service_Inst

; -------------- Oculus_ViGEmBus driver install sections
[Oculus_ViGEmBus_Service_Inst]
DisplayName    = %Oculus_ViGEmBus.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\Oculus_ViGEmBus.sys

;
;--- Oculus_ViGEmBus_Device Coinstaller installation ------
;

[Oculus_ViGEmBus_Device.NT.CoInstallers]
AddReg=Oculus_ViGEmBus_Device_CoInstaller_AddReg
CopyFiles=Oculus_ViGEmBus_Device_CoInstaller_CopyFiles

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

[Oculus_ViGEmBus_Device_CoInstaller_CopyFiles]
WdfCoInstaller01009.dll

[Oculus_ViGEmBus_Device.NT.Wdf]
KmdfService =  Oculus_ViGEmBus, Oculus_ViGEmBus_wdfsect
[Oculus_ViGEmBus_wdfsect]
KmdfLibraryVersion = 1.9

[Strings]
SPSVCINST_ASSOCSERVICE= 0x00000002
ManufacturerName="Facebook, Inc."
DiskName = "Oculus ViGEmBus Installation Disk"
Oculus_ViGEmBus.DeviceDesc = "Oculus Virtual Gamepad Emulation Bus"
Oculus_ViGEmBus.SVCDESC = "Oculus Virtual Gamepad Emulation Service"
