异步调用WMI方法 [英] Calling WMI methods asynchronously

查看:90
本文介绍了异步调用WMI方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试对WMI方法IEnumWebClassObject :: NextAsync()进行异步调用。我有一些问题。

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);

我派生了一个来自  IWbemObjectSink的类来获取回调,如Indicate()和SetStatus()。当我调用NextAsync()时,我收到了回调。但是需要一些关于调用SetStatus()的清晰度,因为MSDN文档链接似乎
不适用于这些方法。有人可以更清楚地了解这些方法吗?我们正在寻找的项目是否在NextAsync()WMI调用中不可用,这些方法返回的是什么?有人可以解释一下SetStatus()的参数吗?

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()?

推荐答案

这有用吗? ?

does this help?

https://msdn.microsoft.com/en-us/library/dd208080.aspx

https://msdn.microsoft.com/en-us/library/dd208080.aspx

Rudolf


这篇关于异步调用WMI方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆