private IWbemPath CreateWbemPath(string path) { IWbemPath wbemPath = (IWbemPath)MTAHelper.CreateInMTA(typeof(WbemDefPath)); //new WbemDefPath(); SetWbemPath(wbemPath, path); return(wbemPath); }
private IWbemPath CreateWbemPath(string path) { IWbemPath wbemPath = (IWbemPath)MTAHelper.CreateInMTA(typeof(WbemDefPath)); ManagementPath.SetWbemPath(wbemPath, path); return(wbemPath); }
internal SecurityHandler(ManagementScope theScope) { this.scope = theScope; if (null == securityHelper) { securityHelper = (IWmiSec)MTAHelper.CreateInMTA(typeof(WmiSec)); //new WmiSec(); } if (null != scope) { if (scope.Options.EnablePrivileges) { securityHelper.SetSecurity(ref needToReset, ref handle); } } }