Click here to Skip to main content
15,905,508 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
QuestionHow to use GridCtrl? Pin
codechen47030-Oct-05 14:01
codechen47030-Oct-05 14:01 
AnswerRe: How to use GridCtrl? Pin
Christian Graus30-Oct-05 14:38
protectorChristian Graus30-Oct-05 14:38 
Questioncopy paste linux style in windows Pin
Noam Ben Haim30-Oct-05 4:50
Noam Ben Haim30-Oct-05 4:50 
AnswerRe: copy paste linux style in windows Pin
__yb31-Oct-05 21:40
__yb31-Oct-05 21:40 
Questionhelp! how to carry out this function? Pin
ewighell30-Oct-05 4:30
ewighell30-Oct-05 4:30 
AnswerRe: help! how to carry out this function? Pin
Christian Graus30-Oct-05 11:40
protectorChristian Graus30-Oct-05 11:40 
GeneralRe: help! how to carry out this function? Pin
ewighell30-Oct-05 14:35
ewighell30-Oct-05 14:35 
GeneralRe: help! how to carry out this function? Pin
Christian Graus30-Oct-05 14:38
protectorChristian Graus30-Oct-05 14:38 
GeneralRe: help! how to carry out this function? Pin
ewighell30-Oct-05 15:10
ewighell30-Oct-05 15:10 

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.