internal void Secure(IWbemCallResult callResult) { if (null != scope) { securityHelper.BlessIWbemCallResult( callResult, scope.Options.Username, scope.Options.GetPassword(), scope.Options.Authority, (int)scope.Options.Impersonation, (int)scope.Options.Authentication); } }
internal void Secure(IWbemCallResult wbemCallResult) { if (null == securityHelper) { securityHelper = (IWmiSec) new WmiSec(); } securityHelper.BlessIWbemCallResult( ref wbemCallResult, options.Username, options.GetPassword(), options.Authority, (int)options.Impersonation, (int)options.Authentication); }