mirror of
https://github.com/mirror/processhacker
synced 2026-06-08 16:03:24 +00:00
* updated CHANGELOG.txt and Help.htm
* settings are now stored in AppData\Roaming\Process Hacker git-svn-id: svn://svn.code.sf.net/p/processhacker/code@2206 21ef857c-d57f-4fe0-8362-d861dc6d29cd
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
Process Hacker
|
||||
|
||||
1.7
|
||||
* NEW/IMPROVED:
|
||||
* New settings system - settings can now be saved anywhere
|
||||
|
||||
1.6
|
||||
* NEW/IMPROVED:
|
||||
* #2817429 - "Add Port and IP Address columns to Network tab"
|
||||
|
||||
@@ -31,10 +31,8 @@ pre {
|
||||
<li>.NET Framework 2.0</li>
|
||||
</ul>
|
||||
|
||||
<h2>Configuration Files</h2>
|
||||
<p>On Windows Vista, the configuration files for Process Hacker are stored in
|
||||
<code>AppData\Local\wj32</code>. On Windows XP, they are stored in
|
||||
<code>Local Settings\Application Data\wj32</code>.</p>
|
||||
<h2>Configuration File</h2>
|
||||
<p>The settings file for Process Hacker is stored in: <code>[Roaming Application Data]\Process Hacker</code>.</p>
|
||||
|
||||
<h2>Command Line Options</h2>
|
||||
<dl>
|
||||
@@ -55,6 +53,8 @@ pre {
|
||||
<dd>Starts Process Hacker hidden, regardless of any settings.</dd>
|
||||
<dt>-nokph</dt>
|
||||
<dd>Disables KProcessHacker.</dd>
|
||||
<dt>-nosettings</dt>
|
||||
<dd>Uses defaults for all settings and does not attempt to load or save any settings.</dd>
|
||||
<dt>-o [-hwnd hWnd] [-rect x,y,width,height]</dt>
|
||||
<dd>Opens Process Hacker options without the main window. Note that the width and height parts of
|
||||
the rectangle parameter are ignored.</dd>
|
||||
@@ -62,6 +62,8 @@ pre {
|
||||
<dd>Opens process properties for the specified process without the main window.</dd>
|
||||
<dt>-pt pid</dt>
|
||||
<dd>Opens token properties for the token of the specified process without the main window.</dd>
|
||||
<dt>-settings filename</dt>
|
||||
<dd>Uses the specified file name as the settings file.</dd>
|
||||
<dt>-t tab</dt>
|
||||
<dd>Opens the specified tab at startup. Use 0 for Processes, 1 for Services and 2 for Network.</dd>
|
||||
<dt>-uninstallkph</dt>
|
||||
|
||||
@@ -288,9 +288,11 @@ namespace ProcessHacker
|
||||
"-ip pid\tDisplays the main window, then properties for the specified process.\n" +
|
||||
"-m\tStarts Process Hacker hidden.\n" +
|
||||
"-nokph\tDisables KProcessHacker. Use this if you encounter BSODs.\n" +
|
||||
"-nosettings\tUses defaults for all settings and does not attempt to load or save any settings.\n" +
|
||||
"-o\tShows Options.\n" +
|
||||
"-pw pid\tDisplays properties for the specified process.\n" +
|
||||
"-pt pid\tDisplays properties for the specified process' token.\n" +
|
||||
"-settings filename\tUses the specified file name as the settings file.\n" +
|
||||
"-t n\tShows the specified tab. 0 is Processes, 1 is Services and 2 is Network.\n" +
|
||||
"-uninstallkph\tUninstalls the KProcessHacker service.\n" +
|
||||
"-v\tStarts Process Hacker visible.\n" +
|
||||
@@ -321,7 +323,39 @@ namespace ProcessHacker
|
||||
}
|
||||
|
||||
if (settingsFileName == null)
|
||||
settingsFileName = Application.StartupPath + "\\settings.xml";
|
||||
{
|
||||
bool success = true;
|
||||
string appData = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
|
||||
|
||||
try
|
||||
{
|
||||
if (!System.IO.Directory.Exists(appData + @"\Process Hacker"))
|
||||
{
|
||||
System.IO.Directory.CreateDirectory(appData + @"\Process Hacker");
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
PhUtils.ShowException("Unable to create the settings directory", ex);
|
||||
success = false;
|
||||
}
|
||||
|
||||
if (success)
|
||||
{
|
||||
settingsFileName = appData + @"\Process Hacker\settings.xml";
|
||||
}
|
||||
else
|
||||
{
|
||||
settingsFileName = null;
|
||||
}
|
||||
}
|
||||
|
||||
// Make sure we have an absolute path so we don't run into problems
|
||||
// when saving.
|
||||
if (settingsFileName != null)
|
||||
{
|
||||
settingsFileName = System.IO.Path.GetFullPath(settingsFileName);
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
@@ -329,8 +363,7 @@ namespace ProcessHacker
|
||||
}
|
||||
catch
|
||||
{
|
||||
// Settings file is probably corrupt. Delete the settings file
|
||||
// with confirmation from the user.
|
||||
// Settings file is probably corrupt. Ask the user.
|
||||
|
||||
try { ThemingScope.Activate(); }
|
||||
catch { }
|
||||
|
||||
Reference in New Issue
Block a user