Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with WININET.DLL
Message
From
06/02/2003 10:10:48
Joel Whitehead
Ccs Central Computer Services Inc.
Thunder Bay, Ontario, Canada
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Problems with WININET.DLL
Miscellaneous
Thread ID:
00749859
Message ID:
00749859
Views:
62
I have been trying to figure out a problem on a particular workstation running VFP 7 (SP1) and Windows XP Pro. Any calls to the Wininet.dll fail... yet they work on every other workstation I have tried. We suspected Service Pack 1 for XP might fix the problem, but it did not help. Here is the code I am running:

#DEFINE INTERNET_AUTODIAL_FORCE_ONLINE 1
#DEFINE INTERNET_AUTODIAL_FORCE_UNATTENDED 2
#DEFINE INTERNET_AUTODIAL_FAILIFSECURITYCHECK 4

DECLARE INTEGER GetActiveWindow IN user32

DECLARE INTEGER InternetDial IN wininet;
INTEGER hwndParent, STRING lpszConnectoid, INTEGER dwFlags,;
INTEGER @lpdwConnection, INTEGER dwReserved

LOCAL hConnection
hConnection = 0

? "About to run the InternetDial Method"

? InternetDial (GetActiveWindow(), "Test Connection",;
INTERNET_AUTODIAL_FORCE_ONLINE, @hConnection, 0)

? "Number associated with the connection:", hConnection

Normally, the "? InternetDial..." line of code prints the value 631 on the screen. This brings up the Dialup Networking dialogue for "Test Connection". However, on the PC where this fails, the value 0 (zero) is displayed and nothing happens. Yet the dialup connection is there and I can manually dial it successfully. The user has administrative rights. The version of WININET.DLL is the same as the version that works on other computers. I don't know what to do next to get this working. Any and all ideas would be much appreciated!!!

Thanks,
Joel
Next
Reply
Map
View

Click here to load this message in the networking platform