Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.1 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef TOOLS_MINIDUMP_H
  7. #define TOOLS_MINIDUMP_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. // Defaults to false. If true, it'll write larger minidump files with the contents
  12. // of global variables and following pointers from where the crash occurred.
  13. void EnableFullMinidumps( bool bFull );
  14. // This handler catches any crash, writes a minidump, and runs the default system
  15. // crash handler (which usually shows a dialog).
  16. void SetupDefaultToolsMinidumpHandler();
  17. // (Used by VMPI) - you specify your own crash handler.
  18. // Arguments passed to ToolsExceptionHandler
  19. // exceptionCode - exception code
  20. // pvExceptionInfo - on Win32 platform points to "struct _EXCEPTION_POINTERS"
  21. // otherwise NULL
  22. //
  23. typedef void (*ToolsExceptionHandler)( unsigned long exceptionCode, void *pvExceptionInfo );
  24. void SetupToolsMinidumpHandler( ToolsExceptionHandler fn );
  25. #endif // MINIDUMP_H