virtual int ExitInstance();
Override this function to clean up when your application terminates.
ExitInstance is called by the default Run member function.
The application's exit code, where 0 indicates no errors and values greater than 0 indicate an error. This value is used as the return value from WinMain.