Click here to Skip to main content
15,891,423 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralMultilingual (Unicode) Pin
12-Jan-04 14:25
suss12-Jan-04 14:25 
GeneralNeed help with sending email through program. Pin
Snyp12-Jan-04 14:19
Snyp12-Jan-04 14:19 
GeneralRe: Need help with sending email through program. Pin
bryce12-Jan-04 15:51
bryce12-Jan-04 15:51 
GeneralRe: Need help with sending email through program. Pin
Snyp12-Jan-04 16:02
Snyp12-Jan-04 16:02 
GeneralRe: Need help with sending email through program. Pin
bryce12-Jan-04 16:14
bryce12-Jan-04 16:14 
GeneralRe: Need help with sending email through program. Pin
murali_utr12-Jan-04 17:35
murali_utr12-Jan-04 17:35 
GeneralRe: Need help with sending email through program. Pin
Marcello16-Jan-04 7:30
Marcello16-Jan-04 7:30 
Generalhelppp!!! ERROR_ACCESS_DENIED and openprocesstoken() Pin
dp512-Jan-04 12:58
dp512-Jan-04 12:58 
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
GeneralCancel button on Modeless dialog Pin
Spank me!!12-Jan-04 11:54
Spank me!!12-Jan-04 11:54 
GeneralRe: Cancel button on Modeless dialog Pin
mhar12-Jan-04 14:28
professionalmhar12-Jan-04 14:28 
GeneralRe: Cancel button on Modeless dialog Pin
jhwurmbach12-Jan-04 22:28
jhwurmbach12-Jan-04 22:28 
GeneralBlank Taskbar Icon in XP Pin
Michael Babb12-Jan-04 11:18
Michael Babb12-Jan-04 11:18 
GeneralWinsock2 help please! Pin
LizardWiz12-Jan-04 11:14
LizardWiz12-Jan-04 11:14 
GeneralRe: Winsock2 help please! Pin
Joaquín M López Muñoz12-Jan-04 11:33
Joaquín M López Muñoz12-Jan-04 11:33 
GeneralSMPT mail problem Pin
Anonymous12-Jan-04 10:42
Anonymous12-Jan-04 10:42 
GeneralRe: SMPT mail problem Pin
Joaquín M López Muñoz12-Jan-04 11:22
Joaquín M López Muñoz12-Jan-04 11:22 
GeneralRe: SMPT mail problem Pin
bryce12-Jan-04 16:45
bryce12-Jan-04 16:45 
GeneralRe: SMPT mail problem Pin
murali_utr12-Jan-04 17:38
murali_utr12-Jan-04 17:38 
Generalabout cov and eig Pin
Vincent Sim12-Jan-04 10:36
Vincent Sim12-Jan-04 10:36 
GeneralDrag and drop CtreeView Pin
act_x12-Jan-04 10:25
act_x12-Jan-04 10:25 
GeneralRe: Drag and drop CtreeView Pin
KaЯl12-Jan-04 23:54
KaЯl12-Jan-04 23:54 
GeneralCRichedit control scrolling Pin
Anonymous12-Jan-04 10:21
Anonymous12-Jan-04 10:21 
GeneralDarkside mini SQL errors in http extension dll Pin
Kuniva12-Jan-04 10:21
Kuniva12-Jan-04 10:21 
GeneralModifying exceptions inside a catch block Pin
Marcello12-Jan-04 10:09
Marcello12-Jan-04 10:09 
GeneralRe: Modifying exceptions inside a catch block Pin
Joaquín M López Muñoz12-Jan-04 11:18
Joaquín M López Muñoz12-Jan-04 11:18 

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.