Source code of Windows XP (NT5)
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.

198 lines
7.4 KiB

  1. ; Microsoft Driver Development Kit (DDK)
  2. ;
  3. ; "Fakemodem" Controllerless driver illustrative example
  4. ;
  5. ; Copyright (c) 2001 Microsoft Corporation
  6. ;
  7. ; *******************************************************************
  8. ; * *
  9. ; * The following INF is used in order to load this sample driver. *
  10. ; * Further information about INF design can be found in the modem *
  11. ; * documentation kit (MDK) which is distributed as part of the DDK *
  12. ; * *
  13. ; *******************************************************************
  14. ; The vendor will be required to change the provider key before a
  15. ; driver submission is made
  16. [Version]
  17. Signature="$WINDOWS NT$"
  18. Class=Modem
  19. ClassGUID={4D36E96D-E325-11CE-BFC1-08002BE10318}
  20. Provider=%MSFT%
  21. [Manufacturer]
  22. %Generic% = Generic
  23. [Generic]
  24. %ModemX% = ModemX, PCI\VEN_9999&DEV_9999
  25. [ModemX.NT]
  26. CopyFiles = CopyFileSection
  27. AddReg = All, MfgAddReg, ExtraCRLFResponses, ModemX.AddReg, INTERNAL
  28. [ModemX.NT.Services]
  29. AddService = fakemdm, 0x00000000, FakeModm_Service_Inst, FakeModm_Logging_Inst
  30. [ModemX.NT.HW]
  31. AddReg = LowerFilterAddReg
  32. [LowerFilterAddReg]
  33. HKR,,"LowerFilters",0x00010000,fakemdm
  34. [FakeModm_Service_Inst]
  35. DisplayName = %ModemX%
  36. ServiceType = 1
  37. StartType = 3
  38. ErrorControl = 0
  39. ServiceBinary = %12%\fakemodem.sys
  40. [FakeModm_Logging_Inst]
  41. AddReg = FakeModm_Logging_Inst_AddReg
  42. [FakeModm_Logging_Inst_AddReg]
  43. HKR,,EventMessageFile,0x00020000,"%%SystemRoot%%\System32\IoLogMsg.dll;%%SystemRoot%%\System32\drivers\Fakemodem.sys"
  44. HKR,,TypesSupported,0x0001001,7
  45. [SourceDiskNames.x86]
  46. 99="Fake Modem Install Disk", disk1,, \i386
  47. [SourceDiskFiles]
  48. fakemodem.sys = 99
  49. [CopyFileSection]
  50. fakemodem.sys
  51. [DestinationDirs]
  52. DriverCopyfiles=12
  53. DefaultDestDir=12
  54. [All]
  55. HKR,,FriendlyDriver,,Unimodem.vxd
  56. HKR,,DevLoader,,*vcomm
  57. HKR,,ConfigDialog,,modemui.dll
  58. HKR,,EnumPropPages,,"modemui.dll,EnumPropPages"
  59. HKR,,PortSubClass,1,02
  60. HKR,Init,1,,"AT<cr>"
  61. HKR,Responses,"<cr><lf>OK<cr><lf>", 1, 00, 00, 00,00,00,00, 00,00,00,00
  62. HKR,Responses,"<cr><lf>ERROR<cr><lf>", 1, 03, 00, 00,00,00,00, 00,00,00,00
  63. [ModemX.AddReg]
  64. 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
  65. HKR,Init, 2,, "AT &F E0 V1 &D2 &C1 W2 S95=47<cr>"
  66. HKR,,InactivityScale, 1, 0a,00,00,00
  67. HKR,,VoiceProfile, 1,27,03,08,00 ;Added to get voice to not enumerate
  68. HKR, Settings, InactivityTimeout,, "S30=<#>"
  69. HKR, Settings, ErrorControl_On,, "\N3"
  70. HKR, Settings, ErrorControl_Forced,, "\N2"
  71. HKR, Settings, Compression_On,, "%%C3"
  72. HKR, Settings, SpeedNegotiation_Off,, "N0"
  73. HKR, Settings, SpeedNegotiation_On,, "N1"
  74. [ExtraCRLFResponses]
  75. HKR, Responses, "<cr><lf><cr><lf>OK<cr><lf>", 1, 00, 00, 00,00,00,00, 00,00,00,00
  76. HKR, Responses, "<cr><lf><cr><lf>ERROR<cr><lf>", 1, 03, 00, 00,00,00,00, 00,00,00,00
  77. HKR, Responses, "<cr><lf><cr><lf>BUSY<cr><lf>", 1, 06, 00, 00,00,00,00, 00,00,00,00
  78. HKR, Responses, "<cr><lf><cr><lf>NO ANSWER<cr><lf>", 1, 07, 00, 00,00,00,00, 00,00,00,00
  79. HKR, Responses, "<cr><lf><cr><lf>NO CARRIER<cr><lf>", 1, 04, 00, 00,00,00,00, 00,00,00,00
  80. HKR, Responses, "<cr><lf><cr><lf>NO DIALTONE<cr><lf>", 1, 05, 00, 00,00,00,00, 00,00,00,00
  81. [EXTERNAL]
  82. HKR,, DeviceType, 1, 01
  83. [INTERNAL]
  84. HKR,, DeviceType, 1, 02
  85. [PCMCIA]
  86. HKR,,PortDriver,,Serial.vxd
  87. HKR,,Contention,,*vcd
  88. HKR,,DeviceType, 1, 03
  89. [DestinationDirs]
  90. CopyFileSection = 12
  91. DefaultDestDir = 12
  92. [MfgAddReg]
  93. HKR,, InactivityScale, 1, 01,00,00,00
  94. HKR, Init, 2,, "AT &F E0 V1 W1<cr>"
  95. HKR, Monitor, 1,, "ATS0=0<cr>"
  96. HKR, Monitor, 2,, "None"
  97. HKR, Hangup, 1,, "ATH<cr>"
  98. HKR, Answer, 1,, "ATA<cr>"
  99. HKR,, Reset,, "ATZ<cr>"
  100. HKR, Settings, Prefix,, "AT"
  101. HKR, Settings, Terminator,, "<cr>"
  102. HKR, Settings, DialPrefix,, "D"
  103. HKR, Settings, DialSuffix,, ";"
  104. HKR, Settings, SpeakerVolume_Low,, "L1"
  105. HKR, Settings, SpeakerVolume_Med,, "L2"
  106. HKR, Settings, SpeakerVolume_High,, "L3"
  107. HKR, Settings, SpeakerMode_Off,, "M0"
  108. HKR, Settings, SpeakerMode_Dial,, "M1"
  109. HKR, Settings, SpeakerMode_On,, "M2"
  110. HKR, Settings, SpeakerMode_Setup,, "M3"
  111. HKR, Settings, FlowControl_Off,, "&K0"
  112. HKR, Settings, FlowControl_Hard,, "&K3"
  113. HKR, Settings, FlowControl_Soft,, "&K4"
  114. HKR, Settings, ErrorControl_On,, "\N5"
  115. HKR, Settings, ErrorControl_Off,, "\N0"
  116. HKR, Settings, ErrorControl_Forced,, "\N4"
  117. HKR, Settings, Compression_On,, "%%C1"
  118. HKR, Settings, Compression_Off,, "%%C0"
  119. HKR, Settings, Modulation_CCITT,, "B0 "
  120. HKR, Settings, Modulation_Bell,, "B1 "
  121. HKR, Settings, SpeedNegotiation_Off,, "*S0"
  122. HKR, Settings, SpeedNegotiation_On,, "*S1"
  123. HKR, Settings, Pulse,, "P"
  124. HKR, Settings, Tone,, "T"
  125. HKR, Settings, Blind_Off,, "X4"
  126. HKR, Settings, Blind_On,, "X3"
  127. HKR, Settings, CallSetupFailTimer,, "S7=<#>"
  128. HKR, Responses, "<cr><lf>+FCERROR<cr><lf>", 1, 03, 00, 00,00,00,00, 00,00,00,00
  129. HKR, Responses, "<cr><lf>BLACKLISTED<cr><lf>", 1, 03, 00, 00,00,00,00, 00,00,00,00
  130. HKR, Responses, "<cr><lf>BUSY<cr><lf>", 1, 06, 00, 00,00,00,00, 00,00,00,00
  131. HKR, Responses, "<cr><lf>CONNECT<cr><lf>", 1, 02, 00, 00,00,00,00, 00,00,00,00
  132. HKR, Responses, "<cr><lf>DATA<cr><lf>", 1, 03, 00, 00,00,00,00, 00,00,00,00
  133. HKR, Responses, "<cr><lf>DELAYED<cr><lf>", 1, 03, 00, 00,00,00,00, 00,00,00,00
  134. HKR, Responses, "<cr><lf>ERROR<cr><lf>", 1, 03, 00, 00,00,00,00, 00,00,00,00
  135. HKR, Responses, "<cr><lf>FAX<cr><lf>", 1, 03, 00, 00,00,00,00, 00,00,00,00
  136. HKR, Responses, "<cr><lf>NO ANSWER<cr><lf>", 1, 07, 00, 00,00,00,00, 00,00,00,00
  137. HKR, Responses, "<cr><lf>NO CARRIER<cr><lf>", 1, 04, 00, 00,00,00,00, 00,00,00,00
  138. HKR, Responses, "<cr><lf>NO DIALTONE<cr><lf>", 1, 05, 00, 00,00,00,00, 00,00,00,00
  139. HKR, Responses, "<cr><lf>NOTUSED<cr><lf>", 1, 00, 00, 00,00,00,00, 00,00,00,00
  140. HKR, Responses, "<cr><lf>OK<cr><lf>", 1, 00, 00, 00,00,00,00, 00,00,00,00
  141. HKR, Responses, "<cr><lf>RING<cr><lf>", 1, 08, 00, 00,00,00,00, 00,00,00,00
  142. HKR, Responses, "<cr><lf>RINGING<cr><lf>", 1, 01, 00, 00,00,00,00, 00,00,00,00
  143. HKR, Responses, "<cr><lf>VOICE<cr><lf>", 1, 03, 00, 00,00,00,00, 00,00,00,00
  144. HKR, Responses, "0<cr>", 1, 00, 00, 00,00,00,00, 00,00,00,00 ; OK
  145. HKR, Responses, "1<cr>", 1, 02, 00, 00,00,00,00, 00,00,00,00
  146. HKR, Responses, "10<cr>", 1, 02, 00, 60,09,00,00, 00,00,00,00
  147. HKR, Responses, "11<cr>", 1, 02, 00, c0,12,00,00, 00,00,00,00
  148. HKR, Responses, "12<cr>", 1, 02, 00, 80,25,00,00, 00,00,00,00
  149. HKR, Responses, "13<cr>", 1, 02, 00, 20,1c,00,00, 00,00,00,00
  150. HKR, Responses, "14<cr>", 1, 02, 00, e0,2e,00,00, 00,00,00,00
  151. HKR, Responses, "15<cr>", 1, 02, 00, 40,38,00,00, 00,00,00,00 ; connect at 14400
  152. HKR, Responses, "2<cr>", 1, 08, 00, 00,00,00,00, 00,00,00,00 ; RING
  153. HKR, Responses, "3<cr>", 1, 04, 00, 00,00,00,00, 00,00,00,00 ; NO CARRIER
  154. HKR, Responses, "4<cr>", 1, 03, 00, 00,00,00,00, 00,00,00,00 ; ERROR
  155. HKR, Responses, "5<cr>", 1, 02, 00, b0,04,00,00, 00,00,00,00
  156. HKR, Responses, "6<cr>", 1, 05, 00, 00,00,00,00, 00,00,00,00 ; NO DIALTONE
  157. HKR, Responses, "69<cr>", 1, 01, 03, 00,00,00,00, 00,00,00,00
  158. HKR, Responses, "7<cr>", 1, 06, 00, 00,00,00,00, 00,00,00,00 ; BUSY
  159. HKR, Responses, "70<cr>", 1, 01, 01, 00,00,00,00, 00,00,00,00 ; Protocol:None
  160. HKR, Responses, "77<cr>", 1, 01, 02, 00,00,00,00, 00,00,00,00 ; Protocol:LAPM
  161. HKR, Responses, "78<cr>", 1, 01, 03, 00,00,00,00, 00,00,00,00 ; Connect V42BIS
  162. HKR, Responses, "8<cr>", 1, 07, 00, 00,00,00,00, 00,00,00,00 ; NO ANSWER
  163. HKR, Responses, "80<cr>", 1, 01, 02, 00,00,00,00, 00,00,00,00 ; Protocol:ALT
  164. HKR, Responses, "81<cr>", 1, 01, 02, 00,00,00,00, 00,00,00,00
  165. [Strings]
  166. MSFT = "Microsoft"
  167. Generic = "(Standard Voice Modem Types)"
  168. ModemX = "FakeModem DDK Sample controllerless driver"
  169. ServiceName = "Fakemodem"