Skip to content
Matt Jamison edited this page Sep 8, 2016 · 1 revision

Public Declare PtrSafe Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long Public Declare PtrSafe Function CloseWindow Lib "user32" (ByVal hwnd As Long) As Long Public Declare PtrSafe Function SendMessage Lib "user" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByRef lParam As Any) As Long

Private Const WM_CLOSE As Long = &H10

Clone this wiki locally