Information générale
Catégorie:
Fonctions API de Windows
Titre:
How can I close another application?
Hi everybody!
How can I close another application? I've tryed to use WINAPI function FindWindow and it didn't find it.
I used the following:
Public Declare Function FindWindow Lib "user32" _
Alias "FindWindowA" _
(ByVal lpClassName As String, _
ByVal lpWindowName As String) As Long
and then called it like this:
ctitletext = "Source"
cclassname = ""
nhWnd = FindWindow(cclassname, ctitletext)
and every time it returned a zero.
What is wrong?
TIA, Uri.
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