WNetAddConnection

Post Reply
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

WNetAddConnection

Post 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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org

********************************************************************
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Re: WNetAddConnection

Post 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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org

********************************************************************
User avatar
Daniel Garcia-Gil
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita
Contact:

Re: WNetAddConnection

Post by Daniel Garcia-Gil »

Hello Mr. Otto

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

can we talk by chat?
our best documentation is the source code
Isla de Margarita Venezuela.
danielgarciagil@gmail.com
http://tdolphin.blogspot.com/
https://www.dropbox.com/referrals/NTI5N ... rc=global9
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Re: WNetAddConnection

Post by Otto »

Hello Daniel,
great.
I am online.
Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org

********************************************************************
Post Reply