Using SetParent to steal the main window of another process but keeping the message loops separate

ⅰ亾dé卋堺 提交于 2019-12-04 11:57:39

I've done this before. It gets messy.

We were running every plugin in its own AppDomain, which started up its own UI thread. We did this after running into lots of really nasty issues when we didn't use different UI threads.

It does mean that you have all the pain of communicating across AppDomains, but it's feasible. The main thing is that you'll need to run Application.Run in each AppDomain/plugin. Communicate between them with a huge amount of care - even shutting down is tricky.

Good luck :)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!