com4:InProcessHandlerDll

指定进程内处理程序 DLL 的路径和处理器体系结构。

元素层次结构

<包>

     <应用程序>

          <应用程序>

               <扩展>

                    <com4:InProcessHandler>

                         <com4:InProcessHandlerDll>

     <扩展>

          <com4:InProcessHandler>

               <com4:InProcessHandlerDll>

语法

<com4:InProcessHandlerDll
  Path = 'A 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".'
  ProcessorArchitecture = 'A string that can be one of the following values: "x86", "x64", "arm", "arm64", or "x86a64".' />

属性和元素

属性

属性 描述 数据类型 必填 默认值
路径 进程内处理程序 DLL 的完整路径。 长度在 1 到 256 个字符之间的字符串,其长度不能包含这些字符:<>:"|?*,以不区分大小写的文件扩展名结尾 .dll 是的
ProcessorArchitecture 进程内处理程序 DLL 的处理器体系结构。 可以是下列值之一的字符串:x86x64armarm64x86a64 是的

子元素

没有。

父元素

Parent 元素 描述
扩展 定义应用的一个或多个扩展点。

例子

以下示例演示如何为 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
最低 OS 版本 Windows 10 (内部版本 20348)