#include #include class AyaCEFApp : public CefApp { public: AyaCEFApp () {}; private: IMPLEMENT_REFCOUNTING(AyaCEFApp); }; class AyaSubProcess : public AyaCEFApp , public CefRenderProcessHandler { public: virtual CefRefPtr GetRenderProcessHandler() override { return this; } private: IMPLEMENT_REFCOUNTING(AyaSubProcess); }; int CALLBACK WinMain(_In_ HINSTANCE hInstance, _In_ HINSTANCE hPrevInstance, _In_ LPSTR lpCmdLine, _In_ int nCmdShow) { CefMainArgs args(hInstance); return CefExecuteProcess(args, new AyaSubProcess(), nullptr); }