Hi guys,

I would like to know a way to verify which connection is active in my
pocket pc.
I've developed a solution to download some files in a Ftp server, if
I'm using the device with the usb cable the device will conect using
my pc's internet, if I'm using the pocket without the cable it will
connect using my GPRS connection.
Is possible to verify using c# which connection is active?

Any Ideas?

Thanks,
Marco

Re: Verify which connection is active by Christian

Christian
Thu Feb 14 15:45:58 CST 2008

The easiest way to do this in Windows Mobile 5 and up is through the State
and Notification API. Look into the
Microsoft.WindowsMobile.Status.SystemState namespace.

http://msdn2.microsoft.com/en-us/library/microsoft.windowsmobile.status.systemstate.aspx
http://msdn2.microsoft.com/en-us/library/microsoft.windowsmobile.status.systemstate_members.aspx

--
Regards,
Christian Resma Helle
http://christian-helle.blogspot.com


"Marco Domingos" <marco.domingos@gmail.com> wrote in message
news:d6f1d8a0-fa9b-4d99-ab6f-aa03ccdc0b9f@s12g2000prg.googlegroups.com...
> Hi guys,
>
> I would like to know a way to verify which connection is active in my
> pocket pc.
> I've developed a solution to download some files in a Ftp server, if
> I'm using the device with the usb cable the device will conect using
> my pc's internet, if I'm using the pocket without the cable it will
> connect using my GPRS connection.
> Is possible to verify using c# which connection is active?
>
> Any Ideas?
>
> Thanks,
> Marco