C#。如何以编程方式授予用户身份登录服务 [英] C#. How to programmatically grant User Log On as a Service

查看:119
本文介绍了C#。如何以编程方式授予用户身份登录服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过互联网搜索,但没有发现在C#中的任何解决方案。 ?有谁知道怎么给登录在C#中的服务用户权限

I've searched through the internet, but haven't found any solution in c#. Does anybody know how to give user right to log on as a Service in c#?

推荐答案

编辑:我发现了一个的在CodeProject上的示例代码文章显示究竟是如何做到这一点!

I found an article on CodeProject with sample code that shows exactly how to do this!

我假设你已经找到此KB 显示如何使用本地代码做到这一点。我在寻找一个C#的方式为好。

I assume you've already found this KB that shows how to do it with native code. I'm looking for a C# way as well.

这篇关于C#。如何以编程方式授予用户身份登录服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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