Monitoring the launched Browser
Monitoring the launched Browser
- Subject: Monitoring the launched Browser
- From: <email@hidden>
- Date: Thu, 05 Dec 2002 14:57:59 +0000
- Organization: Coderus Ltd
Hi,
I was wondering if anybody has got a successful way to find out which
browser was launched after the following code
err = ICLaunchURL(inst, "\p", &mDialInfo->mURL[1], endSel, &startSel,
&endSel);
ICAppSpec targetSpec;
// get the preference information for the http helper
err = ICGetPref( inst, kICHelperHTTP, &icAttr, (Ptr)&targetSpec, &dataSize);
As the problem that I'm having, is that the ICAppSpec, doesn't contain
enough information to find the process if you iterate the running process's.
1) You cannot always relay on the creator code, as a user might have
multiple browsers on his system e.g. Internet Explorer 4.5, Internet
Explorer 5.0 (have the same creator code )
2) Sometimes the name in the kICHelperHTTP isn't the same as the process
name. I have seen that on a freshly installed machine. That this text can be
"Microsoft Internet Explorer" or "Internet Explorer", but the browser which
gets launched is "Internet Explorer 5.0", or "Internet Explorer 4.5". I have
tried looking for a subset of the characters but that not completely
reliable.
I have notice that there is alias named "Microsoft Internet Explorer"
within the internet folder, which I'm guessing the path it's taking to
launch the process.
So I wondering (Maybe Quinn, as a original developer of this API :-) )
could answer on exactly how ICLaunchURL is working, as I need to get to a
FSSpec or a PSN to find the actual browser which was requested to launch.
Any ideas
Mark.
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.