Sniff for Open Programs
Is there a comand or a combination of commands that would allow me to determine if a program is open on a users machine.
Cheers,
Chris
Archive: Sniff for Open Programs
Sniff for Open Programs
Is there a comand or a combination of commands that would allow me to determine if a program is open on a users machine.
Cheers,
Chris
Chris,
you should know he window name (e.g. Notepad) and/or it's class. Then use FindWindow to verify if the window is open. Use SendMessage to close the window if necessary.
You can detect name and/or class using some Spy tool (e.g. Spy++ of VC++).
Good luck, greetz,
Hendri.
is there a way other than FindWindow name/class ?
can i find a running file "msmsgs.exe" and SendMessage to close?
Thank you
Chris,
I don't think so.
You should use FindWindow and SendMessage.
see also latest thread about SendMessage:
http://forums.winamp.com/showthread.php?threadid=79026
Good luck,
Hendri.
And see this thread for further information about spy...
http://forums.winamp.com/showthread....t=send+message
Greetz,
Hendri.