com4:InProcessHandler

使用一个或多个类注册注册进程内处理程序。

元素层次结构

<包>

    <应用程序>

         <应用程序>

              <扩展>

                   <com4:InProcessHandler>

语法

<com4:InProcessHandler
  Path = 'An optional string with a value between 1 and 256 characters in length that cannot contain these characters: <, >, :, ", |, ?, or *, ending with the case-insensitive file extension ".dll".' >

  <!-- Child elements -->
  Class
  InProcessHandlerDll
  ClassReference

</com4:InProcessHandler>

特性和元素

属性

属性 说明 数据类型 必须 默认值
路径 进程内处理程序 DLL 的完整路径。 一个可选字符串,其值长度在 1 到 256 个字符之间,不能包含以下字符:<、、>:"|?*,以不区分大小写的文件扩展名 .dll结尾。

子元素

子元素 说明
定义进程内处理程序类注册。
InProcessHandlerDll 指定进程内处理程序 DLL 的路径和处理器体系结构。
ClassReference 指定与注册的进程内处理程序关联的类,并设置注册详细信息。

父元素

父元素 说明
扩展 定义应用的一个或多个扩展点。

注解

以下示例演示如何为 x86 和 x64 体系结构注册类和进程内处理程序 dll。

<com4:InProcessHandler> 
  <com4:InProcessHandlerDll Path="x86\MyHandler.dll" ProcessorArchitecture="x86"/> 
  <com4:InProcessHandlerDll Path="amd64\MyHandler.dll" ProcessorArchitecture="x64"/> 
  <com4:Class Id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" DisplayName="CLSID_Bar" ThreadingModel="Both"/> 
</com4:InProcessHandler>

要求

Namespace http://schemas.microsoft.com/appx/manifest/com/windows10/4
Minimum OS Version Windows 10 (内部版本 20348)