Help is appreciated
Dov
1) CreateToolHelp32Snapshot(...)/Process32First/Process32Next. Using which
you would get the list of the processes
Store it in a map<DWORD , string>, processid mapping to Process
executeable.
2) EnumWindows(...) and in the callback proceedure when you get the top
level window
handles, you should do GetWindowThreadProcessid(...) in your callback with
the HWND.
Then you should use the ProcessId to lookup in the map to see if the process
name matches Photoshop.exe[
if that is the name of the executeable]
3) Once your comparison suceeds, you should do SetForegroundWindow(hWnd) ,
hWnd is the
window handle for which your comparison in step (2) suceeeded. This will
bring your photoshop app
to the front.
--
Vipin Aravind
Microsoft - MVP
"Dov Aharonson" <d...@keyscan.com> wrote in message
news:uy3ugWCH...@TK2MSFTNGP14.phx.gbl...
The application I wish to activate (Photoshop in this case) is not running I
need to start it running. So as I said there is no window or process to look
for, we may assume that I do know the path to the application executable or
its relevant entry in the registry where I can get the path.
I hope this one is as easy as your last answere.
Thanks for the help
Dov
"Vipin" <Vi...@nospam.com> wrote in message
news:%23VNum5D...@TK2MSFTNGP10.phx.gbl...