ProcessorLoad
- From: "Alain Dekker" <abdekker@xxxxxxxxxxxxxxxxx>
- Date: Tue, 22 Jul 2008 18:24:36 +0100
Hi,
I got a WQL query searching for "LoadPercentage" in "Select * from
Win32_Processor" from "root\\cimv2" working nicely. However, if I redo the
search over and over, I keep getting the same number back. I have to redo
the entire search from scratch each time, starting from this code...
BSTR bstrNamespace = (L"root\\cimv2");
HRESULT hr = m_pIWbemLocator->ConnectServer(bstrNamespace, NULL, NULL, NULL,
0,
NULL, NULL, &m_pWbemServices);
....and so on. Why is this? Is there a way to only redo the last part of the
search without having to regenerate it in its entirety every time?
Thanks,
Alain
.
- Prev by Date: how to execute non-static method on class instance?
- Next by Date: WaitForNextEvent() - does not timeout despite the proper flag?
- Previous by thread: how to execute non-static method on class instance?
- Next by thread: WaitForNextEvent() - does not timeout despite the proper flag?
- Index(es):
Relevant Pages
|