共用方式為


com4:InProcessHandlerDll

指定進程內處理常式 DLL 的路徑和處理器架構。

元素階層

<套件>

    <應用程式>

         <應用程式>

              <擴充功能>

                   <com4:InProcessHandler>

                        <com4:InProcessHandlerDll>

Syntax

<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 結尾。 Yes
ProcessorArchitecture 進程內處理常式 DLL 的處理器架構。 可以是下列其中一個值的字串:x86x64arm、arm64x86a64 Yes

子元素

無。

父元素

父元素 描述
延伸模組 定義應用程式的一或多個擴充點。

範例

下列範例示範如何註冊 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>

規格需求

Item
Namespace http://schemas.microsoft.com/appx/manifest/com/windows10/4
OS 最低版本 Windows 10 (組建 20348)