Page 1 of 1

WNetAddConnection

PostPosted: Fri Dec 31, 2010 9:03 pm
by Otto
I was wondering if it was possibly and how to programmatically set the
Username and Password and Domain values that are filled out on the
Control-Panel Owner Properties Network ID tab
Thanks in advance
Otto

nRetCode := WNetAddConnection( RemoteName, Password, UserName, LocalName )

c:\FWPPC\source\winapi\net.c

Re: WNetAddConnection

PostPosted: Sat Jan 01, 2011 8:34 am
by Otto
I have done in this way:

// (add // before this define in 'wce.h')#define _WINNETWK_

NETRESOURCE nr;

memset(&nr, 0, sizeof(nr));

nr.lpRemoteName = strBatchFileBINPath.GetBuffer(0);

WNetAddConnection3(NULL, &nr, strPasswordAutoLoginPerAccessoRemoto,
strUserNameAutoLoginPerAccessoRemoto, 0);

strBatchFileBINPath.ReleaseBuffer();




Does someone know how to use the WNetAddConnection3 function with FWPPC?

Thanks in advance
Otto

Re: WNetAddConnection

PostPosted: Sun Jan 02, 2011 4:58 pm
by Daniel Garcia-Gil
Hello Mr. Otto

i can help you, but i can not test here...

can we talk by chat?

Re: WNetAddConnection

PostPosted: Sun Jan 02, 2011 5:41 pm
by Otto
Hello Daniel,
great.
I am online.
Best regards,
Otto