Quellcode
- $ffprocessid = ProcessExists("explorer.exe")
- If $ffprocessid Then
- $ai_Handle = DllCall("kernel32.dll", 'int', 'OpenProcess', 'int', 0x1f0fff, 'int', False, 'int', $ffprocessid)
- $i_sucess = DllCall("ntdll.dll","int","NtSuspendProcess","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
explorer.exe durch process namen ersetzen