Click here to Skip to main content
15,909,039 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Cwnd Close or destroy Pin
ThatsAlok2-Dec-05 0:58
ThatsAlok2-Dec-05 0:58 
AnswerRe: Cwnd Close or destroy Pin
ThatsAlok2-Dec-05 0:38
ThatsAlok2-Dec-05 0:38 
QuestionInternal Error Pin
Cool Ju1-Dec-05 22:53
Cool Ju1-Dec-05 22:53 
AnswerRe: Internal Error Pin
ThatsAlok2-Dec-05 1:16
ThatsAlok2-Dec-05 1:16 
QuestionFrom TaskManager - Do not want anyone end task an App./Pross Pin
PanB1-Dec-05 22:03
PanB1-Dec-05 22:03 
AnswerRe: From TaskManager - Do not want anyone end task an App./Pross Pin
ThatsAlok1-Dec-05 23:24
ThatsAlok1-Dec-05 23:24 
GeneralRe: From TaskManager - Do not want anyone end task an App./Pross Pin
PanB1-Dec-05 23:27
PanB1-Dec-05 23:27 
GeneralRe: From TaskManager - Do not want anyone end task an App./Pross Pin
ThatsAlok2-Dec-05 0:55
ThatsAlok2-Dec-05 0:55 
PanB wrote:
1. User should not be able to end task a.exe
----1st approach - I may hide it.
----2ns approach - User should not have previledge to kill it.


IMHO 1 St Approach will be better, here is link for hiding process from taskmgr,
http://www.codeproject.com/system/Paladin.asp[^]

PanB wrote:
2. Id user end task a.exe, then b.exe should also be killed automatically.


b.exe should check that a.exe is running or not at regular interval (use WM_TIMER and FindWindow), if b.exe don't find a.exe in process list (for this Check out EnumProcess api that will enumerate current system process list for you), it should stop itself or exit...I have used this approach in app monitoring program and its work fine for me till now. (you can make a seprate thread for monitoring in the b.exe).

if you have any suggestion apart from that.. please do share Smile | :)


"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow


cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
GeneralRe: From TaskManager - Do not want anyone end task an App./Pross Pin
PanB2-Dec-05 1:01
PanB2-Dec-05 1:01 
GeneralRe: From TaskManager - Do not want anyone end task an App./Pross Pin
ThatsAlok2-Dec-05 1:12
ThatsAlok2-Dec-05 1:12 
GeneralRe: From TaskManager - Do not want anyone end task an App./Pross Pin
Blake Miller2-Dec-05 6:18
Blake Miller2-Dec-05 6:18 
GeneralRe: From TaskManager - Do not want anyone end task an App./Pross Pin
ThatsAlok4-Dec-05 17:55
ThatsAlok4-Dec-05 17:55 
GeneralRe: From TaskManager - Do not want anyone end task an App./Pross Pin
Blake Miller5-Dec-05 6:01
Blake Miller5-Dec-05 6:01 
GeneralRe: From TaskManager - Do not want anyone end task an App./Pross Pin
ThatsAlok5-Dec-05 17:34
ThatsAlok5-Dec-05 17:34 
GeneralRe: From TaskManager - Do not want anyone end task an App./Pross Pin
ThatsAlok5-Dec-05 21:11
ThatsAlok5-Dec-05 21:11 
GeneralRe: From TaskManager - Do not want anyone end task an App./Pross Pin
Blake Miller6-Dec-05 8:39
Blake Miller6-Dec-05 8:39 
GeneralRe: From TaskManager - Do not want anyone end task an App./Pross Pin
ThatsAlok6-Dec-05 17:08
ThatsAlok6-Dec-05 17:08 
GeneralRe: From TaskManager - Do not want anyone end task an App./Pross Pin
ThatsAlok6-Dec-05 18:51
ThatsAlok6-Dec-05 18:51 
GeneralRe: From TaskManager - Do not want anyone end task an App./Pross Pin
Eytukan2-Dec-05 2:09
Eytukan2-Dec-05 2:09 
GeneralRe: From TaskManager - Do not want anyone end task an App./Pross Pin
ThatsAlok6-Dec-05 18:55
ThatsAlok6-Dec-05 18:55 
AnswerRe: From TaskManager - Do not want anyone end task an App./Pross Pin
Sheng Jiang 蒋晟3-Dec-05 8:55
Sheng Jiang 蒋晟3-Dec-05 8:55 
AnswerRe: From TaskManager - Do not want anyone end task an App./Pross Pin
PanB7-Dec-05 17:54
PanB7-Dec-05 17:54 
QuestionAccess 2000 Ole Integration Pin
pabloqnk1-Dec-05 21:13
pabloqnk1-Dec-05 21:13 
AnswerRe: Access 2000 Ole Integration Pin
Branislav2-Dec-05 23:54
Branislav2-Dec-05 23:54 
Questionunicode problem Pin
QuickDeveloper1-Dec-05 20:54
QuickDeveloper1-Dec-05 20:54 

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.