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.

128 lines
3.1 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1999 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // wmi.h
  7. //
  8. // Description:
  9. // Pre-compiled header file for DNS WMI provider project
  10. //
  11. // Author:
  12. // Jeff Westhead (jwesth) December 2000
  13. //
  14. // Notes:
  15. //
  16. /////////////////////////////////////////////////////////////////////////////
  17. #pragma once
  18. #include "DnsCliP.h" // private DNS client header
  19. #include "ntrkcomm.h"
  20. #include <initguid.h>
  21. #include <string>
  22. #include <list>
  23. #include <memory>
  24. #include "ProvFactory.h"
  25. #include "InstanceProv.h"
  26. #include <tchar.h>
  27. #include "common.h"
  28. #include "InstanceProv.h"
  29. #include "Dnsbase.h"
  30. #include "ObjectPath.h"
  31. #include "sql_1.h"
  32. #include "genlex.h"
  33. #include "sqleval.h"
  34. #include "Server.h"
  35. #include "DnsDomain.h"
  36. #include "DnsBase.h"
  37. #include "DnsWrap.h"
  38. #include "DnsCache.h"
  39. #include "Dnsdomain.h"
  40. #include "DnsZone.h"
  41. #include "DnsDomainDomainContainment.h"
  42. #include "DnsDomainResourceRecordContainment.h"
  43. #include "DnsResourceRecord.h"
  44. #include "DnsRootHints.h"
  45. #include "DnsServerDomainContainment.h"
  46. #include "DnsStatistics.h"
  47. #include "DnsRpcRecord.h"
  48. #include <crtdbg.h>
  49. #include <atlbase.h>
  50. //
  51. // Debug logging
  52. //
  53. extern DWORD DnsWmiDebugFlag;
  54. #if DBG
  55. #define DNSWMI_DBG_LOG_DIR "\\system32\\WBEM\\Logs\\"
  56. #define DNSWMI_DBG_FLAG_FILE_NAME "DnsWmi"
  57. #define DNSWMI_DBG_LOG_FILE_BASE_NAME "DnsWmi"
  58. #define DNSWMI_DBG_LOG_FILE_WRAP 10000000
  59. #define IF_DEBUG(a) if ( (DnsWmiDebugFlag & DNS_DEBUG_ ## a) )
  60. #define ELSE_IF_DEBUG(a) else if ( (DnsWmiDebugFlag & DNS_DEBUG_ ## a) )
  61. #define DNS_DEBUG( _flag_, _print_ ) \
  62. IF_DEBUG( _flag_ ) \
  63. { \
  64. (DnsDbg_Printf _print_ ); \
  65. }
  66. //
  67. // Debug flags. Some of these flags are shared with DNSRPC.LIB
  68. //
  69. #define DNS_DEBUG_BREAKPOINTS 0x00000001
  70. #define DNS_DEBUG_DEBUGGER 0x00000002
  71. #define DNS_DEBUG_FILE 0x00000004
  72. // #define DNS_DEBUG_RPC 0x00000100
  73. // #define DNS_DEBUG_STUB 0x00000100
  74. #define DNS_DEBUG_INIT 0x00000010
  75. #define DNS_DEBUG_INSTPROV 0x00000020
  76. #define DNS_DEBUG_RPCRR 0x00000040
  77. #define DNS_DEBUG_START_BREAK 0x80000000
  78. #define DNS_DEBUG_ALL 0xffffffff
  79. #define DNS_DEBUG_ANY 0xffffffff
  80. #define DNS_DEBUG_OFF (0)
  81. #else
  82. #define IF_DEBUG(a) if (0)
  83. #define ELSE_IF_DEBUG(a) else if (0)
  84. #define DNS_DEBUG( flag, print )
  85. #endif
  86. //
  87. // If you like having a local variable in functions to hold the function
  88. // name so that you can include it in debug logs without worrying about
  89. // changing all the occurences when the function is renamed, use this
  90. // at the top of the function:
  91. // DBG_FN( "MyFunction" ) <--- NOTE: no semi-colon!!
  92. //
  93. #if DBG
  94. #define DBG_FN( funcName ) static const char * fn = (funcName);
  95. #else
  96. #define DBG_FN( funcName )
  97. #endif