Afficher un message
Vieux 09/10/2007, 17h46   #3
TedIF
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Comment obtenir le hwindow d'une application à partir d'un processId

> je ne comprends pas la question:
>
> The GetWindowThreadProcessId function retrieves the identifier of the thread
> that created the specified window and, optionally, the identifier of the
> process that created the window.
>
> l'inverse n'a pas de sens puisqu'une application ou un thread petu avoir créé
> plein de fenêtres différentes.


Je cherche à fermer proprement une application à partir d'une autre
appli, en envoyant un message WM_QUIT.
Je ne dispose que du nom du module. Avec CreateTool32Snapshot et
Process32First je trouve bien trace de mon application à fermer. Mais
comment faire après pour obtenir un handle à utiliser dans le
sendmessage ?

Merci d'avance

--

Dominique


  Réponse avec citation
 
Page generated in 0,04790 seconds with 9 queries