Exemplo n.º 1
0
        private static void Main(string[] args)
        {
            parentProcess = ParentProcessUtilities.GetParentProcess();

            if (args.Length < 1)
            {
                System.Windows.Forms.MessageBox.Show("Required: PipeName", "CoApp Elevation Proxy", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            ElevateSelf(args.Length == 2 && args[1] == "__EPM1__");
            var epm = new ElevationProxyMain {
                ClientPipeName = args[0]
            };

            epm.Go();
        }
Exemplo n.º 2
0
        private static void Main(string[] args)
        {
            parentProcess = ParentProcessUtilities.GetParentProcess();

            if( args.Length <1 ) {
                System.Windows.Forms.MessageBox.Show("Required: PipeName", "CoApp Elevation Proxy", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            ElevateSelf(args.Length == 2 && args[1] == "__EPM1__");
            var epm = new ElevationProxyMain {
                ClientPipeName = args[0]
            };
            epm.Go();
        }