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.

57 lines
1.9 KiB

  1. /*==========================================================================
  2. *
  3. * Copyright (C) 1998-2000 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: DebugUtils.h
  6. * Content: Winsock service provider debug utilitiy functions
  7. *
  8. *
  9. * History:
  10. * Date By Reason
  11. * ==== == ======
  12. * 12/01/98 jtk Created
  13. * 01/10/20000 rmt Updated to build with Millenium build process
  14. ***************************************************************************/
  15. #ifndef __DEBUG_UTILS_H__
  16. #define __DEBUG_UTILS_H__
  17. //**********************************************************************
  18. // Constant definitions
  19. //**********************************************************************
  20. //**********************************************************************
  21. // Macro definitions
  22. //**********************************************************************
  23. //**********************************************************************
  24. // Structure definitions
  25. //**********************************************************************
  26. typedef struct sockaddr SOCKADDR;
  27. typedef struct IDirectPlay8Address IDirectPlay8Address;
  28. //**********************************************************************
  29. // Variable definitions
  30. //**********************************************************************
  31. //**********************************************************************
  32. // Function prototypes
  33. //**********************************************************************
  34. #ifdef DBG
  35. void HexDump( PVOID pData, UINT32 uDataSize );
  36. void DumpSocketAddress( const DWORD dwDebugLevel, const SOCKADDR *const pSocketAddress, const DWORD dwFamily );
  37. void DumpAddress( const DWORD dwDebugLevel, const TCHAR *const pBaseString, IDirectPlay8Address *const pAddress );
  38. #else // DBG
  39. #define HexDump( x, y )
  40. #define DumpSocketAddress( x, y, z )
  41. #define DumpAddress( x, y, z )
  42. #endif // DBG
  43. #endif // __DEBUG_UTILS_H__