com4:ClassReference (in SurrogateServer)

Specifies the class with which the registered in-process server is associated and sets registration details.

Element hierarchy

<Package>

    <Applications>

         <Application>

              <Extensions>

                   <com4:SurrogateServer>

                        <com4:ClassReference>

Syntax

<com4:ClassReference
    Path = 'A string with a value between 1 and 256 characters in length that cannot contain these characters: <, >, :, ", |, ?, or *.'
    ThreadingModel = 'A string that can have one of the following values: "Both", "STA", "MTA", "MainSTA", or "Neutral".'
    EnableOleDefaultHandler = 'A boolean value.'
    Id = 'A GUID in the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.' />

Attributes and elements

Attributes

Attribute Description Data type Required Default value
Path The path to the surrogate server DLL. A string with a value between 1 and 256 characters in length that cannot contain these characters: <, >, :, ", |, ?, or *. Yes
ThreadingModel The threading model for loading DLLs. A string that can have one of the following values: Both, STA, MTA, MainSTA, or Neutral. Yes
EnableOleDefaultHandler This should be set to true if the default value of the InprocHandler32 key is "Ole32.dll". Otherwise it should be omitted. The default value is false. A boolean value. Yes
Id The Id of the Class being referenced. A GUID in the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. Yes

Child elements

None.

Parent elements

Parent element Description
com4:SurrogateServer Registers a SurrogateServer with one or many class registrations.

Requirements

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