VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Close Any Application

Alex  (11 Submissions)   Windows API Call/Explanation   Visual Basic 3.0   Unknown Difficulty   Wed 3rd February 2021

This code will Close any application based on its windows caption

API Declarations
Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Declare Function PostMessage Lib "user32" Alias "PostMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Public Const WM_CLOSE = &H10

Rate Close Any Application (8(8 Vote))
Close Any Application.bas

Close Any Application Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters