diff --git a/GUIs.ClipboardWatcher/ProfileFilter.vb b/GUIs.ClipboardWatcher/ProfileFilter.vb index b7616445..10769e3e 100644 --- a/GUIs.ClipboardWatcher/ProfileFilter.vb +++ b/GUIs.ClipboardWatcher/ProfileFilter.vb @@ -33,6 +33,8 @@ Public Class ProfileFilter Public Const ERROR_EXECUTING_COUNT_SQL_FOR_DATA_SEARCH = "ERROR_EXECUTING_COUNT_SQL_FOR_DATA_SEARCH" Public Const ERROR_EXECUTING_COUNT_SQL_FOR_DOC_SEARCH = "ERROR_EXECUTING_COUNT_SQL_FOR_DOC_SEARCH" + Public Const PROCESS_NAME_CATCHALL = "_CATCHALL_" + Public ReadOnly Property Profiles As List(Of ProfileData) Get Return _Profiles @@ -122,6 +124,12 @@ Public Class ProfileFilter End If Dim oIsMatch = oProcess.ProcessName.ToLower = ProcessName.ToLower + + ' Catch-all processname + If oProcess.ProcessName.ToLower = PROCESS_NAME_CATCHALL.ToLower Then + oIsMatch = True + End If + Dim oParent = _ProfileMatch.FindNodeByTag(_TreeView.Nodes, oProfile.Name & "-REGEX") If oParent IsNot Nothing Then Dim oNode = _ProfileMatch.NewProcessNode(oProfile, oProcess, oIsMatch) @@ -135,7 +143,6 @@ Public Class ProfileFilter oFilteredProfiles.Add(oProfile) _Logger.Info("FilterProfilesByProcess: Profile {0} matched!", oProfile.Name) - oProfile.MatchedProcessID = oProcess.Guid oProcess.IsMatched = True oProcesses.Add(oProcess) oProfile.IsMatched = True