WNetAddConnection

WNetAddConnection

Postby Otto » Fri Dec 31, 2010 9: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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6346
Joined: Fri Oct 07, 2005 7:07 pm

Re: WNetAddConnection

Postby Otto » Sat Jan 01, 2011 8: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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6346
Joined: Fri Oct 07, 2005 7:07 pm

Re: WNetAddConnection

Postby Daniel Garcia-Gil » Sun Jan 02, 2011 4:58 pm

Hello Mr. Otto

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

can we talk by chat?
User avatar
Daniel Garcia-Gil
 
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita

Re: WNetAddConnection

Postby Otto » Sun Jan 02, 2011 5:41 pm

Hello Daniel,
great.
I am online.
Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6346
Joined: Fri Oct 07, 2005 7:07 pm


Return to FiveWin for Pocket PC

Who is online

Users browsing this forum: No registered users and 5 guests