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

C / C++ / MFC

 
GeneralRe: problem with wide chars (urgent :( ) Pin
gamitech7-Mar-06 22:38
gamitech7-Mar-06 22:38 
GeneralRe: problem with wide chars (urgent :( ) Pin
Nibu babu thomas7-Mar-06 22:50
Nibu babu thomas7-Mar-06 22:50 
AnswerRe: problem with wide chars (urgent :( ) Pin
James R. Twine8-Mar-06 1:43
James R. Twine8-Mar-06 1:43 
QuestionMemeory 3G problems ? Pin
jianghongtu7-Mar-06 13:52
jianghongtu7-Mar-06 13:52 
QuestionDeactivating individual CListCtrl entries Pin
humots7-Mar-06 13:37
humots7-Mar-06 13:37 
AnswerRe: Deactivating individual CListCtrl entries Pin
Nibu babu thomas7-Mar-06 17:08
Nibu babu thomas7-Mar-06 17:08 
QuestionPrevent process being terminated Pin
Phil Harding7-Mar-06 12:14
Phil Harding7-Mar-06 12:14 
AnswerRe: Prevent process being terminated Pin
Ryan Binns7-Mar-06 17:23
Ryan Binns7-Mar-06 17:23 
Phil Harding wrote:
Does anyone have any idea on how one can programmatically prevent another process terminating the process of "my application"


No. If the user account associated with the other application has high enough privileges, it can terminate your application. AFAIK, There's nothing you can do about it. Your best bet is to ensure your application runs as the "Local System" user, but even then an admin will be able to kill it.

Incidentally, those other nefarious (I love that word Big Grin | :-D ) programs don't prevent themselves being terminated, they detect when they are, and then restart themselves. The usually run two processes, and since only one can be terminated at a time by the user, the other one can detect that it has been killed, and restart it. You could take this path, if it only matters that an instance of your program is running. Of course, it won't help if you require the same instance of your program running and not be terminated.

Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

QuestionHelp: VS.NET 2005 Help Broken? Pin
yellowine7-Mar-06 11:34
yellowine7-Mar-06 11:34 
AnswerRe: Help: VS.NET 2005 Help Broken? Pin
Office Lineman7-Mar-06 14:01
Office Lineman7-Mar-06 14:01 
GeneralRe: Help: VS.NET 2005 Help Broken? Pin
yellowine8-Mar-06 3:08
yellowine8-Mar-06 3:08 
QuestionFinding the user account name in XP Pin
Pacificat0r7-Mar-06 10:40
Pacificat0r7-Mar-06 10:40 
AnswerRe: Finding the user account name in XP Pin
Michael Dunn7-Mar-06 11:01
sitebuilderMichael Dunn7-Mar-06 11:01 
GeneralRe: Finding the user account name in XP Pin
Pacificat0r8-Mar-06 1:00
Pacificat0r8-Mar-06 1:00 
Questionwriting XML with IXMLDOMDocument2 with lf/cr ? Pin
Maximilien7-Mar-06 9:57
Maximilien7-Mar-06 9:57 
AnswerRe: writing XML with IXMLDOMDocument2 with lf/cr ? Pin
Michael Dunn7-Mar-06 11:03
sitebuilderMichael Dunn7-Mar-06 11:03 
QuestionIE ActiveX Control Pin
folkenmax7-Mar-06 9:56
folkenmax7-Mar-06 9:56 
AnswerRe: IE ActiveX Control Pin
Trollslayer7-Mar-06 22:43
mentorTrollslayer7-Mar-06 22:43 
GeneralRe: IE ActiveX Control Pin
folkenmax8-Mar-06 1:48
folkenmax8-Mar-06 1:48 
QuestionHelp Datagrid freezes after change of readonly Pin
David M J7-Mar-06 8:53
David M J7-Mar-06 8:53 
QuestionOpc server help Pin
eusto7-Mar-06 8:17
eusto7-Mar-06 8:17 
AnswerRe: Opc server help Pin
QuickDeveloper7-Mar-06 16:55
QuickDeveloper7-Mar-06 16:55 
GeneralRe: Opc server help Pin
eusto7-Mar-06 20:47
eusto7-Mar-06 20:47 
GeneralRe: Opc server help Pin
QuickDeveloper7-Mar-06 20:59
QuickDeveloper7-Mar-06 20:59 
QuestionAPI List Control Help Pin
Greg Barnes7-Mar-06 7:43
Greg Barnes7-Mar-06 7:43 

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.