
Cannot terminate a process.
Hi, Nish, thanks.
I also think so. I guess that CreateProcess(.., _T
("C:\WINNT\explorer.exe D:\",....) create a process which
creates another process to run the "explorer.exe". I ever
tried to use PostThreadMessage but always failed.
I wonder is there any way out to get "parent process id"
of a process? Just now I read some posts in google and
found someone said that there is no such "parent-child"
relationship between process after the so-called "child"
process is created. So it seems that it'll be really hard,
even impossible, to terminate the "C:\WINNT\explorer.exe
D:\" process. :(
Regards.
Jeff
Quote:
>-----Original Message-----
>My guess would be that one instance of explorer.exe
always runs and if you
Quote:
>spawn a new explorer window it really does not spawn a
new process (rather
>the current process just brings up another top level
window). Thus you might
Quote:
>not be able to terminate it at all! Again, this is my
guess. You'd probably
Quote:
>want to test this out further.
>--
>Regards,
>Nish [Visual C++ MVP]
>> Hi, folks.
>> I encountered a problem about terminating a process I
created. I created a
Quote:
>> process using "CreateProcess" and pass
the "C:\WINNT\explorer.exe D:\" as
Quote:
>> the second parameter to this call. The explorer runs
well. But when I
>tried
>> to close this process using "TerminateProcess", it
returned FALSE! How can
Quote:
>I
>> close a process I created before?
>> Thanks.
>> Regards.
>> Jeff
>.