草庐IT

vRequiredArchicture

全部标签

c++ - 如何在c中使用IWbemContext的 "__ProviderArchitecture"标志?

我一直在尝试遵循以下MSDNtutorial从32位应用程序查询64位注册表提供程序。可悲的是,这些示例都是用VB编写的,我遇到了一些问题。对于C++开发人员,文章提到......C++applicationscanusetheIWbemContextinterfacewithIWbemServices::ExecMethodtocommunicatetheuseofanondefaultprovidertoWMI....虽然,当您查看示例VB代码时,ConnectServer方法中也使用了上下文对象:SetobjCtx=CreateObject("WbemScripting.SWbe