<div>Thanks guys,</div>
<div>&nbsp;</div>
<div>I had tried </div>
<blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
<div>net use &nbsp;<a href="file://\\computer">\\computer</a> password</div></blockquote>
<div>sucessfully, but the ok clearance does not appear to be system wide. Explorer still requires a login even if subsequently launched from the same dos prompt.</div>
<div>&nbsp;</div>
<div>I'll look into WNetAddConnection again.</div>
<div>&nbsp;</div>
<div>&nbsp;. .what is happening here is that users on peer to peer Xp &nbsp;who have a shared resource like a printer, are for modern security reasons, putting a password on the Guest account.</div>
<div>&nbsp;</div>
<div>The means that any app on other users systems trying to use the shared printer, need to authenticate themselves manually first.</div>
<div>&nbsp;</div>
<div>People can do it manually by simply trying to open explorer on the UNC name of the computer, be prompted for a password and then all is fine, other apps on their workstation can now access shared resources on the remote computer, but people forget to and then get bugged when they can not print! Or they forget the name of the 
<a href="file://\\computer">\\computer</a> they are supposed to connect to, etc&nbsp; . . </div>
<div>&nbsp;</div>
<div>paul<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 26/04/06, <b class="gmail_sendername">Paul Eggleton</b> &lt;<a href="mailto:paule@cjntech.co.nz">paule@cjntech.co.nz</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Conor Boyd wrote:<br>&gt; Dunno if this will do what you want:<br>&gt;<br>&gt; net use m: \\Bob /user:[domainname\username] [password]
<br><br>You could also use WNetAddConnection* API calls for a more direct<br>interface to basically the same thing.<br><br>Cheers,<br>Paul<br><br>---------------------------------------------------------<br>Paul Eggleton&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ph:&nbsp;&nbsp;&nbsp;&nbsp;+64-9-4154790
<br>Software Developer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Fax:&nbsp;&nbsp; +64-9-4154791<br>CJN Technologies Ltd.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DDI:&nbsp;&nbsp; +64-9-4154795<br><a href="http://www.cjntech.co.nz">http://www.cjntech.co.nz</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Email: <a href="mailto:paule@cjntech.co.nz">
paule@cjntech.co.nz</a><br>---------------------------------------------------------<br><br>_______________________________________________<br>Delphi mailing list<br><a href="mailto:Delphi@ns3.123.co.nz">Delphi@ns3.123.co.nz
</a><br><a href="http://ns3.123.co.nz/mailman/listinfo/delphi">http://ns3.123.co.nz/mailman/listinfo/delphi</a><br></blockquote></div><br>