How to connect to Full Trust COM server from UWP App?

Andrew Schmidt 31 Reputation points
2020-04-27T16:58:00.26+00:00

I have a UWP app that uses the FullTrustProcessLauncher to start a full trust process that registers a COM object. However, when the UWP app tries to create the registered COM object CoCreateInstance returns REGDB_E_CLASSNOTREG. The COM server is registered in the package manifest though the extension windows.comServer. I can successfully create the COM object in unpackaged Win32 process.

How do I properly set up and register my full trust COM server so that my UWP app can create the COM object?

According to
https://learn.microsoft.com/en-us/windows/uwp/communication/interprocess-communication
there is a way to perform inter-pocess communication between UWP apps and Win32 apps with out of process COM servers.

Universal Windows Platform (UWP)
{count} vote