Click here to Skip to main content
15,889,281 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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? :(
Posted
Updated 28-Nov-09 1:11am
v5

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

 
Share this answer
 
Are you doing this using System.Diagonistics.Process.GetProcesses() :(
 
Share this answer
 
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...
 
Share this answer
 
v3
OK, now that you've asked your actual question, we can perhaps address it. Are you using Vista ? I expect those APIs have been crippled by how much Vista sucks. If you run your application as administrator, you may find that it works.
 
Share this answer
 
To Christian Graus:
I use Xp sp2,not vista,And i am the administrator user...But it failed.you achieved?can you send me the code?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900