| 109 | } |
| 110 | |
| 111 | int 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 | } |
nothing calls this directly
no test coverage detected