What API call do I need to make to force another EXE to have focus. For exapmle in program A, when I double click an item in a listview, I want program B to become the active window.

I understand I must first check to see if program B is loaded and all that good stuff.