我可以使用 svchost.exe 来托管我自己的服务吗? [英] Can I use svchost.exe to host my own services?

查看:30
本文介绍了我可以使用 svchost.exe 来托管我自己的服务吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找不到有关如何操作的文档,这让我觉得我不应该这样做.

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

推荐答案

不,svchost.exe 没有文档记录,仅支持属于 Windows 的服务.

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

部分原因是可靠性 - 第 3 方服务的崩溃应该不会对关键的 Windows 服务产生影响.

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

为什么要使用svchost?您是否想将多项服务组合在一起?创建自己的 exe 来托管多个服务非常简单.

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.

这篇关于我可以使用 svchost.exe 来托管我自己的服务吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆