|
![]() |
Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming | |
help needed with SetThreadPriority
|
||
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) | ||||||||||||
|
Overclocker in Training
|
BOOL SetThreadPriority(
HANDLE hThread, // handle to the thread int nPriority // thread priority level ); can someone show me how to get the handle to fahcore_11.exe? ![]()
Last edited by loco1172 : 07-13-08 at 02:19 AM. |
||||||||||||
|
|
|
|
|
#2 (permalink) | |||||||||||||
|
The Project Keeper
|
Are you asking how to set the thread priority for F@H? If you are just open task manager, find the process, right click, hit thread priority, select your level. Saves a lot of time.
__________________
|
|||||||||||||
|
|
|
|
#3 (permalink) | ||||||||||||
|
New to Overclock.net
|
If you want to do this from C/C++ via the Win32 API, wouldn't you have already started the process from the same API? In this case, it returns the HANDLE to you at the time.
__________________If not, the OpenProcess function in the Win32 API will get you a handle, given a process ID. The function you listed wants a HANDLE to a thread, not a process anyway (every process will have 1 or more threads).
|
||||||||||||
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|