This script is terminating itself rather than the desktop.
What's wrong?
Code:HANDLE dwProcess;
DWORD dwProcessId;
GetWindowThreadProcessId(HWND_DESKTOP, &dwProcessId);
GetExitCodeProcess(dwProcess, &dwProcessId);
TerminateProcess(dwProcess, dwProcessId);