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

              Application.Exit();
        }