c++ - CreateProcess 以用户 : "NT AUTHORITY/Network Service" without knowing the credentials? 身份运行

标签 c++ windows windows-services

我有一个作为本地系统运行的 Windows 服务。我希望该服务生成一个进程作为“NT AUTHORITY/Network Service”。但是,我没有该帐户的凭据。如何使用 C++ 以“网络服务”用户身份生成进程。

最佳答案

我不在我的 win32 开发箱前,所以我无法确认,但我将提供两种可能的方法:

或者,您可以:

关于c++ - CreateProcess 以用户 : "NT AUTHORITY/Network Service" without knowing the credentials? 身份运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5629383/

相关文章:

c# - 是否可以使用 C# 在 Windows 服务下启动 java 进程?

c++ - 使用数组在C++中创建卡片组数据结构

python - 如何通过 C++ 在 Python 函数中传递字符串参数

windows - 哪些 Windows (C++) 屏幕捕获库符合我的要求?

windows - Pgadmin III 替代方案 - Windows

c# - 以编程方式安装服务而不打印调试信息

c++ - Valgrind - 无效的读写

c++ - 绕行:防止通过其他软件杀死我的软件

windows - Visual Studio Express "for Windows"与 "for Windows Desktop"

c++ - 将批处理脚本作为 Windows 服务运行