com4:InProcessServer

インプロセス サーバーを 1 つまたは複数のクラス登録に登録します。

要素の階層

<パッケージ>

    <アプリケーション>

         <Application>

              <拡張機能>

                   <com4:InProcessServer>

構文

<com4:InProcessServer
  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
  InProcessServerDll
  ClassReference

</com4:InProcessServer>

属性と要素

属性

属性 説明 データ型 必須 既定値
パス DLL へのパス。 次のいずれかの値: 長さが 1 ~ 256 文字の文字列で、これらの文字を含めることはできません。 <|>"?:または *は、大文字と小文字を区別しないファイル拡張子 で終わる 。.dll いいえ

子要素

子要素 説明
クラス インプロセス サーバー クラスの登録を定義します。
InProcessServerDll インプロセス サーバー DLL のパスとプロセッサ アーキテクチャを指定します。
ClassReference 登録されたインプロセス サーバーが関連付けられているクラスを指定し、登録の詳細を設定します。

親要素

親要素 説明
拡張機能 アプリの 1 つ以上の拡張ポイントを定義します。

次の例は、同じクラスのアウトプロセスおよびインプロセス サーバー実装を登録する方法を示しています。

<com4:Class Id="f4ed7720-9b3a-44a4-xxxx-xxxxxxxxxxxx" DisplayName="CLSID_Foo"/> 
<com:ExeServer Executable="MyServer.exe" DisplayName="My server">  
  <com4:ClassReference Id="f4ed7720-9b3a-44a4-xxxx-xxxxxxxxxxxx"/>  
</com:ExeServer> 
<com4:InProcessServer Path="MyServer.dll">  
  <com4:ClassReference Id="f4ed7720-9b3a-44a4-xxxx-xxxxxxxxxxxx"/>  
</com4:InProcessServer> 

必要条件

Item
Namespace http://schemas.microsoft.com/appx/manifest/com/windows10/4
Minimum OS Version Windows 10 (ビルド 20348)