MCPcopy Create free account
hub / github.com/DarthTon/Xenos / wWinMain

Function wWinMain

src/Main.cpp:111–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111int APIENTRY wWinMain( HINSTANCE /*hInstance*/, HINSTANCE /*hPrevInstance*/, LPWSTR /*lpCmdLine*/, int /*nCmdShow*/ )
112{
113 // Setup dump generation
114 dump::DumpHandler::Instance().CreateWatchdog( blackbone::Utils::GetExeDirectory(), dump::CreateFullDump, &DumpNotifier );
115 AssociateExtension();
116
117 std::wstring param;
118 auto action = ParseCmdLine( param );
119 MainDlg mainDlg( action, param );
120 LogOSInfo();
121
122 if (action != MainDlg::RunProfile)
123 return (int)mainDlg.RunModeless( NULL, IDR_ACCELERATOR1 );
124 else
125 return mainDlg.LoadAndInject();
126}

Callers

nothing calls this directly

Calls 6

AssociateExtensionFunction · 0.85
ParseCmdLineFunction · 0.85
LogOSInfoFunction · 0.85
CreateWatchdogMethod · 0.80
RunModelessMethod · 0.80
LoadAndInjectMethod · 0.80

Tested by

no test coverage detected