public static TreeView add_ProcessModules(this TreeView treeView, Process process) { treeView.clear(); if (process.doWeHaveAccess()) treeView.add_Nodes(process.Modules.toList<ProcessModule>().Select((m)=>m.ModuleName)) .white(); else treeView.pink().add_Node("No Access to Process modules"); return treeView; }
public static TreeNode showVisualClueWhenProcessIsHooked(this TreeNode treeNode, Process process) { if (process.doWeHaveAccess() && process.processHasModule("ManagedSpyLib.dll")) { treeNode.set_Text(treeNode.get_Text() + " [Hooked]"); treeNode.color(Color.DarkGreen); } else treeNode.color(Color.DarkRed); return treeNode; }