public ProcessLogic() { CachedProcesses = new SyncProcessCache(); _winEventProc = new Native.WinEventDelegate(WinEventProc); GC.KeepAlive(_winEventProc); taskbarList = new TaskbarList.TaskbarList(); taskbarList.HrInit(); }
private ProcessMonitor() { _winEventProc = new Native.WinEventDelegate(WinEventProc); GC.KeepAlive(_winEventProc); }