private ActivationContextActivator(ActivationContextActivator.ACTCTX actctx)
        {
            this.m_hActivationContext = ActivationContextActivator.CreateActCtx(ref actctx);

            if (this.m_hActivationContext.IsInvalid || !ActivationContextActivator.ActivateActCtx(this.m_hActivationContext, out this.m_cookie))
            {
                throw new ActivationContextActivatorException();
            }
        }
 public static ActivationContextActivator FromExternalManifest(string source, string assemblyDirectory)
 {
     ActivationContextActivator.ACTCTX actctx = default(ActivationContextActivator.ACTCTX);
     actctx.cbSize              = Marshal.SizeOf(actctx);
     actctx.lpSource            = source;
     actctx.lpAssemblyDirectory = assemblyDirectory;
     actctx.dwFlags             = 36U;
     return(ActivationContextActivator.FromActivationContext(actctx));
 }
 internal static ActivationContextActivator FromActivationContext(ActivationContextActivator.ACTCTX actctx)
 {
     return(new ActivationContextActivator(actctx));
 }
 private static extern ActivationContextActivator.ActivationContextHandle CreateActCtx(ref ActivationContextActivator.ACTCTX ActCtx);