private void onWindowDestroyed(WindowHookEventArgs aArgs) { if (null != InnerWindowDestroyed) { InnerWindowDestroyed(this, aArgs); } }
private bool EnumWindowsProc(IntPtr hWnd, int lParam) { WindowHookEventArgs tArgument = new WindowHookEventArgs(); tArgument.Handle = hWnd; tArgument.WindowTitle = GetWindowText(hWnd); tArgument.WindowClass = GetClassName(hWnd); iNewWindowList.Add(tArgument.Handle, tArgument); return(true); }