Click here to Skip to main content
15,921,697 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionListctrl Problem Pin
shivditya30-Oct-05 16:42
shivditya30-Oct-05 16:42 
QuestionNo One to answer ? Pin
shivditya30-Oct-05 17:30
shivditya30-Oct-05 17:30 
AnswerRe: Listctrl Problem Pin
Christian Graus30-Oct-05 17:38
protectorChristian Graus30-Oct-05 17:38 
QuestionRe: Listctrl Problem Pin
shivditya30-Oct-05 17:40
shivditya30-Oct-05 17:40 
AnswerRe: Listctrl Problem Pin
Christian Graus30-Oct-05 17:48
protectorChristian Graus30-Oct-05 17:48 
QuestionRe: Listctrl Problem Pin
shivditya30-Oct-05 17:51
shivditya30-Oct-05 17:51 
AnswerRe: Listctrl Problem Pin
Christian Graus30-Oct-05 17:54
protectorChristian Graus30-Oct-05 17:54 
AnswerRe: Listctrl Problem Pin
shivditya30-Oct-05 18:01
shivditya30-Oct-05 18:01 
GeneralRe: Listctrl Problem Pin
Christian Graus30-Oct-05 18:07
protectorChristian Graus30-Oct-05 18:07 
GeneralRe: Listctrl Problem Pin
ThatsAlok30-Oct-05 21:27
ThatsAlok30-Oct-05 21:27 
GeneralRe: Listctrl Problem Pin
ThatsAlok30-Oct-05 21:29
ThatsAlok30-Oct-05 21:29 
QuestionRe: Listctrl Problem Pin
shivditya30-Oct-05 17:46
shivditya30-Oct-05 17:46 
Questionchanging process access levels/rights Pin
Luke Murray30-Oct-05 15:39
Luke Murray30-Oct-05 15:39 
AnswerRe: changing process access levels/rights Pin
__yb31-Oct-05 21:33
__yb31-Oct-05 21:33 
GeneralRe: changing process access levels/rights Pin
Luke Murray2-Nov-05 12:56
Luke Murray2-Nov-05 12:56 
GeneralRe: changing process access levels/rights Pin
__yb2-Nov-05 22:21
__yb2-Nov-05 22:21 
GeneralRe: changing process access levels/rights Pin
Luke Murray3-Nov-05 14:16
Luke Murray3-Nov-05 14:16 
Thanks for the reply.

What I am trying to do is disable the user from killing the app in task manager.

first the program enabled SE_SYSTEM_NAME and then open the current process with ACCESS_SYSTEM_ALL (or something, dont have the code infront of me). Then I use GetKernelObjectSecurity to get the Dacl of the process and I adjust that by adding a AddAccessDeniedAce for the PROCESS_TERMINATE mask. and apply that to the Security descriptor and use SetKernelObjectSecurity to set it. Now this work for Windows NT. the task manager gets a 'access denied' when trying to kill the app. But in Win XP the Task manager gives itself the SE_DEBUG_NAME rights and can kill the app.

How do I get around this? other programs acheive this, like some firewall apps still return access denied when trying to kill the task in Win XP.

I understand using the kill cmd line tool from one of the SDK will always force the app to die. but I want to be able to stop the task manager form end task the app. Any ideas?

Thanks

Luke
Questionhow to get the file's full path from printer queue? Pin
szcococut30-Oct-05 15:10
szcococut30-Oct-05 15:10 
AnswerRe: how to get the file's full path from printer queue? Pin
Mircea Puiu30-Oct-05 21:11
Mircea Puiu30-Oct-05 21:11 
Questioni need help!!! Pin
gr8coaster32930-Oct-05 14:55
gr8coaster32930-Oct-05 14:55 
AnswerRe: i need help!!! Pin
Christian Graus30-Oct-05 15:13
protectorChristian Graus30-Oct-05 15:13 
GeneralRe: i need help!!! Pin
gr8coaster32930-Oct-05 15:28
gr8coaster32930-Oct-05 15:28 
GeneralRe: i need help!!! Pin
Christian Graus30-Oct-05 15:54
protectorChristian Graus30-Oct-05 15:54 
GeneralRe: i need help!!! Pin
gr8coaster32930-Oct-05 16:01
gr8coaster32930-Oct-05 16:01 
GeneralRe: i need help!!! Pin
Christian Graus30-Oct-05 16:03
protectorChristian Graus30-Oct-05 16:03 

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.