public static ControlProxy add_ControlProxy(this TreeNode treeNode, Process process) { if (treeNode.notNull() && process.notNull()) { var controlProxy = process.get_ControlProxy_for_MainWindowHandle(); if (controlProxy.notNull()) treeNode.add_Node(controlProxy); //treeNode.Tag = } return null; }
public static TreeView add_ControlProxies_for_Process(this TreeView treeView, Process process) { treeView.clear(); if (process.isProcessHooked()) { treeView.green(); var controlProxy =process.get_ControlProxy_for_MainWindowHandle(); if (controlProxy.notNull()) treeView.add_Node(controlProxy) .addChildControlProxies(controlProxy); } else { treeView.add_Node("INFO: Process not Hooked"); treeView.pink(); } return treeView; }