Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I close another application?
Message
De
29/01/1999 06:24:05
 
 
À
Tous
Information générale
Forum:
Visual Basic
Catégorie:
Fonctions API de Windows
Titre:
How can I close another application?
Divers
Thread ID:
00181712
Message ID:
00181712
Vues:
37
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
Fil
Voir

Click here to load this message in the networking platform