如何从附加组件获取 IE8 命令行参数
我有 IE8 插件,需要知道用户指定的命令行参数。
问题是真实的进程有命令行:
c:\program files\Internet Explorer\iexplore.exe SCODEF:5740 CREDAT:79873
c:\program files\Internet Explorer\iexplore.exe SCODEF:5740 CREDAT:79880
而不是
c:\program files\Internet Explorer\iexplore.exe www.yahoo.com
c:\program files\Internet Explorer\iexplore.exe www.google.com
那么我如何从附加组件中获取真实的参数?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 IE8 中,你不能轻易做到这一点。 命令行参数被发送到 LCIE Frame 进程,并且仅 LCIE 进程信息被传递到 LCIE Tab 进程。 任何命令行数据都作为标志传递到使用共享内存的选项卡进程。
要执行您要求的操作,您需要查看 SCODEF 命令行参数以查找托管 LCIE 帧进程的进程标识符,然后检查该进程的命令行。
了解您为什么要这样做可能会有所帮助。
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.