HI zusammen!
Also ich habe win XP pro
terminate process schließt fast nichts!
jetzt hab ichs mit dem versucht.
Private Const WM_CLOSE = &H10
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 String, ByVal lpWindowName As String) As Long
------------------------------
Call SendMessage(me.hwnd, WM_CLOSE, 0, 0)
das schliest nicht mal das eigene form
was mach ich falsch?
mfg
ron
Also ich habe win XP pro
terminate process schließt fast nichts!
jetzt hab ichs mit dem versucht.
Private Const WM_CLOSE = &H10
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 String, ByVal lpWindowName As String) As Long
------------------------------
Call SendMessage(me.hwnd, WM_CLOSE, 0, 0)
das schliest nicht mal das eigene form
was mach ich falsch?
mfg
ron