That would just close the window, I want to unload the entire program itself.
I found this code on AllAPI.net
VB Code:
Private Declare Sub ExitProcess Lib "kernel32" (ByVal uExitCode As Long)
Private Declare Function GetExitCodeProcess Lib "kernel32" (ByVal hProcess As Long, lpExitCode As Long) As Long
Private Declare Function GetCurrentProcess Lib "kernel32" () As Long
Private Sub Form_Load()
'KPD-Team 1999
'URL: [url]http://www.allapi.net/[/url]
'end this process
ExitProcess GetExitCodeProcess(GetCurrentProcess, 0)
End Sub
What process would that kill though?
Thank you,
Sir Loin