コード例 #1
0
        private void W2()
        {
            WindowHandle.Enumerate(window =>
            {
                if (window.ClientId.ProcessId == _pid)
                {
                    window.PostMessage(WindowMessage.Quit, 0, 0);
                }

                return(true);
            });
        }
コード例 #2
0
        private void W1()
        {
            WindowHandle.Enumerate((window) =>
            {
                if (window.GetClientId().ProcessId == _pid)
                {
                    window.PostMessage(WindowMessage.Destroy, 0, 0);
                }

                return(true);
            });
        }