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

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