Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是CSDN的一个示例。
但是如果我想得到一个 uint64 的值(比如 Win32_OperatingSystem 中的 TotalVirtualMemorySize)下面的代码:
hr = pclsObj->Get(L"TotalVirtualMemorySize ", 0, &vtProp, 0, 0); wcout << " OS Name : " << vtProp.ullVal<< endl;
不会工作!
尝试改用uintVal字段
uintVal
wcout << "TotalVirtualMemorySize : " << vtProp.uintVal << endl;