Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WNetAddConnection -- Declaration?
Message
From
11/12/1998 14:21:05
 
 
To
11/12/1998 13:24:00
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00166668
Message ID:
00166686
Views:
15
>I'm trying to test out the WNetAddConnection/WNetCancelConnection functions in WIN32API, but I can't seem to figure out the DECLARE options. I keep getting told that VFP can't find the entrypoint for these functions in the WIN32API DLL.
>

The following declare works for WNetAddCOnnection; remember that DLL entrypoint names in the declare are case sensitive:
DECLARE INTEGER WNetAddConnection IN Win32API ;
 STRING cRemoteUNC, ;
 STRING cPassword, ;
 STRING cLocalDrive
DECLARE INTEGER WNetCancelConnection IN Win32API ;
 STRING cLocalDeviceName, ;
 SHORT  nForce   && 0 = False, 1 = true
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