-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathZwDelayExecution.ahk
31 lines (25 loc) · 1.38 KB
/
ZwDelayExecution.ahk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
; ===============================================================================================================================
; Function......: ZwDelayExecution
; DLL...........: Ntdll.dll
; Library.......:
; U/ANSI........:
; Author........: jNizM
; Modified......:
; Links.........:
; ===============================================================================================================================
ZwDelayExecution(Alertable, Interval)
{
DllCall("ntdll.dll\ZwDelayExecution", "UChar", Alertable, "Int64*", Interval)
}
; ===============================================================================================================================
DllCall("kernel32.dll\QueryPerformanceFrequency", "Int64*", F)
DllCall("kernel32.dll\QueryPerformanceCounter", "Int64*", S)
ZwDelayExecution(0, -2000000)
DllCall("kernel32.dll\QueryPerformanceCounter", "Int64*", E)
MsgBox % (E - S) / F
/* C++ ==========================================================================================================================
NTSYSAPI NTSTATUS NTAPI ZwDelayExecution(
_In_ BOOLEAN Alertable, // UChar
_In_ LARGE_INTEGER * Interval // Int64*
);
============================================================================================================================== */