Hi,
I need to check if a particular program is running, if it is I need to close it.
There process does not generate a window, as it runs in the background.
Someone suggested GetWindow, but I cannot get this to work.
Any Ideas?
Thanks
Hi,
I need to check if a particular program is running, if it is I need to close it.
There process does not generate a window, as it runs in the background.
Someone suggested GetWindow, but I cannot get this to work.
Any Ideas?
Thanks
well if you don't mind losing pre-nt compatability you can use the psapi.
Call EnumProcesses, then call OpenProcess to get handles.
nevermind
Last edited by johny145; 08-03-2005 at 11:50 AM.
I am having problems using psapi
I have downloaded the MS Platform SDK which includes it.
I have included the following in my program
#include "C:\Program Files\Microsoft PlatformSDK\Include\psapi.h"
It compiles, but will not link, what am I doing wrong?
Thanks,