Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I use svchost.exe to host my own services?

I can't find documentation for how to do it, which makes me think I'm not supposed to do it.

like image 292
Corey Trager Avatar asked May 11 '09 19:05

Corey Trager


1 Answers

No, svchost.exe is undocumented and only supported for services that are part of Windows.

Part of the reason is reliability - a crash in a 3rd party service should have no effect on a critical Windows service.

Why do you want to use svchost? Do you have several services that you want to combine together? Creating your own exe to host multiple services is pretty straightforward.

like image 66
Michael Avatar answered Oct 12 '22 05:10

Michael