I would example
tkssssss:)
how hook in my .exe without use one dll?
oh sorry icon
Friend..
the examples of madshi are all with dll ok?
I need only how change to hook in my own .exe
only my .exe to never killed
I need protect my program com terminateprocess e exitprocess whithout dll
only
Do u have one example?
tks
the examples of madshi are all with dll ok?
I need only how change to hook in my own .exe
only my .exe to never killed
I need protect my program com terminateprocess e exitprocess whithout dll
only
Do u have one example?
tks
Sorry for the late reply!
In the NT family doing API hooking only ever affects the current process. But if the user e.g. uses the task manager to terminate your application then TerminateProcess is called in the context of the task manager and NOT in the context of your process. So in order to stop the user from doing that you'd need to hook the TerminateProcess API in the context of the task manager. Now it's theoretically possible to do this without using a dll, but it'd be difficult as hell. So you better stop thinking about realizing this without using a dll.
In the NT family doing API hooking only ever affects the current process. But if the user e.g. uses the task manager to terminate your application then TerminateProcess is called in the context of the task manager and NOT in the context of your process. So in order to stop the user from doing that you'd need to hook the TerminateProcess API in the context of the task manager. Now it's theoretically possible to do this without using a dll, but it'd be difficult as hell. So you better stop thinking about realizing this without using a dll.
Re: how hook in my .exe without use one dll?
By the way, you can have many global hooks, not just one. The biggest consideration is that the hook code needs to be very fast/efficient because it is getting control for every keystrok