I'm trying to intercept the signal when a user clicks the [X] button to exit the program. I'm almost positive there's an API function that does that somewhere but i'm unable to find it. Does anyone happen to know what it is?
Well...I hate to say it but most of that made no sense to me haha. The Windows API tends to stump me. Is there a short, simple example you could give maybe that's a little more clear than the ones on those sites?