Calling WMI methods asynchronously

  • Thread starter Thread starter its_me_here
  • Start date Start date
I

its_me_here

Guest
I am trying to make an async call on WMI method IEnumWebClassObject::NextAsync(). I have some questions.

QuerySink querySink;

HRESULT hr = pEnumerator->NextAsync(1,&querySink);


I have derived a class from IWbemObjectSink to get the callbacks like Indicate() and SetStatus(). I am getting the callbacks when I call NextAsync(). But there needs some clarity regarding the calls SetStatus() as the MSDN documentation links seems not available for these methods. Can someone put more clarity on these methods? Is the items we are looking for are not available in the NextAsync() WMI call, thene what do these methods return? Can someone please explain the parameters of SetStatus()?

Continue reading...
 
Back
Top