COM Object on Windows 11

iz111 86 Reputation points
2021-11-08T13:33:21.647+00:00

Hi to all,

I have x64 and Win32 COM objects registered on Surface (ARM) with Windows 11. DllSurrogate and AppId are also configured in registry.
Application (mstsc.exe) does not load those COM objects on Windows 11.
Note that same configuration works on same/multiple Surface (ARM) with Windows 10.

Any ideas what I am missing here?

Windows development Windows API - Win32
{count} vote

2 answers

Sort by: Most helpful
  1. Michael Taylor 60,161 Reputation points
    2021-11-08T16:41:58.307+00:00

    What error are you getting? Is mstsc being run as x86 or x64? Did you confirm that the x86/x64 COM object is registered based upon the version that mstsc is trying to use? Note that if your COM object supports both bitness then you need to register it for both bitness as well.

    1 person found this answer helpful.

  2. Xiaopo Yang - MSFT 12,731 Reputation points Microsoft External Staff
    2021-11-09T03:25:14.663+00:00

    According to COM Registry Keys, have you configured in CLSID(HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID{CLSID}) which has a AppID value and a InprocServer subkey and AppID(HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AppID{AppID_GUID}) which has a DllSurrogate value for your COM application?
    Does the surrogate process have the same bit as your COM application?

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.