How to get IE8 command line arguments from add-on

add-incommand lineinternet-explorer-8

I have IE8 add-on that needs to know command line arguments specified by user.

The problem is that real processes have command lines:

c:\program files\Internet Explorer\iexplore.exe SCODEF:5740 CREDAT:79873
c:\program files\Internet Explorer\iexplore.exe SCODEF:5740 CREDAT:79880

instead of

c:\program files\Internet Explorer\iexplore.exe www.yahoo.com
c:\program files\Internet Explorer\iexplore.exe www.google.com

So how can I get real arguments from add-on?

Best Answer

In IE8, you cannot easily do this. The command line arguments are sent to the LCIE Frame process, and only the LCIE process information is passed to the LCIE Tab process. Any command line data is passed as flags to the tab process using shared memory.

To do what you ask, you'd need to look at the SCODEF command line parameter to find the process identifier of the hosting LCIE Frame process, then examine the command line of THAT process.

It might be helpful to understand why you want to do this at all.