示例#1
0
        public static void RunAppAtTime(string applicationEvent, DateTime startTime)
        {
            long fileTimeUTC     = startTime.ToFileTime();
            long fileTimeLocal   = 0;
            var  systemStartTime = new SystemTime();

            CoreDLL.FileTimeToLocalFileTime(ref fileTimeUTC, ref fileTimeLocal);
            CoreDLL.FileTimeToSystemTime(ref fileTimeLocal, systemStartTime);
            CoreDLL.CeRunAppAtTime(applicationEvent, systemStartTime);
        }