We need to update the application that we use for the universal Windows application (UWP). The main purpose of the application is to collect diagnostic statistics and send it back to our server using a call to rest.
However, I do not find api available for statistics
Before that we were
PerformanceCounter _memoryCounter = new PerformanceCounter();
public SystemProperty GetPhysicalMemory()
{
string s = _QueryComputerSystem("totalphysicalmemory");
double totalphysicalmemory = Convert.ToDouble(s);
double d = _GetCounterValue(_memoryCounter, "Memory", "Available Bytes", null);
return new SystemProperty { PropertyName = "Physical Memory", Total = totalphysicalmemory, Used = totalphysicalmemory - d };
}
which returned the total number of used and free bytes of memory. We also collected statistics on the network and processor. None of them are compatible with the new structure. What namespace should I look for for this function? Or do I need to use something like Pinvoke ( link )?
source
share