开发者

Windows service in svchost vs self-container service

开发者 https://www.devze.com 2023-01-24 16:03 出处:网络
I plan to install a service but quite confuse what the diffe开发者_C百科rence between both as a process in svchost or software.exe.I would go for a separate exe, but that\'s just my opinion. It\'s rea

I plan to install a service but quite confuse what the diffe开发者_C百科rence between both as a process in svchost or software.exe.


I would go for a separate exe, but that's just my opinion. It's really entirely up to you. Nothing in regards to functionality, performance, development time etc will be any different.

There's nothing wrong with running it as a service through svchost though. SvcHost was implemented by Microsoft because they want to make the code-base more reusable. The goal is to have the reusable code in dlls instead of smashing it into exe files. But because a dll is not an executable, it can not be started directly. Hence, they made svchost as a runner for it.


the difference is of the User Name You can run run your application as

UserName or Administrator

0

精彩评论

暂无评论...
验证码 换一张
取 消