In my project, we use the ACE ( Adaptive Communication Environment) middleware to write OS independent code that would run on both Windows and Linux.
The requirement is to the get the process id from process name. Since ACE does not support this, we will have to use platform specific macros to separate the code for windows and linux.
For windows I would have to use either of - EnumProcesses or CreateToolhelp32Snapshot
How to do the same on linux using an API ?
Programming language is C++