Aaron
Aaron

Reputation: 2873

How to determine the supported thread model of an out-of-process COM server?

Question:

Note:

Upvotes: 2

Views: 735

Answers (2)

Euro Micelli
Euro Micelli

Reputation: 34018

I'm afraid the question is wrong.

Threading models (STA, MTA, etc) are a necessary evil that apply only to in-process COM objects, where objects and clients need to coexist in the same process and somehow they must prevent stepping on each other's toes (a fun and lengthy topic).

Out-of-process (EXE) COM servers live in their own process and manage their own threading as they see fit. COM doesn't know -- and doesn't care.

So there isn't any "threading model" (in a COM sense) associated with an EXE.

It sounds like you have a specific problem: If you post more details, I/someone/we might be able to help.

Upvotes: 3

Aaron
Aaron

Reputation: 2873

The absolute minimum amount of registry entries for a class is:

  • LocalServer32\ (path to executable) - Location of local out-of-process EXE server
  • InprocServer32\ (path to DLL) - Location of local in-process DLL server

Note:

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\
{CLSID}\LocalServer32 = <full path>ServerExecutable

Upvotes: 0

Related Questions