With this short program you can directly close other applications.
With this short program you can directly close other applications.
API Declarations
Private Declare Function PostMessage Lib "user32" Alias "PostMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Private Const WM_CLOSE = &H10
Rate With this short program you can directly close other applications.
(2(2 Vote))
Dim ghw As Long
ghw = FindWindow(vbNullString, "Here must be written an EXACT name of window - it means TITLE BAR!")
PostMessage ghw, WM_CLOSE, CLng(0), CLng(0)
End Sub
With this short program you can directly close other applications. Comments
No comments yet — be the first to post one!
Post a Comment