Public Declare Function TerminateProcess Lib "kernel32" Alias "TerminateProcess" (ByVal hProcess As Long, ByVal uExitCode As Long) As Long
and then call it . . .
Dim lngProcessID as Long
Dim intExitCode as Integer
lngProcessID = {The Process ID that you want to end}
Call TeminiateProcess(lngProcessID,intExitCode)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.