how to stop Alt-F4 from closing the game

Is it possible to stop Alt-F4 from closing the game and show a menu window asking the player if he wants to exit?

The same goes for window-cross (which we can click to close the game) - is it possible to disable it in standalone build?

Thanks!

theoretically through handling OnApplicationQuit and cancelquit

thanks!