## win32.c HWND win32_create_message_window() { /* "message-only" windows have been implemented in Windows 2000 and later. * On earlier versions we'll continue to post messages to a specific * thread and use hwnd==NULL. This is brittle when either an embedding * application or an XS module is also posting messages to hwnd=NULL * because once removed from the queue they cannot be delivered to the * "right" place with DispatchMessage() anymore, as there is no WindowProc * if there is no window handle. */ if (!IsWin2000()) return NULL; return CreateWindow("Static", "", 0, 0, 0, 0, 0, HWND_MESSAGE, 0, 0, NULL); }