📄 mftusb.inf
字号:
; Copyright 2004 Helder Acevedo
;
; This file is part of mft.
; All right reserved.
[Version]
Signature="$CHICAGO$"
Class=HIDClass
ClassGuid={745a17a0-74d3-11d0-b6fe-00a0c90f57da}
Provider=%prov%
DriverVer=06/23/2006, 0.1.0
; Driver information
; ------------------
[Manufacturer]
%Mfg%=DeviceList ;98/ME
%Mfg%=DeviceList,NTx86 ;2K
%Mfg%=DeviceList,NTx86.5.1 ;XP
[DeviceList]
"usb dongle (i03)"=Install, USB\VID_EE8F&PID_0003&Mi_03
; Installation section
; --------------------
[Install] ; Installation script for Windows 98/Me
CopyFiles=FilesToCopy,FilesToCopy.Inf,FilesToCopy.Rumble
DelReg=DeleteRegistry
AddReg=UpDateRegistry
[Install.NTx86] ; Installation script for Windows 2000
CopyFiles=FilesToCopy,FilesToCopy.Inf,FilesToCopy.Rumble
DelReg=DeleteRegistry
AddReg=UpDateRegistry
[Install.NTx86.5.1] ; Installation script for Windows XP
CopyFiles=FilesToCopy,FilesToCopy.Inf,FilesToCopy.Rumble
DelReg=DeleteRegistry
AddReg=UpDateRegistry
[DeleteRegistry]
HKLM,System\CurrentControlSet\Control\MediaProperties\PrivateProperties\Joystick\OEM\VID_ee8f&PID_0003,,0x00002000
HKLM,System\CurrentControlSet\Control\MediaProperties\PrivateProperties\DirectInput\VID_ee8f&PID_0003,,0x00002000
[UpDateRegistry]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,mftjk.sys
HKCR,CLSID\%CLSID%,,,%Rumble.CLSID.Desc%
HKCR,CLSID\%CLSID%\InProcServer32,,,%11%\mftjk.dll
HKCR,CLSID\%CLSID%\InProcServer32,ThreadingModel,,"Both"
HKLM,%KEY_OEM%,OEMData,1,03,00,08,10,0c,00,00,00
HKLM,%KEY_OEM%,OEMName,,%mft.DeviceDesc%
HKLM,%KEY_OEM%\Axes\0,,,"X"
HKLM,%KEY_OEM%\Axes\0,Attributes,1,01,81,00,00,01,00,30,00
HKLM,%KEY_OEM%\Axes\0,FFAttributes,1,0A,00,00,00,00,01,00,00
HKLM,%KEY_OEM%\Axes\1,,,"Y"
HKLM,%KEY_OEM%\Axes\1,Attributes,1,01,81,00,00,01,00,31,00
HKLM,%KEY_OEM%\Axes\1,FFAttributes,1,0A,00,00,00,00,01,00,00
HKLM,%KEY_OEM%\Buttons\0,,,"1"
HKLM,%KEY_OEM%\Buttons\0,Attributes,1,02,80,00,00,09,00,01,00
HKLM,%KEY_OEM%\Buttons\1,,,"2"
HKLM,%KEY_OEM%\Buttons\1,Attributes,1,02,80,00,00,09,00,02,00
HKLM,%KEY_OEM%\Buttons\2,,,"3"
HKLM,%KEY_OEM%\Buttons\2,Attributes,1,02,80,00,00,09,00,03,00
HKLM,%KEY_OEM%\Buttons\3,,,"4"
HKLM,%KEY_OEM%\Buttons\3,Attributes,1,02,80,00,00,09,00,04,00
HKLM,%KEY_OEM%\Buttons\4,,,"5"
HKLM,%KEY_OEM%\Buttons\4,Attributes,1,02,80,00,00,09,00,05,00
HKLM,%KEY_OEM%\Buttons\5,,,"6"
HKLM,%KEY_OEM%\Buttons\5,Attributes,1,02,80,00,00,09,00,06,00
HKLM,%KEY_OEM%\Buttons\6,,,"7"
HKLM,%KEY_OEM%\Buttons\6,Attributes,1,02,80,00,00,09,00,07,00
HKLM,%KEY_OEM%\Buttons\7,,,"8"
HKLM,%KEY_OEM%\Buttons\7,Attributes,1,02,80,00,00,09,00,08,00
HKLM,%KEY_OEM%\Buttons\8,,,"9"
HKLM,%KEY_OEM%\Buttons\8,Attributes,1,02,80,00,00,09,00,09,00
HKLM,%KEY_OEM%\Buttons\9,,,"10"
HKLM,%KEY_OEM%\Buttons\9,Attributes,1,02,80,00,00,09,00,0A,00
HKLM,%KEY_OEM%\Buttons\10,,,"11"
HKLM,%KEY_OEM%\Buttons\10,Attributes,1,02,80,00,00,09,00,0B,00
HKLM,%KEY_OEM%\Buttons\11,,,"12"
HKLM,%KEY_OEM%\Buttons\11,Attributes,1,02,80,00,00,09,00,0C,00
HKLM,%KEY_OEM%\Buttons\12,,,"13"
HKLM,%KEY_OEM%\Buttons\12,Attributes,1,02,80,00,00,09,00,0D,00
HKLM,%KEY_OEM%\Buttons\13,,,"14"
HKLM,%KEY_OEM%\Buttons\13,Attributes,1,02,80,00,00,09,00,0E,00
HKLM,%KEY_OEM%\Buttons\14,,,"15"
HKLM,%KEY_OEM%\Buttons\14,Attributes,1,02,80,00,00,09,00,0F,00
HKLM,%KEY_OEM%\Buttons\15,,,"16"
HKLM,%KEY_OEM%\Buttons\15,Attributes,1,02,80,00,00,09,00,10,00
HKLM,%KEY_OEM%\OEMForceFeedback,Attributes,1,00,00,00,00,E8,03,00,00,E8,03,00,00
HKLM,%KEY_OEM%\OEMForceFeedback,CLSID,,"%CLSID%"
HKLM,%KEY_OEM%\OEMForceFeedback\Effects\%GUID_ConstantForce%,,,"%Constant.Desc%"
HKLM,%KEY_OEM%\OEMForceFeedback\Effects\%GUID_ConstantForce%,Attributes,1,73,01,00,00,01,06,00,00,ED,01,00,00,00,00,00,00,20,00,00,00
HKLM,%KEY_OEM%\OEMForceFeedback\Effects\%GUID_Sine%,,,"%Sine.Desc%"
HKLM,%KEY_OEM%\OEMForceFeedback\Effects\%GUID_Sine%,Attributes,1,D3,02,00,00,03,06,00,00,ED,01,00,00,00,00,00,00,20,00,00,00
HKLM,%KEY_OEM%\OEMForceFeedback\Effects\%GUID_RampForce%,,,"%Ramp.Desc%"
HKLM,%KEY_OEM%\OEMForceFeedback\Effects\%GUID_RampForce%,Attributes,1,7D,00,00,00,02,06,00,00,ED,01,00,00,00,00,00,00,20,00,00,00
HKLM,%KEY_OEM%\OEMForceFeedback\Effects\%GUID_Square%,,,"%Square.Desc%"
HKLM,%KEY_OEM%\OEMForceFeedback\Effects\%GUID_Square%,Attributes,1,1D,01,00,00,03,06,00,00,ED,01,00,00,00,00,00,00,20,00,00,00
HKLM,%KEY_OEM%\OEMForceFeedback\Effects\%GUID_Triangle%,,,"%Triangle.Desc%"
HKLM,%KEY_OEM%\OEMForceFeedback\Effects\%GUID_Triangle%,Attributes,1,CB,01,00,00,03,06,00,00,ED,01,00,00,00,00,00,00,20,00,00,00
HKLM,%KEY_OEM%\OEMForceFeedback\Effects\%GUID_SawtoothUp%,,,"%SawtoothUp.Desc%"
HKLM,%KEY_OEM%\OEMForceFeedback\Effects\%GUID_SawtoothUp%,Attributes,1,1E,02,00,00,03,06,00,00,ED,01,00,00,00,00,00,00,20,00,00,00
HKLM,%KEY_OEM%\OEMForceFeedback\Effects\%GUID_SawtoothDown%,,,"%SawtoothDown.Desc%"
HKLM,%KEY_OEM%\OEMForceFeedback\Effects\%GUID_SawtoothDown%,Attributes,1,5F,03,00,00,03,06,00,00,ED,01,00,00,00,00,00,00,20,00,00,00
HKLM,%KEY_OEM%\OEMForceFeedback\Effects\%GUID_Spring%,,,"%Spring.Desc%"
HKLM,%KEY_OEM%\OEMForceFeedback\Effects\%GUID_Spring%,Attributes,1,94,03,00,00,04,48,00,00,65,01,00,00,00,00,00,00,20,00,00,00
HKLM,%KEY_OEM%\OEMForceFeedback\Effects\%GUID_Friction%,,,"%Friction.Desc%"
HKLM,%KEY_OEM%\OEMForceFeedback\Effects\%GUID_Friction%,Attributes,1,D7,00,00,00,04,48,00,00,65,01,00,00,00,00,00,00,20,00,00,00
HKLM,%KEY_OEM%\OEMForceFeedback\Effects\%GUID_Damper%,,,"%Damper.Desc%"
HKLM,%KEY_OEM%\OEMForceFeedback\Effects\%GUID_Damper%,Attributes,1,70,02,00,00,04,48,00,00,65,01,00,00,00,00,00,00,20,00,00,00
HKLM,%KEY_OEM%\OEMForceFeedback\Effects\%GUID_Inertia%,,,"%Inertia.Desc%"
HKLM,%KEY_OEM%\OEMForceFeedback\Effects\%GUID_Inertia%,Attributes,1,4F,02,00,00,04,48,00,00,65,01,00,00,00,00,00,00,20,00,00,00
; Defining mft Service
; ---------------------------
[Install.Services]
Addservice=mft, 0x00000002, Service_Info
[Install.NTx86.Services]
Addservice=mft, 0x00000002, Service_Info
[Install.NTx86.5.1.Services]
Addservice=mft, 0x00000002, Service_Info
[Service_Info]
DisplayName = %Service_Description%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %10%\System32\Drivers\mftjk.sys
; Source file information
; -----------------------
[DestinationDirs]
FilesToCopy=10,System32\Drivers
FilesToCopy.Inf=10,Inf
FilesToCopy.Rumble=10,System32
[SourceDisksNames]
1="mft Installation Disk",,
[SourceDisksFiles]
mftjk.sys=1
mftusb.inf=1
mftjk.dll=1
[SourceDisksFiles.NTx86]
mftjk.sys=1
mftusb.inf=1
mftjk.dll=1
[SourceDisksFiles.NTx86.5.1]
mftjk.sys=1
mftusb.inf=1
mftjk.dll=1
[FilesToCopy]
mftjk.sys ,,,0x6 ; 0x6 == COPYFLG_NOVERSIONCHECK || COPYFLG_NOSKIP
[FilesToCopy.Inf]
mftusb.inf ,,,0x6 ; 0x6 == COPYFLG_NOVERSIONCHECK || COPYFLG_NOSKIP
[FilesToCopy.Rumble]
mftjk.dll ,,,0x6 ; 0x6 == COPYFLG_NOVERSIONCHECK || COPYFLG_NOSKIP
;-------------------
[Strings]
prov="Redcl0ud"
Service_Description="mft Kernel Module"
Mfg="mft tec"
mft.DeviceDesc="Mft Usb Radio Joystick"
Rumble.CLSID.Desc="Mft Rumble Driver"
Constant.Desc ="Constant"
Sine.Desc ="Sine"
Ramp.Desc ="Ramp"
Square.Desc ="Square"
Triangle.Desc ="Triangle"
SawtoothUp.Desc ="SawtoothUp"
SawtoothDown.Desc ="SawtoothDown"
Spring.Desc ="Spring"
Friction.Desc ="Friction"
Damper.Desc ="Damper"
Inertia.Desc ="Inertia"
KEY_OEM="System\CurrentControlSet\Control\MediaProperties\PrivateProperties\Joystick\OEM\VID_ee8f&PID_0003"
CLSID="{5A31DDDE-75C8-4678-8DFB-870DE54EDDAD}"
GUID_ConstantForce="{13541C20-8E33-11D0-9AD0-00A0C9A06E35}"
GUID_Sine ="{13541C23-8E33-11D0-9AD0-00A0C9A06E35}"
GUID_RampForce ="{13541C21-8E33-11D0-9AD0-00A0C9A06E35}"
GUID_Square ="{13541C22-8E33-11D0-9AD0-00A0C9A06E35}"
GUID_Triangle ="{13541C24-8E33-11D0-9AD0-00A0C9A06E35}"
GUID_SawtoothUp ="{13541C25-8E33-11D0-9AD0-00A0C9A06E35}"
GUID_SawtoothDown ="{13541C26-8E33-11D0-9AD0-00A0C9A06E35}"
GUID_Spring ="{13541C27-8E33-11D0-9AD0-00A0C9A06E35}"
GUID_Friction ="{13541C2A-8E33-11D0-9AD0-00A0C9A06E35}"
GUID_Damper ="{13541C28-8E33-11D0-9AD0-00A0C9A06E35}"
GUID_Inertia ="{13541C29-8E33-11D0-9AD0-00A0C9A06E35}"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -