How to determine if my COM object is being used from a .NET application?

I have a COM library written in Visual C ++. I have full control over this COM code. Of course, it can be used from both managed and unmanaged applications. I want to insert a very specific check, which should only be done when the COM library is consumed by the .NET application.

Is there any programmatic way for my COM object to determine if it will be consumed from a .NET application or from an unmanaged application?

+3
source share
2 answers

" " . , , , . . COM, .

+2

:

  • .NET, COM-
  • , .NET , ( , , , DCOM/COM +)
+1

All Articles