Hi, a while ago I started learning Windows Programming from a tutorial on the Microsoft website, and I learnt that you can call a message box from WM_CLOSE asking whether you want to close it or not.
I also found out that you can ignore it based on which button on the message box the user clicks and that returning 0 will make the OS ignore the message and not close the window.
So, my question is this: If I was to directly return 0 without checking for a response from Message box, would the program run forever?
For obvious reasons, I am not trying this out. Any help would be appreciated. Thank you!
PS: This is the link to the tutrial: Closing the Window (Windows)