// Copyright (c) 2013 CEF Python, see the Authors file.// All rights reserved. Licensed under BSD 3-clause license.// Project website: https://github.com/cztomczak/cefpython#include "cefpython_app.h"#if defined(OS_WIN)#include <windows.h>int APIENTRY wWinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPTSTR lpCmdLine,int nCmdShow){UNREFERENCED_PARAMETER(hPrevInstance);UNREFERENCED_PARAMETER(lpCmdLine);// lpCmdLine does not include program name argument, must// use GetCommandLineW(). Cannot use CefCommandLine::GetGlobalCommandLine,// as CEF was not yet initialized.CefRefPtr<CefCommandLine> command_line = \CefCommandLine::CreateCommandLine();command_line->InitFromString(GetCommandLineW());if (command_line->HasSwitch("enable-high-dpi-support")) {CefEnableHighDPISupport();}CefMainArgs mainArgs(hInstance);#else // defined(OS_WIN)int main(int argc, char **argv){CefMainArgs mainArgs(argc, argv);#endif // Mac, LinuxCefRefPtr<CefPythonApp> app(new CefPythonApp);int exitCode = CefExecuteProcess(mainArgs, app.get(), NULL);return exitCode;}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。