Click here to Skip to main content
15,895,256 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: DDV functions Pin
David Crow23-Dec-03 4:33
David Crow23-Dec-03 4:33 
GeneralRe: DDV functions Pin
Dinesh Ahuja23-Dec-03 17:16
Dinesh Ahuja23-Dec-03 17:16 
GeneralRe: DDV functions Pin
David Crow29-Dec-03 2:51
David Crow29-Dec-03 2:51 
GeneralRe: DDV functions Pin
Lanka Maheshwar12-Jan-09 18:04
Lanka Maheshwar12-Jan-09 18:04 
QuestionDoes STL supports Unicode ??? Pin
Prakash Nadar22-Dec-03 17:36
Prakash Nadar22-Dec-03 17:36 
AnswerRe: Does STL supports Unicode ??? Pin
Mike Beckerleg22-Dec-03 22:29
Mike Beckerleg22-Dec-03 22:29 
AnswerRe: Does STL supports Unicode ??? Pin
jhwurmbach22-Dec-03 22:48
jhwurmbach22-Dec-03 22:48 
GeneralERROR_ACCESS_DENIED and openprocesstoken() Pin
dp522-Dec-03 17:01
dp522-Dec-03 17:01 
Confused | :confused: I am trying to get process status information(cpu time, mem usage, etc) on all processes running on my Win XP system using C.

I have elevated the privilege of the current process to SE_DEBUG_NAME, but I get ERROR_ACCES_DENIED when I call OpenProcessToken() for the the following processes:

alg.exe
svchost.exe
svchost.exe

Task Manager reports that the user names for these processes are LOCAL SERVICE, LOCAL SERVICE, and NETWORK SERVICE respectively.

My goal is to extract the user sid from the process token so that I can display the user name like Task Manager does.

My program works for all other processes (except "idle").

1) What do I have to do to access the tokens for these processes?

It seems as if my current process is denied access to the process
token if the user name is either LOCAL SERVICE or NETWORK SERVICE.

2) How do I extract the same info for the idle process?

Thanks in advance


Daniel
GeneralOnkeyDown in dialog Pin
satadru22-Dec-03 16:51
satadru22-Dec-03 16:51 
GeneralRe: onkeydown in dialog Pin
Monty222-Dec-03 17:59
Monty222-Dec-03 17:59 
GeneralRe: onkeydown in dialog Pin
satadru22-Dec-03 19:35
satadru22-Dec-03 19:35 
GeneralRe: onkeydown in dialog Pin
zeki yugnak23-Dec-03 1:04
zeki yugnak23-Dec-03 1:04 
GeneralVirtual CListView page scrolling Pin
ldaoust22-Dec-03 15:57
ldaoust22-Dec-03 15:57 
QuestionPlease help! the way using SetBitmap, no memory leak? Pin
twing22-Dec-03 15:26
twing22-Dec-03 15:26 
AnswerRe: Please help! the way using SetBitmap, no memory leak? Pin
Monty222-Dec-03 18:05
Monty222-Dec-03 18:05 
GeneralRe: absolutely in OnDestroy? No other way? Pin
twing22-Dec-03 19:16
twing22-Dec-03 19:16 
GeneralRe: absolutely in OnDestroy? No other way? Pin
Monty222-Dec-03 19:36
Monty222-Dec-03 19:36 
GeneralRe: because i use it in some threads! Pin
twing22-Dec-03 19:44
twing22-Dec-03 19:44 
GeneralRe: Please help! Smart points could solve my problem??? Pin
twing22-Dec-03 19:34
twing22-Dec-03 19:34 
QuestionBuggy window behavior? Pin
Jerry Hammond22-Dec-03 14:04
Jerry Hammond22-Dec-03 14:04 
AnswerRe: Buggy window behavior? Pin
alex.barylski22-Dec-03 16:25
alex.barylski22-Dec-03 16:25 
AnswerRe: Buggy window behavior? Pin
Chris Richardson22-Dec-03 18:07
Chris Richardson22-Dec-03 18:07 
AnswerRe: Buggy window behavior? Pin
Monty222-Dec-03 18:09
Monty222-Dec-03 18:09 
AnswerRe: Buggy window behavior? Pin
Jerry Hammond23-Dec-03 7:48
Jerry Hammond23-Dec-03 7:48 
AnswerRe: Buggy window behavior? Pin
nema3223-Dec-03 8:08
nema3223-Dec-03 8:08 

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.