Edit

com4:Interface

Registers new COM Interfaces.

Element hierarchy

<Package>
   └─ <Extensions>
      └─ <com4:Extension>
         └─ <com4:ComInterface>
            └─ <com4:Interface>
   └─ <Applications>
      └─ <Application>
         └─ <Extensions>
            └─ <com4:Extension>
               └─ <com4:ComInterface>
                  └─ <com4:Interface>

Syntax

<com4:Interface
  Id = 'A required GUID in the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.'
  UseUniversalMarshaler = 'An optional boolean value.'
  ProxyStubClsid = 'An optional GUID in the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.'
  SynchronousInterface = 'An optional GUID in the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.'
  AsynchronousInterface = 'An optional GUID in the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.' >

  <!-- Child elements -->
  com4:TypeLib?

</com4:Interface>

Key

? optional (zero or one)

Attributes

Attribute Description Data type Required Default value
Id An interface Id (IID). A GUID in the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. Yes
UseUniversalMarshaler Set this to true to use the OLE Universal Marshaler as the proxy stub. An optional boolean value. No
ProxyStubClsid Corresponds to the ProxyStubClsid32 registry value. An optional GUID in the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. No
SynchronousInterface The Id of another interface registration containing AsynchronousInterface that references this registration. An optional GUID in the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. No
AsynchronousInterface The Id of another interface registration containing SynchronousInterface that references this registration. An optional GUID in the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. No

Child elements

Child element Description
com4:TypeLib Associates a type library with a class or interface.

Parent elements

Parent element Description
com4:ComInterface Declares a package extension point of type windows.comInterface. The comInterface extension may include three types of registrations: Interface, ProxyStub, or TypeLib.

Requirements

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

Remarks

ProxyStubClsid can only be used for proxy stubs with an implementation as part of the package. To use the OLE Universal Marshaler as the proxy stub, use UseUniversalMarshaler instead.

If UseUniversalMarshaler is true, the Interface registration must include TypeLib.

Note

ProxyStubClsid and UseUniversalMarshaler are mutually exclusive.

Examples