PriFinitty v2.46
by Ed Wilk / Edgemeal Software
Freeware for Windows XP (32-bit)


Version History and Notes -  PriFinitty Jr Help - Known Issues - Uninstall -  Send Feedback


About:
A utility to set CPU Affinity and Priority of executable files manually or automatically.
This program was created for Windows XP 32-bit and is not recommended for 64-bit version of Windows!

Features:
Supports up to eight real physical CPU cores (Intel Hypertheraded cores are not supported).
Store favorites in five separate groups.
File list displays the Affinity, Priority, PID, Ram and CPU usage of running files.
File list filter to hide running files from view for easier managing.
Monitor Programs, the Total and Average CPU usage in small graphs.
Hot Keys for setting and changing favorite profiles from outside program.
Tray icon displays total CPU usage as graph or number.
Balloon ToolTips for info and quick help.

Tips:

PriFinitty only updates when the number of running programs or the Process IDs have changed. If you change the affinity/priority of files using another program PriFinitty will not show the changes until it updates. To manually update the Files list click the "R" button near the top-left of the program.

Changing the CPU affinity of Windows Explorer.exe to other then all CPU cores will affect the affinity of programs you start afterwards.

Vista/7 (32-bit)
When run on Vista/Win7 you will need to run the program as administrator to see & set most running files. As administrator with UAC enabled you will get a UAC prompt when launching the program and UAC will also block the "Start with Windows" option. Also the drive/folder this program runs in must allow folders & files to be created/written to. Hopefully the links below will be of some help.

How To Setup PriFinitty2 on Windows 7(32-Bit) with UAC enabled
Make Vista launch UAC restricted programs at startup with Task Scheduler
Run UAC restricted programs without the UAC prompt


Manual Setting:
Select one or more files in the Files list (left side), adjust the Affinity and Priority by selecting the appropriate check boxes (CPU Cores) and drop down option (Priority). Click the green "check mark" in the top toolbar to apply changes.


Auto Setting:
To automatically have programs set on the fly, add file names to the Favorites list (right side / see
Adding Favorites below) and enable the "Auto Set" option (Airplane image) in top toolbar.

Auto Set Enforce:
When this option (Shield image in top toolbar) is enabled PriFinitty will recheck your favorites at a pre-set interval and reset them if needed. This may be useful if programs change their CPU Affinity/Priority. This option is only available when Auto Set is enabled. Note: To change the Auto Set Enforce interval see miscellaneous options, the default interval is every 60 seconds.


Favorites:
Favorites allow you to set the CPU Affinity and Priority of programs automatically on the fly or with a click of a button (yellow "Star" in the top toolbar).

Adding Favorites:
First select a favorite profile you want to work with, you can have up to 5 profiles, "My Favs 1" is the default. Click the Document looking button in top toolbar to change.

You can add favorites (.Exe and .Scr files) 3 different ways.

  1. Select files in the Files list, right mouse click for menu and select "Add Selected to Favorites", or click "+" on the left-sided toolbar.
  2. Drag and drop files onto the Favorites list form a Windows explorer folder or from the Files list.
  3. Click the "Folder/Magnify" button in the top toolbar to browse for a single file.

Files added to favorites from the Files list will use the files current CPU affinity with a default priority. Files from browsing or explorer will be added with all CPU cores and default priority.

Change Affinity/Priority/Icons of favorites:
Select one or more file names in the Favorites list, right mouse click for menu and select "Change Settings".
Note: If you change the icon of a favorite you can restore it back to the original icon by clicking the "R" image in the favorites change menu.

Priority Settings:
The "Default" setting tells Prifinitty2 to not check a files current Priority state nor change its Priority.

Multiple files with the same file name:
In order to add and set same named executables to different CPU Affinity and Priority settings from a favorite profile the executable files must be located in different folders.

Copy or Move favorites from one profile to another profile:
Select one or more file names in the Favorites list, right mouse click, select "Copy Selected To..." or
"Move Selected To...".

Programs that launch other executable files:
If a program launches other executables those files may also be set to the same CPU affinity as the program that launches them.


Launch-able Favorites:
When enabled (Misc. options) a small icon will be displayed in the upper left corner of the Favorites list column header.

To launch a favorite (with optional parameter) double left mouse click on one favorite.
To add or change a favorites file parameters, select a favorite and middle mouse click on it, type in the parameter and press enter.


Filter File Names:
Allows you to hide files names you don't want to see in the Files list and has no effect on setting your favorites.

To add a file name to the filter, select one or more files in the File list and click the blue Filter button in the left toolbar or right click for menu and select "Add Selected to File Filter".

When you add a file to the filter the File Filter switch (blue Filter button in top toolbar) is automatically re-enabled.

When the File Filter switch is off file names that are filtered will have a blue looking filter icon instead or their normal icon.

File Filter Dialog:
This dialog lets you remove filters or add filters. To open the dialog click the blue Script looking icon in the left toolbar or right mouse click in the Files list for menu and select "Show File Filter Dialog".

To Add files click the Add button to browse for a single file, or drag and drop multiple files from the Files list or from a Windows explorer folder onto the Filter list.

To change a file icon in the File Filter list, highlight one or more files and right mouse click for icon menu. Changing icons here has no effect on the icons seen in the Files or a Favorites list.

Notice: "System" and "System Idle Process" processes are always filtered and are not counted as a process in the status bar.


Column Widths:
The column widths for the File and Favorite lists can be adjusted independently for the normal and maximized window state of the main interface.

To reset the column widths to their default widths click the Column Widths button in Options (Miscellaneous section).


Selecting multiple files in a list:
Click inside a file list and then use these keys and mouse clicks to select multiple files.

A to Z - Selects all files starting with the key pressed.
Control + Left Mouse Click
- Select or Unselect files one by one.

Control + Shift + Left Mouse Click  - Select a group of files from the last selection to current selection.
Holding Left Mouse Button Down - Selects files as you move the mouse pointer up or down the list in column 1 (leftmost column).
Control + A
- Select all files.
Control + I
- Invert selected files.
Control + U
- Unselect all files.

Note: One file will always be selected by default in the Files list.


Terminate Selected: (Kill Process)
Similar to Windows Task Manager "End Process" option.
Select one or more files in the File list, click the "x" in the left toolbar or right click for menu and select Terminate Selected. You will then be asked if it is OK to proceed.

Note: Terminating starts at the top of the file list in the current sort order.
If a "terminate process" error is returned by Windows a message is displayed and the Terminated Selected operation is aborted, in this case the rest of the selected files will not be told to terminate.


Total and Average CPU Usage Graph:
A tiny graph to show the Total and Average CPU usage.
Right mouse click on this graph for options.


CPU Usage Graph: (Files List)
Displays the total CPU usage of a program in a small graph.
To open a CPU program graph, double click on a file name in the Files list or select multiple files and then right mouse click and select "Open selected in CPU Graph".

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 - Sample every 600ms (Default setting).
3 minute - Sample every 1.8 seconds.
5 minute - Sample every 3 seconds.

Move a single graph:
Place mouse cursor over the graph and hold down the left mouse button and drag it, release left mouse button when done.

Move all graphs as a group:
Place mouse cursor over a graph, click the middle mouse button, move mouse, click left mouse button when done.

Auto Grouping:
There are 8 options to align the program CPU graphs.
Group - #, Where # = the number of rows. (Exception: If graphs can not fit on screen then a new column or row will be started.)
Right click a graph, and select Auto Grouping from menu, then select a Group - #.
Note: Any hidden graphs will be shown when using this option.

Edge Detection
When enabled and you you move a graph outside the desktop area the graph will automatically move back to the edges of the desktop when the mouse button is released. This may not work as expected on multi-monitor systems and can be set to disabled by default in Options (CPU Graph section).

Notes:
You can have up to 16 program graphs open at one time.

Program CPU graphs will automatically close a few seconds after the executable they are monitoring close.

If graphs are behind other programs or have been hidden select the "Show All Graphs" option in the tray menu.


Tray Icon :
The tray icon can display the total CPU usage as a graph or number or can be set to disabled to show a static icon.
In bar graph mode the tray icon displays a CPU usage range of 5% to 93%, anything below 5% or above 93% is unnoticeable.


HotKeys:
When enabled (Misc. Options) allows you to fire commands by keyboard.
Note: Some programs, like games, may take control over the keyboard and not allow these hotkeys to work.

To use a hotkey you need to press three keys at the same time on the keyboard, Control+Shift+Key.

Key - Usage
S
- Fire the Set Now button.
1 though 5 - Change the favorite profile.  ( i.e. Control+Shift+2 = My Favs 2 )

Note: The number keys are the keys at the top of the keyboard, not the key pad!


Restore All / Uninstall:
Deletes your saved interface settings from the registry. (Window size/position, column settings, colors selected, etc, etc)

1) Open options to the Miscellaneous section and click the "Restore All" button.
2) If you don't plan on using this program again then delete the folder where you extracted this program to.

Note: "Restore All"  does not delete your favorites, file filter settings or the cached file icons.


Known Issues and Limitations:

1) The program is limited to monitoring 256 running executables.

2) There is no Multi-Monitor support. You may want to disable "Edge Detection" in Options (CPU Graph section).

3) You can only run one copy of PriFinitty2 at a time, starting a second copy just opens the first copy to the desktop.

4) File info tooltips from CPU graphs may not always be accurate or available (seems more common under Vista/Win7).

5) You can't change CPU affinity or Priority on protected files (i.e. Anti-Virus and Firewall type programs).


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


PriFinitty Jr.:
A light weight executable used to auto set favorites created with PriFinitty v2.x.
To launch PriFinitty Jr. from PriFinitty2 click the "boy" looking button in the top toolbar, you will then get a menu to select which favorite profile you want Jr. to use.

Start Jr. with Windows:
In PriFinitty2 StartUp options you can set PriFinitty Jr. to start with windows and select which favorite profile to apply and enable the Auto Set Enforce option for it.

Running Jr manually:
If you just launch the PriFinitty Jr.exe file then it uses the #1 favorite profile ("My Favs 1") and Auto Set Enforce is disabled.

Running Jr from a Shortcut:
If you create a shortcut for PriFinitty Jr. you can tell it what favorite profile and Enforce settings to use by adding parameters to the target area in the shortcut.

Command Line Switchs (Parameters):
/My Favs #  - Where "#" = 1 to 5.

/Enforce # - Where "#" = number of seconds to re-check favorites to make sure they are set. This may be useful for programs that change their CPU Affinity/Priority. Note The minimum is 10 seconds.

/Exit - After loading and setting favorites exit the program. (Optional, use only if you just want to set the current running files and exit Jr.)

Examples running Jr from a Shortcut: (target area in the shortcut).
Load favorite profile 2,

"C:\Prifinitty2\Prifinitty_Jr.exe" /My Favs 2

Load profile 3 and set Enforce to 15 seconds.
"C:\Prifinitty2\Prifinitty_Jr.exe" /My Favs 3 /Enforce 15

Notice: If Auto Set Enforce is enabled in PriFinitty2 and you switch to PriFinitty Jr. from PriFinitty2 then the enforce switch is applied with the enforce interval set in PriFinitty2. (see miscellaneous options in PriFinitty2 to set interval).

Notes:
PriFinitty Jr. goes into pause mode when PriFinitty2 is also running, and will auto update itself when PriFinitty2 closes using the current set profile. If you want Jr. to use a different profile then re-launch it using the "boy" looking toolbar button, this will close the current running copy of Jr. and start a new instance of Jr. with the selected profile.

Exit Jr:
Right mouse click on tray icon to open menu, click "Exit".


=================
 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

* Note: Prifinitty version 2.x is not compatible with user files from PriFinitty version 1.x.

v2.46 - Last and final updates - Unless someone reports a bug!
a. Updates to XP Button control: Repace pic control with API. Minor code change to test if UC is enabled.
b. When enabling Edge Detection in main options the Avg CPU meter will also be moved inside the desktop area.
c. There was an unused API declared in "ModMoveTimer".
d. Added "Auto Grouping" options for CPU graphs. (where "Group-#" is number of rows to place graphs).
e. Changed the API calls to initialize XP styles for controls.
f. Very minor optimizing for CPU graphs.(printing cpu % and detecting mouse over graph).
g. Organize menu items in CPU graphs.
h. After removing favorites, favorites matching selected File list items are now selected.
i. After changing icons in Favorite & Filter lists the selected items were deselected.(fixed)
j. If priority dropdown list (in main) was open it didn't auto close when user clicked on titlebar.

v2.45
* Fix: Elapsed time shown in Avg. CPU usage window was wrong if date/time was changed in Windows.
* Added option to manually refresh File list. ("R" button).
* Updated the look of the List controls column headers and scrollbars.
* Minor fix for List controls horizontal scrollbar.

v2.44
* Resizing column headers and scrolling lists (with thumb bar) is now smoother
.
* List column header highlighter on mouse over.
* Check box
highlighter on mouse over.
* Updated mouse cursor image for resizing list columns.
* Optimize code for setting up tray icon in number modes.

v2.43
* Fix: If Windows "Explorer.exe" was closed (or crashed) tray icon was not restored on Explorer restart. (Fix tested on XP only)
* Added options to copy and move favorites from one profile to another profile.
* Added option to disable tooltips over CPU graphs.
* Added option to set the default Edge Detection setting for CPU graphs.
* Added option to the Total/Avg CPU graph to toggle Edge Detection.
* Names of favorites removed when not found are now shown in the tray balloon (255 chars. max).
* Minor fix for the File list "File Info" tooltips.
* Other minor changes/tweaks.

v2.42
* Added "Always On Top" option.
* Added an option to invert the selected CPU Affinity settings for manual mode. ("I" button).
* The change favorite menu now selects the affinity options used by the selected favorites.
* Minor fix/updates for File Filter option.

v2.41
* Added option to set the Auto Set Enforce interval for Jr. when start Jr. with windows is enabled.
* Includes PriFinitty Jr. v1.05. (now shows the Auto Set Enforce setting applied).

v2.40
* Added option to set the Auto Set Enforce interval. (From 10 to 60 seconds)
* Includes PriFinitty Jr. v1.04 which also supports the Auto Set Enforce & Interval setting (see Jr Help).

v2.39
* Added option to disable window shadows and is now disabled by default. (Shadows can make GUI slow on some systems)
(Testing with an ATI 5670 and Shadows enabled made the GUI slow!)

.v2.38 -* Fix v2.35/2.36 -  An error trap responsible for catching invalid dates was disabled.

v2.37
* Fix v2.36 -
 Not all File icons shown as expected.
* Minor speedup getting filenames from process IDs.
* Favorites menu now has a Windows logo icon (removed green flag).
* Caption text for buttons now have an embossed look. (Changed back to normal in v2.43)

v2.36 -* Fix v2.35 -  Adjusting column widths of Lists.

v2.35 - * Lots of minor code and graphic optimizing.

v2.34
* Fix: The "&" character in a file name was displayed as an underscore "_" character.
* Added option to set tray icon border color when in graph mode.
* Minor updates to custom horizontal scrollbar and drop down lists.

v2.33
* Changed code for tray icon when in graph mode (uses slightly less GDI objects/ram).
* The process of setting favorites is now more efficient.
* Controls displaying text now all use the same font (Tahoma).
* Minor change to tray balloon notifications. (no icon or exit button)
(Changed back to normal in v2.42)

v2.32
* Minor fixes/Additions....
a) Sort order could be incorrect when only two items in a list.
b) After using manual set (green check) Files list now has the focus for mouse wheel and key actions.
c) Tray balloon notification is now shown when trying to run a second copy of program.

v2.31
* Fix: Icons for multiple favorites with same file name not shown. (i.e. same file name added from different folders)
* Added a tray balloon to notify when favorites are removed because their files weren't found.
* Minor fixes/code changes: a, b, c...
a) The set CPU affinity routine was recreating a static bitmask array every time it was called.
b) Removing last selected item in a list was still marked as selected (array not cleared).
c) "Start With Windows" option had unnecessary line of code.

v2.30 - * Updated setting favorites on the fly: Favorites not getting set, now retries settings.

v2.29
* Changed: When the File Filter switch is off filtered files will now be shown with a filter icon in the Files list.
* Changed: When adding favorites from the Files list their Priority setting now uses the Default setting.
* Favorite profile selections for startup now show if profile is empty. (StartUp Options)
* Toolbar buttons now ignore right and middle mouse clicks.
* Yes-No dialogs now play the sound file associated to Windows "Question" event. (Note: by default Question is not set in WinXP.)
* If a Message or Browse dialog is open from main interface mouse clicks on the tray icon will now sound a beep and set focus back to the interface.
* Minor changes to the way the program is restored to desktop from minimized state or when trying to run a second copy of the program.
* Minor graphic updates: Custom drop down list button & the look of a toolbar button in the checked state. (gradients)

v2.28 - This version had a problem and should not be used!

v2.27 - * Fix: Not all favorites seen in list after scrolling down list then maximizing window.

v2.26
* Fix: File extensions not always shown in favorites list when first enabled.
* You can now drag files from the Files list into the Favorite or Filter lists.
* Updated Favorite and PriFinitty Jr. favorite profile selection menus.
* File Filter is now enabled (if off) when adding files to the File Filter. (off by default)
* Changes made to CPU graph meters. (-Options, Fix caption flickering [Win7])
* Updates & minor fix for toolbars.

v2.25
* Added option to set favorite profile for the Start PriFinitty Jr. with Windows option.
* Added option to select favorite profile when switching to PriFinitty Jr. from PriFinitty 2.
* Update PriFinitty Jr. to v1.03. (PriFinitty v2.19 & v2.20 fixes.) Updated PriFinitty Jr Help.

v2.24 - * Fix v2.23. Some features weren't working as expected due to disabled code during debug.

v2.23
* Added option to disable the auto snap-to-desktop/Taskbar edges for CPU graphs (Edge Detection).  
* Fix: Number of process shown/running in status bar not updated.

v2.22 - * Minor update: Restoring main interface to desktop from minimized state.

v2.21
* Updates for File list refreshing (running file not seen in list, CPU usage > 100).
* Update for tray icon when in bar graph mode (tad more accurate)
* Update for File Filter (window resizing limits).

v2.20  
* Added additional code to detect programs by comparing the Process IDs. (fix for apps not detected, i.e. one program closes and one starts at the same time.)
* Changes made to code when toggling File Filter on/off.

v2.19 -  * Fix: A process handle could be left open after changing CPU affinity.

v2.18
* Added option to restore original icons for favorites ("R" option in favorites setting menu), titlebar no longer becomes inactive when menu is open.
* Text color in custom dropdown lists were hard-coded (black/white). Now uses Windows menu text colors.
* Updated "Restore All" option: Now asks if you want to restart PriFinitty 2 after clean up.
* Total/Average CPU usage graph is no longer shown by default on first usage.
* Minor speed tweak for progress bars.

v2.17
* Changes to main interface: Options now on a toolbar(top), Added toolbar for Files list options (left).
* PriFinitty Jr.: Added button to switch to PriFinitty 2.
* PriFinitty Jr.: This exe now supports two parameters, a Favorites file to load and Exit. (see PriFinitty Jr. in help)
* Other Minor changes: ToolTip code, minor speed tweak for CPU graphs.

v2.16 - * Fix (v2.15) Column width settings not restored as expected.

v2.15 -
* Fix (v2.14) Memory usage progress bar was blank for few seconds (if program was started in minimized state) when first opened to desktop.
* You can now set the column widths and splitter bar to different positions for the normal and maximized window state of the main interface.
* You are now asked if it is OK to reset the column widths/splitter bar positions in Options.

v2.14 - More graphical updates...
* Custom dropdown lists now retain their width and selection is shown at top when dropped down.
* Custom check boxes now have a thin edge look.
* Main interface now has a more gradient look.

v2.13 - * Fix (v2.12): First item in drop down list not initially highlighted on mouse move.

v2.12 -
* Minor code tweaks.........
* When adding items to Filter from Files list the icons are now destroyed. (less GDI objects loaded).
* Dragging Total/Avg CPU meter with mouse could get jerky with main interface open.
* Minimizing main interface while Options is open no longer hides the Option window.
* Less re-draws in drop down list controls when mouse is moving over items.
* Improved speed to lookup filtered file names for updating File list display.
* Updated code that does the transparency and translucency effect.
* File list and Tray menus are now created by API code.
* File Filters list is now sorted when saved to disc.
* CPU usage class for Files (minor tweak).

v2.11 -
* Fix: Dropping files on the File list or Filter list from a Windows Explorer folder added the file(s) to your favorites.
* Files dropped on the Filter list are now added to the File Filter.
* Added option to start PriFinitty Jr. with Windows.

v2.10 -
* Minor changes and updates to the List controls graphics.
(i.e. Bottom of column headers not painted when pressed, Icons and File highlighting too far left, Icons and Text in 1st column now move with horizontal scroll bar)

v2.09 -
* Fix: Attempting to run a second copy of PriFinitty2 while a message box was open caused program to crash!
* Added translucent option for CPU graphs.
* Changed: Average CPU view is now part of a new Total CPU usage graph.
* When open to desktop the program should now uses a tad less CPU usage (Files list updating).
* Lists now detect Windows color setting changes. (Item highlight and text colors).
* Interface and Graphical Updates:
  Reorganized Favorites menu, Selected list items now have a gradient look,
  Menus now have icons, Filter dialog, Option dialog, color select drop down lists,
  Changes and updates to the help file.

v2.08 -
* Fix: Parameter area for a Favorite colored red if data was a number.
* Favorites are now verified and automatically removed if the file is not found.
* Other minor updates: Restore to desktop, Tray balloon message, Avg. CPU window.

v2.07 -
* Fix: An invalid time/date could cause an overflow error, UpTime now shown as "n/a". (Files list & CPU graphs tooltip)
* Fix: If only one file shown in Files list you couldn't manually change it.
* Fix: When adding a Favorite from dialog and no file was selected the Files list stopped updating.
* When adding a Favorite from dialog the Favorites list is now re-sorted.
* If only one file in Files list: Setting Filter from on to off would de-select the file.
* Custom check boxes now only change value if mouse is still over the control on mouse up.
* Other minor changes.

v2.06 -
* Added option to Forget Positions for CPU Graphs. (CPU graph menu)
* Added option to open multiple CPU graphs from Files list. (Files list menu)
  (Removed warning message when opening a CPU graph for a file that already has a CPU graph open.)
  (If opening a CPU graph for a file that already has a graph but is hidden, it is now shown.)
* Added a down arrow to the drop down lists button.
* Updates to help file.

v2.05 -
* Updates to the Files list tooltip (from v2.0.4). Now shows filename if title n/a.
* Icon change window (from v2.0.4) in File Filter was not fully seen if open near bottom of dialog. Set sizing restrictions to dialog.
* You can now change the icons of Favorites from a small selection of images in the Favorites change menu.

v2.04 -
* Fix: Thumb bar for scrollbars in the Filter Dialog wasn't set to 3D style. (looked flat!)
* Added option to change icons for Files in the Filter Dialog. (select files and right mouse click).
* Added program title (when available) to the Files list tooltip. (now called "Show File Info in ToolTip")

v2.03 - Re-Added RealTime Priority options to manual and Favorites settings.

v2.02 - Fix: Option dialog closed when using the column width reset option and main interface was minimized.

v2.01 - The Option and Filter dialogs now stay on top of the main interface.


(c) Edgemeal Software 2010