Re: any way to hook process creation at kernel level in suspended ?
- From: "andrewn" <andrewn@wrk>
- Date: Tue, 12 Apr 2005 14:30:00 +0300
Hi Don & Sergei,
First, thanks alot for your comments !
I have few comments upon what you both said.
Why do you think that the DLL solution using the AppInit_DLLs registry key
is somehow "clumsy" ?
It might be even more efficient than the a kernel mode-driver.
I tested and I can even unload the dll attached by Windows to the process
being created if i return FALSE on the DLL_PROCESS_ATTACH event in DllMain
(dll is unloaded and the process continues to run without error, that's
because the DLL is loaded by system using LoadLibrary).
Hence, if I dont need any dialog confirmation for the process being created,
i can just unload the DLL.
In fact I will always unload the DLL since I can determine when the process
is finished once the process handle is signaled (opening a process handle on
a copy of process id).
If i need the dialog confirmation for a process, i will use synchronization
between processes (for ex event, mutex ) and make the process being created
to be suspended right in the DLL_PROCESS_ATTACH event .
But I am still thinking about the kernel callback routines as it might be a
better solution (though I dont know exactly why).
Sergei, I think you are correct.
Anyway, I think the main point is missunderstood here. Its not a problem of
just knowing when a process is created, its more than that, its about
sometimes suspending the process execution also (and in a non-blocking way,
without blocking the process which invoked CreateProcess).
Thank you !
.
- References:
- any way to hook process creation at kernel level in suspended ?
- From: andrewn
- Re: any way to hook process creation at kernel level in suspended ?
- From: andrewn
- Re: any way to hook process creation at kernel level in suspended ?
- From: Marc Sherman
- Re: any way to hook process creation at kernel level in suspended ?
- From: andrewn
- Re: any way to hook process creation at kernel level in suspended ?
- From: Marc Sherman
- Re: any way to hook process creation at kernel level in suspended ?
- From: andrewn
- Re: any way to hook process creation at kernel level in suspended ?
- From: Sergei Zhirikov
- any way to hook process creation at kernel level in suspended ?
- Prev by Date: Re: Two threads reading from same file?
- Next by Date: Re: WriteFile()
- Previous by thread: Re: any way to hook process creation at kernel level in suspended ?
- Next by thread: Re: any way to hook process creation at kernel level in suspended ?
- Index(es):
Relevant Pages
|