Re: PerfFormattedData?
- From: Vincent Fatica <abuse@localhost>
- Date: Sat, 25 Jun 2005 10:56:56 -0400
The documents say [Win32_PerfFormattedData_PerfOS_System].SystemUpTime
is UINT64, and after this
bstrUtil = SysAllocString(L"Win32_PerfFormattedData_PerfOS_System");
hr = pNameSpace->CreateInstanceEnum(bstrUtil, 0, NULL, &pEnum);
hr = pEnum->Next(5000, 1, &pWbemObject, &dwReturned);
hr = pWbemObject->Get(L"SystemUpTime", 0, &dt, &vt, NULL);
the VARTYPE vt also says it's CIM_UINT64.
But dt.vt says it's a BSTR, and the way to see the correct result is
to print the string:
_tprintf(_T("Seconds: %S\n"), dt.bstrVal);
What's up here? Is something buggy or am I missing something?
.
- References:
- PerfFormattedData?
- From: Vincent Fatica
- Re: PerfFormattedData?
- From: Vincent Fatica
- PerfFormattedData?
- Prev by Date: Order By in Query
- Next by Date: RE: RPC server unavailable using WMI
- Previous by thread: Re: PerfFormattedData?
- Next by thread: Folder Security Descriptor on a remote computer
- Index(es):
Relevant Pages
|