示例#1
0
		internal static int CreateClassEnumWmi(string strSuperclass, int lFlags, IWbemContext pCtx, out IEnumWbemClassObject ppEnum, int impLevel, int authnLevel, IWbemServices pCurrentNamespace, string strUser, IntPtr strPassword, string strAuthority)
		{
			var svc = pCurrentNamespace as UnixWbemServices;
			var items = WMIDatabaseFactory.Get (svc.CurrentNamespace, "SELECT * FROM " + strSuperclass);
			ppEnum = new UnixEnumWbemClassObject(items);
			return 0;
		}
示例#2
0
        public int CreateInstanceEnum_(string strFilter, int lFlags, IWbemContext pCtx, out IEnumWbemClassObject ppEnum)
        {
            var items = WMIDatabaseFactory.Get(_currentNamespace, strFilter);

            ppEnum = new UnixEnumWbemClassObject(items);
            return(0);
        }
示例#3
0
        public int ExecQuery_(string strQueryLanguage, string strQuery, int lFlags, IWbemContext pCtx, out IEnumWbemClassObject ppEnum)
        {
            IEnumerable <IWbemClassObject_DoNotMarshal> list = WMIDatabaseFactory.Get(_currentNamespace, strQuery);

            ppEnum = new UnixEnumWbemClassObject(list);
            return(0);
        }
示例#4
0
        internal static int CreateInstanceEnumWmi(string strFilter, int lFlags, IWbemContext pCtx, out IEnumWbemClassObject ppEnum, int impLevel, int authnLevel, IWbemServices pCurrentNamespace, string strUser, IntPtr strPassword, string strAuthority)
        {
            var svc   = pCurrentNamespace as UnixWbemServices;
            var items = WMIDatabaseFactory.Get(svc.CurrentNamespace, "SELECT * FROM " + strFilter);

            ppEnum = new UnixEnumWbemClassObject(items);
            return(0);
        }
示例#5
0
        internal static int ExecQueryWmi(string strQueryLanguage, string strQuery, int lFlags, IWbemContext pCtx, out IEnumWbemClassObject ppEnum, int impLevel, int authnLevel, IWbemServices pCurrentNamespace, string strUser, IntPtr strPassword, string strAuthority)
        {
            var svc = pCurrentNamespace as UnixWbemServices;
            IEnumerable <IWbemClassObject_DoNotMarshal> list = WMIDatabaseFactory.Get(svc.CurrentNamespace, strQuery);

            ppEnum = new UnixEnumWbemClassObject(list);
            return(0);
        }
示例#6
0
		internal static int ExecQueryWmi(string strQueryLanguage, string strQuery, int lFlags, IWbemContext pCtx, out IEnumWbemClassObject ppEnum, int impLevel, int authnLevel, IWbemServices pCurrentNamespace, string strUser, IntPtr strPassword, string strAuthority)
		{
			var svc = pCurrentNamespace as UnixWbemServices;
			IEnumerable<IWbemClassObject_DoNotMarshal> list = WMIDatabaseFactory.Get(svc.CurrentNamespace, strQuery);
			ppEnum = new UnixEnumWbemClassObject(list);
			return 0;
		}
示例#7
0
		public int ExecNotificationQuery_ (string strQueryLanguage, string strQuery, int lFlags, IWbemContext pCtx, out IEnumWbemClassObject ppEnum)
		{
			ppEnum = new UnixEnumWbemClassObject(WMIDatabaseFactory.Get (_currentNamespace, strQuery));
			return 0;
		}
示例#8
0
		public int CreateInstanceEnum_ (string strFilter, int lFlags, IWbemContext pCtx, out IEnumWbemClassObject ppEnum)
		{
			var items = WMIDatabaseFactory.Get (_currentNamespace, strFilter);
			ppEnum = new UnixEnumWbemClassObject(items);
			return 0;
		}
示例#9
0
		public int ExecQuery_ (string strQueryLanguage, string strQuery, int lFlags, IWbemContext pCtx, out IEnumWbemClassObject ppEnum)
		{
			IEnumerable<IWbemClassObject_DoNotMarshal> list = WMIDatabaseFactory.Get(_currentNamespace, strQuery);

			ppEnum = new UnixEnumWbemClassObject(list);
			return 0;
		}
示例#10
0
 public int ExecNotificationQuery_(string strQueryLanguage, string strQuery, int lFlags, IWbemContext pCtx, out IEnumWbemClassObject ppEnum)
 {
     ppEnum = new UnixEnumWbemClassObject(WMIDatabaseFactory.Get(_currentNamespace, strQuery));
     return(0);
 }