Function TerminateProcess Lib "kernel32"

how do you use this function in VB:
Declare Function TerminateProcess Lib "kernel32" _
Alias "Terminate Process" (ByVal hProcess As _
Long, ByVal uExitCode As Long) As Long
anushaAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Erick37Connect With a Mentor Commented:
"HOWTO: Programmatically Close a Separate Application"
Microsoft advises using this API as a last resort.
http://support.microsoft.com/support/kb/articles/Q176/3/91.asp

This site has a code example of how to kill a process using TerminateProcess:
http://www.thescarms.com/VBasic/AppResponse.htm
0
 
btfoxCommented:
Works great!!  Thanks!
0
All Courses

From novice to tech pro — start learning today.