Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with InternetDial()
Message
From
23/09/2002 09:21:19
 
 
To
23/09/2002 09:03:25
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00703322
Message ID:
00703330
Views:
19
>hello,
>
>I'm using the folloging API:
>DECLARE Integer InternetDial IN WinInet ;
>	Integer nHandle, String @lpcDialUp, ;
>	Integer nAccessType, Long @nConnect_Handle, ;
>	Integer nFlags
>This function returns very often 0 for nConnect_Handle, although the dialler successfully established a connection:
>lnRetVal = InternetDial(lnhwnd, lcDialUp, lnAccType, lnConnect_Handle, 0)
>?lnConnect_Handle && returns 0, but connection established!
>Why does this happen? I run the same code in VB and it never seems to give me a problem.
>

Pass lnConnect_Handle by ref:
lnRetVal = InternetDial(lnhwnd, lcDialUp, lnAccType, @lnConnect_Handle, 0)
>Also for nAccessType the help indicates that this is a constant:
>INTERNET_DIAL_UNATTENDED = &H8000
>How can I interpret this value in VFP?
INTERNET_DIAL_UNATTENDED = 0x8000
>
>Thanks for help in advance!
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform