Information générale
Catégorie:
Fonctions Windows API
>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]
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement