Communicate between COM DLL and C #

I asked a question the other day regarding overlay icons. With help I figured out how to do this.

Here's how icon overlay works (as I understand it): before the shell draws an icon, it contacts all icon overlay handlers in the system to determine whether to draw an overlay on that particular icon.

My setup:
I have a registered shell extension (icon cover handler) that I want to use to display icon overlays. In addition, I have a .NET application (C #) that will write to the database (most likely SQLite) with names, etc. All the files and folders on which I want to display the overlay.

My problem:
How do I get a shell extension (I think it's basically a COM DLL) to call back to my .NET application? Or is it too much and should I just get the shell extension directly from the database?

Possible solutions?

  • Ask the shell extension (icon overlay handler) to read the database and determine whether to show the overlay.
  • Cancel the Shell Extension call in the .NET application to determine whether to show the overlay.

I hope this makes sense, if not, I will try to stop in more detail.

+3
source share
2 answers

COM- .NET. , .NET COM COM. . , , .NET, (WCF?), .

+2

, COM regasm, COM- DLL CoCreateInstance, .NET.

, .NET . , .NET- ... .. CLSCTX_LOCAL _SERVER CoCreateInstance.

+2

Source: https://habr.com/ru/post/1708218/


All Articles