Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WNetAddConnection -- Declaration?
Message
De
11/12/1998 14:21:05
 
 
À
11/12/1998 13:24:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00166668
Message ID:
00166686
Vues:
20
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform