[Windows] Processing system messages
Posted: Mon Feb 22, 2016 10:38 am
My app works without GUI.
But sometimes I need to process some system events, for example, WM_QUERYENDSESSION:
But for processing system events, I need to create invisible window and process them in window main loop WaitWindowEvent()
Can I make processing of events without invisible window?
But sometimes I need to process some system events, for example, WM_QUERYENDSESSION:
Code: Select all
Procedure WinCallback(hWnd, uMsg, wParam, lParam)
If uMsg = #WM_QUERYENDSESSION
...Some code...
EndIf
ProcedureReturn #PB_ProcessPureBasicEvents
EndProcedureCan I make processing of events without invisible window?