Hi all,
I have an application which saves the dial-up registry settings in a file
and sets the registry values according to these saved settings when the
device boots (I use ram-based registry so after a cold reboot all dial up
connection info is lost). I save and modify the settings of the following
registry keys:
[HKCU\ControlPanel\Comm]
AutoCnct
Cnct
[HKCU\ControlPanel\Dial]
HighLocID
CurrentLoc
[HKCU\ControlPanel\Dial\Locations]
"0"
"1"
[HKCU\Comm\Rasbook\'Desktop @ 19200']
Entry
[HKCU\Comm\Rasbook\MyConnection]
Entry
DevCfg
Domain
User
[HKLM\Comm\Autoras]
Dialer
RasEntry
NoPromptOpt
RasEntryOpt
When I modify the registry data using these entries I can see "MyConnection"
dial-up connection and all its properties in the connmc.exe window. However,
if I double-click on the MyConnection icon to open the Dial-up Connection
dialog box I get an exception because of the dialing pattern. Normally the
"Phone" edit box on the dialog shows the phone number of the connection with
the dialing pattern prefixes.
Phone: 9,011,90 555 1234567
But after I modify the registry this edit box shows nothing but commas,
causing an exception to occur:
Phone: , ,
If I click on the Dial Properties button and close the window by pressing
Enter or the OK button on the top right, the phone number is displayed
correctly. (I don't change anything in the dialing properties dialog box
since the modifications I make are displayed correctly).
Here is a part of the debug output:
////////////////////////////////////////////////////
85008 PID:c3486fd2 TID:c35dbd2a 0x834fc000: >>> Loading module rnaapp at
address 0x12010000-0x1201F000
Loaded symbols for
'D:\WINCE420\PUBLIC\PWIT\RELDIR\ESIT_VORTEX86DEBUG\RNAAPP.EXE'
85101 PID:c36a8f92 TID:e3458032 0x83458e28: -AfdRasGetEntryProperties
Return Code 603
85298 PID:c36a8f92 TID:e3458032 0x83458e28: -PmGetDevicePower: returning
dwStatus 2
85442 PID:c36a8f92 TID:835c6c7a 0x835c23d8: AUTORAS:: Dialer notifies:
[Dialer Start]
85844 PID:c36a8f92 TID:23551f9a 0x834aa800: ParseTranslateStrings -
RegEnumValue returned 2.
85844 PID:c36a8f92 TID:23551f9a 0x834aa800: Exception 00e Thread=834aa800
Proc=c36a8f92 'device.exe'
85844 PID:c36a8f92 TID:23551f9a 0x834aa800: AKY=ffffffff PC=03fc8531
ESP=0826f7dc EA=00000000
85848 PID:c36a8f92 TID:23551f9a 0x834aa800: KPSLExceptionHandler: flags=0
ControlPc=00000000
85860 PID:c36a8f92 TID:c35dbd2a 0x834fc000: TAPI:OpenTollList -
RegOpenKeyEx Locations\TollLists\0 returned 2
85864 PID:c36a8f92 TID:c35dbd2a 0x834fc000: TAPI:OpenTollList -
RegOpenKeyEx Locations\TollLists\1 returned 2
85870 PID:c36a8f92 TID:c35dbd2a 0x834fc000: TAPI:OpenTollList -
RegOpenKeyEx Locations\TollLists\0 returned 2
85873 PID:c36a8f92 TID:c35dbd2a 0x834fc000: TAPI:OpenTollList -
RegOpenKeyEx Locations\TollLists\1 returned 2
93292 PID:235c292a TID:c35dbd2a 0x834fc000: DlgMgr: FindDlgItem id 1
returning NULL.
94070 PID:235c292a TID:c35dbd2a 0x834fc000: DlgMgr: FindDlgItem id 2
returning NULL.
94072 PID:c36a8f92 TID:c35dbd2a 0x834fc000: Got IDCANCEL
94335 PID:c36a8f92 TID:23441332 0x833ef9b8: ParseTranslateStrings -
RegEnumValue returned 2.
94336 PID:c36a8f92 TID:23441332 0x833ef9b8: Exception 00e Thread=833ef9b8
Proc=c36a8f92 'device.exe'
94336 PID:c36a8f92 TID:23441332 0x833ef9b8: AKY=ffffffff PC=03fc8531
ESP=0826f7dc EA=00000000
94339 PID:c36a8f92 TID:23441332 0x833ef9b8: KPSLExceptionHandler: flags=0
ControlPc=00000000
94353 PID:c36a8f92 TID:c35dbd2a 0x834fc000: TAPI:OpenTollList -
RegOpenKeyEx Locations\TollLists\0 returned 2
94356 PID:c36a8f92 TID:c35dbd2a 0x834fc000: TAPI:OpenTollList -
RegOpenKeyEx Locations\TollLists\1 returned 2
94363 PID:c36a8f92 TID:c35dbd2a 0x834fc000: TAPI:OpenTollList -
RegOpenKeyEx Locations\TollLists\0 returned 2
94366 PID:c36a8f92 TID:c35dbd2a 0x834fc000: TAPI:OpenTollList -
RegOpenKeyEx Locations\TollLists\1 returned 2
97682 PID:235c292a TID:c35dbd2a 0x834fc000: DlgMgr: FindDlgItem id 1
returning NULL.
101327 PID:235c292a TID:c35dbd2a 0x834fc000: DlgMgr: FindDlgItem id 1
returning NULL.
101329 PID:c36a8f92 TID:c35dbd2a 0x834fc000: Got IDOK
101630 PID:c36a8f92 TID:c35dbd2a 0x834fc000: TAPI:OpenTollList -
RegOpenKeyEx Locations\TollLists\0 returned 2
101632 PID:c36a8f92 TID:c35dbd2a 0x834fc000: TAPI:OpenTollList -
RegOpenKeyEx Locations\TollLists\1 returned 2
101639 PID:c36a8f92 TID:c35dbd2a 0x834fc000: TAPI:OpenTollList -
RegOpenKeyEx Locations\TollLists\0 returned 2
101642 PID:c36a8f92 TID:c35dbd2a 0x834fc000: TAPI:OpenTollList -
RegOpenKeyEx Locations\TollLists\1 returned 2
108839 PID:c36a8f92 TID:2357035a 0x835c6aa0: i_lineOpen: ptLine x38810,
ptLineApp x389F0
108846 PID:c36a8f92 TID:346a832 0x833ef9b8: ASYNCMAC: Dialing
'T9,08222115600'
108847 PID:c36a8f92 TID:346a832 0x833ef9b8: UNIMODEM:TSPI_lineMakeCall -
Check CallParams
108857 PID:c36a8f92 TID:34fcc42 0x833eb0a8: UNIMODEM:DevlineOpen - device
already open
110407 PID:c36a8f92 TID:34fcc42 0x833eb0a8: UNIMODEM:ModemInit Error x2
reading Init string 2
112508 PID:c36a8f92 TID:34fcc42 0x833eb0a8: UNIMODEM:ModemInit Error x2
reading Init string 2
141865 PID:c36a8f92 TID:634fc852 0x834aa800: PPP: -pppMac_GetLinkInfo
143852 PID:c36a8f92 TID:4366fbba 0x83627218: +OpenIFConfig(Comm\Hayes
Compatible on COM1:\Parms\TcpIp Handle 0x81BF7A4)
143854 PID:c36a8f92 TID:4366fbba 0x83627218: Opened registry info for
Comm\Hayes Compatible on COM1:\Parms\TcpIp
143855 PID:c36a8f92 TID:4366fbba 0x83627218: -OpenIFConfig(Comm\Hayes
Compatible on COM1:\Parms\TcpIp *Handle 0x81BF7A4, BOOL Ret: 1)
143855 PID:c36a8f92 TID:4366fbba 0x83627218: +GetGeneralIFConfig(ConfigInfo
0x81BF73C Handle 0x87600)
143857 PID:c36a8f92 TID:4366fbba 0x83627218: Converted 10.10.20.6 to
address A0A1406
143859 PID:c36a8f92 TID:4366fbba 0x83627218: Converted 213.243.1.40 to
address D5F30128
143860 PID:c36a8f92 TID:4366fbba 0x83627218: Converted 213.243.1.42 to
address D5F3012A
143862 PID:c36a8f92 TID:4366fbba 0x83627218:
GetGeneralIFConfig:Unable to read WINS value!
143864 PID:c36a8f92 TID:4366fbba 0x83627218: -GetGeneralIFConfig(ConfigInfo
0x81BF73C Handle 0x87600 Ret: TRUE)
143866 PID:c36a8f92 TID:4366fbba 0x83627218: +GetIFAddrList(NumAddr*
0x81BF6D8 Handle 0x87600)
143868 PID:c36a8f92 TID:4366fbba 0x83627218: Converted 62.29.72.184 to
address 3E1D48B8
143868 PID:c36a8f92 TID:4366fbba 0x83627218: Converted 255.0.0.0 to address
FF000000
143869 PID:c36a8f92 TID:4366fbba 0x83627218: -GetIFAddrList(NumAddr*
0x81BF6D8/1 Ret: 0xC8760)
143870 PID:c36a8f92 TID:4366fbba 0x83627218: *IPAddNTE: calling
PPPDynRegister
143872 PID:c36a8f92 TID:4366fbba 0x83627218: InitNTE:
setting fIPRouteOn to 1
143872 PID:c36a8f92 TID:4366fbba 0x83627218: *InitNTE:
Restarting IPRouteTimeout timer
143875 PID:c36a8f92 TID:4366fbba 0x83627218: LanaUp: (NB)
pLana 53BC0 (4) up Addr B8481D3E Mask FF Bcast FFFFFF3E
143877 PID:c36a8f92 TID:4366fbba 0x83627218: *CloseIFConfig(Handle 0x87600)
143880 PID:c36a8f92 TID:4366fbba 0x83627218: +OpenIFConfig(Comm\Hayes
Compatible on COM1:\Parms\TcpIp Handle 0x81BF5F8)
143882 PID:c36a8f92 TID:4366fbba 0x83627218: Opened registry info for
Comm\Hayes Compatible on COM1:\Parms\TcpIp
143883 PID:c36a8f92 TID:4366fbba 0x83627218: -OpenIFConfig(Comm\Hayes
Compatible on COM1:\Parms\TcpIp *Handle 0x81BF5F8, BOOL Ret: 1)
143884 PID:c36a8f92 TID:4366fbba 0x83627218: *CloseIFConfig(Handle 0x87600)
143886 PID:c36a8f92 TID:4366fbba 0x83627218: IGMPDelInclList: AddrPtr=c6f20
NumDelSources=0 DelSourceList=0
143887 PID:c36a8f92 TID:4366fbba 0x83627218: +AfdAddInterface(Adapter Hayes
Compatible on COM1: Nte 0xC6430 Context 2, Flags 0 IPAddr B8481D3E cDns 2
cWins 0)
143889 PID:c36a8f92 TID:4366fbba 0x83627218: -AfdAddInterface: fRet: 1
143891 PID:c36a8f92 TID:4366fbba 0x83627218: +IPNotifyClientsIPEvent
143891 PID:c36a8f92 TID:4366fbba 0x83627218:
IPNotifyClientsIPEvent: PendingIPGetIPEventRequest 446f0
143892 PID:c36a8f92 TID:4366fbba 0x83627218:
IPNotifyClientsIPEvent: PendingIrp 446f0
143892 PID:c36a8f92 TID:4366fbba 0x83627218:
IPNotifyClientsIPEvent: SetEvent
143894 PID:c36a8f92 TID:4366fbba 0x83627218: -IPAddInterface [SUCCESS]
143902 PID:c36a8f92 TID:e3430aea 0x834aa800: +RDR:NetBIOSNotifyFunc: Lana
4, flags: 0x1
143903 PID:c36a8f92 TID:e3430aea 0x834aa800: +RDR:NetupIndication, lana 4
143905 PID:c36a8f92 TID:e3430aea 0x834aa800: +RDR:BindToNet: lananum: 4
143908 PID:c36a8f92 TID:e3430aea 0x834aa800: +RDR:BindToNetbiosTransport
143909 PID:c36a8f92 TID:e3430aea 0x834aa800: -RDR:BindToNet successful
for lana 4
143910 PID:c36a8f92 TID:e3430aea 0x834aa800: -RDR:NetBIOSNotifyFunc: Lana
4
143914 PID:c36a8f92 TID:a35e1fd2 0x835e1e28: ************DHCP MEDIA
STATUS************
143915 PID:c36a8f92 TID:a35e1fd2 0x835e1e28: SeqNo: 7
143917 PID:c36a8f92 TID:a35e1fd2 0x835e1e28: MediaStatus:
11026
143918 PID:c36a8f92 TID:a35e1fd2 0x835e1e28: Context: 2 - 3
143919 PID:c36a8f92 TID:a35e1fd2 0x835e1e28: AdapterName:
Hayes Compatible on COM1:
143919 PID:c36a8f92 TID:a35e1fd2 0x835e1e28: Media Status is:
IP_BIND_ADAPTER
143920 PID:c36a8f92 TID:a35e1fd2 0x835e1e28: IPDispatchDeviceControl
returned Status 103
143943 PID:c3486fd2 TID:c35dbd2a 0x834fc000: Posting WM_NETCONNECT(TRUE)
message
143961 PID:c36a8f92 TID:834fcdd2 0x833ef000: +RDR:RdrUIThread starting
143962 PID:c36a8f92 TID:834fcdd2 0x833ef000: RdrUIThread: SH_WMGR is ready
144049 PID:c36a8f92 TID:e3458032 0x83458e28: -AfdRasGetEntryProperties
Return Code 603
144263 PID:c36a8f92 TID:e3458032 0x83458e28: -PmGetDevicePower: returning
dwStatus 2
144876 PID:c36a8f92 TID:4366fbba 0x83627218: IPTimer:
setting IPTimer of NTE C6430 to 0
147826 PID:c36a8f92 TID:c35dbd2a 0x834fc000: +AfdAddInterface(Adapter Hayes
Compatible on COM1: Nte 0xC6430 Context 2, Flags 1 IPAddr B8481D3E cDns 0
cWins 0)
147827 PID:c36a8f92 TID:c35dbd2a 0x834fc000: -AfdAddInterface: fRet: 1
147830 PID:c36a8f92 TID:c35dbd2a Search Route #2: Route not found
147832 PID:c36a8f92 TID:c35dbd2a Search Route #2: Route not found
147832 PID:c36a8f92 TID:c35dbd2a Search Route #2: Route not found
147834 PID:c36a8f92 TID:c35dbd2a Search Route #2: Route not found
147835 PID:c36a8f92 TID:c35dbd2a Search Route #2: Route not found
147836 PID:c36a8f92 TID:c35dbd2a Search Route #2: Route not found
147838 PID:c36a8f92 TID:c35dbd2a Search Route #2: Route not found
147840 PID:c36a8f92 TID:c35dbd2a Search Route #2: Route not found
147842 PID:c36a8f92 TID:c35dbd2a Delete Route #3: Route not found
147842 PID:c36a8f92 TID:c35dbd2a Delete Route #3: Route not found
147844 PID:c36a8f92 TID:c35dbd2a Delete Route #3: Route not found
147845 PID:c36a8f92 TID:c35dbd2a 0x834fc000: +OpenIFConfig(Comm\Hayes
Compatible on COM1:\Parms\TcpIp Handle 0x1202F358)
147848 PID:c36a8f92 TID:c35dbd2a 0x834fc000: Opened registry info for
Comm\Hayes Compatible on COM1:\Parms\TcpIp
147849 PID:c36a8f92 TID:c35dbd2a 0x834fc000: -OpenIFConfig(Comm\Hayes
Compatible on COM1:\Parms\TcpIp *Handle 0x1202F358, BOOL Ret: 1)
147850 PID:c36a8f92 TID:c35dbd2a 0x834fc000: *CloseIFConfig(Handle 0x87600)
147852 PID:c36a8f92 TID:c35dbd2a 0x834fc000: +IPNotifyClientsIPEvent
147852 PID:c36a8f92 TID:c35dbd2a 0x834fc000:
IPNotifyClientsIPEvent: PendingIPGetIPEventRequest 446f0
147854 PID:c36a8f92 TID:c35dbd2a 0x834fc000:
IPNotifyClientsIPEvent: PendingIrp 446f0
147855 PID:c36a8f92 TID:c35dbd2a 0x834fc000:
IPNotifyClientsIPEvent: SetEvent
147857 PID:c36a8f92 TID:c35dbd2a 0x834fc000:
IPNotifyClientsIPEvent: remove old
147858 PID:c36a8f92 TID:c35dbd2a Search Route #3: Route not found
147865 PID:c36a8f92 TID:434fcb3a 0x834aa800: +RDR:NetBIOSNotifyFunc: Lana
4, flags: 0x0
147867 PID:c36a8f92 TID:434fcb3a 0x834aa800: +RDR:NetDownIndication,
lana: 4
147870 PID:c36a8f92 TID:4366fbba 0x83627218: +RDR:NetCleanupFunc: Lana:4
147871 PID:c36a8f92 TID:4366fbba 0x83627218: +RDR:UnbindFromNet, lana: 4
147873 PID:c36a8f92 TID:4366fbba 0x83627218: -RDR:StopBrowserOnNet:
Browser not started on lana 4
147873 PID:c36a8f92 TID:4366fbba 0x83627218: -RDR:Stopped redir on lana 4
147875 PID:c36a8f92 TID:434fcb3a 0x834aa800: -RDR:NetBIOSNotifyFunc: Lana
4
147879 PID:c36a8f92 TID:a35e1fd2 0x835e1e28: ************DHCP MEDIA
STATUS************
147880 PID:c36a8f92 TID:a35e1fd2 0x835e1e28: SeqNo: 8
147881 PID:c36a8f92 TID:a35e1fd2 0x835e1e28: MediaStatus:
11027
147882 PID:c36a8f92 TID:a35e1fd2 0x835e1e28: Context: 65535 - 65535
147882 PID:c36a8f92 TID:a35e1fd2 0x835e1e28: AdapterName:
Hayes Compatible on COM1:
147884 PID:c36a8f92 TID:a35e1fd2 0x835e1e28: Media Status is:
IP_UNBIND_ADAPTER
147885 PID:c36a8f92 TID:a35e1fd2 0x835e1e28: IPDispatchDeviceControl
returned Status 103
147886 PID:c36a8f92 TID:834fcdd2 0x833ef000: -RDR:RdrUIThread exiting
147890 PID:c36a8f92 TID:4366fbba 0x83627218:
+RDR:UnbindFromNetbiosTransport
147891 PID:c36a8f92 TID:4366fbba
83627218: -RDR:UnbindFromNetbiosTransport
147892 PID:c36a8f92 TID:4366fbba 0x83627218: -RDR:UnbindFromNet
147892 PID:c36a8f92 TID:4366fbba 0x83627218: -RDR:NetCleanupFunc: Lana:4
148875 PID:c36a8f92 TID:4366fbba 0x83627218: IPRouteTimeout: setting
fIPRouteOn to 0
148876 PID:c36a8f92 TID:4366fbba 0x83627218: *IPRouteTimeout: NOT
restarting IPRouteTimeout
153869 PID:c36a8f92 TID:43430bda 0x83430800: ASYNCMAC: lineDrop result=6
153873 PID:c36a8f92 TID:235ccdba 0x835dfdd8: Mac:WaitCommEvent failed 87
153885 PID:c36a8f92 TID:34fcc42 0x833eb0a8: COM_Close: (1 handles) total RX
508, total TX 625, dropped (mdd, pdd) 0,0
153887 PID:c36a8f92 TID:34fcc42 0x833eb0a8: COM_Close: (0 handles) total RX
508, total TX 625, dropped (mdd, pdd) 0,0
153895 PID:c36a8f92 TID:23622c22 0x833ef000: AM: OID_TAPI_CLOSE_CALL:
SetCommMask failed, error=6
153902 PID:c36a8f92 TID:435849fa 0x8343ed80: AM: TxThread exiting
153973 PID:c3486fd2 TID:c35dbd2a 0x834fc000: DESTROY
154057 PID:c36a8f92 TID:e35005a2 0x83458090: TAPI:TAPIlineGetMessage
hLineApp now invalid
154158 PID:c3486fd2 TID:c35dbd2a 0x834fc000: Posting WM_NETCONNECT(FALSE)
message, ErrorCode = 631(0x277)
154177 PID:c3486fd2 TID:c35dbd2a 0x834fc000: <<< Unloading module rnaapp at
address 0x12010000-0x1201F000
////////////////////////////////////////////////////////////
Can someone give me an idea how to solve this problem? I would appreciate
any help.
Thanks in advance,
--
Selin Metin
selinm_AT_esit_._com_._tr