如何像任务管理一样获取所有进程的帐户? [英] How to get all processes' account just like the task manage ?

查看:126
本文介绍了如何像任务管理一样获取所有进程的帐户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尽管我可以获取本地帐户和系统,但我却无法获得loacl_service和network_service, 我已经升级了权限 (可调试),但是为什么无法从他们的流程中获得其他用户的名字... 谢谢. 我的代码是这样的... http://www.codeproject.com/KB/system/Process_s_User_Name.aspx 但这并不能像作者所说的那样起作用.仍然无法获得用户的名字,例如"LOCAL SERVICE".为什么? 原因是 : OpenProcessToken函数无法打开其他进程",它显示"访问被拒绝". 我现在能做什么? :(

Although i can get the local account and system,but i can''t get loacl_service and network_service,i had already Upgrade the Privilege(Up to Debug),but why failed to get other users'' name from their''s processes... Thx for answering. My code like this... http://www.codeproject.com/KB/system/Process_s_User_Name.aspx But it dose not work like the author said.Still can''t get users'' name like "LOCAL SERVICE".Why??? The reason is : the OpenProcessToken function can''t open others'' process,it says "Access is denied ". What can i do now? :(

推荐答案

我从没做过,但是我通过快速的Google搜索找到了此链接:

I have never done this, but I found this link with a quick google search:

http://msdn.microsoft.com/en-us/library/ms684865(VS.85).aspx


您是否正在使用System.Diagonistics.Process.GetProcesses()进行此操作:((
Are you doing this using System.Diagonistics.Process.GetProcesses() :(


对Abhishek苏尔
我已经改善了我的问题.很抱歉让您困惑...

致克里斯蒂安·格劳斯
其实我知道所有这些方法,但是没用...
To Abhishek Sur
I had improve my question.Sorry to confuse you...

To Christian Graus
Actually i know all these methods,but it dosen''t work...


这篇关于如何像任务管理一样获取所有进程的帐户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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