WIN32_DETOURS_HOWTO.txt 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. It is now possible to use detours with duma on already compiled binaries.
  2. This document will explain an example working configuration and environment.
  3. Known Limitations:
  4. - Detours v2.1 only works with Visual Studio 2005 currently. It does not
  5. build cleanly under 2003.
  6. - Detours v1.5 is not directly available for d/l anymore. Contact detours
  7. support alias for a copy if you need support for earlier then VS 2005.
  8. Things you will need:
  9. - Detours v1.5 or v2.1, available from Microsoft research as a free download
  10. - DebugView from Sysinternals, this allows you to read the debug console
  11. - Microsoft Visual Studio 2003 or 2005
  12. Conifiguration:
  13. - Expand detours into your duma\detours folder
  14. - Open Visual Studio command prompt, browse to duma\detours and
  15. build detours (nmake)
  16. - Open Visual Studio, select "Detours1.5" or "Detours2.1" build (instead of
  17. debug or release) and build solution
  18. - Open detoursexample1 and build (debug version)
  19. - Open command prompt and issue the following:
  20. : set DUMA_OUTPUT_DEBUG=1
  21. : set DUMA_OUTPUT_STDOUT=0
  22. : set DUMA_OUTPUT_STDERR=0
  23. : set DUMA_OUTPUT_STACKTRACE=1
  24. : set DUMA_OUTPUT_STACKTRACE_MAPFILE=detoursexample1.map
  25. - Copy dumadetours.exe, detoursexample1.exe, detoursexample1.map into the
  26. dumadetoursdll Detours1.5 or Detours2.1 build folder
  27. - Run DebugView
  28. - Run "dumadetours detoursexample1.exe"
  29. - You should see duma output in the DebugView window.
  30. - For detours v2.1 you will also need detoured.dll from the detours distribution in the current directory.
  31. Bug reports:
  32. Report problems and patches for DUMA + Detours to meddington@gmail.com