FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Pocket PC WNetAddConnection
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM

WNetAddConnection

Posted: Fri Dec 31, 2010 09:03 PM

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

Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM

Re: WNetAddConnection

Posted: Sat Jan 01, 2011 08:34 AM

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
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 PM

Re: WNetAddConnection

Posted: Sun Jan 02, 2011 04:58 PM

Hello Mr. Otto

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

can we talk by chat?

Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM

Re: WNetAddConnection

Posted: Sun Jan 02, 2011 05:41 PM

Hello Daniel,
great.
I am online.
Best regards,
Otto

Continue the discussion