Information générale
Catégorie:
Fonctions Windows API
>That's correct, but the problem is how you can obtain the correct processId. If the other apps started within the same one, it should be possible to get the "pointer" to the corresponding ProcessId and pass it to the application that supposed to close them.
Good morning Nick,
I have something that will work. I use GetWindowThreadProcessId to get the ProcessID based on the handle I retrieved using the Windows title. Then use OpenProcess. Then I used EnumProcessModules to get all the active processes. Then looping through those I finally use GetModuleFileNameEx. From there I can compare to insure that the Windows Title belongs to the executable program I wish to close.
Thanks to all you guys for your help.
Mike
Précédent
Suivant
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