
Internetdial - wininet.dll [again] ?
Thanks for the info but the effect I was after still eludes me. :(.
Microsoft states that INTERNET_DIAL_UNATTENDED ;"Connects to the Internet
through a modem, without displaying a user interface, if possible.
Otherwise, the function will wait for user input."
So what is if possible, I am asked for no information by the dialer but I
still get the user interface?
[In BAS Module]
Public Declare Function InternetDial Lib "wininet.dll"
_(ByVal hwndParent As Long,
_ByVal lpszConnectoid As String,
_ByVal dwFlags As Long,
_lpdwConnection As Long,
_ByVal dwReserved As Long) As Long
Public Const INTERNET_DIAL_UNATTENDED = &H8000&
[In form_load]
Dim R, conecN As Long
R = InternetDial(Form1.hWnd, "ClearNet", INTERNET_DIAL_UNATTENDED, conecN,
0&)
Seems straght forward enuff? But I want to make it imposable for the user to
prevent conection.
Thanks Again
Mr.Plod