30 lines
648 B
C++
30 lines
648 B
C++
|
|
#include <include/cef_base.h>
|
|
#include <include/cef_app.h>
|
|
|
|
class AyaCEFApp : public CefApp {
|
|
|
|
public:
|
|
AyaCEFApp () {};
|
|
private:
|
|
IMPLEMENT_REFCOUNTING(AyaCEFApp);
|
|
|
|
};
|
|
|
|
class AyaSubProcess : public AyaCEFApp , public CefRenderProcessHandler {
|
|
|
|
public:
|
|
virtual CefRefPtr<CefRenderProcessHandler> 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);
|
|
} |