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

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