Apparently, the hidden problem is that the laptops of the company, as a rule, do not have enough memory, but the companies work. To fix this particular problem, compare the memory used with the installed memory: EnumProcesses() and GetProcessMemoryInfo tells you the first; GetPhysicallyInstalledSystemMemory() tells you the second.
If they are too close, you can tell the user that there are 73 running processes using 2.5 GB, but only 2 GB of RAM is present. This is the real reason why your program does not start.
Msalters
source share