Team Fortress 2 Source Code as on 22/4/2020
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.

27 lines
1.3 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. // MakePtr is a macro that allows you to easily add to values (including
  9. // pointers) together without dealing with C's pointer arithmetic. It
  10. // essentially treats the last two parameters as DWORDs. The first
  11. // parameter is used to typecast the result to the appropriate pointer type.
  12. #define MakePtr( cast, ptr, addValue ) (cast)( (DWORD)(ptr) + (addValue) )
  13. void DumpHeader(PIMAGE_FILE_HEADER pImageFileHeader);
  14. void DumpOptionalHeader(PIMAGE_OPTIONAL_HEADER pImageOptionalHeader);
  15. void DumpSectionTable(PIMAGE_SECTION_HEADER section,
  16. unsigned cSections,
  17. BOOL IsEXE);
  18. BOOL LookupSymbolName(DWORD index, PSTR buffer, UINT length);
  19. void DumpSymbolTable(PIMAGE_SYMBOL pSymbolTable, unsigned cSymbols);
  20. LPVOID GetSectionPtr(PSTR name, PIMAGE_NT_HEADERS pNTHeader, DWORD imageBase);
  21. PIMAGE_SECTION_HEADER GetSectionHeader(PSTR name, PIMAGE_NT_HEADERS pNTHeader);
  22. void DumpRawSectionData(PIMAGE_SECTION_HEADER section,
  23. PVOID base,
  24. unsigned cSections);
  25. void DumpLineNumbers(PIMAGE_LINENUMBER pln, DWORD count);
  26. void HexDump(PBYTE ptr, DWORD length);