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.

39 lines
1.2 KiB

  1. /*
  2. Copyright 1999 Microsoft Corporation
  3. Symbol resolver class
  4. Walter Smith (wsmith)
  5. changed Sivarudrappa Mahesh (smahesh)
  6. */
  7. #pragma once
  8. #include "symdef.h"
  9. class SymbolResolver {
  10. public:
  11. OPENFILE* // pointer to open file info
  12. GetFile(LPWSTR szwModule // [in] name of file
  13. );
  14. ULONG // return offset of segment definition, 0 if failed
  15. GetSegDef(OPENFILE* pFile, // [in] pointer to open file info
  16. DWORD dwSection, // [in] section number
  17. SEGDEF* pSeg); // [out] pointer to segment definition
  18. bool
  19. GetNameFromAddr(
  20. LPWSTR szwModule, // [in] name of symbol file
  21. DWORD dwSection, // [in] section part of address to resolve
  22. DWORD dwOffsetToRva,
  23. UINT_PTR UOffset, // [in] offset part of address to resolve
  24. LPWSTR szwFuncName // [out] resolved function name,
  25. );
  26. private:
  27. WCHAR m_szwSymDir[MAX_PATH];
  28. };