Files
2026-11-16 21:45:51 +01:00

153 lines
4.7 KiB
INI

; Copyright 2026 Black-Seraph
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to in writing, software
; distributed under the License is distributed on an "AS IS" BASIS,
; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
; See the License for the specific language governing permissions and
; limitations under the License.
[Version]
Signature="$Windows NT$"
Class=DuoController
ClassGuid={070D9FF9-4F04-4419-90D2-C4CA9DFDB2EE}
Provider=%ManufacturerName%
CatalogFile=DuoController.cat
PnpLockDown=1
DriverVer = 08/14/2026,1.6.0.0
[Manufacturer]
%ManufacturerName%=Standard,NTamd64.10.0...17134
[Standard.NTamd64.10.0...17134]
%ROOT\VID_054C&PID_0DF2.DeviceName%=DuoController_Install_PS, ROOT\VID_054C&PID_0DF2
%ROOT\VID_054C&PID_0CE6.DeviceName%=DuoController_Install_PS, ROOT\VID_054C&PID_0CE6
%ROOT\VID_054C&PID_05C4.DeviceName%=DuoController_Install_PS, ROOT\VID_054C&PID_05C4
%ROOT\VID_045E&PID_02FF&IG_00.DeviceName%=DuoController_Install_Xbox, ROOT\VID_045E&PID_02FF&IG_00
[ControlFlags]
ExcludeFromSelect=ROOT\VID_054C&PID_0DF2
ExcludeFromSelect=ROOT\VID_054C&PID_0CE6
ExcludeFromSelect=ROOT\VID_054C&PID_05C4
ExcludeFromSelect=ROOT\VID_045E&PID_02FF&IG_00
[ClassInstall32]
AddReg=DuoControllerClass_RegistryAdd
[DuoControllerClass_RegistryAdd]
HKR,,,,%ClassName%
HKR,,Icon,,"-24"
[SourceDisksFiles]
DuoController.dll=1
[SourceDisksNames]
1 = %DiskName%
; =================== UMDF Device ==================================
[DuoController_Install.NT.hw.AddReg]
HKR,,"LowerFilters",0x00010008,"WUDFRd"
; PlayStation (DualSense Edge / DualSense / DualShock 4)
[DuoController_Install_PS]
UmdfLibraryVersion=2.15.0
ServiceBinary=%13%\DuoController.dll
[DuoController_Install_PS.NT]
CopyFiles=UMDriverCopy
[DuoController_Install_PS.NT.Services]
AddService=WUDFRd,0x000001f8,WUDFRD_ServiceInstall
AddService=mshidumdf, 0x000001fa, mshidumdf.AddService
[DuoController_Install_PS.NT.hw]
AddReg=DuoController_Install.NT.hw.AddReg
[DuoController_Install_PS.NT.Wdf]
UmdfService=DuoController,DuoController_Install_PS
UmdfServiceOrder=DuoController
UmdfKernelModeClientPolicy=AllowKernelModeClients
UmdfFileObjectPolicy=AllowNullAndUnknownFileObjects
UmdfMethodNeitherAction=Copy
UmdfFsContextUsePolicy=CanUseFsContext2
UmdfHostPriority=PriorityHigh
[DuoController_Install_PS.NT.CoInstallers]
AddReg=CoInstallers_AddReg
; Xbox (XInputHID-compatible HID device via xinputhid.sys)
[DuoController_Install_Xbox]
UmdfLibraryVersion=2.15.0
ServiceBinary=%13%\DuoController.dll
Include=xinputhid.inf
AddReg=Xbox_DevicePropertyFlags
[DuoController_Install_Xbox.NT]
CopyFiles=UMDriverCopy
[DuoController_Install_Xbox.NT.Services]
AddService=WUDFRd,0x000001f8,WUDFRD_ServiceInstall
AddService=mshidumdf, 0x000001fa, mshidumdf.AddService
Include=xinputhid.inf
Needs=GIP_Hid.Services
[DuoController_Install_Xbox.NT.hw]
AddReg=DuoController_Install.NT.hw.AddReg
Include=xinputhid.inf
Needs=GIP_Hid.HW
[DuoController_Install_Xbox.NT.Wdf]
UmdfService=DuoController,DuoController_Install_Xbox
UmdfServiceOrder=DuoController
UmdfKernelModeClientPolicy=AllowKernelModeClients
UmdfFileObjectPolicy=AllowNullAndUnknownFileObjects
UmdfMethodNeitherAction=Copy
UmdfFsContextUsePolicy=CanUseFsContext2
UmdfHostPriority=PriorityHigh
[DuoController_Install_Xbox.NT.CoInstallers]
AddReg=CoInstallers_AddReg
[Xbox_DevicePropertyFlags]
HKR,,DevicePropertyFlags,0x00010001,0x4
[WUDFRD_ServiceInstall]
DisplayName = %WudfRdDisplayName%
ServiceType = 1
StartType = 3
ErrorControl = 1
ServiceBinary = %13%\WUDFRd.sys
[mshidumdf.AddService]
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %13%\mshidumdf.sys
[CoInstallers_AddReg]
HKR,,CoInstallers32,0x00010000,"WUDFCoinstaller.dll"
[DestinationDirs]
UMDriverCopy=13
[UMDriverCopy]
DuoController.dll
; =================== Generic ==================================
[Strings]
ManufacturerName="Black-Seraph"
ClassName="DuoController Devices"
DiskName = "DuoController Installation Disk"
WudfRdDisplayName="DuoController User-mode Driver"
ROOT\VID_054C&PID_0DF2.DeviceName="DualSense Edge Wireless Controller"
ROOT\VID_054C&PID_0CE6.DeviceName="DualSense Wireless Controller"
ROOT\VID_054C&PID_05C4.DeviceName="DualShock 4 Wireless Controller"
ROOT\VID_045E&PID_02FF&IG_00.DeviceName="Xbox One Elite Wireless Controller"