199 lines
7.4 KiB
Plaintext
199 lines
7.4 KiB
Plaintext
; Microsoft Driver Development Kit (DDK)
|
|
;
|
|
; "Fakemodem" Controllerless driver illustrative example
|
|
;
|
|
; Copyright (c) 2001 Microsoft Corporation
|
|
;
|
|
; *******************************************************************
|
|
; * *
|
|
; * The following INF is used in order to load this sample driver. *
|
|
; * Further information about INF design can be found in the modem *
|
|
; * documentation kit (MDK) which is distributed as part of the DDK *
|
|
; * *
|
|
; *******************************************************************
|
|
|
|
|
|
; The vendor will be required to change the provider key before a
|
|
; driver submission is made
|
|
|
|
[Version]
|
|
Signature="$WINDOWS NT$"
|
|
Class=Modem
|
|
ClassGUID={4D36E96D-E325-11CE-BFC1-08002BE10318}
|
|
Provider=%MSFT%
|
|
|
|
[Manufacturer]
|
|
%Generic% = Generic
|
|
|
|
[Generic]
|
|
%ModemX% = ModemX, PCI\VEN_9999&DEV_9999
|
|
|
|
[ModemX.NT]
|
|
CopyFiles = CopyFileSection
|
|
AddReg = All, MfgAddReg, ExtraCRLFResponses, ModemX.AddReg, INTERNAL
|
|
|
|
[ModemX.NT.Services]
|
|
AddService = fakemdm, 0x00000000, FakeModm_Service_Inst, FakeModm_Logging_Inst
|
|
|
|
[ModemX.NT.HW]
|
|
AddReg = LowerFilterAddReg
|
|
|
|
[LowerFilterAddReg]
|
|
HKR,,"LowerFilters",0x00010000,fakemdm
|
|
|
|
[FakeModm_Service_Inst]
|
|
DisplayName = %ModemX%
|
|
ServiceType = 1
|
|
StartType = 3
|
|
ErrorControl = 0
|
|
ServiceBinary = %12%\fakemodem.sys
|
|
|
|
[FakeModm_Logging_Inst]
|
|
AddReg = FakeModm_Logging_Inst_AddReg
|
|
|
|
[FakeModm_Logging_Inst_AddReg]
|
|
HKR,,EventMessageFile,0x00020000,"%%SystemRoot%%\System32\IoLogMsg.dll;%%SystemRoot%%\System32\drivers\Fakemodem.sys"
|
|
HKR,,TypesSupported,0x0001001,7
|
|
|
|
[SourceDiskNames.x86]
|
|
99="Fake Modem Install Disk", disk1,, \i386
|
|
|
|
[SourceDiskFiles]
|
|
fakemodem.sys = 99
|
|
|
|
[CopyFileSection]
|
|
fakemodem.sys
|
|
|
|
[DestinationDirs]
|
|
DriverCopyfiles=12
|
|
DefaultDestDir=12
|
|
|
|
[All]
|
|
HKR,,FriendlyDriver,,Unimodem.vxd
|
|
HKR,,DevLoader,,*vcomm
|
|
HKR,,ConfigDialog,,modemui.dll
|
|
HKR,,EnumPropPages,,"modemui.dll,EnumPropPages"
|
|
HKR,,PortSubClass,1,02
|
|
HKR,Init,1,,"AT<cr>"
|
|
HKR,Responses,"<cr><lf>OK<cr><lf>", 1, 00, 00, 00,00,00,00, 00,00,00,00
|
|
HKR,Responses,"<cr><lf>ERROR<cr><lf>", 1, 03, 00, 00,00,00,00, 00,00,00,00
|
|
|
|
[ModemX.AddReg]
|
|
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
|
|
HKR,Init, 2,, "AT &F E0 V1 &D2 &C1 W2 S95=47<cr>"
|
|
HKR,,InactivityScale, 1, 0a,00,00,00
|
|
HKR,,VoiceProfile, 1,27,03,08,00 ;Added to get voice to not enumerate
|
|
HKR, Settings, InactivityTimeout,, "S30=<#>"
|
|
HKR, Settings, ErrorControl_On,, "\N3"
|
|
HKR, Settings, ErrorControl_Forced,, "\N2"
|
|
HKR, Settings, Compression_On,, "%%C3"
|
|
HKR, Settings, SpeedNegotiation_Off,, "N0"
|
|
HKR, Settings, SpeedNegotiation_On,, "N1"
|
|
|
|
[ExtraCRLFResponses]
|
|
HKR, Responses, "<cr><lf><cr><lf>OK<cr><lf>", 1, 00, 00, 00,00,00,00, 00,00,00,00
|
|
HKR, Responses, "<cr><lf><cr><lf>ERROR<cr><lf>", 1, 03, 00, 00,00,00,00, 00,00,00,00
|
|
HKR, Responses, "<cr><lf><cr><lf>BUSY<cr><lf>", 1, 06, 00, 00,00,00,00, 00,00,00,00
|
|
HKR, Responses, "<cr><lf><cr><lf>NO ANSWER<cr><lf>", 1, 07, 00, 00,00,00,00, 00,00,00,00
|
|
HKR, Responses, "<cr><lf><cr><lf>NO CARRIER<cr><lf>", 1, 04, 00, 00,00,00,00, 00,00,00,00
|
|
HKR, Responses, "<cr><lf><cr><lf>NO DIALTONE<cr><lf>", 1, 05, 00, 00,00,00,00, 00,00,00,00
|
|
|
|
[EXTERNAL]
|
|
HKR,, DeviceType, 1, 01
|
|
|
|
[INTERNAL]
|
|
HKR,, DeviceType, 1, 02
|
|
|
|
[PCMCIA]
|
|
HKR,,PortDriver,,Serial.vxd
|
|
HKR,,Contention,,*vcd
|
|
HKR,,DeviceType, 1, 03
|
|
|
|
[DestinationDirs]
|
|
CopyFileSection = 12
|
|
DefaultDestDir = 12
|
|
|
|
[MfgAddReg]
|
|
HKR,, InactivityScale, 1, 01,00,00,00
|
|
HKR, Init, 2,, "AT &F E0 V1 W1<cr>"
|
|
HKR, Monitor, 1,, "ATS0=0<cr>"
|
|
HKR, Monitor, 2,, "None"
|
|
HKR, Hangup, 1,, "ATH<cr>"
|
|
HKR, Answer, 1,, "ATA<cr>"
|
|
HKR,, Reset,, "ATZ<cr>"
|
|
HKR, Settings, Prefix,, "AT"
|
|
HKR, Settings, Terminator,, "<cr>"
|
|
HKR, Settings, DialPrefix,, "D"
|
|
HKR, Settings, DialSuffix,, ";"
|
|
HKR, Settings, SpeakerVolume_Low,, "L1"
|
|
HKR, Settings, SpeakerVolume_Med,, "L2"
|
|
HKR, Settings, SpeakerVolume_High,, "L3"
|
|
HKR, Settings, SpeakerMode_Off,, "M0"
|
|
HKR, Settings, SpeakerMode_Dial,, "M1"
|
|
HKR, Settings, SpeakerMode_On,, "M2"
|
|
HKR, Settings, SpeakerMode_Setup,, "M3"
|
|
HKR, Settings, FlowControl_Off,, "&K0"
|
|
HKR, Settings, FlowControl_Hard,, "&K3"
|
|
HKR, Settings, FlowControl_Soft,, "&K4"
|
|
HKR, Settings, ErrorControl_On,, "\N5"
|
|
HKR, Settings, ErrorControl_Off,, "\N0"
|
|
HKR, Settings, ErrorControl_Forced,, "\N4"
|
|
HKR, Settings, Compression_On,, "%%C1"
|
|
HKR, Settings, Compression_Off,, "%%C0"
|
|
HKR, Settings, Modulation_CCITT,, "B0 "
|
|
HKR, Settings, Modulation_Bell,, "B1 "
|
|
HKR, Settings, SpeedNegotiation_Off,, "*S0"
|
|
HKR, Settings, SpeedNegotiation_On,, "*S1"
|
|
HKR, Settings, Pulse,, "P"
|
|
HKR, Settings, Tone,, "T"
|
|
HKR, Settings, Blind_Off,, "X4"
|
|
HKR, Settings, Blind_On,, "X3"
|
|
HKR, Settings, CallSetupFailTimer,, "S7=<#>"
|
|
|
|
HKR, Responses, "<cr><lf>+FCERROR<cr><lf>", 1, 03, 00, 00,00,00,00, 00,00,00,00
|
|
HKR, Responses, "<cr><lf>BLACKLISTED<cr><lf>", 1, 03, 00, 00,00,00,00, 00,00,00,00
|
|
HKR, Responses, "<cr><lf>BUSY<cr><lf>", 1, 06, 00, 00,00,00,00, 00,00,00,00
|
|
|
|
HKR, Responses, "<cr><lf>CONNECT<cr><lf>", 1, 02, 00, 00,00,00,00, 00,00,00,00
|
|
HKR, Responses, "<cr><lf>DATA<cr><lf>", 1, 03, 00, 00,00,00,00, 00,00,00,00
|
|
HKR, Responses, "<cr><lf>DELAYED<cr><lf>", 1, 03, 00, 00,00,00,00, 00,00,00,00
|
|
HKR, Responses, "<cr><lf>ERROR<cr><lf>", 1, 03, 00, 00,00,00,00, 00,00,00,00
|
|
HKR, Responses, "<cr><lf>FAX<cr><lf>", 1, 03, 00, 00,00,00,00, 00,00,00,00
|
|
HKR, Responses, "<cr><lf>NO ANSWER<cr><lf>", 1, 07, 00, 00,00,00,00, 00,00,00,00
|
|
HKR, Responses, "<cr><lf>NO CARRIER<cr><lf>", 1, 04, 00, 00,00,00,00, 00,00,00,00
|
|
HKR, Responses, "<cr><lf>NO DIALTONE<cr><lf>", 1, 05, 00, 00,00,00,00, 00,00,00,00
|
|
HKR, Responses, "<cr><lf>NOTUSED<cr><lf>", 1, 00, 00, 00,00,00,00, 00,00,00,00
|
|
HKR, Responses, "<cr><lf>OK<cr><lf>", 1, 00, 00, 00,00,00,00, 00,00,00,00
|
|
HKR, Responses, "<cr><lf>RING<cr><lf>", 1, 08, 00, 00,00,00,00, 00,00,00,00
|
|
HKR, Responses, "<cr><lf>RINGING<cr><lf>", 1, 01, 00, 00,00,00,00, 00,00,00,00
|
|
HKR, Responses, "<cr><lf>VOICE<cr><lf>", 1, 03, 00, 00,00,00,00, 00,00,00,00
|
|
HKR, Responses, "0<cr>", 1, 00, 00, 00,00,00,00, 00,00,00,00 ; OK
|
|
HKR, Responses, "1<cr>", 1, 02, 00, 00,00,00,00, 00,00,00,00
|
|
HKR, Responses, "10<cr>", 1, 02, 00, 60,09,00,00, 00,00,00,00
|
|
HKR, Responses, "11<cr>", 1, 02, 00, c0,12,00,00, 00,00,00,00
|
|
HKR, Responses, "12<cr>", 1, 02, 00, 80,25,00,00, 00,00,00,00
|
|
HKR, Responses, "13<cr>", 1, 02, 00, 20,1c,00,00, 00,00,00,00
|
|
HKR, Responses, "14<cr>", 1, 02, 00, e0,2e,00,00, 00,00,00,00
|
|
HKR, Responses, "15<cr>", 1, 02, 00, 40,38,00,00, 00,00,00,00 ; connect at 14400
|
|
HKR, Responses, "2<cr>", 1, 08, 00, 00,00,00,00, 00,00,00,00 ; RING
|
|
HKR, Responses, "3<cr>", 1, 04, 00, 00,00,00,00, 00,00,00,00 ; NO CARRIER
|
|
HKR, Responses, "4<cr>", 1, 03, 00, 00,00,00,00, 00,00,00,00 ; ERROR
|
|
HKR, Responses, "5<cr>", 1, 02, 00, b0,04,00,00, 00,00,00,00
|
|
HKR, Responses, "6<cr>", 1, 05, 00, 00,00,00,00, 00,00,00,00 ; NO DIALTONE
|
|
HKR, Responses, "69<cr>", 1, 01, 03, 00,00,00,00, 00,00,00,00
|
|
HKR, Responses, "7<cr>", 1, 06, 00, 00,00,00,00, 00,00,00,00 ; BUSY
|
|
HKR, Responses, "70<cr>", 1, 01, 01, 00,00,00,00, 00,00,00,00 ; Protocol:None
|
|
HKR, Responses, "77<cr>", 1, 01, 02, 00,00,00,00, 00,00,00,00 ; Protocol:LAPM
|
|
HKR, Responses, "78<cr>", 1, 01, 03, 00,00,00,00, 00,00,00,00 ; Connect V42BIS
|
|
HKR, Responses, "8<cr>", 1, 07, 00, 00,00,00,00, 00,00,00,00 ; NO ANSWER
|
|
HKR, Responses, "80<cr>", 1, 01, 02, 00,00,00,00, 00,00,00,00 ; Protocol:ALT
|
|
HKR, Responses, "81<cr>", 1, 01, 02, 00,00,00,00, 00,00,00,00
|
|
|
|
[Strings]
|
|
MSFT = "Microsoft"
|
|
Generic = "(Standard Voice Modem Types)"
|
|
ModemX = "FakeModem DDK Sample controllerless driver"
|
|
ServiceName = "Fakemodem"
|
|
|
|
|