Ejemplo n.º 1
0
 protected static extern bool CeRunAppAtTime(string pwszAppName, ref SystemTime lpTime);
Ejemplo n.º 2
0
        private void restartApp()
        {
            SystemTime timeToLaunch = new SystemTime(DateTime.Now.AddSeconds(11));
              bool res = CeRunAppAtTime(callingAssembly.GetName().CodeBase, ref timeToLaunch);

              Application.Exit();
        }