Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Private Declare Function FindWindow% Lib "user32" Alias "FindWindowA" (ByVal lpclassname As Any, ByVal lpCaption As Any)
Const WM_CLOSE = &H10
Private Function CloseIt()
Dim X&, hwnd%
hwnd% = FindWindow%("OpusApp", 0&)
SendMessage hwnd%, WM_CLOSE, 0, 0
End Function