Click here to Skip to main content
15,920,836 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CComObject<> Problem Pin
Peter Molnar12-Dec-03 10:16
Peter Molnar12-Dec-03 10:16 
GeneralRe: CComObject&lt;&gt; Problem Pin
Braulio Dez14-Dec-03 21:38
Braulio Dez14-Dec-03 21:38 
GeneralRe: CComObject&lt;&gt; Problem Pin
Peter Molnar15-Dec-03 14:38
Peter Molnar15-Dec-03 14:38 
GeneralBlank spaces in system function pathnames Pin
dukeleto11-Dec-03 23:24
dukeleto11-Dec-03 23:24 
GeneralRe: Blank spaces in system function pathnames Pin
Ian Darling11-Dec-03 23:39
Ian Darling11-Dec-03 23:39 
GeneralRe: Blank spaces in system function pathnames Pin
David Crow25-Oct-06 3:24
David Crow25-Oct-06 3:24 
GeneralTrap Windows TaskManager end task me. Pin
KiangGiap Lau11-Dec-03 23:07
KiangGiap Lau11-Dec-03 23:07 
GeneralRe: Trap Windows TaskManager end task me. Pin
Antti Keskinen12-Dec-03 1:36
Antti Keskinen12-Dec-03 1:36 
On older Windows operating systems, the TaskManager first attempts to send a WM_DESTROY message to the thread's main window, and if it fails, it will attempt to terminate the thread itself. This can be trapped by utilizing simple thread-messaging maps. See MSDN for information about threads and thread messages.

On newer operating systems (2000 and above), the TaskManager will always kill the virtual machine that is running the process that is hang. Hooking this would require some extensive API knowledge and a system wide-hook for trapping low-level kernel operations.

However, I wouldn't suggest that you even attempt to hook the operation, as the TaskManager's process-killing feature is supposed to exist and work properly on every Windows platform to end processes that are hung, acting incorrectly or are not desired.

Overriding the default behaviour would quickly result in users having malicious processes like viruses, torjans or advertising/spying software that cannot be killed without using Safe mode and delicate deletion methods. Find some other way to accomplish whatever it is you are trying to do.

If you are attempting to write a virus/trojan or advertising/spying software, then this is a wrong place to ask. We are coders of honor and respect for our jobs. Our software is made to be enjoyable and useful, not to harass people or hinder users.

-Antti Keskinen


----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
GeneralRe: Trap Windows TaskManager end task me. Pin
KiangGiap Lau12-Dec-03 7:24
KiangGiap Lau12-Dec-03 7:24 
GeneralVisual C++ with sql query problem in Visual Studio.net Pin
sunny_rajwadi11-Dec-03 22:57
sunny_rajwadi11-Dec-03 22:57 
GeneralRe: Visual C++ with sql query problem in Visual Studio.net Pin
Anthony_Yio11-Dec-03 23:08
Anthony_Yio11-Dec-03 23:08 
GeneralKodak Image Edit Pin
satadru11-Dec-03 21:55
satadru11-Dec-03 21:55 
GeneralDialog boxes and views Pin
Sitaram Sukumar11-Dec-03 21:40
Sitaram Sukumar11-Dec-03 21:40 
GeneralRe: Dialog boxes and views Pin
Lido Paul11-Dec-03 21:52
Lido Paul11-Dec-03 21:52 
GeneralRe: Dialog boxes and views Pin
Sitaram Sukumar11-Dec-03 22:20
Sitaram Sukumar11-Dec-03 22:20 
GeneralRe: Dialog boxes and views Pin
Antti Keskinen12-Dec-03 1:27
Antti Keskinen12-Dec-03 1:27 
GeneralRe: Dialog boxes and views Pin
Sitaram Sukumar14-Dec-03 18:52
Sitaram Sukumar14-Dec-03 18:52 
GeneralRe: Dialog boxes and views Pin
Antti Keskinen15-Dec-03 0:25
Antti Keskinen15-Dec-03 0:25 
GeneralRe: Dialog boxes and views Pin
Balkrishna Talele12-Dec-03 0:28
Balkrishna Talele12-Dec-03 0:28 
Generalsaving private processor Pin
R. Thomas11-Dec-03 21:03
R. Thomas11-Dec-03 21:03 
GeneralRe: saving private processor Pin
Peter Molnar12-Dec-03 9:59
Peter Molnar12-Dec-03 9:59 
Questionhow get CComboBox input Pin
google7311-Dec-03 20:15
google7311-Dec-03 20:15 
AnswerRe: how get CComboBox input Pin
l a u r e n11-Dec-03 20:26
l a u r e n11-Dec-03 20:26 
GeneralRe: how get CComboBox input Pin
google7311-Dec-03 21:13
google7311-Dec-03 21:13 
GeneralRe: how get CComboBox input Pin
Lido Paul11-Dec-03 21:45
Lido Paul11-Dec-03 21:45 

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.