Set Affinity II v1.041
by Ed Wilk / Edgemeal Software
Freeware for Windows XP



About:
A utility to set CPU affinity of executable files manually or automatically using a favorites list.
Created for Windows XP & Vista 32-bit versions with one Dual Core, Tri-Core or Quad Core CPU.

If you find a bug, have a suggestion, etc, etc, send it here. Thanks!


Adding Favorites
Favorites allow you to set the CPU affinity mask of programs automatically on the fly, or with a click of a button.

There are two ways to add a favorite.

1) Select a file name in the process list, set affinity in the CPU check boxes, and click the "Add to Fav" button.

or

2) Use the "Add" button to browse for a file on the local PC, the added file will be set to use all CPU cores by default.

Note
: To change the affinity setting of favorites see "Changing Favorites Affinity" below.

Notice!: If multiple copies of the same program are running and affinity is set from Favorites (Set Now or Auto) those files will all be set to the same Affinity!

Favorites are prefixed with a "*" character in the Process list.

Your favorites and their settings are saved to the file "MyFav.Affinity" when you exit the program.


Changing Favorites Affinity
Select one or more file names in the Favorites list and right mouse click for menu.


Setting Affinity Automatically
Add file names to the Favorites list, adjust their affinity and enable the "Auto Set Affinity" option.


Setting Affinity Manually
Select one file in the Process list, adjust the CPU affinity check boxes and click the "Apply" button.


Hiding file names in Process list:
Allows you to hide files names that you don't want to adjust (protect from changes) or normally see in the Process list.

To hide a file from view, select a file name in the Process list and click the "H" button.

To un-hide a file, enable the "Show All" check box, select a file name and click the "U" button.

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 "Hidden.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 Set Affinity II before editing this file!


Exit Program:
Right mouse click on tray icon to open menu, click "Exit Set Affinity II".


Limitations/Known Issues:
Supports file names up to 34 characters long.


Restore Program Defaults:
1) Open options and click the "Delete Settings" button.
2) Restart the program.

Notes:
Using the "Delete Settings" option does not delete your favorites or files you have marked as hidden!
To remove all favorites, Exit the program and delete the "MyFav.Affinity" file.
To restore all hidden file names, Exit the program and delete the "Hidden.txt" file.


Tray Icon :
The tray icon shows total CPU usage by all CPU cores.

Notes:
In graph mode the range shown is around 5% to 95%.


Uninstall :
1) Open options and click the "Delete Settings" button.
2) Delete the folder you extracted this program 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 laws.

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

==================

v1.041
* Fix: If Windows "Explorer.exe" was closed (or crashed) tray icon was not restored on Explorer restart. (tested on XP only)
* Fix: Elapsed time shown in CPU usage was wrong if date/time was changed in Windows.

v1.040 -  Minor speed tweaks.

v1.039 -  If unable to query CPU usage the program will now still run but without the CPU usage info.

v1.038 -  Fix: A process handle could be left open after changing CPU affinity.

v1.037 -  Call Sleep 0 after setting affinity. (as seen in Intel code example for setting affinity)

v1.036
Fix: Setting Affinity options from tray menu and on Start Up.
Fix: Showing CPU usage as number in tray (100 was displayed as 10).

v1.035
Fix:  Selecting multiple files using the "Add" favorite file dialog was limited to 260 characters (expanded to 65535).

v1.034 to 1.031
Fix: Hidden file  not  shown  in Process list when adding a favorite with the "Add" favorite dialog and Auto Set Affinity was enabled.
- Changed: You can now select multiple files when using the "Add" favorite file dialog.

Fix: Some created icons were not destroyed. (GDI objects/DestroyIcon).
- Fix: Menu for tray color could show two colors selected.
- Minor code updates.
- Adjusted privileges: handles not closed after set.

v1.030
- Added CPU usage and average CPU usage meters to interface.
- Added total CPU usage to tray icon, with option to show as graph or as number.
- Added option to sort favorites by CPU affinity.
- Added option to confirm removing favorites.
- Changed: You can now remove multiple favorites at a time.
- Changed: You can now change the affinity of multiple favorites at a time.
- Changed: When adding favorites with the "ADD" button affinity is now set to all cores by default.
- Changed: Affinity check boxes are now set to the current selected file, CPU 0 is no longer a sticky default.
- Other minor changes and updates.



(c) Edgemeal Software 2010