I am trying to embed QEMU into Panel in .NET 4.5.
...and I found Application panel example, which is using the WinAPI SetParent function.
Great, but how to get QEMU window's handle, or generate it?
I looked at (maybe discontinued?) QEMU Manager, and I found, that the Manager is executing the QEMU emulator with -hwnd parameter, and passing number (maybe int pointer?) after it.
I tried using Process.MainWindowHandle as window handle, and waiting for it with WaitForInputHandle() function, but I got exception, since QEMU is console app...
So, final question is: How to get/generate window handle of QEMU window?
...please keep in mind, that I need multiple instances of QEMU.
Thanks for any help,
Vít "VitekST" Staniček
in VB:
Use: