Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
代码如
WbemScripting::WbemObjectSet::ExecQuery("Select * from Win32_LogicalDisk","WQL",0x10,NULL);
对返回结果的顺序提供任何保证吗?
我无法确定 WMI 脚本环境,但基于 WBEM 相关标准(例如DSP0200)中定义的底层 ExecQuery 操作不提供任何排序保证的事实,我假设它不提供。
通常,在 CIM/WBEM 中,不保证返回对象的集合是有序的。
安迪