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.

43 lines
1.2 KiB

  1. /******************************Module*Header*******************************\
  2. * Module Name: dbgext.h
  3. *
  4. * Copyright (c) 1995-1999 Microsoft Corporation
  5. *
  6. * Dependencies:
  7. *
  8. * common macros for debugger extensions
  9. *
  10. *
  11. \**************************************************************************/
  12. /**************************************************************************\
  13. *
  14. * GetAddress - symbol of another module
  15. *
  16. \**************************************************************************/
  17. #define GetAddress(dst, src) \
  18. *((ULONG_PTR *) &dst) = GetExpression(src);
  19. #define GetValue(dst,src) \
  20. GetAddress(dst,src) \
  21. move(dst,dst);
  22. /**************************************************************************\
  23. *
  24. * move(dst, src ptr)
  25. *
  26. \**************************************************************************/
  27. #define move(dst, src) \
  28. ReadMemory((ULONG_PTR) (src), &(dst), sizeof(dst), NULL)
  29. /**************************************************************************\
  30. *
  31. * move2(dst ptr, src ptr, num bytes)
  32. *
  33. \**************************************************************************/
  34. #define move2(dst, src, size) \
  35. ReadMemory((ULONG_PTR) (src), (dst), (size), NULL)
  36.