![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
![]() |

|
![]() |
|
Dialing gprs modem programatically
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Fixed Error!
Posts: 4,202
Join Date: Mar 2007
Rep Power: 6
IM:
|
|
|
|
|
|
|
|
|
|
#2 (permalink) |
|
Fixed Error!
Posts: 4,202
Join Date: Mar 2007
Rep Power: 6
IM:
|
To dial the default Dial-Up Networking Connection, you can use the following Function: (Returns True if successfull) Uses Registry, windows; Function DUNDialDefault(Hide : Boolean) : Boolean; // Show or hide the dial-up dialog var Reg : TRegistry; var TempResult : Boolean; var Name, con : String; var ASW : Integer; begin Reg := TRegistry.Create; Reg.RootKey := HKEY_CURRENT_USER; if Reg.OpenKey('\RemoteAccess', False) then begin TempResult := True; Name := Reg.ReadString('Default'); end else begin tempresult := False; end; Reg.Free; if TempResult = True then begin if Hide = True then ASW := SW_HIDE else ASW := SW_SHOWDEFAULT; con := 'rnaui.dll,RnaDial ' + Name; ShellExecute(0, nil, 'rundll32.exe' , PChar (con), 'C:\windows\', ASW); end; Result := tempResult; end; |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|