General information
Category:
Windows API functions
>i have a little procedure to terminate running process. i want to use this to close internet web page by closing iexplore.exe process. On Windows 98 the TerminateProcess function works well but doesn't work on NT system.
>why this ?
The enumerated window / form hook is different on NT than it is on W98 - threw me for a loop to -
so if you are looking for window handle, and it always evaluates to 0 -
then try to get the caption of the browser instead. hard to do sometimes.
also - look at the sendmessage function - it may be that you can't terminate a process because you don't have root on the box. does it work when you are logged in as the administrator? if so, then it's a rights problem - and sendmessage can close a program once it has the handle.
hth - regards [Bill]
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only