mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
Added logging of the startup command line, which can be seen with e.g. DebugView.
This commit is contained in:
@@ -6,10 +6,20 @@
|
||||
#include "CefRenderProcess.h"
|
||||
#include "JavascriptProxyService.h"
|
||||
|
||||
void LogCommandLine(LPTSTR cmdLine);
|
||||
|
||||
int APIENTRY wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow)
|
||||
{
|
||||
CefMainArgs main_args(hInstance);
|
||||
CefMainArgs mainArgs(hInstance);
|
||||
LogCommandLine(lpCmdLine);
|
||||
|
||||
CreateJavascriptProxyServiceHost();
|
||||
return ExecuteCefRenderProcess(main_args);
|
||||
//CreateJavascriptProxyServiceHost();
|
||||
return ExecuteCefRenderProcess(mainArgs);
|
||||
}
|
||||
|
||||
void LogCommandLine(LPTSTR cmdLine)
|
||||
{
|
||||
std::wstring message = L"BrowserSubprocess starting up with command line: ";
|
||||
message = message + cmdLine;
|
||||
OutputDebugString(message.c_str());
|
||||
}
|
||||
Reference in New Issue
Block a user