====== QUERYEND property (System) ====== ==== Description ==== Specifies if the Presentation Server is processing a WM_QUERYENDSESSION message. When a user decides to end their Windows session all running applications are sent a WM_QUERYENDSESSION message – this is to determine if any of them need to ask the user if it is appropriate to close down (i.e. it allows the chance to save data). The Presentation Server responds to this message by sending each form a CLOSE event (which will trigger save-warning messages), but when this property is set the form is not actually closed - if the end session attempt is aborted for some reason this means that the state of the application is still preserved. ==== Property Value ==== This is a boolean value that returns TRUE$ if the system is processing a WM_QUERYENDSESSION message, or FALSE$ otherwise. ==== Property Traits ==== ^Development^Runtime^Indexed^Scaled^Synthetic^ |N/A|Get|No|No|No| ==== Remarks ==== This property is set based on the receipt of a WM_QUERYENDSESSION Windows message, so please refer to the documentation on the Microsoft website for further information on this. ==== Example ==== IsEndSession = Get_Property( "SYSTEM", "QUERYEND" ) ==== See Also ==== WINDOW CLOSE event.