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.

88 lines
2.5 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. #ifdef TRACING_ENABLED
  48. // TRACE Macros
  49. #define SPIDER_TRACE(w, s, n) if (dwGKIDLLFlags & w) {\
  50. wsprintf(szGKDebug, "%s,%d: ", __FILE__, __LINE__); \
  51. OutputDebugString(szGKDebug); \
  52. wsprintf(szGKDebug, s, n); \
  53. OutputDebugString(szGKDebug); }
  54. #define SPIDER_DEBUG(n) if (dwGKIDLLFlags & SP_DEBUG) {\
  55. wsprintf(szGKDebug, "%s,%d: ", __FILE__, __LINE__); \
  56. OutputDebugString(szGKDebug); \
  57. wsprintf(szGKDebug, #n "=%X\n", n); \
  58. OutputDebugString(szGKDebug); }
  59. #define SPIDER_DEBUGS(n) if (dwGKIDLLFlags & SP_DEBUG) {\
  60. wsprintf(szGKDebug, "%s,%d: ", __FILE__, __LINE__); \
  61. OutputDebugString(szGKDebug); \
  62. wsprintf(szGKDebug, #n "=%s\n", n); \
  63. OutputDebugString(szGKDebug); }
  64. #else
  65. #define SPIDER_TRACE(w, s, n)
  66. #define SPIDER_DEBUG(n)
  67. #define SPIDER_DEBUGS(s)
  68. #endif
  69. #else // _DEBUG
  70. #define SPIDER_TRACE(w, s, n)
  71. #define SPIDER_DEBUG(n)
  72. #define SPIDER_DEBUGS(s)
  73. #define SpiderWSErrDecode(nRet)
  74. #endif // _DEBUG
  75. #endif // SPIDER_H