Re: Gracefully shutting down a thread in a DLL



"Christian Kaiser" <bchk@xxxxxx> wrote in message
news:%23HX0whQiIHA.748@xxxxxxxxxxxxxxxxxxxxxxx
Seriously: there's no way. The cleanup thread must be terminated
before PROCESS_DETACH is called by the loader. Perhaps if you hook the
"ExitProcess()" API so that you're noted when the application wants to
quit?

That sounds like a possibility. I've never hooked an API so I'll do some
research on that unless someone knows why that might not work.

Thanks for the idea!

Bruce.


.



Relevant Pages

  • Re: Gracefully shutting down a thread in a DLL
    ... before PROCESS_DETACH is called by the loader. ... Perhaps if you hook the ... "ExitProcess" API so that you're noted when the application wants to ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Quit Application
    ... Michael Ash wrote: ... Is there any API to send quit event to other application? ... Send it a Quit Apple Event. ...
    (comp.sys.mac.programmer.help)
  • Re: Quit Application
    ... Is there any API to send quit event to other application? ... Rogue Amoeba Software ...
    (comp.sys.mac.programmer.help)
  • Re: Process creation interception
    ... The best method for preventing process-creation is to hook ... either the ZwCreateProcess API in kernel, ... You really need to be doing this type of "system-wide" stuff in the kernel.. ... > I am developing some kind of a watch dog, this watch dog should intercept ...
    (microsoft.public.win32.programmer.kernel)
  • Re: starting and ending location in memory?
    ... Chad Cartwright wrote: ... > hooking the program's API. ... It's a basic game when it comes to chatting and all that. ... hook monitored APIs ...
    (comp.programming)