Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
1,130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.88 KB | None | 0 0
  1. ;
  2. ; MyUSBDriver_UMDF_.inf
  3. ;
  4.  
  5. [Version]
  6. Signature="$Windows NT$"
  7. Class=USBDevice
  8. ClassGuid={88BAE032-5A81-49f0-BC3D-A4FF138216D6}
  9. Provider=%ManufacturerName%
  10. CatalogFile=MyUSBDriver_UMDF_.cat
  11. DriverVer=
  12.  
  13. [Manufacturer]
  14. %ManufacturerName%=Standard,NT$ARCH$
  15.  
  16. [Standard.NT$ARCH$]
  17. %DeviceName%=MyDevice_Install, USB\VID_072F&PID_223B&REV_0100&MI_00
  18.  
  19. [SourceDisksFiles]
  20. MyUSBDriver_UMDF_.dll=1
  21.  
  22. [SourceDisksNames]
  23. 1 = %DiskName%
  24.  
  25. ; ========== Class definition ===========
  26.  
  27. [ClassInstall32]
  28. AddReg = ClassInstall_AddReg
  29.  
  30. [ClassInstall_AddReg]
  31. HKR,,,,%ClassName%
  32. HKR,,NoInstallClass,,1
  33. HKR,,IconPath,%REG_MULTI_SZ%,"%%systemroot%%\system32\setupapi.dll,-20"
  34. HKR,,LowerLogoVersion,,5.2
  35.  
  36. ; =================== UMDF Device ==================================
  37.  
  38. [MyDevice_Install.NT]
  39. CopyFiles=UMDriverCopy
  40. Include=WINUSB.INF ; Import sections from WINUSB.INF
  41. Needs=WINUSB.NT ; Run the CopyFiles & AddReg directives for WinUsb.INF
  42.  
  43. [MyDevice_Install.NT.hw]
  44. AddReg=MyUSBDriver_UMDF__AddReg
  45.  
  46. [MyDevice_Install.NT.Services]
  47. AddService=WUDFRd,0x000001fa,WUDFRD_ServiceInstall ; flag 0x2 sets this as the service for the device
  48. AddService=WinUsb,0x000001f8,WinUsb_ServiceInstall ; this service is installed because its a filter.
  49.  
  50. [MyDevice_Install.NT.CoInstallers]
  51. AddReg=CoInstallers_AddReg
  52.  
  53. [MyDevice_Install.NT.Wdf]
  54. UmdfDispatcher=WinUsb
  55. UmdfService=MyUSBDriver_UMDF_,MyUSBDriver_UMDF__Install
  56. UmdfServiceOrder=MyUSBDriver_UMDF_
  57.  
  58. [MyUSBDriver_UMDF__Install]
  59. UmdfLibraryVersion=$UMDFVERSION$
  60. ServiceBinary=%12%\UMDF\MyUSBDriver_UMDF_.dll
  61.  
  62. [MyUSBDriver_UMDF__AddReg]
  63. ; By default, USBDevice class uses iProduct descriptor to name the device in
  64. ; Device Manager on Windows 8 and higher.
  65. ; Uncomment for this device to use %DeviceName% on Windows 8 and higher:
  66. ;HKR,,FriendlyName,,%DeviceName%
  67. HKR,,"LowerFilters",0x00010008,"WinUsb" ; FLG_ADDREG_TYPE_MULTI_SZ | FLG_ADDREG_APPEND
  68. HKR,,"WinUsbPowerPolicyOwnershipDisabled",0x00010001,1
  69.  
  70. [WUDFRD_ServiceInstall]
  71. DisplayName = %WudfRdDisplayName%
  72. ServiceType = 1
  73. StartType = 3
  74. ErrorControl = 1
  75. ServiceBinary = %12%\WUDFRd.sys
  76.  
  77. [WinUsb_ServiceInstall]
  78. DisplayName = %WinUsb_SvcDesc%
  79. ServiceType = 1
  80. StartType = 3
  81. ErrorControl = 1
  82. ServiceBinary = %12%\WinUSB.sys
  83.  
  84. [CoInstallers_AddReg]
  85. HKR,,CoInstallers32,0x00010000,"WUDFCoinstaller.dll"
  86.  
  87. [DestinationDirs]
  88. UMDriverCopy=12,UMDF ; copy to drivers\umdf
  89.  
  90. [UMDriverCopy]
  91. MyUSBDriver_UMDF_.dll
  92.  
  93. ; =================== Generic ==================================
  94.  
  95. [Strings]
  96. ManufacturerName="<Your manufacturer name>" ;TODO: Replace with your manufacturer name
  97. ClassName="Universal Serial Bus devices"
  98. DiskName = "MyUSBDriver_UMDF_ Installation Disk"
  99. WudfRdDisplayName="Windows Driver Foundation - User-mode Driver Framework Reflector"
  100. WinUsb_SvcDesc="WinUSB Driver"
  101. DeviceName="MyUSBDriver_UMDF_ Device"
  102. REG_MULTI_SZ = 0x00010000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement