I have Dos program that detects Microsoft WINDOWS in order to make processor pauses. But this program access the modem in oder to wait for calls. If it is left running and you switch to say Procomm to callout it will take away teh access to COM 2 from my app. What I would liek to know is: is it possible for a DOS app to detect when one uses Alt-TAB in windows? This is in order to tell the program to re-initialize its access to the modem and regain control over it.