How to close the PID

J

Janis

Hi all:
i use the VBA to open one exe file with "Shell", and the
file is always into the system tray, now how to close this
file by VBA, as i know when this file was opened then win-
2k should provide the PID for this file, but i don't know
how to manage....
Private Declare Function TerminateProcess Lib "kernel32" _
(ByVal hProcess As Long, ByVal uExitCode As Long) As Long
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top