if you're trying to add a ui to your windbg extension, you'll need a thread to block the extension command (guard it w/ an event) and then you'll need to process a messagepump in your thread. register your window class on thread entry and unregister on its exit. windbgmicrosoftdebuggingwindowsuigui
windbg microsoft debugging windows ui gui