02-08-2023, 07:40 PM
(This post was last modified: 02-08-2023, 07:41 PM by SpriggsySpriggs.)
When you catch the _EXIT, you can check how they were trying to close it and then use SYSTEM to close. Looking at theĀ Wiki page on _EXIT, the function returns what method the user was using to attemptĀ to close the program. If they pressed the X, you can just ignore it. If you wanted it to close on CTRL + BREAK, like in the example, you could then use SYSTEM when the return value matches.
Tread on those who tread on you