General information
Category:
Windows API functions
Title:
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.
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only