Func _NTProcess($NtAction,$process)
If $NtAction = "2" Then
$KtwAction = "NtResumeProcess"
ElseIf $NtAction = "1" Then
$KtwAction = "NtSuspendProcess"
ElseIf $NtAction = "3" Then
ProcessClose($process)
EndIf
$processid = ProcessExists($process)
If $processid Then
$ai_Handle = DllCall("kernel32.dll", 'int', 'OpenProcess', 'int', 0x1f0fff, 'int', False, 'int', $processid)
$i_sucess = DllCall("ntdll.dll","int",$KtwAction,"int",$ai_Handle[0])
DllCall('kernel32.dll', 'ptr', 'CloseHandle', 'ptr', $ai_Handle)
If IsArray($i_sucess) Then
Return 1
Else
SetError(1)
Return 0
Endif
Else
SetError(2)
Return 0
EndIf
EndFunc