The application tells LHAPI that it is switching out. This sends a DEACTIVATE message to all the applications open windows. Note: If you DeactivateLHAPI and LHAPI doesn't think you are the current application, you are likely to lock up. See the note underneath UninitializeLHAPI.