Source code of Windows XP (NT5)
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.

49 lines
1.4 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1992.
  5. //
  6. // File: symtrans.h
  7. //
  8. // Contents: Definitions associated with address->symbol translation
  9. //
  10. // History: 17-Jul-92 MikeSe Created
  11. // 22-Jun-93 BryanT Increased MAX_TRANS value to account for
  12. // Line/File information.
  13. //
  14. //----------------------------------------------------------------------------
  15. #ifndef __SYMTRANS_H__
  16. #define __SYMTRANS_H__
  17. //
  18. // The following function provides translation of function addresses into
  19. // symbolic (NTSD-style) names. It is only available if ANYSTRICT is defined.
  20. // (see common\src\commnot\symtrans.c)
  21. # ifdef __cplusplus
  22. extern "C" {
  23. # endif
  24. EXPORTDEF void APINOT
  25. TranslateAddress (
  26. void * pvAddress, // address to translate
  27. char * pchBuffer ); // output buffer
  28. // The output buffer should allocated by the caller, and be at least
  29. // the following size:
  30. #define NT_SYM_ENV "_NT_SYMBOL_PATH"
  31. #define NT_ALT_SYM_ENV "_NT_ALT_SYMBOL_PATH"
  32. #define SYS_ENV "SystemRoot"
  33. #define IMAGEHLP_DLL "imagehlp.dll"
  34. #define MAP_DBG_INFO_CALL "MapDebugInformation"
  35. #define MAX_TRANSLATED_LEN 600
  36. # ifdef __cplusplus
  37. }
  38. # endif
  39. #endif // of ifndef __SYMTRANS_H__