mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 19:25:01 +00:00
27 lines
666 B
C++
27 lines
666 B
C++
// Copyright © 2010-2013 The CefSharp Project. All rights reserved.
|
|
//
|
|
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
|
|
|
// This class exposes "global" CEF methods.
|
|
|
|
#include "Stdafx.h"
|
|
#include "CefAppWrapper.h"
|
|
#include "include/capi/cef_app_capi.h"
|
|
|
|
using namespace System;
|
|
|
|
namespace CefSharp
|
|
{
|
|
namespace Wrappers
|
|
{
|
|
public ref class GlobalMethods
|
|
{
|
|
public:
|
|
static int CefExecuteProcess(IntPtr hInstance, CefAppWrapper^ cefApp)
|
|
{
|
|
CefMainArgs cefMainArgs((HINSTANCE)hInstance.ToPointer());
|
|
return ::CefExecuteProcess(cefMainArgs, *(CefRefPtr<CefApp>*)cefApp->GetUnmanaged());
|
|
}
|
|
};
|
|
}
|
|
} |