void MiniDumpFunction( unsigned int nExceptionCode, EXCEPTION_POINTERS *pException ) { // You can build and set an arbitrary comment to embed in the minidump here, // maybe you want to put what level the user was playing, how many players on the server, // how much memory is free, etc... SteamAPI_SetMiniDumpComment( "Minidump comment: SteamworksExample.exe\n" ); // The 0 here is a build ID, we don't set it SteamAPI_WriteMiniDump( nExceptionCode, pException, 0 ); }
SB_API void S_CALLTYPE WriteMiniDump(uint32 uStructuredExceptionCode, void* pvExceptionInfo, uint32 uBuildID) { SteamAPI_WriteMiniDump(uStructuredExceptionCode, pvExceptionInfo, uBuildID); }
// crash dump recording functions void System_WriteMiniDump(uint32 StructuredExceptionCode, void* ExceptionInfo, uint32 BuildID){SteamAPI_WriteMiniDump(StructuredExceptionCode,ExceptionInfo,BuildID);};