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?
            Asked
            
        
        
            Active
            
        
            Viewed 42 times
        
    0
            
            
        - 
                    I think you'll have to resort to OS API – Guillaume Racicot Mar 21 '16 at 01:54
 - 
                    Well I cant use VC++ API, because I'm using Dev C++. Isn't there any way?? – Levi Branch Mar 21 '16 at 01:56
 - 
                    I don't develop on windows, so I'm not aware how to do it, but it might be an inclusion and a linkage to some sort of system library. – Guillaume Racicot Mar 21 '16 at 02:03
 
1 Answers
1
            
            
        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?
        Community
        
- 1
 - 1
 
        Martin Beckett
        
- 94,801
 - 28
 - 188
 - 263