|
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Task manager before removing the process from the system doesn't it send any notification to the process? Are there any way to track this?
|
|
|
|
|
As I explained in my earlier post, the taskmanager doesn't notify the application.
The taskmanager is like a thief. It takes something from windows and it doesn't notify anything...
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Are you sure about that? If I make a modification to a a text file in notepad and attempt to shut down notepad from the task manager, notepad pops up and asks me if I want to save the work. Task manager then pops up and says that notepad is not responding. While I've never checked into the message sent from task manager, that obviously seems to indicate that the applicatoin does receive some sort of notification.
|
|
|
|
|
If you shot down the application, than you recieve a notification, but if you end the process (on the process tab) you don't get it. Plus if you press the "End now" buttond on the dialog that the TM pops up, the application is terminated no matter what.
You can conclude from this that it is not safe to rely on that behaviour.
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Yep. You're correct. I just ran some tests and verified with spy++ that on the "end now", you don't get a message. I'm thinking there's got to be a way to prevent the shut down though as I've seen apps in the past that I couldn't close. However, it's probably some kludge like stating you're in debug mode when you're not - I seem to remember messages to the effect that the app couldn't be shut down becuase it was being debugged when clearly it wasn't.
|
|
|
|
|
ThatsAlok also says that there are ways to fool the TM. He says that he has some code in an article that he wrote that does the trick, but I couldn't find it yet.
I've also seen apps that didn't close even when I wanted them too, but that was in the Win98 days. Now with Win2K and WinXP I don't have that problem anymore.
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Bob Stanneveld wrote:
ThatsAlok also says that there are ways to fool the TM. He says that he has some code in an article that he wrote that does the trick, but I couldn't find it yet.
Hain, BOB I havn't write any article that can fool TM. I am saying that a Article present at CP demonstrate that, here is link for that :-
http://www.codeproject.com/system/Paladin.asp[^]
I have discussion over this TOPIC with Mr. J. Newcommer in FEB this year at Microsoft.public.vc.mfc newsgroup, wheather it is good or not!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
|
That was a interesting read! Thanks
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Tom Archer wrote:
http://blogs.msdn.com/oldnewthing/archive/2004/07/22/191123.aspx#191459[^]
http://blogs.msdn.com/oldnewthing/archive/2004/07/23/192531.aspx[^]
Nice Collection
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Asha Udupa wrote:
Is there anyway to handle the forced exit of an application by task manager?
I Believe, No Way. Better way is to hide you application from TaskManager.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
ThatsAlok wrote:
Better way is to hide you application from TaskManager.
but you can always use the process tab and its "terminate the process" (not sure about the translation, i use french version of windows )
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
toxcct wrote:
you can always use the process tab
There are way to hide from process TAB too
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
ThatsAlok wrote:
There are way to hide from process TAB too
ok, i didn't know that ...
in fact, i never touch the task manager...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Interesting! How do you do such a thing?
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Bob Stanneveld wrote:
How do you do such a thing?
I implemented during one of my project, it's code is available at CODEPROJECT. it is written by pudn.com (YEAH thats author name)
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
When the user first selects to terminate the process from the task manager, you get a WM_CLOSE message where you can save files and so on. However, if the app doesn't close, the task manager will display a message allowing the user to shut down the application immediately. On this attempt, you don't seem to get a message. (At least not one that is show in spy++).
I'm thinking there's got to be a way to prevent closing as I've seen applications that couldn't be closed from the task manager. However, I don't know how they accomplished that.
|
|
|
|
|
|
Sorry if this is super easy, but I'm a newbie at this stuff. Can somebody tell me what I need to do to create an open document dialog box? Basically I need to be able to choose a sound file by clicking a button. Thanks.
|
|
|
|
|
Simple with MFC. Use the CFileDialog class. It encapsulates the windows commond dialog box.
Documentation[^]
I Dream of Absolute Zero
|
|
|
|
|
Look at CFileDialog in the MSDN (I suppose you are using MFC)
|
|
|
|
|
Okay I read that documentation and I played around with stuff, but I'm really not sure how to create m_ofn and then use its member functions.
|
|
|
|
|