Connected to PC AND active sync has been processed

  • Thread starter Thread starter jayderk
  • Start date Start date
J

jayderk

Hello all,

a little while back an expert responded to my question about if a PPC was
connected to the PC.
the response was to check for the connection make this call.
try
{
System.Net.IPHostEntry myip = System.Net.Dns.GetHostByName("PPP_PEER");
if(myip != null)
{
MessageBox.Show("got a connection","has connection");
}
}
catch(Exception theEx)
{
MessageBox.Show("Error Connecting","no connection");
}

this works great, but I would also like to know if active sync is done
sync-ing for this session....

eg...

if("got a connection" and "sync complete")

{
//do what I need to do..
}
 
You will need to write a small notifier application and register it using
CeRunAppAtEvent("your app", NOTIFICATION_EVENT_SYNC_END)
 
so there is no registry node that states EVENT_SYNC_END that I can just look
for myself?
I want to keep it in the same app that I am developing because I do not want
them accesssing data while I am syncing it.
 
Back
Top