Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Detect if a process is running

Name: Anonymous 2007-04-26 0:41 ID:BFlCOmid

How do you detect if a process is running by its name in Windows? In other words be able to input "program.exe" into a function and have it say if it is running.

Preferably in C++, but alternate languages are ok.

Name: Anonymous 2007-04-26 14:16 ID:dcbxX8a/

>>13

The OP wants to write a function that accepts a program name and lets him know if it's running on the system. Your suggestion implies that he should link his program against the cygwin library and also have ps and grep binaries installed just to do this.

That is just retarded when there are perfectly good Win32 functions that will do what he wants. (As >>8 described)

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List