Nework connection status

  • Thread starter Thread starter D. Veloper
  • Start date Start date
D

D. Veloper

I'm looking into developing a PocketPC app using VB.net.

The application would use a server-side Web Service to
return datasets to the client. The application would be used
in a connected environment.

....but.....

If the device running my app looses network connection for
whatever reason, I need to detect when network connection
i re-established, so I can post any changes back to the DB.

Any input on how to detect network connection state, and/or
detect docking of the device in its cradle, would be appreciated.

Thanks,
DV
 
Hi,

To check whether network connection is established you can use the code
provided in the following link
http://www.businessanyplace.net/?p=code#checkconnect

To detect docking of device in its cradle you have to trap the
NOTIFICATION_EVENT_RS232_DETECTED notification by using the CERunAppAtEvent
API function. The following link to Microsoft Knowledge base article shows
how to use CEAppRunAtEvent API to handle various System notifications.
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q276556

HTH,

Girish.
 
Back
Top