is it possible, in C++, to get the current RAM and CPU usage? Is there a platform-indepentent function call?
There is no platform independent way to do this. Although for windows, you can get the CPU usage and performance metrics by using PDH.dll(Performance Data Helper) and its related APIs in your code.
Here's more on how to use it.