Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

247 lines
12 KiB

  1. ;
  2. ; "Fakemodem" Controllerless driver illustrative example
  3. ;
  4. ; Copyright (c) Microsoft Corporation. All rights reserved.
  5. ;
  6. ; *******************************************************************
  7. ; * *
  8. ; * The following INF is used in order to load this sample driver. *
  9. ; * Further information about INF design can be found in the DDK *
  10. ; * *
  11. ; *******************************************************************
  12. ; ------------------------------------------------------------------------------
  13. ; Check final modem INF with CINF tool then test with
  14. ; NDIS Test prior to final distribution.
  15. ;-------------------------------------------------------------------------------
  16. ;------------------------------------------------------------------------------------------------------
  17. ;This section must specify the following entries with the indicated values:
  18. ;Signature entry as the $Windows NT$ value. This value indicates that the INF is only valid for NT-based operating systems.
  19. ;Class entry as "MODEM".
  20. ;ClassGUID entry as {4D36E96D-E325-11CE-BFC1-08002BE10318}.
  21. ;Provider is the company responsible for the provision of the INF.
  22. ;DriverVer must be in the following format = mm/dd/yyyy[,x.y.v.z]
  23. [Version]
  24. Signature="$WINDOWS NT$"
  25. Class=Modem
  26. ClassGUID={4D36E96D-E325-11CE-BFC1-08002BE10318}
  27. Provider=%Mfg%
  28. DriverVer=11/11/2002,5.1.3711
  29. ;INF files that are not distributed with the OS should contain the following line:
  30. CatalogFile.nt=unique-filename.cat
  31. ;INF files that are to be distributed with the OS that load a service and or files on the CD, should contain the following line:
  32. ;Layoutfile=layout.inf
  33. ;----------------------------------------------------------------------------------------------------------------------------; Below is list of manufacturers that will appear in the
  34. ; Install New Modem wizard's list of manufacturers as well as define what sections to install ID's from
  35. ; The vendor will be required to change the provider key before a
  36. ; driver submission is made
  37. [Manufacturer]
  38. %Generic% = Generic
  39. ;------------------------------------------------------------------------------------------------------
  40. ;An ExcludeFromSelect entry prevents an adapter or software component from being listed in the Select Component for Installation dialog box.
  41. [ControlFlags]
  42. ExcludeFromSelect=*
  43. ;Commented out ExcludeFromSelects below as * covers all ID's. Either way is acceptable.
  44. ;ExcludeFromSelect=PCI\VEN_9999&DEV_9999
  45. ;-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  46. ;This section references the INF-writer-defined DDInstall and DDInstall.Services sections for the Modem device, and specifies the hardware identifier for the Modem device.
  47. [Generic]
  48. %ModemX% = ModemX, PCI\VEN_9999&DEV_9999
  49. ;-------------------------------------------------------------------------------------------------------
  50. ; For detailed explanation of DDInstall.Services section, please reference DDK.
  51. ; Installation section references other INF sections to be installed for a specific modem.
  52. ; The AddReg line points to sections of the INF file that list registry entries to be added when
  53. ; installing this modem. For example, the line below instructs the installer to add the registry
  54. ; entries listed in the following sections of this INF file:
  55. ; [All], [MfgAddReg], [ExtraCRLFResponses], [ModemX.AddReg], [INTERNAL]
  56. ; It is not necessary to break up the registry additions into different sections in the
  57. ; INF. However, breaking out common entries into sections can help to reduce the size of
  58. ; the INF if multiple modems are installed from the same INF and have common registry
  59. ; entries.
  60. [ModemX.NT]
  61. CopyFiles = CopyFileSection
  62. AddReg = All, MfgAddReg, ExtraCRLFResponses, ModemX.AddReg, INTERNAL
  63. [ModemX.NT.Services]
  64. AddService = fakemdm, 0x00000000, FakeModm_Service_Inst, FakeModm_Logging_Inst
  65. [ModemX.NT.HW]
  66. AddReg = LowerFilterAddReg
  67. [LowerFilterAddReg]
  68. HKR,,"LowerFilters",0x00010000,fakemdm
  69. [FakeModm_Service_Inst]
  70. DisplayName = %ModemX%
  71. ServiceType = 1
  72. StartType = 3
  73. ErrorControl = 0
  74. ServiceBinary = %12%\fakemodem.sys
  75. ;--------------------------------------------------------------------------------------------------------------------
  76. ; An event-log-install-section
  77. [FakeModm_Logging_Inst]
  78. AddReg = FakeModm_Logging_Inst_AddReg
  79. [FakeModm_Logging_Inst_AddReg]
  80. HKR,,EventMessageFile,0x00020000,"%%SystemRoot%%\System32\IoLogMsg.dll;%%SystemRoot%%\System32\drivers\Fakemodem.sys"
  81. HKR,,TypesSupported,0x00010001,7
  82. [SourceDisksNames.x86]
  83. 99=%FakeDisk%, disk1,, \i386
  84. [SourceDisksFiles]
  85. fakemodem.sys = 99
  86. ;-------------------------------------------------------------------------------------------------------------------
  87. ; Section used to copy files required for device to function
  88. [CopyFileSection]
  89. fakemodem.sys
  90. ;--------------------------------------------------------------------------------------------------------------------------
  91. ; This section lists the Default location to copy the files listed in the copyfiles directive
  92. ; 12 = %Windows%\System32\Drivers
  93. [DestinationDirs]
  94. CopyFileSection=12
  95. DefaultDestDir=12
  96. ;-------------------------------------------------------------------------------------------------------
  97. ; DDK procalc tool can be used to check properties settings which describes modem' properties.
  98. ; Generally, customization entries are added here which override commands from the All section
  99. [ModemX.AddReg]
  100. HKR,,Properties, 1, 80,01,00,00, ff,00,00,00, ff,00,00,00, 07,00,00,00, 0f,00,00,00, f7,03,00,00, 00,c2,01,00, 40,38,00,00
  101. HKR,,InactivityScale, 1, 0a,00,00,00
  102. HKR, Settings, InactivityTimeout,, "S30=<#>"
  103. HKR, Settings, ErrorControl_On,, "\N3"
  104. HKR, Settings, ErrorControl_Forced,, "\N2"
  105. HKR, Settings, Compression_On,, "%%C3"
  106. HKR, Settings, SpeedNegotiation_Off,, "N0"
  107. HKR, Settings, SpeedNegotiation_On,, "N1"
  108. ;--------------------------------------------------------------------------------------------------------------------------
  109. ;This section will define the type of modem and thus present the appropriate icon in the Device manager
  110. [INTERNAL]
  111. HKR,, DeviceType, 1, 02
  112. ;-------------------------------------------------------------------------------------------------------------------------
  113. ; Responses section contains all of the appropriate and required responses in order for the O/S to understand the
  114. ; Modem responses to system queries.
  115. [All]
  116. HKR,,ConfigDialog,,modemui.dll
  117. HKR,,EnumPropPages,,"modemui.dll,EnumPropPages"
  118. HKR,,PortSubClass,1,02
  119. HKR,Init,1,,"AT<cr>"
  120. HKR,Init, 2,, "AT &F E0 V1 &D2 &C1 S0=0 W2 S95=47<cr>"
  121. [MfgAddReg]
  122. HKR,, InactivityScale, 1, 01,00,00,00
  123. HKR, Monitor, 1,, "ATS0=0<cr>"
  124. HKR, Monitor, 2,, "None"
  125. HKR, Hangup, 1,, "ATH<cr>"
  126. HKR, Answer, 1,, "ATA<cr>"
  127. HKR,, Reset,, "ATZ<cr>"
  128. HKR, Settings, Prefix,, "AT"
  129. HKR, Settings, Terminator,, "<cr>"
  130. HKR, Settings, DialPrefix,, "D"
  131. HKR, Settings, DialSuffix,, ";"
  132. HKR, Settings, SpeakerVolume_Low,, "L1"
  133. HKR, Settings, SpeakerVolume_Med,, "L2"
  134. HKR, Settings, SpeakerVolume_High,, "L3"
  135. HKR, Settings, SpeakerMode_Off,, "M0"
  136. HKR, Settings, SpeakerMode_Dial,, "M1"
  137. HKR, Settings, SpeakerMode_On,, "M2"
  138. HKR, Settings, SpeakerMode_Setup,, "M3"
  139. HKR, Settings, FlowControl_Off,, "&K0"
  140. HKR, Settings, FlowControl_Hard,, "&K3"
  141. HKR, Settings, FlowControl_Soft,, "&K4"
  142. HKR, Settings, ErrorControl_On,, "\N5"
  143. HKR, Settings, ErrorControl_Off,, "\N0"
  144. HKR, Settings, ErrorControl_Forced,, "\N4"
  145. HKR, Settings, Compression_On,, "%%C1"
  146. HKR, Settings, Compression_Off,, "%%C0"
  147. HKR, Settings, Modulation_CCITT,, "B0 "
  148. HKR, Settings, Modulation_Bell,, "B1 "
  149. HKR, Settings, SpeedNegotiation_Off,, "*S0"
  150. HKR, Settings, SpeedNegotiation_On,, "*S1"
  151. HKR, Settings, Pulse,, "P"
  152. HKR, Settings, Tone,, "T"
  153. HKR, Settings, Blind_Off,, "X4"
  154. HKR, Settings, Blind_On,, "X3"
  155. HKR, Settings, CallSetupFailTimer,, "S7=<#>"
  156. HKR, Responses, "<cr><lf>+FCERROR<cr><lf>", 1, 03, 00, 00,00,00,00, 00,00,00,00
  157. HKR, Responses, "<cr><lf>BLACKLISTED<cr><lf>", 1, 03, 00, 00,00,00,00, 00,00,00,00
  158. HKR, Responses, "<cr><lf>BUSY<cr><lf>", 1, 06, 00, 00,00,00,00, 00,00,00,00
  159. HKR, Responses, "<cr><lf>CONNECT<cr><lf>", 1, 02, 00, 00,00,00,00, 00,00,00,00
  160. HKR, Responses, "<cr><lf>DATA<cr><lf>", 1, 03, 00, 00,00,00,00, 00,00,00,00
  161. HKR, Responses, "<cr><lf>DELAYED<cr><lf>", 1, 03, 00, 00,00,00,00, 00,00,00,00
  162. HKR, Responses, "<cr><lf>ERROR<cr><lf>", 1, 03, 00, 00,00,00,00, 00,00,00,00
  163. HKR, Responses, "<cr><lf>FAX<cr><lf>", 1, 03, 00, 00,00,00,00, 00,00,00,00
  164. HKR, Responses, "<cr><lf>NO ANSWER<cr><lf>", 1, 07, 00, 00,00,00,00, 00,00,00,00
  165. HKR, Responses, "<cr><lf>NO CARRIER<cr><lf>", 1, 04, 00, 00,00,00,00, 00,00,00,00
  166. HKR, Responses, "<cr><lf>NO DIALTONE<cr><lf>", 1, 05, 00, 00,00,00,00, 00,00,00,00
  167. HKR, Responses, "<cr><lf>NOTUSED<cr><lf>", 1, 00, 00, 00,00,00,00, 00,00,00,00
  168. HKR, Responses, "<cr><lf>OK<cr><lf>", 1, 00, 00, 00,00,00,00, 00,00,00,00
  169. HKR, Responses, "<cr><lf>RING<cr><lf>", 1, 08, 00, 00,00,00,00, 00,00,00,00
  170. HKR, Responses, "<cr><lf>RINGING<cr><lf>", 1, 01, 00, 00,00,00,00, 00,00,00,00
  171. HKR, Responses, "0<cr>", 1, 00, 00, 00,00,00,00, 00,00,00,00 ; OK
  172. HKR, Responses, "1<cr>", 1, 02, 00, 00,00,00,00, 00,00,00,00
  173. HKR, Responses, "10<cr>", 1, 02, 00, 60,09,00,00, 00,00,00,00
  174. HKR, Responses, "11<cr>", 1, 02, 00, c0,12,00,00, 00,00,00,00
  175. HKR, Responses, "12<cr>", 1, 02, 00, 80,25,00,00, 00,00,00,00
  176. HKR, Responses, "13<cr>", 1, 02, 00, 20,1c,00,00, 00,00,00,00
  177. HKR, Responses, "14<cr>", 1, 02, 00, e0,2e,00,00, 00,00,00,00
  178. HKR, Responses, "15<cr>", 1, 02, 00, 40,38,00,00, 00,00,00,00 ; connect at 14400
  179. HKR, Responses, "2<cr>", 1, 08, 00, 00,00,00,00, 00,00,00,00 ; RING
  180. HKR, Responses, "3<cr>", 1, 04, 00, 00,00,00,00, 00,00,00,00 ; NO CARRIER
  181. HKR, Responses, "4<cr>", 1, 03, 00, 00,00,00,00, 00,00,00,00 ; ERROR
  182. HKR, Responses, "5<cr>", 1, 02, 00, b0,04,00,00, 00,00,00,00
  183. HKR, Responses, "6<cr>", 1, 05, 00, 00,00,00,00, 00,00,00,00 ; NO DIALTONE
  184. HKR, Responses, "69<cr>", 1, 01, 03, 00,00,00,00, 00,00,00,00
  185. HKR, Responses, "7<cr>", 1, 06, 00, 00,00,00,00, 00,00,00,00 ; BUSY
  186. HKR, Responses, "70<cr>", 1, 01, 01, 00,00,00,00, 00,00,00,00 ; Protocol:None
  187. HKR, Responses, "77<cr>", 1, 01, 02, 00,00,00,00, 00,00,00,00 ; Protocol:LAPM
  188. HKR, Responses, "78<cr>", 1, 01, 03, 00,00,00,00, 00,00,00,00 ; Connect V42BIS
  189. HKR, Responses, "8<cr>", 1, 07, 00, 00,00,00,00, 00,00,00,00 ; NO ANSWER
  190. HKR, Responses, "80<cr>", 1, 01, 02, 00,00,00,00, 00,00,00,00 ; Protocol:ALT
  191. HKR, Responses, "81<cr>", 1, 01, 02, 00,00,00,00, 00,00,00,00
  192. [ExtraCRLFResponses]
  193. HKR, Responses, "<cr><lf><cr><lf>OK<cr><lf>", 1, 00, 00, 00,00,00,00, 00,00,00,00
  194. HKR, Responses, "<cr><lf><cr><lf>ERROR<cr><lf>", 1, 03, 00, 00,00,00,00, 00,00,00,00
  195. HKR, Responses, "<cr><lf><cr><lf>BUSY<cr><lf>", 1, 06, 00, 00,00,00,00, 00,00,00,00
  196. HKR, Responses, "<cr><lf><cr><lf>NO ANSWER<cr><lf>", 1, 07, 00, 00,00,00,00, 00,00,00,00
  197. HKR, Responses, "<cr><lf><cr><lf>NO CARRIER<cr><lf>", 1, 04, 00, 00,00,00,00, 00,00,00,00
  198. HKR, Responses, "<cr><lf><cr><lf>NO DIALTONE<cr><lf>", 1, 05, 00, 00,00,00,00, 00,00,00,00
  199. ;-------------------------------------------------------------------------------------------------------
  200. ;This section defines each %strkey% token specified in the INF and lists strings that are used by the Modems
  201. ;control panel applet and the Install New Modem wizard.
  202. ; For example, ModemX will appear as "FakeModem DDK Sample controllerless driver"
  203. [Strings]
  204. mfg = "Microsoft"
  205. FakeDisk = "Fake Modem Install Disk"
  206. Generic = "(Standard Modem Types)"
  207. ModemX = "FakeModem DDK Sample controllerless driver"
  208. ServiceName = "Fakemodem"