1

我是一名C++VS2010. 目前我WMI用来监控系统中的进程和设备。在编写WQL查询时,是否可以TargetInstance从多个类中选择?例如,代替select * from __InstanceOperationEvent within 1 where TargetInstance ISA 'Win32_PnPEntity',我如何使用类似select * from __InstanceOperationEvent within .1 where TargetInstance ISA 'Win32_PnpEntity','Win32_DiskDrive'.

我尝试使用,,OR等,但失败了。

感谢您的帮助。

4

1 回答 1

2

这没什么大不了的!

select * from __InstanceOperationEvent within 1 where (TargetInstance ISA Win32_PnPEntity') OR (TargetInstance ISA 'Win32_CDROMDRIVE')解决了我的问题。

于 2015-03-11T11:28:48.513 回答