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.

105 lines
2.4 KiB

  1. // This is a part of the Microsoft Management Console.
  2. // Copyright (C) Microsoft Corporation, 1995 - 1999
  3. // All rights reserved.
  4. //
  5. // This source code is only intended as a supplement to the
  6. // Microsoft Management Console and related
  7. // electronic documentation provided with the interfaces.
  8. // pch.h : include file for standard system include files,
  9. // or project specific include files that are used frequently,
  10. // but are changed infrequently
  11. //#define _DEBUG_REFCOUNT
  12. // #define _ATL_DEBUG_QI
  13. //#define DEBUG_ALLOCATOR
  14. // C++ RTTI
  15. #include <typeinfo.h>
  16. #define IS_CLASS(x,y) (typeid(x) == typeid(y))
  17. // MFC Headers
  18. extern "C" {
  19. #include <nt.h>
  20. #include <ntrtl.h>
  21. #include <nturtl.h>
  22. //#include <imagehlp.h>
  23. //#include <stdio.h>
  24. //#include <stdlib.h>
  25. }
  26. #ifdef ASSERT
  27. #undef ASSERT
  28. #endif
  29. #include <afxwin.h>
  30. #include <afxdisp.h>
  31. #include <afxdlgs.h>
  32. #include <afxcmn.h>
  33. #include <afxtempl.h>
  34. #include <prsht.h>
  35. ///////////////////////////////////////////////////////////////////
  36. // miscellanea heades
  37. #include <winsock.h>
  38. #include <aclui.h>
  39. ///////////////////////////////////////////////////////////////////
  40. // DNS headers
  41. // DNSRPC.H: nonstandard extension used : zero-sized array in struct/union
  42. //#pragma warning( disable : 4200) // disable zero-sized array
  43. ///////////////////////////////////////////
  44. // ASSERT's and TRACE's without debug CRT's
  45. #if defined (DBG)
  46. #if !defined (_DEBUG)
  47. #define _USE_MTFRMWK_TRACE
  48. #define _USE_MTFRMWK_ASSERT
  49. #define _MTFRMWK_INI_FILE (L"\\system32\\adsiedit.ini")
  50. #endif
  51. #endif
  52. #include <dbg.h> // from framework
  53. ///////////////////////////////////////////////////////////////////
  54. // ATL Headers
  55. #include <atlbase.h>
  56. ///////////////////////////////////////////////////////////////////
  57. // CADSIEditModule
  58. class CADSIEditModule : public CComModule
  59. {
  60. public:
  61. HRESULT WINAPI UpdateRegistryCLSID(const CLSID& clsid, BOOL bRegister);
  62. };
  63. #define DECLARE_REGISTRY_CLSID() \
  64. static HRESULT WINAPI UpdateRegistry(BOOL bRegister) \
  65. { \
  66. return _Module.UpdateRegistryCLSID(GetObjectCLSID(), bRegister); \
  67. }
  68. extern CADSIEditModule _Module;
  69. #include <atlcom.h>
  70. #include <atlwin.h>
  71. ///////////////////////////////////////////////////////////////////
  72. // Console Headers
  73. #include <mmc.h>
  74. #include <activeds.h>
  75. #include <ADsOpenFlags.h>