Esempio n. 1
0
        static ManagementBaseObject()
        {
            WbemContext wbemContext;

            if (WMICapabilities.IsWindowsXPOrHigher())
            {
                wbemContext = null;
            }
            else
            {
                wbemContext = new WbemContext();
            }
            ManagementBaseObject.lockOnFastProx = wbemContext;
        }
Esempio n. 2
0
		static ManagementBaseObject()
		{
			WbemContext wbemContext;
			if (WMICapabilities.IsWindowsXPOrHigher())
			{
				wbemContext = null;
			}
			else
			{
				wbemContext = new WbemContext();
			}
			ManagementBaseObject.lockOnFastProx = wbemContext;
		}