I'm creating a NativeWindow subclass ('MyNativeWindow') in order to use its message pump to communicate with some old DLL. My code runs inside a WinForms application, but I'd like to keep the DLL and it's message processing outside the scope of the GUI.
When creating MyNativeWindow from the application context (just before creating my application's main form), everything works - the NativeWindow's WndProc is called and events are processed. However, when I use a thread to initialize MyNativeWindow it seems the message pump won't run.
Is there any limitation on the creation of NativeWindow?