How does svchost.exe work?

Hello!

I want to make an executable which emulates exactly what svchost does, meaning I want it to host services, in the same fashion.

Problem is, I don't know if it hosts .exe or .dll binaries and in what manner.
I also don't know how to create a service as a dll, if indeed its hosted services are dll binaries.

So basically I'm looking for information on how the whole svchost program works and the way I might best emulate it?

The reason I want to do this is simply education, so I'm not really looking for alternative ways or third party softwares.

I hope this thread is in the correct section and the type of question is allowed, please accept my apologies if it is not.

 
  // no code to offer, yet. 
What would you do with such a program that you can't do with the svchost.exe that comes with Windows?

You could take a look at the ReactOS source, although there's no telling whether their implementation will work on Windows versions post 2000.
Topic archived. No new replies allowed.