You could store your exit value into a global variable and then
have OnEnd( ) call a custom function that simply returns that global variable.
Not sure if that'd actually return the value to the OS though.
have OnEnd( ) call a custom function that simply returns that global variable.
Not sure if that'd actually return the value to the OS though.