Make track wow
This commit is contained in:
@@ -8,8 +8,8 @@ namespace EveOPreview.Services.Implementation
|
||||
sealed class ProcessMonitor : IProcessMonitor
|
||||
{
|
||||
#region Private constants
|
||||
private const string DEFAULT_PROCESS_NAME = "ExeFile";
|
||||
private const string CURRENT_PROCESS_NAME = "EVE-O-Preview";
|
||||
private const string DEFAULT_PROCESS_NAME = "Uwow-64";
|
||||
private const string CURRENT_PROCESS_NAME = "EVE-O Preview";
|
||||
#endregion
|
||||
|
||||
#region Private fields
|
||||
@@ -91,7 +91,8 @@ namespace EveOPreview.Services.Implementation
|
||||
continue; // No need to monitor non-visual processes
|
||||
}
|
||||
|
||||
string mainWindowTitle = process.MainWindowTitle;
|
||||
// Append PID to the window title to make it unique
|
||||
string mainWindowTitle = $"{process.MainWindowTitle} (PID: {process.Id})";
|
||||
this._processCache.TryGetValue(mainWindowHandle, out string cachedTitle);
|
||||
|
||||
if (cachedTitle == null)
|
||||
|
Reference in New Issue
Block a user