Levi Branch
Levi Branch

Reputation: 3

Waiting for a process to exist in "native" C++?

Not really sure what other information to provide. I'm quite new and attempting to make a basic process checker for good practice/measure. Using native C++ (I think that is what Dev C++ uses? What is that C++ version called by the way?). Anyways, how do I make sure a process, say, string process = "crossfire.exe"; exists?

Upvotes: 0

Views: 46

Answers (1)

Martin Beckett
Martin Beckett

Reputation: 96167

This is an operating system function - nothing in the language will allow this directly.

On Windows see How to get the current process list in windows

On linux see Linux API to list running processes?

Upvotes: 1

Related Questions