We are writing some debugging code inside of a C++ API that is spawned as a COM+ object. There are multiple instances of this object at a given time, and we are writing some code to append to a text file the date and time the program is run. This part is done. However, what I would like to do is to get the TOTAL (physical & VM combined) memory used at that time and write out the number of bytes being used (should be the same as the Commit Charge in the NT Task Manager window).
A quick response would be most appreciated! Thank you!