You'll have to define what device you're running on. If it's a Windows
Mobile device, you can use the Connection Manager, for which there is a
wrapper in OpenNETCF,
www.opennetcf.org, to establish a connection, etc.
If you're running on some Windows CE (generic) device, there is no OS
support for ensuring that a network connection exists. You'll have to
figure that out yourself, with knowledge of what connection types are
possible, etc.
Paul T.
"Steve B." <(E-Mail Removed)_com_and_msn> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> I'd like some help or good practice in order to make a "EnsureNetwork()"
> method.
>
> This method should either check there is network available (typically
> WIFI) or connect GPRS connexion (the one configured as default connexion
> on the device).
>
> I made some tests, and on my device, a web service call automatically
> connect the default connexion. A Sql Ce merge replication synchronize()
> method does not. That's why I'd like to ensure the availability of any
> network.
>
> I'm also quite confused about networks, destinations and connexions... and
> I would appreciate some explanations.
>
> Thanks in advance.
> Steve
>