private void W2() { WindowHandle.Enumerate(window => { if (window.ClientId.ProcessId == _pid) { window.PostMessage(WindowMessage.Quit, 0, 0); } return(true); }); }
private void W1() { WindowHandle.Enumerate((window) => { if (window.GetClientId().ProcessId == _pid) { window.PostMessage(WindowMessage.Destroy, 0, 0); } return(true); }); }