Re: [Dev-C++] Detecting running applications
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Jason H. <jas...@bt...> - 2001-11-17 14:09:26
|
I admit that I have no real knowledge of doing that, but I think I have found some information in the Win32 Reference that would be a good place to start. If you haven't already downloaded it then I recomend you do - there's a link at the Dev-C++ resource site. Look up the function Process32First(). That entry contains links to the other functions you need with it to obtain information about the currently running processes. To focus a particular window then you will want SetForegroundWindow() most likely, although you will need to find out the handle of the window you want to focus. I think possibly that 'th32ProcessID', which you get with Process32First() and related functions, is a valid handle that can be used, although you should check that. Remember that one program will probably have more than one process associated with it. I imagine that to find the tray icons you will need to go through the Processes and find which are set to be in the tray, which I don't know how you do in the first place. I know that you still have a lot of work from there, but at least it's a start. There may be an easier way of doing these things of course. Please tell me if any of this helps. It looks like an interesting thing to try out. Jason. ----- Original Message ----- From: "dx FX" <vin...@ed...> To: "Dev-C++ mailing list" <dev...@li...> Sent: Sunday, November 18, 2001 3:27 AM Subject: [Dev-C++] Detecting running applications > How do I get the names and handles of the programs/applications currently running and how do I turn Focus to them? also, how do I detect, and get the tray icons on the system tray? > > __________________________________ > www.edsamail.com > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |