Example #1
0
        // Token: 0x0600000B RID: 11 RVA: 0x00002268 File Offset: 0x00000468
        public static WmiProperty PropertyQuery(string wmiclass, string property, string condition, ManagementScope scope = null)
        {
            ManagementObjectCollection objectCollection   = Wmi.GetObjectCollection(wmiclass, property, condition, scope);
            WmiClassCollection         wmiClassCollection = Wmi.ParseObjectCollection(objectCollection);

            foreach (WmiClass wmiClass in wmiClassCollection)
            {
                WmiProperty[] properties = wmiClass.Properties;
                int           num        = 0;
                if (num < properties.Length)
                {
                    return(properties[num]);
                }
            }
            return(null);
        }
Example #2
0
        // Token: 0x06000009 RID: 9 RVA: 0x00002238 File Offset: 0x00000438
        public static WmiClassCollection CustomQuery(ObjectQuery query, ManagementScope scope = null)
        {
            ManagementObjectCollection objectCollection = Wmi.GetObjectCollection(query, scope);

            return(Wmi.ParseObjectCollection(objectCollection));
        }
Example #3
0
        // Token: 0x06000006 RID: 6 RVA: 0x00002200 File Offset: 0x00000400
        public static WmiClassCollection Query(string wmiclass, string[] properties, string condition, ManagementScope scope = null)
        {
            ManagementObjectCollection objectCollection = Wmi.GetObjectCollection(wmiclass, properties, condition, scope);

            return(Wmi.ParseObjectCollection(objectCollection));
        }