5

Is there a way that my .NET CF app running on a Windows CE device can know when the device is docked/synced with the PC?

fadein
  • 71
  • 4

3 Answers3

6

I believe this will help http://msdn.microsoft.com/en-us/library/microsoft.windowsmobile.status.aspx

nportelli
  • 3,934
  • 7
  • 37
  • 52
0

See the following: Microsoft.WindowsMobile.Status and ConnectionsDesktopCount. If ConnectionsDesktopCount is > 0 then you are docked to a PC.

See the the SDK sample here http://msdn.microsoft.com/en-us/library/bb158637.aspx for a demo of how to use Microsoft.WindowsMobile.Status.

Thanks, Mike

mjf
  • 357
  • 1
  • 3
0

I don't think this is it. Maybe, with WM 5.0 devices this could work, what about the older devices? They don't support this solution.

Abhijeet Kashnia
  • 12,290
  • 8
  • 38
  • 50