>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.