Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Tue, 22 Jul 2008 18:24:36 +0100,    group: microsoft.public.win32.programmer.wmi        back       


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
date: Tue, 22 Jul 2008 18:24:36 +0100   author:   Alain Dekker

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us