Does Lazarus can handle windows messages ? I think about feature request for detect shut down windows. Lazarus should handle WM_QUERYENDSESSION or WM_ENDSESSION when Windows shuts down and ask for save project files. Such a non cross-platform feature is possible at all ? best regards tomek