Hello,

just a short question this time. When a program runs on different computers and it needs to open an iexplore window (inetbrowser) or better said to create a process, how to find the path to it? I don't think searching up the whole harddisk is not the answer.

Greetings,

EiSoDuR:cool:
Posted on 2002-07-05 03:10:59 by eisodur
i think you can simply "ShellExecute" the "iexplore" command.
or you could look up some registry keys but i would use the way
above.
Posted on 2002-07-05 03:56:32 by mob
can you give a example?
what to fill in at parameter lpDirectory? Can this be null?
Posted on 2002-07-05 04:37:48 by eisodur
Actually, I think you can just shellexecute a internet address directly. Much kinder to mozilla users.
Posted on 2002-07-05 05:04:55 by Qweerdy
Thank you all,

shellexecute seems to work
createprocess seems to work to

But the 2nd problem is to get info about the iexplore process,
because i want to quit my program (webserver) whenever someone closes the internetexplorer window

The only thing i can think of is to write a sort of timer that checks
every second if the iexplore.exe is still active and if not then terminate.
Posted on 2002-07-05 06:24:56 by eisodur
I think you need WaitForSingleObjectEx for that.. but I never used it before :|
Posted on 2002-07-05 06:59:27 by Hiroshimator
i'm using WaitForSingleObject but the problem is i can't get the correct handle of iexplore.

if i shellexecute i get the instance handle (not correct) in eax

if i create process i get the handle of explorer.exe not iexplore.exe
because i don't know to createprocess with iexplore.exe don't know path or file is not found error

it works only when you createprocess with the correct path to iexplore.exe but that is gambling because some users/computers have maybe a different path to iexplore installed
Posted on 2002-07-05 08:04:02 by eisodur
If you want the handle of the window you could use FindWindow (I'm at work so I can't get anymore specific(need the docs) That's what I used to find the handle of an open mediaplayer window from my own program( the first steps to using an ir remote control to control multimedia appications).
Check the helpfiles for more info...

you can find the path to internet explorer in the registry :
path: HKLM\Software\Microsoft\IE Setup\
key :Path
Posted on 2002-07-05 08:56:45 by MArtial_Code
There are also stuff to get a html page to display in your own program's window, you should be able to find some info by searching msdn for WebBrowser Control.
Posted on 2002-07-05 13:29:29 by _js_