Su windows in teoria forse si potrebbe tramite un hook leggere tutti i messaggi che la finestra riceve e filtrare il WM_CLOSEOriginariamente inviato da oregon
No
da MSDN
A hook is a point in the system message-handling mechanism where an application can install a subroutine to monitor the message traffic in the system and process certain types of messages before they reach the target window procedure.CallWndProc
An application-defined or library-defined callback function used with the SetWindowsHookEx function. The system calls this function before calling the window procedure to process a message sent to the thread.