Can anyone tell me how to identify a particular background process (i.e., Already running application) and bring to foreground? For example, if a Notepad application is running in the background, when I run my WIN32 application, it should identify the Notepad application and notepad should pop up or come to foreground.
I tried SwitchToThisWindow() function, but it works like Alt+tab. It will not identify the background process.
Pls suggest me walkthrough guide for this..
Thank you..
That’s a Unix shell notion, Windows doesn’t have it. Right now I’ve got 10 “background” processes that have created windows that are not in the foreground, another good 50 or so that have not. None of them are THE background process, they are all equally backgroundish. You normally click the taskbar button for a window or press Alt+Tab to switch one of them to the foreground. Or call SetForegroundWindow() in code.