Ejemplo n.º 1
0
    int CefAppWrapper::Run()
    {
        auto hInstance = Process::GetCurrentProcess()->Handle;

        CefMainArgs cefMainArgs((HINSTANCE)hInstance.ToPointer());

        return CefExecuteProcess(cefMainArgs, (CefApp*)_cefApp.get(), NULL);
    }
Ejemplo n.º 2
0
int RunCefSubprocess(int & argc, char ** argv)
{
    CefMainArgs cefMainArgs(GetModuleHandle(nullptr));

    return CefExecuteProcess(cefMainArgs, nullptr, nullptr);
}