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

前端 未结 3 1596
鱼传尺愫
鱼传尺愫 2021-01-02 03:54

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

3条回答
  •  半阙折子戏
    2021-01-02 04:17

    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.

提交回复
热议问题