Mike Collins
2007-07-24 13:03:26 UTC
Hi all, got a bit of a problem with a system i'm working on. Have an
interception hook that hooks NtCreateProcess/Ex. I spawn a ** waiting **
thread from this call and pass it the process handle returned from
NtCreateProcess/Ex. I need this thread to be singnaled when the new process
is terminated, so i use WaitForInputIdle and WaitForSingleObject with the
handle returned from NtCreateProcess/Ex. In both cases, the wait function
fails retuning a last error of Invalid Handle. Can anyone tell me why the
handle returned from NtCreateProcess/Ex appear to be invalid at this point?
Many thanks
Mike
interception hook that hooks NtCreateProcess/Ex. I spawn a ** waiting **
thread from this call and pass it the process handle returned from
NtCreateProcess/Ex. I need this thread to be singnaled when the new process
is terminated, so i use WaitForInputIdle and WaitForSingleObject with the
handle returned from NtCreateProcess/Ex. In both cases, the wait function
fails retuning a last error of Invalid Handle. Can anyone tell me why the
handle returned from NtCreateProcess/Ex appear to be invalid at this point?
Many thanks
Mike