Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming

Reply
 
LinkBack Thread Tools
Old 07-12-08   #1 (permalink)
Overclocker in Training
 
intel nvidia

Join Date: Nov 2005
Posts: 195

Rep: 3 loco1172 Unknown
Unique Rep: 3
Trader Rating: 2
Default help needed with SetThreadPriority

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?
__________________
CPU-Z Validation
GPU-Z Validation

System: slow POS (getting faster)
CPU
E6600 @ 3.5 v1.496
Motherboard
EVGA 680i A1 SLI
Memory
2 x 2gb G.Skill 1000
Graphics Card
2 x EVGA 8800 GTX SLI
Hard Drive
500gb wd, 250gb wd, 250gb maxtor
Power Supply
Antec TruePower Trio 650 Watt
Case
CM 690
CPU cooling
TRUE & yate loom D12SH-12 (lapped)
GPU cooling
Stock (better needed)
OS
Vista 64 Bit (SP1)
Monitor
Envision 20" LCD

Last edited by loco1172 : 07-13-08 at 02:19 AM.
loco1172 is offline   Reply With Quote
Old 07-13-08   #2 (permalink)
The Project Keeper
 
Licht's Avatar
 
amd ati

Join Date: Mar 2007
Location: Bel Air
Posts: 8,861
Blog Entries: 3

Rep: 266 Licht is a proven memberLicht is a proven memberLicht is a proven member
Unique Rep: 178
Trader Rating: 0
Default

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.

System: (AMD-AMD-ATI)-(CPU-Chip-GPU)
CPU
AMD Athlon X2 5200+
Motherboard
Gigabyte 790X AM2+
Memory
2x 1Gb Kingston && 2x 1Gb Wintec
Graphics Card
Saphire HD 3870
Hard Drive
[RAID0] [2X] WD 160GB 7,200RPM
Sound Card
X-Fi Extreme Gamer Fatality Professional
Power Supply
OCZ Game-X-Stream 700w
Case
NZXT Black Steel
CPU cooling
Stock Heatskin & Fan
GPU cooling
Stock Saphire 3870 Cooling
OS
Windows Vista Home Premium x64 SP1
Monitor
Samsung SyncMaster 19" Widescreen
Licht is offline Overclocked Account Licht's Gallery   Reply With Quote
Old 07-23-08   #3 (permalink)
New to Overclock.net
 
intel ati

Join Date: Mar 2007
Posts: 159

Rep: 11 ghell Unknown
Unique Rep: 9
Trader Rating: 0
Default

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).
__________________
System: Anon.
CPU
Core 2 Duo E8500
Motherboard
ASUS Striker Exteme 680i
Memory
4*1024MiB Corsair XMS2 Pro 800MHz 4-4-4-12 (LEDs)
Graphics Card
HD 4870x2
Hard Drive
2*250GB Seagate Barracuda 7200.10, 1*500GB 7200.11
Sound Card
X-Fi XtremeMusic
Power Supply
1000W Enermax Galaxy DXX
Case
SilverStone Temjin TJ07
CPU cooling
D-Tek Fuzion
OS
Vista Ultimate x64 / Debian x64
Monitor
Dell 2408WFP (DisplayPort)
ghell is offline   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -4. The time now is 10:08 AM.


Overclock.net is a Carbon Neutral Site Creative Commons License Internet Security By ControlScan

Terms of Service / Forum Rules | Privacy Policy | Advertising | Become an Official Vendor
Copyright © 2008 Shogun Interactive Development. Most rights reserved.
Page generated in 0.13351 seconds with 9 queries