阅读背景:

如何判断进程是否由服务控制管理器运行

来源:互联网 

I have a few Windows Services written in C# that I have setup to support being run from the command line as a console app if a specific parameter is passed. Works great but I would love to be able to detect whether the app is being run by the service control mananger or from a command line.I have a few Windows Services written in C# tha




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: