How to start a NamedPipeServer within a Windows Explorer ShellExtension in a correct way

35 Views Asked by At

I have to implement a NamedPipeServer in our Windows Explorer ShellExtension which contains a ContextMenuExtension and a IconOverlayExtension. The NamedPipeServer itself is no problem but i have no idea where within the shellextension dll to start the NamedPipeServer.

I've read that it is no good idea to try to start the server from DllMain. Nevertheless i tried this and it leads to a deadlock (as promised).

Now i have no clou if there is another entry point which is called once the dll is loaded by the explorer where i can start the server.

My question is if there is a possibility to achieve what i'm trying.

0

There are 0 best solutions below