<?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=Windows_Runtime</id>
	<title>Windows Runtime - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://arolstar52-zhtest.hf.space/index.php?action=history&amp;feed=atom&amp;title=Windows_Runtime"/>
	<link rel="alternate" type="text/html" href="https://arolstar52-zhtest.hf.space/index.php?title=Windows_Runtime&amp;action=history"/>
	<updated>2026-06-30T03:07:05Z</updated>
	<subtitle>在这个wiki上该页的修订历史</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://arolstar52-zhtest.hf.space/index.php?title=Windows_Runtime&amp;diff=1849000&amp;oldid=prev</id>
		<title>imported&gt;Evesiesta：​使用DisamAssist清理消歧义链接：沙盒（链接至沙盒 (软件开发)）。</title>
		<link rel="alternate" type="text/html" href="https://arolstar52-zhtest.hf.space/index.php?title=Windows_Runtime&amp;diff=1849000&amp;oldid=prev"/>
		<updated>2022-11-13T02:58:18Z</updated>

		<summary type="html">&lt;p&gt;使用&lt;a href=&quot;/index.php?title=User:%E6%9C%88_%E6%A8%B1_%E9%9B%AA/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/%E6%B2%99%E7%9B%92&quot; title=&quot;沙盒&quot;&gt;沙盒&lt;/a&gt;（链接至&lt;a href=&quot;/wiki/%E6%B2%99%E7%9B%92_(%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91)&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;{{多個問題|&lt;br /&gt;
{{Expand English|Windows Runtime}}&lt;br /&gt;
{{Expand|time=2012-08-03T15:01:00+00:00}}&lt;br /&gt;
}}&lt;br /&gt;
{{NoteTA|G1=IT|G2=Windows}}&lt;br /&gt;
&lt;br /&gt;
{{Distinguish|Windows RT}}&lt;br /&gt;
{{lang|en|&amp;#039;&amp;#039;&amp;#039;Windows Runtime&amp;#039;&amp;#039;&amp;#039;}}，或{{lang|en|&amp;#039;&amp;#039;&amp;#039;WinRT&amp;#039;&amp;#039;&amp;#039;}}，是[[Windows 8]]中的一种跨平台应用程序架构。WinRT支持的开发语言包括C++（一般包括[[Visual C++ 组件扩展|C++/CX]]）和[[受控代碼|托管语言]][[C Sharp|C#]]和[[VB.NET]]，还有[[JavaScript]]。WinRT应用程序同时原生支持[[x86]]架构和[[ARM]]架构，同时为了更好的安全性和稳定性，也支持运行在[[沙盒 (软件开发)|沙盒]]环境中。&amp;lt;ref&amp;gt;{{cite web | url=http://www.infoq.com/news/2011/09/Design-Details-Windows-Runtime | title=Design Details of the Windows Runtime | author=Abel Avram | date=21 September 2011 | work=InfoQ | accessdate=2012-08-03 | archive-date=2012-09-10 | archive-url=https://www.webcitation.org/6AaFKxstR?url=http://www.infoq.com/news/2011/09/Design-Details-Windows-Runtime | dead-url=no }}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{cite web | url=http://www.anandtech.com/show/4771/microsoft-build-windows-8-pre-beta-preview/5 | title=Microsoft BUILD: Windows 8, A Pre-Beta Preview | author=Brian Klug &amp;amp; Ryan Smith | date=13 September 2011 | work=[[AnandTech]] | accessdate=2012-08-03 | archive-date=2012-09-10 | archive-url=https://www.webcitation.org/6AaFLlU1o?url=http://www.anandtech.com/show/4771/microsoft-build-windows-8-pre-beta-preview/5 | dead-url=no }}&amp;lt;/ref&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
由于依赖于一些增强[[组件对象模型|COM]]组件，WinRT本质上是一基于COM的API。正因为其COM风格的基础，WinRT可以像COM那样轻松地实现多种语言代码之间的交互联系，不过本质上是非托管的本地API。API的定义存储在以”.winmd&amp;quot;为后缀的元数据文件中，格式编码遵循[[通用语言架构|ECMA 335]]的定义，和[[.NET_Framework|.Net]]使用的文件格式一样，不过稍有改进。&amp;lt;ref name=&amp;quot;icaza&amp;quot;&amp;gt;de Icaza, Miguel (2011-09-15). WinRT demystified. Personal blog of Miguel de Icaza, 15 September 2011. Retrieved from http://tirania.org/blog/archive/2011/Sep-15.html {{Wayback|url=http://tirania.org/blog/archive/2011/Sep-15.html |date=20220416083022 }}.&amp;lt;/ref&amp;gt;使用统一的元数据格式相比于[[平台叫用服務|P/Invoke]],可以大幅减少WinRT调用.NET程序时的开销，同时拥有更简单的语法。&amp;lt;ref&amp;gt;{{cite web |url=http://social.msdn.microsoft.com/Forums/en-US/winappswithcsharp/thread/d510d916-a090-412c-a17f-e4421ad9a137/ |title=What is the COM marshaling overhead in calling the WinRT API from C# ? |publisher=Social.msdn.microsoft.com |date= |accessdate=2012-04-24 }}{{Dead link|date=2019年10月 |bot=InternetArchiveBot |fix-attempted=yes }}&amp;lt;/ref&amp;gt;全新的[[Visual C++ 组件扩展|C++/CX]]（组件扩展）语言，借用了一些[[C++/CLI]]语法，允许授权和使用WinRT组件，但相比传统的C++下COM编程，对于程序员来说，有更少的[[Glue Code|粘合]]可见性，同时对于混合类型的限制相比C++/CLI也更少。在新的称为Windows Runtime C++ Template Library(WRL)的模板类库的帮助下（就好似[[ATL]]之于COM一样)&amp;lt;ref&amp;gt;{{cite web |url=http://channel9.msdn.com/Events/BUILD/BUILD2011/TOOL-532T#c634517976543836549 |title=Using the Windows Runtime from C++ &amp;amp;#124; BUILD2011 &amp;amp;#124; Channel 9 |publisher=Channel9.msdn.com |date=2011-09-14 |accessdate=2012-04-24 |archive-date=2011-10-12 |archive-url=https://web.archive.org/web/20111012132621/http://channel9.msdn.com/Events/BUILD/BUILD2011/TOOL-532T#c634517976543836549 |dead-url=no }}&amp;lt;/ref&amp;gt;，规范的C++代码（遵循COM化规范）也同样可以用在使用了WinRT组件的程序里&amp;lt;ref&amp;gt;{{cite web |last=Sivakumar |first=Nish |url=http://www.codeproject.com/KB/cpp/WinRTVisualCppIntro.aspx |title=Visual C++ and WinRT/Metro - Some fundamentals - CodeProject® |publisher=Codeproject.com |date=2011-09-29 |accessdate=2012-04-24 |archive-date=2011-12-08 |archive-url=https://web.archive.org/web/20111208102744/http://www.codeproject.com/KB/cpp/WinRTVisualCppIntro.aspx }}&amp;lt;/ref&amp;gt;。不过MSDN建议使用C++/CX而不是WRL。&amp;lt;ref&amp;gt;{{cite web |url=http://msdn.microsoft.com/en-us/library/hh438466%28v=VS.110%29.aspx |title=Windows Runtime C++ Template Library |publisher=Msdn.microsoft.com |date= |accessdate=2012-04-24 |archive-date=2016-04-06 |archive-url=https://web.archive.org/web/20160406202651/https://msdn.microsoft.com/en-us/library/hh438466(v=vs.110).aspx }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==技术==&lt;br /&gt;
WinRT组件设计时即着眼于多种语言和API直接的互通性，包括本地代码、托管代码还有脚本。比如[[Visual C++ 组件扩展|C++/CX]]的组件扩展就被建议仅用于存在API壁垒的状况，而不要用于其他目的。&amp;lt;ref name=&amp;quot;autogenerated1&amp;quot;&amp;gt;{{cite web |url=http://channel9.msdn.com/Events/BUILD/BUILD2011/TOOL-532T |title=Using the Windows Runtime from C++ &amp;amp;#124; BUILD2011 &amp;amp;#124; Channel 9 |publisher=Channel9.msdn.com |date=2011-09-14 |accessdate=2012-04-24 |archive-date=2011-10-12 |archive-url=https://web.archive.org/web/20111012132621/http://channel9.msdn.com/Events/BUILD/BUILD2011/TOOL-532T |dead-url=no }}&amp;lt;/ref&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
WinRT应用程序可以快速部署并运行在沙盒环境中。对运行库的测试表明其是构筑在[[Windows_API|Win32 API]]之上的&amp;lt;ref&amp;gt;{{cite web | title=WinRT and .NET in Windows 8 (Paragraph 5) | url=http://blogs.microsoft.co.il/blogs/sasha/archive/2011/09/15/winrt-and-net-in-windows-8.aspx | access-date=2012-08-03 | archive-url=https://web.archive.org/web/20120123080825/http://blogs.microsoft.co.il/blogs/sasha/archive/2011/09/15/winrt-and-net-in-windows-8.aspx | archive-date=2012-01-23 | dead-url=yes }}&amp;lt;/ref&amp;gt;。[[.NET_Framework|.Net]]使用了类似的实现。&lt;br /&gt;
&lt;br /&gt;
==服务==&lt;br /&gt;
===元数据===&lt;br /&gt;
元数据描述了用于WinRT平台的代码。定义了一套[[编程范型|编程范式]]来实现编写可跨[[编程语言]]共享的[[面向对象]]的代码。同时也支持[[面向反射编程|反射]]等服务。&lt;br /&gt;
&lt;br /&gt;
===类型系统===&lt;br /&gt;
====WinRT组件====&lt;br /&gt;
===编程接口===&lt;br /&gt;
====C++（WRL,组件扩展）====&lt;br /&gt;
====.NET====&lt;br /&gt;
====JavaScript====&lt;br /&gt;
===API===&lt;br /&gt;
====Windows类====&lt;br /&gt;
====命名规范====&lt;br /&gt;
====限制与规范====&lt;br /&gt;
&lt;br /&gt;
==参考文献==&lt;br /&gt;
{{Reflist|40em}}&lt;br /&gt;
&lt;br /&gt;
==外部链接==&lt;br /&gt;
*[http://msdn.microsoft.com/en-us/library/windows/apps/br211386.aspx WinRT documentation (preview)] {{Wayback|url=http://msdn.microsoft.com/en-us/library/windows/apps/br211386.aspx |date=20210401085200 }}&lt;br /&gt;
&lt;br /&gt;
==参见==&lt;br /&gt;
*{{link-en|Windows Runtime XAML Framework|Windows Runtime XAML Framework}}&lt;br /&gt;
&lt;br /&gt;
{{-}}&lt;br /&gt;
{{Microsoft development tools}}&lt;br /&gt;
{{Microsoft Windows components}}&lt;br /&gt;
&lt;br /&gt;
[[Category:微软]]&lt;br /&gt;
[[Category:Windows 8]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Evesiesta</name></author>
	</entry>
</feed>