Get and Set CPU Affinity v2.36.4
(2006-2008)
by
Ed
Wilk / Edgemeal
Software
Freeware for Windows XP
About:
A utility to set CPU affinity on files manually or automatically using a
favorites list.
Change the Priority of running files.
Graph CPU usage of
individual programs.
Displays dual core CPU usage in the system tray.
If you find a bug, have a suggestion, need
help, etc, etc, send it
here. Thanks!
History and
Notes
Average CPU usage:
Displays the elapsed time and the average CPU usage for both CPU cores.
To reset the average CPU usage, double click on the elapsed time in the
interface.
CPU Usage Graph and Tray colors:
To change these colors, right mouse click on the CPU usage graph in the main
program interface.
Exit Program:
Right mouse click on tray icon or the very upper-right corner of interface
for a menu.
Explorer.exe Note:
Setting the CPU affinity of the Windows "Explorer.exe" file may effect the
CPU affinity of other programs you start afterwards!
Favorites/Auto Set CPU Affinity:
Favorites allow you to set the CPU affinity to a group of programs automatically on the
fly, or with a click of a button.
Add a favorite:
Select the affinity in one of the CPU affinity check boxes (0,1, or 0+1), then
do one of the following three options.
1) Select one or more file names from the programs list and click the "Add Fav" button.
2) Click the "Add" button to browse for a single file on the local computer (.Exe, .Scr, and .Lnk shortcuts).
3) Drag and drop multiple (.Exe and .Scr) files from a Windows explorer folder on the local computer into the Favorites list.
Note: When adding favorites and "Auto Set Affinity" is enabled the files affinity will also be set if the file is running.
Favorites are prefixed with a "*" character in the programs list.
Manually changing the affinity of a file in the program list is ignored if it's a favorite, but only if Auto Set Affinity is enabled.
Same named files are not allowed in the favorite list. If multiple copies of the same program are running and the CPU affinity is set from favorites (Set Now or Auto) those files will all be set to the same CPU affinity setting!
To change the CPU affinity setting of a favorite, highlight one or more favorites and right mouse click for a menu.
To disable a favorite, set the favorites affinity to "0+1". Affinity is only applied if it needs to be changed.
Your favorites are saved to the file "MyFavAff.idx" on exit.
File icons/Cache folder/Clear Cache:
Icons for files in the Program and Favorite lists are saved to the sub-folder "cache".
If a file has no icon then a picture of a small
computer is used instead.
If you don't want the program to cache icons for the program list, uncheck the
option "Cache Icons" in Options,
To delete all cached file icons (except for favorites) open Options and click "Clear Cache", you will then be asked if it is OK to proceed.
Get and Set Priority:
Select one file in the Programs list, then right mouse click to open the Priority menu.
Hiding file names in program list:
Allows you to hide files names that you don't want to adjust (protect from
changes) or normally see in the
programs list.
To hide files, select one or more file names in the programs list and click the "Hide" button.
To un-hide, enable the "Show All" check box, select one or more file names and click the "Un-Hide" button.
Note: You can not hide a file name if it is in your favorite list.
When "Show All" is enabled, file names that are marked as hidden are prefixed with the "<" character.
File names you mark as hidden are saved to the text file "Ignore_List.txt" on exit. You can edit this file with Notepad to manually add or remove file names, use one file name per line. You must exit GnS Affinity before editing the file! Download a sample Ignore List.
High Priority:
When your PC is under heavy work loads GnS Affinity may be
slow to respond, enable this
option if needed.
Limitations/Known
Issues:
1)
Supports file names up to 34 characters long.
2) When GnS Affinity is open on the desktop and a program is launched there may be a short delay before the programs real icon is displayed.
3) Program Usage Graphs may close unexpectedly. i.e. Child windows, Window handles that change, etc,
4) The elapsed time in main interface will be incorrect when the PC clock is changed manually or on day light savings change.
Options:
To open, click "Options" button or right mouse click on the very top-left of the title bar where it
reads, "Get and Set CPU Affinity".
To change the interface or text color,
Click on a color box and/or adjust the Red(R), Green(G), Blue(B) &
brightness controls.
Click Apply to save.
Click Undo to load your last saved colors.
Program Usage Graph:
Displays the total
CPU usage of a program in a small graph.
To open a graph, double click on a file name in the programs list.
Right mouse click on the graph for options...
Graph Time is the time it takes to fill the graph from right to left.
1 minute - Updates graph every 600ms (Default setting).
3 minute - Updates graph every 1.8 seconds.
5 minute - Updates graph every 3 seconds.
Note: Graphs auto
close when the executable they are monitoring
exit, unless they are windowless types.
Reset Settings:
Allows you to reset your user settings such as the color, size, position
of the program to the default values.
This does not remove your favorites or file names you have marked as hidden.
To reset settings, open Options and click on "Delete User Settings", you will then be asked if it is OK to proceed.
Settings are saved to the the registry at "HKEY_CURRENT_USER\Software\VB and VBA Program Settings\Edgemeal\Get and Set CPU Affinity".
Services: For
advanced users!
Click the "Services" button to open the included "Set Services.exe" program.
This program allows you to start and stop Windows XP services manually or a
group of services using profiles.
Profiles are automatically saved to the sub folder "Profiles" with a file
extension of ".PFL".
Note: You can not stop or start a service if it is
disabled!
Sorting Lists by Affinity:
Lists can be sorted by file name or affinity.
To toggle the sort view, use a single mouse click on the Program and Favorite list headers.
Uninstall:
1) Open
Options and click "Delete User
Settings".
2)
Delete the folder where you extracted Get and Set CPU Affinity to.
===================
Terms of Agreement:
===================
By using the included Freeware, you agree to the following terms...
1) You may use this software freely and with no charge.
2) You MAY NOT redistribute this software (for example to a web
site)
without written permission from the author. Failure to do so is a
violation of copyright las.
3) You will abide by any additional copyright restrictions which the
author may have included in this software package.
===========
Disclaimer:
===========
Users of this software must accept this disclaimer of warranty:
The software is supplied as is. The author disclaims all warranties,
expressed or implied, including, without limitation, the warranties of
merchantability and of fitness for any purpose. The author assumes no
liability for damages, direct or consequential, which may result from the
use of said software.
==================
Version History and Notes
==================
v2.36.4 to v2.36.0
* Fix: Status bar not updating
after manually sorting the program list. (when 1 file selected)
* Code changes: String storage/retrieval class, sort engine.
* Change: Add favorite file dialog was limited to path length of 260 characters,
increased to 4096.
* Fix: Some created icons were not destroyed. (GDI objects/DestroyIcon).
* Adjusted privileges: handles
not closed after set.
* Changed and optimized code to get Process IDs, number of programs running.
v2.35
* Changed the code that get the names of the running processes.
v2.33
* Added program to Set Windows XP Services manually or to a group of services using
profiles.
* Added button to launch the new included Set Services program.
* Minor code optimizing.
v2.32
* Fix Status Bar: Selected file
info was no longer shown if the program list updated/changed.
* Fix annoyance: If main interface was open on desktop it would get focus if the
tray menu or a program usage graph was selected.
* Changes to interfaces. Program Usage Graphs updated. Main: Active/Non-Active
Title bar, Status bar, Color options.
v2.31.02/03
* Minor interface & mouse wheel code changes.
* Bug Fix: Code to get file icons was
incomplete and could possibly cause an error if program was used for an extended
period of time.
v2.30.12 to .01
* Added option to
override Auto Set Affinity setting on start up.
* Added option to disable
the fade in/out effect of interface when minimized/restored.
* Added option to disable
cache of Program list icons.
* Interface updates, Replaced "Sort by Affinity" checkboxes with list headers. (see
Sorting Lists by Affinity)
* Files selected in
Program/Favorite lists now stay selected when list is updated.
* Optimize code for get/sort affinity.
* Added: Horizontal
meters to display average CPU usage.
* Optimize code for when minimized. (updating CPU avg/usage/graphs in interface)
* Improved
caching/loading of file icons.
* Optimize code for tray icon.
* ReFix: Error message dialog was hidden behind program if
"Always on Top" was enabled.
* Fix: On start up the CPU usage averages were slightly off.
* Added: Option to turn off the confirm dialog when removing favorites.
* Added: Option to confirm setting a programs Priority.
* Fix bug in v2.30: Hiding
a file that was already hidden was added to Ignore_list file prefixed with the "<" character.
v2.30
* New: Added option to start with Windows.
* New: Add a file to favorites using Windows browse for file dialog.
* New: Graph CPU usage of individual programs. (See "Program Usage
Graph")
* New: Access to Help file, Reset user settings, Clear cache, Visit my site and
Email.
* New: Adjust interface color with RGB and brightness controls. (See "Interface
Color")
* Update: Set tray icon and interface CPU graph colors separately, added 3 more
colors.
* Update: You can now add a favorite from program list even if it is hidden (Auto
un-hides file).
* Update: Hide button is now available when Show All is enabled, using un-hide
doesn't disable Show All.
* Fix: Drag/Drop into favorites - Affinity was set even if Auto Set Affinity was
disabled.
* Fix: Drag/Drop into favorites - Now auto un-hides dropped files if hidden in
programs list.
==============
Special Thanks to:
==============
Matt Pietrek - Using PDH.DLL to get CPU usage per core, Article.
Mike D Sutton - For all
his help on how to create icons on the fly with transparency.
Mikes home page
And all the users who have sent us feedback!
© Edgemeal Software 2008