Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
NOVELL
Message
De
15/07/1998 08:04:34
 
 
À
15/07/1998 07:08:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Re: NOVELL
Divers
Thread ID:
00117137
Message ID:
00117536
Vues:
18
>It is giving error WNetAddConnection function not found..
>
>Please help me.
>
>Regards
>MMK
FUNCTION AddConn
LPARAMETERS cUNCToMap, cDriveLetter, cPasswordToUse
IF TYPE('cUNCToMap') # 'C' OR TYPE('cDriveLetter') # 'C'
	RETURN .F.
ENDIF
IF TYPE('cPasswordToUse') # 'C'
	cPasswordToUse = ''
ENDIF

DECLARE INTEGER WNetAddConnection IN Win32API ;
 STRING cRemoteUNC, ;
 STRING cPassword, ;
 STRING cLocalDrive

RETURN (WNetAddConnection( cUNCToMap, cPasswordToUse + CHR(0), cDriveLetter) = 0)
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