异步调用WMI方法

编程入门 行业动态 更新时间:2024-10-23 19:29:07
本文介绍了异步调用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 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方法

本文发布于:2023-11-11 10:40:01,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1578191.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:方法   WMI

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!