Source code of Windows XP (NT5)
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.

52 lines
1.8 KiB

  1. /*++
  2. Copyright (c) 1998-1999 Microsoft Corporation
  3. Module Name:
  4. kdutil.h
  5. Abstract:
  6. Packet scheduler KD extension utilities.
  7. Author:
  8. Rajesh Sundaram (1st Aug, 1998)
  9. Revision History:
  10. --*/
  11. /* Prototypes of the utilities */
  12. ushort IPHeaderXsum(void *Buffer, int Size);
  13. //
  14. // Useful macros
  15. //
  16. #define KD_READ_MEMORY(Target, Local, Size) \
  17. { \
  18. ULONG _BytesRead; \
  19. BOOL _Success; \
  20. \
  21. _Success = ReadMemory( (ULONG_PTR)(Target), (Local), (Size), &_BytesRead); \
  22. \
  23. if(_Success == FALSE) { \
  24. dprintf("Problem reading memory at 0x%x for %d bytes \n", Target, Size); \
  25. return; \
  26. } \
  27. if(_BytesRead < (Size)) { \
  28. dprintf("Memory 0x%x. Wrong byte count. Expected to read %d, read %d \n", Target,(Size),(_BytesRead)); \
  29. return; \
  30. } \
  31. }
  32. VOID
  33. DumpGpcClientVc(PCHAR indent, PGPC_CLIENT_VC TargetVc, PGPC_CLIENT_VC LocalVc);
  34. VOID
  35. DumpCallParameters(
  36. PGPC_CLIENT_VC Vc,
  37. PCHAR Indent
  38. );