Adrian Veith ha scritto:
Hi John,

the description of the connection manager API is on the msnd website: http://msdn2.microsoft.com/en-us/library/aa457271.aspx

I haven't found any parameter to disable the progress dialog.
Sorry if I go a little out of the topic... but WinCE is not discussed much here so I take the occasion to ask:
is there someway to manage the dialogs of WinCE?

I would need, for example, a way to force the keyboard to appear and disappear...

Thank you for the code about the networkpath, I also needed that.

Cheers,

Adrian.

John vd Waeter schrieb:
Hi Adrian,

Thanks!

Looks just like the thing I need!

Do you know of a parameter I can set that hides the Connection-in-progress dialog that comes up?

kind regards,
John




>        if ConnMgrEstablishConnectionSync(ConnInfo, FConnection, 60000,
> FStatus) <> S_OK



Adrian Veith wrote:
Hi,

You have to to use the connection manager api from microsoft. I have translated some parts of it to object pascal (source is attached). The source is not well tested now, but it works for me. For a simple connection to the internet you can use the following code.

Cheers, Adrian.

var
   ConnInfo: CONNMGR_CONNECTIONINFO;

begin
       ZeroMemory(@ConnInfo, sizeof(ConnInfo));
       ConnInfo.cbSize:= sizeof(ConnInfo);
       ConnInfo.dwParams:= CONNMGR_PARAM_GUIDDESTNET;
       ConnInfo.dwPriority:= CONNMGR_PRIORITY_USERBACKGROUND ;
       ConnInfo.guidDestNet:= IID_DestNetInternet;

if ConnMgrEstablishConnectionSync(ConnInfo, FConnection, 60000, FStatus) <> S_OK
       then
         raise Exception.Create('No connection');



John vd Waeter schrieb:
Hi all,

With the INet components, I managed to use a UDP-component to frequently ask an internetserver for some data.

However, no traffic is generated when the handheld is powered up. I first have to initiate internet explorer, ask for some trivial page and after that my application can continu its UDP traffic.

I guess starting IE opened a networkpath and takes care of obtaining an ipnr etc.

What do I have to call to ensure a networkpath (GPRS, WiFi, whatever is available) is opened the same way IE does?

tia!
John

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives




_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to