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.

57 lines
1.5 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Copyright (C) 1997, Microsoft Corporation.
  4. //
  5. // File: snapimg.hxx
  6. //
  7. // Contents: runtime dynlink to imagehlp
  8. //
  9. // History: 23-jan-97 MarkZ Created
  10. //
  11. //----------------------------------------------------------------------------
  12. #pragma once
  13. //
  14. // Indirect call thunks for dynamic loading of IMAGEHLP. This must be kept
  15. // in sync with the prototypes in IMAGEHLP.H
  16. //
  17. typedef BOOL
  18. (__stdcall *T_SymInitialize)(
  19. IN HANDLE hProcess,
  20. IN LPSTR UserSearchPath,
  21. IN BOOL fInvadeProcess
  22. );
  23. typedef DWORD
  24. (__stdcall *T_SymSetOptions)(
  25. IN DWORD SymOptions
  26. );
  27. typedef BOOL
  28. (__stdcall *T_SymGetSymFromAddr)(
  29. IN HANDLE hProcess,
  30. IN DWORD_PTR dwAddr,
  31. OUT PDWORD_PTR pdwDisplacement,
  32. OUT PIMAGEHLP_SYMBOL Symbol
  33. );
  34. typedef BOOL
  35. (__stdcall *T_SymUnDName)(
  36. IN PIMAGEHLP_SYMBOL sym, // Symbol to undecorate
  37. OUT LPSTR UnDecName, // Buffer to store undecorated name in
  38. IN DWORD UnDecNameLength // Size of the buffer
  39. );
  40. extern T_SymInitialize LocalSymInitialize;
  41. extern T_SymSetOptions LocalSymSetOptions;
  42. extern T_SymGetSymFromAddr LocalSymGetSymFromAddr;
  43. extern T_SymUnDName LocalSymUnDName;
  44. extern BOOL fLocalRoutinesInitialized;
  45. BOOL
  46. SnapToImageHlp( void );