Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I close another application?
Message
From
29/01/1999 06:24:05
 
 
To
All
General information
Forum:
Visual Basic
Category:
Windows API functions
Title:
How can I close another application?
Miscellaneous
Thread ID:
00181712
Message ID:
00181712
Views:
38
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.
Reply
Map
View

Click here to load this message in the networking platform