Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WinAPI function
Message
From
07/12/2001 18:28:28
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Internet applications
Title:
WinAPI function
Miscellaneous
Thread ID:
00591552
Message ID:
00591552
Views:
77
I would like to use the InternetDial WinAPI function in a VFP6sp3 application. My reason is that only the InternetDial function permits the choice of Connectiods to use when connecting (instead of simply using the default).

The MSDN WinAPI interface specs define InternetDial:
DWORD InternetDial(IN HWND hwndParent, IN LPTSTR lpszConnectoid, IN DWORD dwFlags, OUT LPDWORD lpdwConnection, IN DWORD dwReserved
Parameters
hwndParent -- Handle to the parent window.
lpszConnectoid -- Address of a string variable containing the name of the dial-up connection to use.
dwFlags -- Unsigned long integer value that contains the flags to use. This can be one of the following values:
INTERNET_AUTODIAL_FORCE_ONLINE --Forces an online connection.
INTERNET_AUTODIAL_FORCE_UNATTENDED -- Forces an unattended Internet dial-up. If user intervention is required, the function will fail.
INTERNET_DIAL_FORCE_PROMPT -- Ignores the "dial automatically" setting and forces the dialing user interface to be displayed.
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.
INTERNET_DIAL_SHOW_OFFLINE -- Shows the Work Offline button instead of Cancel button in the dialing user interface.
lpdwConnection -- Address of an unsigned long integer value containing the number associated to the connection.
dwReserved -- Reserved. Must be set to zero.

Can someone translate this into VFP-ish? (Declare statement)
Has anyone used this function in VFP on Win9x/ME?
Is there a better option (other than Win-Scripting)?

I'd also appreciate any feedback vis-a-vis "You're going to run into trouble if you try to use this function because ...blah blah blah"

Thanks!

Mike Copeland
Genesis Group
Next
Reply
Map
View

Click here to load this message in the networking platform