Advertisement
Guest User

Musings Of An Axe Wielding Maniac

a guest
May 24th, 2012
36,477
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; MS-Windows driver config matching some basic modes of the
  2. ; Linux-USB Ethernet/RNDIS gadget firmware:
  3. ;
  4. ;  - RNDIS plus CDC Ethernet ... this may be familiar as a DOCSIS
  5. ;    cable modem profile, and supports most non-Microsoft USB hosts
  6. ;
  7. ;  - RNDIS plus CDC Subset ... used by hardware that incapable of
  8. ;    full CDC Ethernet support.
  9. ;
  10. ; Microsoft only directly supports RNDIS drivers, and bundled them into XP.
  11. ; The Microsoft "Remote NDIS USB Driver Kit" is currently found at:
  12. ;   http://www.microsoft.com/whdc/hwdev/resources/HWservices/rndis.mspx
  13.  
  14.  
  15. [Version]
  16. Signature           = "$CHICAGO$"
  17. Class               = Net
  18. ClassGUID           = {4d36e972-e325-11ce-bfc1-08002be10318}
  19. Provider            = %Android%
  20. Compatible          = 1
  21. MillenniumPreferred = .ME
  22. DriverVer           = 03/30/2004,0.0.0.0
  23. ; catalog file would be used by WHQL
  24. ;CatalogFile         = Android.cat
  25.  
  26. [Manufacturer]
  27. %Android%          = AndroidDevices,NT.5.1
  28.  
  29. [AndroidDevices]
  30. ; Google Nexus One without adb
  31. %AndroidDevice%    = RNDIS, USB\VID_18D1&PID_4E13
  32. ; Google Nexus One with adb
  33. %AndroidDevice%    = RNDIS, USB\VID_18D1&PID_4E14
  34. ; Google Nexus S without adb
  35. %AndroidDevice%    = RNDIS, USB\VID_18D1&PID_4E23
  36. ; Google Nexus S with adb
  37. %AndroidDevice%    = RNDIS, USB\VID_18D1&PID_4E24
  38. ; HTC Sapphire without adb
  39. %AndroidDevice%    = RNDIS, USB\VID_0BB4&PID_0FFE
  40. ; HTC Sapphire with adb
  41. %AndroidDevice%    = RNDIS, USB\VID_0BB4&PID_0FFC
  42. ; Motorola Sholes without adb
  43. %AndroidDevice%    = RNDIS, USB\VID_22B8&PID_41E4
  44. ; Motorola Sholes with adb
  45. %AndroidDevice%    = RNDIS, USB\VID_22B8&PID_41E5
  46.  
  47. [AndroidDevices.NT.5.1]
  48. ; MY PHONE!
  49. %AndroidDevice%    = RNDIS.NT.5.1, USB\VID_04E8&PID_6863
  50. ; Google Nexus One without adb
  51. %AndroidDevice%    = RNDIS.NT.5.1, USB\VID_18D1&PID_4E13
  52. ; Google Nexus One with adb
  53. %AndroidDevice%    = RNDIS.NT.5.1, USB\VID_18D1&PID_4E14
  54. ; Google Nexus S without adb
  55. %AndroidDevice%    = RNDIS.NT.5.1, USB\VID_18D1&PID_4E23
  56. ; Google Nexus S with adb
  57. %AndroidDevice%    = RNDIS.NT.5.1, USB\VID_18D1&PID_4E24
  58. ; HTC Sapphire without adb
  59. %AndroidDevice%    = RNDIS.NT.5.1, USB\VID_0BB4&PID_0FFE
  60. ; HTC Sapphire with adb
  61. %AndroidDevice%    = RNDIS.NT.5.1, USB\VID_0BB4&PID_0FFC
  62. ; Motorola Sholes without adb
  63. %AndroidDevice%    = RNDIS.NT.5.1, USB\VID_22B8&PID_41E4
  64. ; Motorola Sholes with adb
  65. %AndroidDevice%    = RNDIS.NT.5.1, USB\VID_22B8&PID_41E5
  66.  
  67. [ControlFlags]
  68. ExcludeFromSelect=*
  69.  
  70. ; Windows XP specific sections -----------------------------------
  71.  
  72. [RNDIS.NT.5.1]
  73. Characteristics = 0x84   ; NCF_PHYSICAL + NCF_HAS_UI
  74. BusType         = 15
  75. DriverVer           = 03/30/2004,0.0.0.0
  76. AddReg          = RNDIS_AddReg_NT, RNDIS_AddReg_Common
  77. ; no copyfiles - the files are already in place
  78.  
  79. [RNDIS.NT.5.1.Services]
  80. AddService      = USB_RNDIS, 2, RNDIS_ServiceInst_51, RNDIS_EventLog
  81.  
  82. [RNDIS_ServiceInst_51]
  83. DisplayName     = %ServiceDisplayName%
  84. ServiceType     = 1
  85. StartType       = 3
  86. ErrorControl    = 1
  87. ServiceBinary   = %12%\usb8023.sys    
  88. LoadOrderGroup  = NDIS
  89. AddReg          = RNDIS_WMI_AddReg_51
  90.  
  91. [RNDIS_WMI_AddReg_51]
  92. HKR, , MofImagePath, 0x00020000, "System32\drivers\rndismp.sys"
  93.  
  94. ; Windows 2000 and Windows XP common sections --------------------
  95.  
  96. [RNDIS_AddReg_NT]
  97. HKR, Ndi,               Service,        0, "USB_RNDIS"
  98. HKR, Ndi\Interfaces,    UpperRange,     0, "ndis5"
  99. HKR, Ndi\Interfaces,    LowerRange,     0, "ethernet"
  100.  
  101. [RNDIS_EventLog]
  102. AddReg = RNDIS_EventLog_AddReg
  103.  
  104. [RNDIS_EventLog_AddReg]
  105. HKR, , EventMessageFile, 0x00020000, "%%SystemRoot%%\System32\netevent.dll"
  106. HKR, , TypesSupported,   0x00010001, 7
  107.  
  108. ; Common Sections -------------------------------------------------
  109.  
  110. [RNDIS_AddReg_Common]
  111. HKR, NDI\params\NetworkAddress, ParamDesc,  0, %NetworkAddress%
  112. HKR, NDI\params\NetworkAddress, type,       0, "edit"
  113. HKR, NDI\params\NetworkAddress, LimitText,  0, "12"
  114. HKR, NDI\params\NetworkAddress, UpperCase,  0, "1"
  115. HKR, NDI\params\NetworkAddress, default,    0, " "
  116. HKR, NDI\params\NetworkAddress, optional,   0, "1"
  117.  
  118. [SourceDisksNames]
  119. 1=%SourceDisk%,,1
  120.  
  121. [SourceDisksFiles]
  122. usb8023m.sys=1
  123. rndismpm.sys=1
  124. usb8023w.sys=1
  125. rndismpw.sys=1
  126. usb8023k.sys=1
  127. rndismpk.sys=1
  128.  
  129. [DestinationDirs]
  130. RNDIS_CopyFiles_98    = 10, system32/drivers
  131. RNDIS_CopyFiles_ME    = 10, system32/drivers
  132. RNDIS_CopyFiles_NT    = 12
  133.  
  134. [Strings]
  135. ServiceDisplayName    = "USB Remote NDIS Network Device Driver"
  136. NetworkAddress        = "Network Address"
  137. Android               = "Android"
  138. AndroidDevice         = "Android USB Ethernet/RNDIS"
  139. SourceDisk            = "Ethernet/RNDIS Driver Install Disk"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement