WNetAddConnection2 & /user:domain\username 
Author Message
 WNetAddConnection2 & /user:domain\username

Does anyone know how to specify the username and domain for the
WNetAddConnection2 call (or other API)?

For example:

NetR.lpLocalName = "G:"
NetR.lpRemoteName = "\\share"
WNetAddConnection2(NetR, "pass", NULL, CONNECT_UPDATE_PROFILE)

This would be the same as net use G: \\SERVER\share pass
This is fine under 95/98.

But under NT4, I need to specify the domain & username such as

net use G: \\SERVER\share /user:domain\username pass

How do I do this with VB code?  Is there something else other then
WNetAddConnection2 that can do it?

Please help!

Tue, 28 Nov 2000 03:00:00 GMT  
 [ 2 post ] 

 Relevant Pages 

1. WNetAddConnection & /user:domain\username

2. Current logged on username & domain

3. Current logged on username & domain

4. LOGON_USER returns DOMAIN/username instead of only username

5. WNetAddConnection2 UserName parameter

6. domain pruefen domain provider es domain registrieren domain angebot no domain

7. Getting User ID & Domain in VBScript

8. Retrieving Domain User & Group Info

9. Add a user in domain 2 from domain 1 using the classes in the DirectoryServices

10. Determine whether or not a domain user is a member of a domain group

11. domaene sichern de tc domain domain registrieren preisvergleich kostenlose toplevel domain de domain preis

12. plesk domain anmeldung domaene langsam anmeldung an domain de domain kaufen domain suchen


Powered by phpBB® Forum Software