Access Classses from dlls
I am having troubles accessing a class defined in a dll. I have a tast to access Task Manager and Performance monitor values for a specified process. I started calling few dlls and use the defined functions and was successful in retrieving few counters.
However, I am stuck on retrieving CPU and Thread counts. I see that the win32_process class in Cimwin32.dll have properties to retrieve ThreadCount, VirtualSize, etc.
In order to use these properties I need reference the win32_process class.
Similarly for the 'Win32_PerfFormattedData_PerfProc_Process' class to retrieve performance monitor data.
How can refer to these classes or how can i reference the properties.
Thanks in advance.