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

              Application.Exit();
        }