com4:InProcessServer
Registers an in-process server with one or many class registrations.
Element hierarchy
<com4:InProcessServer>
<com4:InProcessServer>
Syntax
<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>
Attributes and elements
Attributes
Attribute | Description | Data type | Required | Default value |
---|---|---|---|---|
Path | The path to the DLL. | One of the following values: A string between 1 and 256 characters in length that cannot contain these characters: < , > , : , " , | ? , or * , ending with the case-insensitive file extension .dll . |
No |
Child elements
Child element | Description |
---|---|
Class | Defines an in-process server class registration. |
InProcessServerDll | Specifies the path and processor architecture of an in-process server DLL. |
ClassReference | Specifies the class with which the registered in-process server is associated and sets registration details. |
Parent elements
Parent element | Description |
---|---|
Extensions | Defines one or more extensibility points for the app. |
Examples
The following example shows how to register an out-of-process and an in-process server implementation for the same class.
<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>
Requirements
Item | Value |
---|---|
Namespace | http://schemas.microsoft.com/appx/manifest/com/windows10/4 |
Minimum OS Version | Windows 10 (Build 20348) |