Leaked source code of windows server 2003
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.

62 lines
1.0 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. stkwalk.h
  5. Abstract:
  6. This module contains memory debug function prototypes and macros.
  7. Author:
  8. Stolen from dbgmem.h
  9. Jim Stewart/Ramesh Pabbati January 8, 1996
  10. Fixed up for regleaks
  11. UShaji Dev 11th, 1998
  12. Revision History:
  13. --*/
  14. #ifdef LOCAL
  15. #ifdef LEAK_TRACK
  16. //
  17. // define the amount of symbol info to keep per function in the stack trace.
  18. //
  19. #define MAX_FUNCTION_INFO_SIZE 40
  20. typedef struct {
  21. DWORD Displacement; // displacement into the function
  22. UCHAR Buff[MAX_FUNCTION_INFO_SIZE]; // name of function on call stack
  23. PVOID Addr;
  24. } CALLER_SYM, *PCALLER_SYM;
  25. BOOL
  26. InitDebug(
  27. );
  28. BOOL
  29. StopDebug();
  30. VOID
  31. GetCallStack(
  32. IN PCALLER_SYM Caller,
  33. IN int Skip,
  34. IN int cFind,
  35. IN int fResolveSymbols
  36. );
  37. #define MY_DBG_EXCEPTION 3
  38. extern BOOL fDebugInitialised;
  39. #endif // LEAK_TRACK
  40. #endif // LOCAL