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.

66 lines
1.6 KiB

  1. #pragma once
  2. #define STRICT
  3. #ifndef _WIN32_WINNT
  4. #define _WIN32_WINNT 0x0500
  5. #endif
  6. #define _ATL_APARTMENT_THREADED
  7. #ifdef _DEBUG
  8. #define _CRTDBG_MAP_ALLOC
  9. //#define _ATL_DEBUG_INTERFACES
  10. #define DEBUG_NEW new(_NORMAL_BLOCK, THIS_FILE, __LINE__)
  11. #endif
  12. #include <atlbase.h>
  13. #include <ErrDct.hpp>
  14. //You may derive a class from CComModule and use it if you want to override
  15. //something, but do not change the name of _Module
  16. //---------------------------------------------------------------------------
  17. // CAdmtModule Class
  18. //---------------------------------------------------------------------------
  19. class CAdmtModule : public CComModule
  20. {
  21. public:
  22. CAdmtModule();
  23. ~CAdmtModule();
  24. bool OpenLog();
  25. void CloseLog();
  26. void __cdecl Log(UINT uLevel, UINT uId, ...);
  27. void __cdecl Log(UINT uLevel, UINT uId, _com_error& ce);
  28. void __cdecl Log(LPCTSTR pszFormat, ...);
  29. protected:
  30. TErrorDct m_Error;
  31. };
  32. extern CAdmtModule _Module;
  33. #include <atlcom.h>
  34. #include <ComDef.h>
  35. #include <ResStr.h>
  36. #include <Folders.h>
  37. //#pragma warning(disable: 4192) // automatically excluding
  38. //#import <ActiveDs.tlb> no_namespace no_implementation exclude("_LARGE_INTEGER","_SYSTEMTIME")
  39. #import <DBMgr.tlb> no_namespace no_implementation
  40. #import <MigDrvr.tlb> no_namespace no_implementation
  41. #import <VarSet.tlb> no_namespace rename("property", "aproperty") no_implementation
  42. #import <WorkObj.tlb> no_namespace no_implementation
  43. #import <MsPwdMig.tlb> no_namespace no_implementation
  44. #import <adsprop.tlb> no_namespace no_implementation
  45. #import "Internal.tlb" no_namespace no_implementation
  46. //{{AFX_INSERT_LOCATION}}