Killing another program

HARRY

Active Member
Licensed User
Longtime User
Hi,

I am writing a program (A) that occasionnaly will update files. To be sure that those files are not used by another program (B), not written by me, I need to know whether B is running.

I intend to do that by checking in A the window handle of B to be 0 or <> 0, using dzhw1.GetWindowHandle(ClassName , WindowName ). However, I do not know the ClassName and the WindowName of B.

1) Is it possible to get a list of those items of the running programs; then I can identify for one time the data I need?

2) Does another possibility exist to get the required window handle to kill B?

Harry
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…