English
Source / code snippets

Dfü stories Ras

 
RAS / DFÜ - stories

CompileMarkSeparation
declare a&
Seterrorlevel -1
settruecolor 1
windowtitle "rasconnect"
window 120,120 - 450,200
Cls 0
color 15,0
a&:=build.ras ("Verbindungsname","Passwort")

if a&>0

    print "OK"
    kill.ras a&

else

    print "FAILD"

endif

print "key..."
waitkey
end
/*
FUNCTIONS
*/

proc build.ras

    parameters vbdgname$,vbdgpwd$
    Declare rasParams#,rasConn&,valu&,pwstore&
    Dim rasParams#,1057
    clear rasConn&,rasParams#,pwstore&
    Long rasParams#,0 = 1052
    String rasParams#,4 = vbdgname$ +chr$(0)
    external("RasAPI32","RasGetEntryDialParamsA",0,addr(rasParams#),Addr(pwstore&))
    String rasParams#,776 = vbdgpwd$+chr$(0)
    valu& = external("RasAPI32","RasDialA",0,0,rasParams#,0,0,Addr(rasConn&))
    Dispose rasParams#
    return if(not(valu&),rasConn&,valu&*-1)

endproc

proc kill.ras

    parameters hdl&

    if hdl&

        external("RasAPI32","RasHangUpA",hdl&)

    endif

endproc

 
12/02/04  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

2.720 Views

Untitledvor 0 min.
maroro11/08/13
Thomas Freier07/03/13
Torsten Boo03/05/11

Themeninformationen

this Topic has 1 subscriber:

unbekannt (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie