如何从附加组件获取 IE8 命令行参数

发布于 2024-07-28 01:32:29 字数 419 浏览 1 评论 0原文

我有 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

酒绊 2024-08-04 01:34:46

在 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文