Click here to Skip to main content
15,886,689 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how can i get the Process's "User" infomation?

there is a method "GetOwner" in Win32_Process object.
can someone give me a example?
thanks.
Posted

1 solution

It's really not that difficult to use MSDN to find the documentation[^].
 
Share this answer
 
Comments
china.net 15-Feb-12 19:30pm    
But there is a VB example,can u give me a VC example?
3ks.
Richard MacCutchan 16-Feb-12 4:23am    
Scroll down the page to the link that is for C++ examples.
china.net 16-Feb-12 19:25pm    
sorry,there is a example ,but not use the GetUser method, i don't know how to use the "GetUser",cause it's just has out parameter .
Richard MacCutchan 17-Feb-12 4:28am    
It certainly seems not to be easy to do this with C++; perhaps you need to rethink your requirements and try a different approach. Without knowing what problem you are trying to solve it's difficult to make any better suggestions.
china.net 18-Feb-12 4:21am    
3ks i will give the code in another question.

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