Can an application restart itself?

  • Thread starter Thread starter cyberco
  • Start date Start date
One way is to P/Invoke (or use an existing wrapper) around the
CeRunAppAtTime API, schedule your app to launch in a couple of seconds time,
and exit. The SDF (www.opennetcf.org/sdf/) has a wrapper for this API.

Peter
 
Thanks,that works like a charm!
I was able to crash my application by exiting it immediately after it
was automatically launched. This may be due to RunAppAtTime(), but I'm
not sure.
 
Back
Top