VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



With this short program you can directly close other applications.

by Richard Cemus (2 Submissions)
Category: Windows System Services
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Thu 23rd November 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)

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.



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


Download this snippet    Add to My Saved Code

With this short program you can directly close other applications. Comments

No comments have been posted about With this short program you can directly close other applications.. Why not be the first to post a comment about With this short program you can directly close other applications..

Post your comment

Subject:
Message:
0/1000 characters