Drain all currently queued Win32 messages on the calling STA thread (PeekMessageW + TranslateMessage + DispatchMessageW). Re-entrant safe.
PeekMessageW
TranslateMessage
DispatchMessageW
Useful when hosting WinUI 3 (Microsoft.UI.Xaml) or AppWindow on a Node.js STA thread alongside the libuv event loop.
Microsoft.UI.Xaml
AppWindow
Drain all currently queued Win32 messages on the calling STA thread (
PeekMessageW+TranslateMessage+DispatchMessageW). Re-entrant safe.Useful when hosting WinUI 3 (
Microsoft.UI.Xaml) orAppWindowon a Node.js STA thread alongside the libuv event loop.