I developed a service to be hosted by Svchost.exe. This task seemed pretty simple and is all done. The real problem comes out when I try to run it in a particular instance of svchost.exe (letís say netsvcs) it does not work as expected, it creates a completely new instance of Svchost.exe instead of using a previously created one. The reason of developing this service this way was because of performance considerations specially cost in memory so it loses any sense if it runs in a new instance of Svchost.exe.
Would anyone tell me how to make my service (library) run in a particular instance of Svchost.exe without creating a new one?