Added logging of the startup command line, which can be seen with e.g. DebugView.

This commit is contained in:
Per Lundberg
2013-10-27 17:35:45 +02:00
parent 87d561616c
commit 44d92316ab
2 changed files with 15 additions and 5 deletions
+13 -3
View File
@@ -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());
}