예제 #1
0
        public static void MicroSleep(Int64 MicroSec)
        {
            LARGE_INTEGER ft = new LARGE_INTEGER()
            {
                QuadPart = MicroSec
            };

            NtDelayExecution(false, out ft);
        }
예제 #2
0
 static extern bool SetWaitableTimer(IntPtr hTimer, [In] ref LARGE_INTEGER ft, int lPeriod, TimerCompleteDelegate pfnCompletionRoutine, IntPtr pArgToCompletionRoutine, bool fResume);
예제 #3
0
 static extern Int32 NtDelayExecution(Boolean dwAlertable, out LARGE_INTEGER dwDelayInterval);