Is there limitations – in which threads) must be (1) created window (RegisterClassEx, CreateWindowExW) and (2) performed messages processing loop ?:
MSG msg = { 0 };
while (GetMessage(&msg, 0, 0, 0)) {
TranslateMessage(&msg);
DispatchMessage(&msg);
}
In my implementation (1) is called from the main thread, (2) is called from the new thread, specially created to get window messages. This is console application, so I need to manually create the new window to get window messages of certain type (messages from DirectShow; not for GUI) (Win10, VS 2022).