mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 19:25:01 +00:00
23 lines
550 B
C++
23 lines
550 B
C++
#include "Stdafx.h"
|
|
|
|
#include "Wrappers\CefAppWrapper.h"
|
|
|
|
namespace CefSharp
|
|
{
|
|
CefAppWrapper::CefAppWrapper(CefSubprocess^ managedApp)
|
|
{
|
|
_managedApp = managedApp;
|
|
cefApp = new CefAppUnmanagedWrapper(this);
|
|
}
|
|
|
|
int CefAppWrapper::Run(array<String^>^ args)
|
|
{
|
|
_managedApp->FindParentProcessId(args);
|
|
|
|
auto hInstance = Process::GetCurrentProcess()->Handle;
|
|
|
|
CefMainArgs cefMainArgs((HINSTANCE)hInstance.ToPointer());
|
|
|
|
return CefExecuteProcess(cefMainArgs, (CefApp*)cefApp.get());
|
|
}
|
|
} |