Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;
- ; MyUSBDriver_UMDF_.inf
- ;
- [Version]
- Signature="$Windows NT$"
- Class=USBDevice
- ClassGuid={88BAE032-5A81-49f0-BC3D-A4FF138216D6}
- Provider=%ManufacturerName%
- CatalogFile=MyUSBDriver_UMDF_.cat
- DriverVer=
- [Manufacturer]
- %ManufacturerName%=Standard,NT$ARCH$
- [Standard.NT$ARCH$]
- %DeviceName%=MyDevice_Install, USB\VID_072F&PID_223B&REV_0100&MI_00
- [SourceDisksFiles]
- MyUSBDriver_UMDF_.dll=1
- [SourceDisksNames]
- 1 = %DiskName%
- ; ========== 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
- ; =================== UMDF Device ==================================
- [MyDevice_Install.NT]
- CopyFiles=UMDriverCopy
- Include=WINUSB.INF ; Import sections from WINUSB.INF
- Needs=WINUSB.NT ; Run the CopyFiles & AddReg directives for WinUsb.INF
- [MyDevice_Install.NT.hw]
- AddReg=MyUSBDriver_UMDF__AddReg
- [MyDevice_Install.NT.Services]
- AddService=WUDFRd,0x000001fa,WUDFRD_ServiceInstall ; flag 0x2 sets this as the service for the device
- AddService=WinUsb,0x000001f8,WinUsb_ServiceInstall ; this service is installed because its a filter.
- [MyDevice_Install.NT.CoInstallers]
- AddReg=CoInstallers_AddReg
- [MyDevice_Install.NT.Wdf]
- UmdfDispatcher=WinUsb
- UmdfService=MyUSBDriver_UMDF_,MyUSBDriver_UMDF__Install
- UmdfServiceOrder=MyUSBDriver_UMDF_
- [MyUSBDriver_UMDF__Install]
- UmdfLibraryVersion=$UMDFVERSION$
- ServiceBinary=%12%\UMDF\MyUSBDriver_UMDF_.dll
- [MyUSBDriver_UMDF__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,,%DeviceName%
- HKR,,"LowerFilters",0x00010008,"WinUsb" ; FLG_ADDREG_TYPE_MULTI_SZ | FLG_ADDREG_APPEND
- HKR,,"WinUsbPowerPolicyOwnershipDisabled",0x00010001,1
- [WUDFRD_ServiceInstall]
- DisplayName = %WudfRdDisplayName%
- ServiceType = 1
- StartType = 3
- ErrorControl = 1
- ServiceBinary = %12%\WUDFRd.sys
- [WinUsb_ServiceInstall]
- DisplayName = %WinUsb_SvcDesc%
- ServiceType = 1
- StartType = 3
- ErrorControl = 1
- ServiceBinary = %12%\WinUSB.sys
- [CoInstallers_AddReg]
- HKR,,CoInstallers32,0x00010000,"WUDFCoinstaller.dll"
- [DestinationDirs]
- UMDriverCopy=12,UMDF ; copy to drivers\umdf
- [UMDriverCopy]
- MyUSBDriver_UMDF_.dll
- ; =================== Generic ==================================
- [Strings]
- ManufacturerName="<Your manufacturer name>" ;TODO: Replace with your manufacturer name
- ClassName="Universal Serial Bus devices"
- DiskName = "MyUSBDriver_UMDF_ Installation Disk"
- WudfRdDisplayName="Windows Driver Foundation - User-mode Driver Framework Reflector"
- WinUsb_SvcDesc="WinUSB Driver"
- DeviceName="MyUSBDriver_UMDF_ Device"
- REG_MULTI_SZ = 0x00010000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement