Here is a sample at CSDN.
But if I want to get an uint64 value(such as TotalVirtualMemorySize in Win32_OperatingSystem) The code below:
hr = pclsObj->Get(L"TotalVirtualMemorySize ", 0, &vtProp, 0, 0);
wcout << " OS Name : " << vtProp.ullVal<< endl;
Will not worked!
Try using uintVal
field instead
wcout << "TotalVirtualMemorySize : " << vtProp.uintVal << endl;