Link to home
Start Free TrialLog in
Avatar of Czeh
Czeh

asked on

How do i connect to a NTdomain?

Im trying to create a program that will allow me to log onto a username, and password protected NTdomain and copy certain files to a local drive.
Can annyone help me, or point me to where i can find info on doing this.

Or at least tell me if the WNetConnectionDialog1  will work to connect to the NT domain.

I currently know that the WNetAddConnection wont work because it doesnt even pass a username.


Thanks In advance,
Chris
ASKER CERTIFIED SOLUTION
Avatar of wylliker
wylliker

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Czeh
Czeh

ASKER

Ok, this loks like it will work, but the connection seems to use the default password and user id. is there any way to make WNetAddConnection use only the defined passwords?
Avatar of Czeh

ASKER

Ok, this loks like it will work, but the connection seems to use the default password and user id. is there any way to make WNetAddConnection use only the defined passwords?
WNetAddConnection2 will use the username and password that you give it.


Make sure you are NOT using WNetAddConnection.  There is a difference!!!
Avatar of Czeh

ASKER

Ok i did some searching and it seems that WNetAddConnection2 will Not allow user names and passwords to be used in Windows 98, this urks me because it makes it hard to test logging onto a NTdomain from home, even though the program will eventually reside on an NT computer.

I will try and test this program on an NT machine, if it works ill give you the points, thanks for the help

P.S. Do you know of anyway to uis Win98 to connect to an NTdomain and allow non-default passwords and user names to be used?