Crash Reporter

I’m thinking of integrating some kind of crash reporter (Such as bugsplat). I’ve downloaded the sample code. Does anyone have an idea of where I should start looking to ‘hook’ this into?

// BugSplat exception callback
bool ExceptionCallback(UINT nCode, LPVOID lpVal1, LPVOID lpVal2)
{

    switch (nCode)
    {
        case MDSCB_EXCEPTIONCODE:
        {
            EXCEPTION_RECORD *p = (EXCEPTION_RECORD *)lpVal1;
            DWORD code = p ? p->ExceptionCode : 0;

            // create some files in the %temp% directory and attach them
            wchar_t cmdString[2 * MAX_PATH];
            wchar_t filePath[MAX_PATH];
            wchar_t tempPath[MAX_PATH];
            GetTempPathW(MAX_PATH, tempPath);

            wsprintf(filePath, L"%sfile1.txt", tempPath);
            wsprintf(cmdString, L"echo Exception Code = 0x%08x > %s", code, filePath);
            _wsystem(cmdString);
            mpSender->sendAdditionalFile(filePath);

            wsprintf(filePath, L"%sfile2.txt", tempPath);
            wsprintf(cmdString, L"echo Crash reporting is so clutch! > %s", filePath);
            _wsystem(cmdString);
            mpSender->sendAdditionalFile(filePath);

        }
        break;
    }

    return false;
}

Looks like you just need to define your MiniDmpSender, StackOverflow() and ExceptionCallback() in LaunchWindows.cpp (and any other platform’s main functions in the Launch module) like this example https://www.bugsplat.com/docs/BugSplatNative/html/index.html. I’d be very interested to know how you get on with this.