ProcessorLoad



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


.



Relevant Pages

  • Thank you! -- Samba problems
    ... I've just completed the 3rd installation from ... scratch I've done since Thanksgiving (RH 7.3, RH 8.0, and a redo of ...
    (linux.redhat.install)
  • Re: Table Column Widths Automatically Resize
    ... it would take me even more time to redo ... selected the table and set the AutoFit setting to Fixed Width multiple times, ... you'll need to start the table again from scratch, ... This reply is posted in the Newsgroup; please post any follow question or reply ...
    (microsoft.public.word.tables)
  • Re: Kernel Panic while booting from 2.6.3
    ... bite the bullet and redo the ... kernel compliation from scratch! ... To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org ...
    (Debian-User)
  • Re: Need Info On how to restart the whole windows mail thing
    ... "singdeja" wrote: ... redo the thing ... Set up your email from scratch? ... Microsoft Vista Home Premium x86 SP1 ...
    (microsoft.public.windows.vista.mail)
  • Re: WTB: WPC ASIC
    ... Does anyone know if the source code for this FPGA is floating around ... It is probably too difficult to redo from scratch, ...
    (rec.games.pinball)