On Wed Dec 7 13:44:09 2022 +0000, Jacek Caban wrote:
Note that CreateWindow sends messages and hooks, so a wrong instance is already visible there. I think we could just pass explicitly "client_instance" NtUserCreateWindowEx parameter (possibly replacing cbtc with just HINSTANCE parameter).
Yeah, I considered that, but at least the applications from the bug reports seemed to work without it, and it was the least intrusive way I could think of.
I pushed your suggestion.