467,161 Members | 856 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,161 developers. It's quick & easy.

connect another computer on LAN

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
  • viewed: 4794
Share:
2 Replies
sashi
Expert 1GB
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
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.

Similar topics

2 posts views Thread by iwdu15 | last post: by
3 posts views Thread by asemeiks@capitalpost.com | last post: by
3 posts views Thread by dmcquay@gmail.com | last post: by
2 posts views Thread by =?iso-8859-1?Q?Vicente_Garc=EDa?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.