By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,988 Members | 1,493 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,988 IT Pros & Developers. It's quick & easy.

connect another computer on LAN

P: 3
thanks for ur help sashi.

i found some code which connects a computer to connect to another on a LAN. the site is below.
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=66898&lngWId=1

the probelm is this:
when i attempt to supply a username and password to the ErrInfo function, i get an error. Error 1326

ErrInfo = WNetAddConnection2(NetR, me.txtpword, me.txtuname, CONNECT_UPDATE_PROFILE)

any ideas.
thanks in advance
Nov 10 '06 #1
Share this Question
Share on Google+
2 Replies


sashi
Expert 100+
P: 1,754
thanks for ur help sashi.

i found some code which connects a computer to connect to another on a LAN. the site is below.
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=66898&lngWId=1

the probelm is this:
when i attempt to supply a username and password to the ErrInfo function, i get an error. Error 1326

ErrInfo = WNetAddConnection2(NetR, me.txtpword, me.txtuname, CONNECT_UPDATE_PROFILE)

any ideas.
thanks in advance
Hi There,

The error no. 1326 refers to <logon failure / unknown domain name / untrusted domain>, make sure you have enough permission to connect to the specified domain. Also make sure you have specified a valid drive letter <x:> and valid sharename to connect to. Good luck & take care.
Nov 10 '06 #2

P: 3
ver
figured it out.
thanks

Hi There,

The error no. 1326 refers to <logon failure / unknown domain name / untrusted domain>, make sure you have enough permission to connect to the specified domain. Also make sure you have specified a valid drive letter <x:> and valid sharename to connect to. Good luck & take care.
Nov 10 '06 #3

Post your reply

Sign in to post your reply or Sign up for a free account.