mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
30 lines
861 B
C#
30 lines
861 B
C#
// Copyright © 2010-2014 The CefSharp Authors. All rights reserved.
|
|
//
|
|
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
|
|
|
using System;
|
|
using CefSharp.Internals;
|
|
|
|
namespace CefSharp.BrowserSubprocess
|
|
{
|
|
public class Program
|
|
{
|
|
static int Main(string[] args)
|
|
{
|
|
Kernel32.OutputDebugString("BrowserSubprocess starting up with command line: " + String.Join("\n", args));
|
|
|
|
//MessageBox.Show("Please attach debugger now", null, MessageBoxButtons.OK, MessageBoxIcon.Information);
|
|
|
|
int result = 0;
|
|
|
|
using (var subprocess = CefSubProcess.Create(args))
|
|
{
|
|
result = subprocess.Run();
|
|
}
|
|
|
|
Kernel32.OutputDebugString("BrowserSubprocess shutting down.");
|
|
return result;
|
|
}
|
|
}
|
|
}
|