예제 #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();
        }