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

问题描述

尽管我可以获取本地帐户和系统,但我却无法获得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,(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.aspxBut 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? :(

推荐答案

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




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

10-29 05:32