Sorry, but you are still borked. OpenThread() takes a thread ID, but as I mentioned above, thread IDs are only unique within their process. If you try to call it with thread ID == 2 (say), it will attempt to open thread 2 of the current process, in this case, perl.exe (which may or may not exist), not the process you are attempting to change.
In reply to Re^15: how to change process & thread priority on Win32 ?
by BrowserUk
in thread how to change process & thread priority on Win32 ?
by rbutcher
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |