<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh">
	<id>https://arolstar52-zhtest.hf.space/index.php?action=history&amp;feed=atom&amp;title=ActiveX</id>
	<title>ActiveX - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://arolstar52-zhtest.hf.space/index.php?action=history&amp;feed=atom&amp;title=ActiveX"/>
	<link rel="alternate" type="text/html" href="https://arolstar52-zhtest.hf.space/index.php?title=ActiveX&amp;action=history"/>
	<updated>2026-07-13T01:46:55Z</updated>
	<subtitle>在这个wiki上该页的修订历史</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://arolstar52-zhtest.hf.space/index.php?title=ActiveX&amp;diff=28030&amp;oldid=prev</id>
		<title>imported&gt;Upojzsb：​使用DisamAssist清理消歧义链接：OLE（链接至对象链接与嵌入）。</title>
		<link rel="alternate" type="text/html" href="https://arolstar52-zhtest.hf.space/index.php?title=ActiveX&amp;diff=28030&amp;oldid=prev"/>
		<updated>2026-05-18T16:13:49Z</updated>

		<summary type="html">&lt;p&gt;使用&lt;a href=&quot;/index.php?title=User:%E6%9A%81%E6%9C%88%E5%87%9B%E5%A5%88/DisamAssist&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User:暁月凛奈/DisamAssist（页面不存在）&quot;&gt;DisamAssist&lt;/a&gt;清理&lt;a href=&quot;https://en.wikipedia.org/wiki/%E6%B6%88%E6%AD%A7%E4%B9%89&quot; class=&quot;extiw&quot; title=&quot;wikipedia:消歧义&quot;&gt;消歧义&lt;/a&gt;链接：&lt;a href=&quot;/wiki/OLE&quot; title=&quot;OLE&quot;&gt;OLE&lt;/a&gt;（链接至&lt;a href=&quot;/wiki/%E5%AF%B9%E8%B1%A1%E9%93%BE%E6%8E%A5%E4%B8%8E%E5%B5%8C%E5%85%A5&quot; title=&quot;对象链接与嵌入&quot;&gt;对象链接与嵌入&lt;/a&gt;）。&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{expert|time=2013-08-15T12:43:49+00:00|subject=軟件}}&lt;br /&gt;
{{noteTA&lt;br /&gt;
|G1=IT&lt;br /&gt;
|G2=Windows&lt;br /&gt;
|1=zh-hans:对象链接与嵌入;zh-hant:物件連結與嵌入;&lt;br /&gt;
|2=zh-hans:对象;zh-hant:物件;&lt;br /&gt;
|3=zh-hans:链接;zh-hant:連結;&lt;br /&gt;
}}&lt;br /&gt;
{{Infobox software|logo = File:ActiveX logo.png|title = ActiveX|website = {{URL|microsoft.com/com/tech/activex.asp}}|developer = [[Microsoft]]|author = [[Microsoft]]|logo_size = 120px|released = {{Start date and age|1996}}}}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;ActiveX&amp;#039;&amp;#039;&amp;#039;在广义上是指[[微软公司]]的整个[[COM]]架构，但是现在通常用来称呼基于标准COM接口来实现[[对象链接与嵌入]]（OLE）的ActiveX[[控件]]。&amp;lt;ref&amp;gt;{{Cite web |url=https://msdn.microsoft.com/en-us/library/aa751972%28VS.85%29.aspx |title=Introduction to ActiveX Controls |accessdate=2013-08-15 |archive-date=2013-09-27 |archive-url=https://web.archive.org/web/20130927214738/http://msdn.microsoft.com/en-us/library/aa751972(VS.85).aspx |dead-url=no }}&amp;lt;/ref&amp;gt;后者是指从[[VBX]]发展而来的，面向微软的[[Internet Explorer]]技术而设计的以[[OCX]]为扩展名的[[对象链接与嵌入|OLE]]控件。通过定义容器和组件之间的接口规范，如果编写了一个遵循规范的控件，那么可以很方便地在多种容器中使用而不用修改控件的代码。同样，通过实现标准接口调用，一个遵循规范的容器可以很容易地嵌入任何遵循规范的控件。由于OLE在ActiveX控件中的应用的普及，现在OLE技术中-{只}-有少数独立于ActiveX技术，例如[[复合文档]]。&lt;br /&gt;
&lt;br /&gt;
==簡介==&lt;br /&gt;
一些[[浏览器]]，例如[[Internet Explorer]]、[[Google Chrome]]、[[網景 (瀏覽器)|网景浏览器]]等等现在或曾经都在不同程度上支援ActiveX控件。这允许网页通过脚本和控件交互产生更加丰富的效果，同时也带来一些安全性的问题。Internet Explorer和一些其他应用程序同时支援ActiveX Documents接口规范，允许在一个应用程序中嵌入另一个支持这个规范的应用程序。很多应用软件，例如微软的[[Microsoft Office]]系列和[[Adobe]]的[[Acrobat Reader]]都实现了这个规范。&lt;br /&gt;
&lt;br /&gt;
服务器端ActiveX组件通常是指运行在服务进程中的组件。一个典型应用是在[[網際網路資訊服務|IIS]]中运行的[[Active Server Pages|ASP]]脚本创建的[[ActiveX Data Objects]]，也称ADO。&lt;br /&gt;
市场上有很多开发工具支援开发和使用ActiveX控件。&lt;br /&gt;
&lt;br /&gt;
ActiveX Documents泛指一般採用ActiveX技術作為接口所使用的文件，最早始於2000年左右，當時由於網際網路的興起，當時的軟體巨擘微軟为打敗當時崛起的瀏覽器Netscape所使出策略，當時市場處於弱勢的IE想要將當時微軟市佔率最高的office文件應用於IE上，好打敗Netscape，故使出讓IE瀏覽器不需將Office的文件轉換成標準的HTML網頁也能讀取甚至修改編輯，因此2000後的IE均提供直接開啟ActiveX Documents（如.doc.ppt...等副檔名）之文件，這項策略果然在數年後，將Netscape完全逐出市場。而由於Office的文件只有微軟能解讀，因此後來的瀏覽器如Google的Chrome就不能直接打開如PPT或DOC等檔案，不過隨著[[雲端運算]]的興起，相信這情況將會改變。&lt;br /&gt;
&lt;br /&gt;
==運作原理==&lt;br /&gt;
;使用ActiveX元件&lt;br /&gt;
#每一個ActiveX元件都各自用一個唯一的[[GUID]]編碼在登錄資訊的&amp;lt;code&amp;gt;HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\&amp;lt;/code&amp;gt;&amp;lt;ref&amp;gt;{{Cite web |url=http://msdn.microsoft.com/en-us/library/windows/desktop/ms691424.aspx |title=CLSID Key |accessdate=2013-08-16 |archive-date=2013-09-21 |archive-url=https://web.archive.org/web/20130921023904/http://msdn.microsoft.com/en-us/library/windows/desktop/ms691424.aspx |dead-url=no }}&amp;lt;/ref&amp;gt;與&amp;lt;code&amp;gt;HKEY_CLASSES_ROOT\CLSID\&amp;lt;/code&amp;gt;之處註冊其DLL檔案路徑。多個ActiveX元件可以放在同一個dll檔案內，但是所有開放使用的ActiveX元件都必須以各自的GUID編號登記在登錄資訊裡。&lt;br /&gt;
#當該ActiveX元件的dll檔，使用LoadLibrary&amp;lt;ref&amp;gt;{{Cite web |url=https://msdn.microsoft.com/library/ms684175.aspx |title=LoadLibrary function |accessdate=2013-08-16 |archive-date=2016-06-14 |archive-url=https://web.archive.org/web/20160614074315/https://msdn.microsoft.com/library/ms684175.aspx |dead-url=no }}&amp;lt;/ref&amp;gt;或LoadLibraryEx&amp;lt;ref&amp;gt;{{Cite web |url=http://msdn.microsoft.com/en-us/library/ms684179.aspx |title=LoadLibraryEx function |accessdate=2013-08-16 |archive-date=2013-07-22 |archive-url=https://web.archive.org/web/20130722044704/http://msdn.microsoft.com/en-us/library/ms684179.aspx |dead-url=no }}&amp;lt;/ref&amp;gt;的API載入後，以GetProcAddress&amp;lt;ref&amp;gt;{{Cite web |url=http://msdn.microsoft.com/en-us/library/ms683212.aspx |title=GetProcAddress function |accessdate=2013-08-16 |archive-date=2013-07-31 |archive-url=https://web.archive.org/web/20130731075325/http://msdn.microsoft.com/en-us/library/ms683212.aspx |dead-url=no }}&amp;lt;/ref&amp;gt;取得DllGetClassObject&amp;lt;ref&amp;gt;{{Cite web |url=http://msdn.microsoft.com/en-us/library/windows/desktop/ms680760.aspx |title=DllGetClassObject entry point |accessdate=2013-08-16 |archive-date=2013-10-18 |archive-url=https://web.archive.org/web/20131018073258/http://msdn.microsoft.com/en-us/library/windows/desktop/ms680760.aspx |dead-url=no }}&amp;lt;/ref&amp;gt;這個定義在該dll檔裡的函數的進入點。&lt;br /&gt;
#接著呼叫DllGetClassObject，以取得IClassFactory&amp;lt;ref&amp;gt;{{Cite web |url=https://msdn.microsoft.com/en-us/library/windows/desktop/ms694364.aspx |title=IClassFactory interface |accessdate=2013-08-16 |archive-date=2019-09-19 |archive-url=https://web.archive.org/web/20190919023600/https://docs.microsoft.com/en-us/windows/win32/api/unknwn/nn-unknwn-iclassfactory?redirectedfrom=MSDN |dead-url=no }}&amp;lt;/ref&amp;gt;的指標。&lt;br /&gt;
#再經由IClassFactory去CreateInstance&amp;lt;ref&amp;gt;{{Cite web |url=https://msdn.microsoft.com/en-us/library/windows/desktop/ms682215.aspx |title=IClassFactory::CreateInstance method |accessdate=2013-08-16 |archive-date=2019-09-19 |archive-url=https://web.archive.org/web/20190919023558/https://docs.microsoft.com/en-us/windows/win32/api/unknwn/nf-unknwn-iclassfactory-createinstance?redirectedfrom=MSDN |dead-url=no }}&amp;lt;/ref&amp;gt;，進行該ActiveX元件初始化的後續操作。&lt;br /&gt;
&lt;br /&gt;
==安全性==&lt;br /&gt;
由於Microsoft在Windows內建許多ActiveX，因此導致一些惡意的網站曾經利用這些ActiveX進行自動安裝[[電腦病毒|病毒]]或[[後門]]。&lt;br /&gt;
例如：&lt;br /&gt;
* Scripting.FileSystemObject，這個ActiveX可操作新增或修改檔案內容。&amp;lt;ref&amp;gt;{{Cite web |url=https://msdn.microsoft.com/en-us/library/2z9ffy99%28v=vs.84%29.aspx |title=Programming the FileSystemObject |accessdate=2013-08-15 |archive-date=2013-08-07 |archive-url=https://web.archive.org/web/20130807061339/http://msdn.microsoft.com/en-us/library/2z9ffy99(v=vs.84).aspx |dead-url=no }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
* WbemScripting.SWbemLocator，這個ActiveX可操作[[WMI]]，進而存取登錄資訊。&amp;lt;ref&amp;gt;{{Cite web |url=https://msdn.microsoft.com/en-us/library/windows/desktop/aa393719%28v=vs.85%29.aspx |title=SWbemLocator object |accessdate=2013-08-15 |archive-date=2013-05-11 |archive-url=https://web.archive.org/web/20130511003119/http://msdn.microsoft.com/en-us/library/windows/desktop/aa393719(v=vs.85).aspx |dead-url=no }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
* WScript.Shell，這個ActiveX可從瀏覽器之中直接執行外部的執行檔。&amp;lt;ref&amp;gt;{{Cite web |url=https://msdn.microsoft.com/en-us/library/d5fk67ky%28v=vs.84%29.aspx |title=Run Method (Windows Script Host) |accessdate=2013-08-15 |archive-date=2013-08-07 |archive-url=https://web.archive.org/web/20130807052544/http://msdn.microsoft.com/en-us/library/d5fk67ky(v=vs.84).aspx |dead-url=no }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
因此，Microsoft陸續在IE上增加2種封鎖ActiveX執行的方法。先是在2007年加上[[ActiveX相容性旗標]]（Killbit）功能，經由ActiveX元件開發廠商的向Microsoft回報後，由Windows Update發佈KillBit的更新。而後又在IE 9以後的版本加上ActiveX Filtering功能，讓IE的瀏覽者能夠自訂是否封鎖特定的ActiveX元件。&amp;lt;ref&amp;gt;{{Cite web |url=http://windows.microsoft.com/en-us/windows7/how-to-use-tracking-protection-and-activex-filtering |title=How to use Tracking Protection and ActiveX Filtering in Internet Explorer 9 |accessdate=2013-08-15 |archive-date=2013-08-15 |archive-url=https://web.archive.org/web/20130815041257/http://windows.microsoft.com/en-us/windows7/how-to-use-tracking-protection-and-activex-filtering |dead-url=no }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==淘汰==&lt;br /&gt;
在2015年7月29日發行的[[Windows 10]]，會以不支援ActiveX的[[Microsoft Edge]]瀏覽器&amp;lt;ref&amp;gt;{{cite web|url=http://www.computerworld.com/article/2920892/web-browsers/microsoft-nixes-activex-add-on-technology-in-new-edge-browser.html|title=Microsoft nixes ActiveX add-on technology in new Edge browser|author=Gregg Keizer|date=10 May 2015|accessdate=2016-04-23|archive-date=2015-05-14|archive-url=https://web.archive.org/web/20150514023235/http://www.computerworld.com/article/2920892/web-browsers/microsoft-nixes-activex-add-on-technology-in-new-edge-browser.html|dead-url=no|website=www.computerworld.com}}&amp;lt;/ref&amp;gt;，取代使用多年的[[Internet Explorer]]做為Windows預設瀏覽器。但為相容性需要，Windows 10仍內建Internet Explorer 11供使用者選用。&lt;br /&gt;
&lt;br /&gt;
==參考資料==&lt;br /&gt;
{{reflist}}&lt;br /&gt;
&lt;br /&gt;
== 相關 ==&lt;br /&gt;
{{wikibooks|如何安装及卸载ActiveX}}&lt;br /&gt;
*[[ADO]]&lt;br /&gt;
*[[NPAPI]]&lt;br /&gt;
*[[IUnknown]]&lt;br /&gt;
&lt;br /&gt;
{{Microsoft APIs}}&lt;br /&gt;
{{视窗应用程式}}&lt;br /&gt;
{{網頁技術與標準}}&lt;br /&gt;
&lt;br /&gt;
[[Category:微軟API]]&lt;br /&gt;
[[Category:Internet Explorer]]&lt;br /&gt;
[[Category:软件附加组件]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Upojzsb</name></author>
	</entry>
</feed>