我正在尝试对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 fromIWbemObjectSink 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 ofSetStatus()?
推荐答案
这有用吗? ?
does this help?
msdn.microsoft/en-us/library/dd208080.aspx
msdn.microsoft/en-us/library/dd208080.aspx
Rudolf
更多推荐
异步调用WMI方法
发布评论