Beispiel #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);
        }
Beispiel #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));
        }
Beispiel #3
0
 // Token: 0x06000008 RID: 8 RVA: 0x0000222D File Offset: 0x0000042D
 public static WmiClassCollection Query(string wmiclass, ManagementScope scope = null)
 {
     return(Wmi.Query(wmiclass, null, scope));
 }
Beispiel #4
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));
        }
Beispiel #5
0
 // Token: 0x06000002 RID: 2 RVA: 0x00002090 File Offset: 0x00000290
 private static ManagementObjectCollection GetObjectCollection(string query, ManagementScope scope)
 {
     return(Wmi.GetObjectCollection(new ObjectQuery(query), scope));
 }
Beispiel #6
0
 // Token: 0x0600000E RID: 14 RVA: 0x00002332 File Offset: 0x00000532
 public static T PropertyQuery <T>(string wmiclass, string property, ManagementScope scope = null)
 {
     return(Wmi.PropertyQuery <T>(wmiclass, property, null, scope));
 }
Beispiel #7
0
        // Token: 0x0600000D RID: 13 RVA: 0x000022F8 File Offset: 0x000004F8
        public static T PropertyQuery <T>(string wmiclass, string property, string condition, ManagementScope scope = null)
        {
            WmiProperty wmiProperty = Wmi.PropertyQuery(wmiclass, property, condition, scope);

            return((wmiProperty.Value == null) ? default(T) : ((T)((object)wmiProperty.Value)));
        }
Beispiel #8
0
 // Token: 0x0600000A RID: 10 RVA: 0x00002258 File Offset: 0x00000458
 public static WmiClassCollection CustomQuery(string query, ManagementScope scope = null)
 {
     return(Wmi.CustomQuery(new ObjectQuery(query), scope));
 }