Click here to Skip to main content
15,902,635 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralProblem with Release Mode Pin
ritz12345-Mar-08 1:49
ritz12345-Mar-08 1:49 
GeneralRe: Problem with Release Mode Pin
Cedric Moonen5-Mar-08 2:00
Cedric Moonen5-Mar-08 2:00 
GeneralRe: Problem with Release Mode Pin
CPallini5-Mar-08 2:00
mveCPallini5-Mar-08 2:00 
GeneralRe: Problem with Release Mode Pin
_AnsHUMAN_ 5-Mar-08 2:01
_AnsHUMAN_ 5-Mar-08 2:01 
QuestionHow to get the username associated with a process using win32 apis Pin
vineeshV5-Mar-08 1:24
vineeshV5-Mar-08 1:24 
AnswerRe: How to get the username associated with a process using win32 apis Pin
Rajkumar R5-Mar-08 3:11
Rajkumar R5-Mar-08 3:11 
QuestionRe: How to get the username associated with a process using win32 apis Pin
vineeshV9-Mar-08 23:45
vineeshV9-Mar-08 23:45 
AnswerRe: How to get the username associated with a process using win32 apis Pin
Rajkumar R10-Mar-08 0:02
Rajkumar R10-Mar-08 0:02 
Your question was to get the username associated with a process,

GetSecurityInfo(
GetCurrentProcess(),// HANDLE handle,
what is restricting you to change the process handle used here. Does the code snippet i given is readonly?


vineeshV wrote:
My program should capture all the process ,their process id and the user name associated with them .


if you have handle to process (as you said in your original post), getting process id (DWORD GetProcessId(HANDLE Process)), getting user name as above.

if you are not having handles to all process, use EnumProcesses() API.
GeneralRe: How to get the username associated with a process using win32 apis Pin
vineeshV10-Mar-08 1:01
vineeshV10-Mar-08 1:01 
GeneralRe: How to get the username associated with a process using win32 apis Pin
Rajkumar R10-Mar-08 4:24
Rajkumar R10-Mar-08 4:24 
GeneralRe: How to get the username associated with a process using win32 apis Pin
Rajkumar R10-Mar-08 4:45
Rajkumar R10-Mar-08 4:45 
Generalcacls cmd equivalent in win32 Pin
dharani4-Mar-08 23:13
dharani4-Mar-08 23:13 
QuestionRe: cacls cmd equivalent in win32 Pin
Rajkumar R4-Mar-08 23:25
Rajkumar R4-Mar-08 23:25 
GeneralRe: cacls cmd equivalent in win32 Pin
Maxwell Chen4-Mar-08 23:34
Maxwell Chen4-Mar-08 23:34 
GeneralAdd/Remove Operation is not possible because the code element is read only Pin
Le@rner4-Mar-08 22:25
Le@rner4-Mar-08 22:25 
GeneralRe: Add/Remove Operation is not possible because the code element is read only Pin
Naveen4-Mar-08 22:30
Naveen4-Mar-08 22:30 
GeneralRe: Add/Remove Operation is not possible because the code element is read only Pin
Maxwell Chen4-Mar-08 22:36
Maxwell Chen4-Mar-08 22:36 
GeneralRe: Add/Remove Operation is not possible because the code element is read only Pin
Maxwell Chen4-Mar-08 22:33
Maxwell Chen4-Mar-08 22:33 
GeneralRe: Add/Remove Operation is not possible because the code element is read only Pin
Randor 5-Mar-08 3:20
professional Randor 5-Mar-08 3:20 
GeneralRe: Add/Remove Operation is not possible because the code element is read only Pin
Mark Salsbery5-Mar-08 14:35
Mark Salsbery5-Mar-08 14:35 
GeneralRe: Add/Remove Operation is not possible because the code element is read only Pin
WilliamFalconerUK26-Jan-09 0:35
professionalWilliamFalconerUK26-Jan-09 0:35 
GeneralRe: Add/Remove Operation is not possible because the code element is read only Pin
Randor 26-Jan-09 9:31
professional Randor 26-Jan-09 9:31 
QuestionCWinApp Class having one object only??? Pin
neha.agarwal274-Mar-08 21:07
neha.agarwal274-Mar-08 21:07 
AnswerRe: CWinApp Class having one object only??? Pin
Mark Salsbery4-Mar-08 21:18
Mark Salsbery4-Mar-08 21:18 
AnswerRe: CWinApp Class having one object only??? Pin
Rajkumar R4-Mar-08 21:26
Rajkumar R4-Mar-08 21:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.