API to close any window using c++ win32
-
Hi all, I need win32 API to close any window(ex:IE) forcibly.Lets take one scenario. Steps: 1.Install toolbar(Yahoo/Google) 2.Open IE. 3.Close IE.// Here unless until we are closing toolbar popup window we can't close browser window. But I need API to close browser window without interacting with toolbar window. Thanks...
-
Hi all, I need win32 API to close any window(ex:IE) forcibly.Lets take one scenario. Steps: 1.Install toolbar(Yahoo/Google) 2.Open IE. 3.Close IE.// Here unless until we are closing toolbar popup window we can't close browser window. But I need API to close browser window without interacting with toolbar window. Thanks...
You can use
PostQuitMessage
API to tell the window to close. If you want to force a close you can useTerminateProcess
to kill the process. But does not guarantee proper cleanup.«_Superman_»
-
Hi all, I need win32 API to close any window(ex:IE) forcibly.Lets take one scenario. Steps: 1.Install toolbar(Yahoo/Google) 2.Open IE. 3.Close IE.// Here unless until we are closing toolbar popup window we can't close browser window. But I need API to close browser window without interacting with toolbar window. Thanks...
You can send WM_CLOSE to programs.
Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )
-
You can send WM_CLOSE to programs.
Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )
I have tried with WM_CLOSE, but it is not working.Better if sending the code.
-
You can send WM_CLOSE to programs.
Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )
FYI: In widows task manager we are able to 'End Task' any application.I read one article, it was written to use EndTask() API to close any app forcibly. But my compiler is flashing error.I think it doesn't exit in VS2008 express edition.
-
I have tried with WM_CLOSE, but it is not working.Better if sending the code.
You need to get handle of programs(HWND) and then you can use of SendMessage for close them.
Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )
-
FYI: In widows task manager we are able to 'End Task' any application.I read one article, it was written to use EndTask() API to close any app forcibly. But my compiler is flashing error.I think it doesn't exit in VS2008 express edition.
What was the error?
Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )