Is there a way to terminate a process that hasn't been opened by VB?
Right now I need to shell an application, and the application in turn is opening several applications that need to all be closed individually using VB.
I found this:
Private Declare Function TerminateProcess Lib "kernel32" (ByVal hProcess As Long, ByVal uExitCode As Long) As Long
But I'm not sure how to find out the hProcess, I know you can receive a return value from a shell, but right now I simply need to find out how to end a process without opening it first. I also tried closing the window, but that didn't work right as the application freezes, so I must end the process.
