Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can I log into a NT server from VFP ?
Message
De
01/07/2000 09:17:13
 
 
À
01/07/2000 08:53:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00387190
Message ID:
00387316
Vues:
39
>Hi Erik,
>
>The users log into a Novell server. The application is installed in theirs local HD.
>
>When they start the application, they have to log again in the new NT server, to obtain acess to the SQL Server. I would like to automate this task, so they not even Know that there is a NT server.
>

The trivial mechanism is to make the login to the NT system be the same as their Windows userid/password combination; if this is the case, calling the WNetAddConnection3() API call to access a shared resource on the NT Server by UNC will cause a login to the server to occur using the default userid/password (you can override the defaults by specifying explicit userid/password combinations as arguments to the API call.) Once logged into the NT Server in this fashion, the login remains in effect until the user explicitly disconnects by logging out.

There's sample code for implementing WNetAddConnection3() in my NETRESOURCE class downloadable from the Files Section here on UT; you'll laso need CLSHEAP to handle static memory allocations in support of the API call.
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