How to find what the current process is using GetCurrentProcess
Posted on 2011-02-26
I am trying to do some debugging of a program which gives some users a RunTime 226 error in a CAD program which we sit our dll based program on. I cannot replicate the error so I am trying to track if my system is losing memory somewhere.
I can get the current process memory usage with GetProcessMemoryInfo(GetCurrentProcess, etc. but I need to make sure that GetCurrentProcess is my dll functions, I have established that it is not the CAD engine.
How do I get the name of the process for which I am getting the memory values.