
Originally Posted by
Arktos
Is there a platform-independant (Qt-like) way to determine if a process is running?
I don't know 
And if not, is it possible for my program to determine on which OS it is running at runtime?
So that I can use Win32-Api-calls only when it is running on a win32-machine?
bool isRunning = false;
#ifdef Q_OS_WIN32
// do your windows stuff here
// e.g.
is Running = true;
#endif
#ifdef Q_OS_UNIX
// do your Unix stuff here
#endif
bool isRunning = false;
#ifdef Q_OS_WIN32
// do your windows stuff here
// e.g.
is Running = true;
#endif
#ifdef Q_OS_UNIX
// do your Unix stuff here
#endif
To copy to clipboard, switch view to plain text mode
Bookmarks