>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