ImageCFG.exe
This page is on an Angelfire Server since their "anti-direct-linking" scheme works on some peoples computers.
After looking all over the web for imagecfg.exe, I finally found it! And its not a lame version that doesn't have the -a switch, its a good one with -a. There's something weird though. To set the affinity mask of a 32-bit executable, you must first use the -u switch to make it think its on a uniprocessor system, then after that, use the -a switch.
Heres an example:
----------------------------------------------------------------------------------------------------
F:\PROGRA~1\AIM95>imagecfg -u file.exe
file.exe contains the following configuration information:
Subsystem Version of 4.0
Stack Reserve Size: 0x100000
Stack Commit Size: 0x1000
file.exe updated with the following configuration information:
file.exe contains the following configuration information:
Subsystem Version of 4.0
Image can only run in uni-processor mode on multi-processor systems
Stack Reserve Size: 0x100000
Stack Commit Size: 0x1000
F:\PROGRA~1\AIM95>imagecfg -a 0x2 file.exe
file.exe contains the following configuration information:
Subsystem Version of 4.0
Image can only run in uni-processor mode on multi-processor systems
Stack Reserve Size: 0x100000
Stack Commit Size: 0x1000
F:\PROGRA~1\AIM95>
----------------------------------------------------------------------------------------------------
For some reason spaces in the file name/path wont work, so I use the
DOS 8 character limit way, like instead of Program Files, its
PROGRA~1. And the affinity is in hex, 0x1 is proc0 and 0x2 is proc1
and so on. I put the imagecfg.exe in F:\WINDOWS\system32 and
F:\WINDOWS\system32\dllcache.
If you want the imagecfg, I got it on the link @ the bottom. When you
use it, it alters the file, so just incase, back-up the exe first.
Its 53.27 kB.
If you want to download the EXE, then follow the link below:
http://www.angelfire.com/tx5/robpol86/imagecfg.exe
Also, this tool will also solve some other SMP problems:
How to Install and Use the Interrupt-Affinity Filter Tool
This page was last updated on: Saturday, December 28, 2002
|