It seems not everything can be solved by normal windows api.
Like WaitForInputIdle(), even it works well. Like while()-slee() insead. There is still a problem there.
After I got the handle to window class of the new child process's thread's window.
When I move the child process 's window, it can cause dead-lock with some unclear reason.
Because I don't know the routine of the child process window's initiation.
The parent process operating on SetWindowLong(m_hWndChild, ... ) caused the child gui program into dead-lock state
in some sistuations, not always.
I should really hijack api.
本文探讨了使用标准 Windows API 进程间通信时遇到的问题,特别是关于 WaitForInputIdle 的局限性和死锁现象。作者在尝试操作子进程窗口时遇到了未预期的行为,并详细记录了导致死锁的情况。
7130

被折叠的 条评论
为什么被折叠?



