此範例是五秒鐘後播放一段音樂檔 [DllImport("CoreDLL.dll")] public static extern int CeRunAppAtTime(string application, SystemTime startTime); [DllImport("CoreDLL.dll")] public static extern int FileTimeToSystemTime(ref long lpFileTime, SystemTime lpSystemTime); [DllImport("CoreDLL.dll")] public static extern int FileTimeToLocalFileTime(ref long lpFileTime, ref long lpLocalFileTime); [StructLayout(LayoutKind.Sequential)] public class SystemTime { public ushort wYear; public ushort wMonth; public ushort wDayOfWeek; public ushort wDay; public ushort wHour; public ushort wMinute; public ushort wSecond; public ushort wMilliseconds; } public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { l ong fileStartTime = DateTime.Now.AddSeconds(5).ToFileTime(); long localFileStartTime = 0; FileTimeToLocalFileTime(ref fileStartTime, ref localFileStartTime); SystemTime systemStartTime = new SystemTime(); FileTimeToSystemTime(ref localFileStartTim...