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.

79 lines
2.3 KiB

  1. /************************************************************************
  2. * *
  3. * INTEL CORPORATION PROPRIETARY INFORMATION *
  4. * *
  5. * This software is supplied under the terms of a license *
  6. * agreement or non-disclosure agreement with Intel Corporation *
  7. * and may not be copied or disclosed except in accordance *
  8. * with the terms of that agreement. *
  9. * *
  10. * Copyright (C) 1997 Intel Corp. All Rights Reserved *
  11. * *
  12. * $Archive: S:\sturgeon\src\gki\vcs\dspider.h_v $
  13. * *
  14. * $Revision: 1.2 $
  15. * $Date: 10 Jan 1997 16:14:18 $
  16. * *
  17. * $Author: CHULME $
  18. * *
  19. * $Log: S:\sturgeon\src\gki\vcs\dspider.h_v $
  20. *
  21. * Rev 1.2 10 Jan 1997 16:14:18 CHULME
  22. * Removed MFC dependency
  23. *
  24. * Rev 1.1 22 Nov 1996 15:24:56 CHULME
  25. * Added VCS log to the header
  26. *************************************************************************/
  27. // dspider.h : header file
  28. //
  29. #ifndef DSPIDER_H
  30. #define DSPIDER_H
  31. #include "dgkiexp.h" // need dwGKIDLLFlags
  32. #ifdef _DEBUG
  33. // Constants
  34. const WORD SP_FUNC = 0x1;
  35. const WORD SP_CONDES = 0x2;
  36. const WORD SP_DEBUG = 0x4;
  37. const WORD SP_NEWDEL = 0x8;
  38. const WORD SP_THREAD = 0x10;
  39. const WORD SP_STATE = 0x20;
  40. const WORD SP_DUMPMEM = 0x40;
  41. const WORD SP_XRS = 0x80;
  42. const WORD SP_TEST = 0x100;
  43. const WORD SP_LOGGER = 0x1000;
  44. const WORD SP_PDU = 0x2000;
  45. const WORD SP_WSOCK = 0x4000;
  46. const WORD SP_GKI = 0x8000;
  47. // TRACE Macros
  48. #define SPIDER_TRACE(w, s, n) if (dwGKIDLLFlags & w) {\
  49. wsprintf(szGKDebug, "%s,%d: ", __FILE__, __LINE__); \
  50. OutputDebugString(szGKDebug); \
  51. wsprintf(szGKDebug, s, n); \
  52. OutputDebugString(szGKDebug); }
  53. #define SPIDER_DEBUG(n) if (dwGKIDLLFlags & SP_DEBUG) {\
  54. wsprintf(szGKDebug, "%s,%d: ", __FILE__, __LINE__); \
  55. OutputDebugString(szGKDebug); \
  56. wsprintf(szGKDebug, #n "=%X\n", n); \
  57. OutputDebugString(szGKDebug); }
  58. #define SPIDER_DEBUGS(n) if (dwGKIDLLFlags & SP_DEBUG) {\
  59. wsprintf(szGKDebug, "%s,%d: ", __FILE__, __LINE__); \
  60. OutputDebugString(szGKDebug); \
  61. wsprintf(szGKDebug, #n "=%s\n", n); \
  62. OutputDebugString(szGKDebug); }
  63. #else // _DEBUG
  64. #define SPIDER_TRACE(w, s, n)
  65. #define SPIDER_DEBUG(n)
  66. #define SPIDER_DEBUGS(s)
  67. #define SpiderWSErrDecode(nRet)
  68. #endif // _DEBUG
  69. #endif // SPIDER_H