Greetinx!
If you defines your main form with SYSTEMMODAL flag, so that form has only always focus and any other app can not be either executed or switched to before your form will be closed.
For more information to how to make a form as SYSTEMMODAL see MSDK. See topic 'CreateWindow at DS_SYSMODAL style description, or topic 'SetSysModalWindow'.
Happy programming!))