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.

66 lines
1.5 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(LPCTSTR pszFormat, ...);
  28. protected:
  29. TErrorDct m_Error;
  30. };
  31. extern CAdmtModule _Module;
  32. #include <atlcom.h>
  33. #include <ComDef.h>
  34. #include <ResStr.h>
  35. //#pragma warning(disable: 4192) // automatically excluding
  36. //#import <ActiveDs.tlb> no_namespace no_implementation exclude("_LARGE_INTEGER","_SYSTEMTIME")
  37. #import <DBMgr.tlb> no_namespace no_implementation
  38. #import <MigDrvr.tlb> no_namespace no_implementation
  39. #import <VarSet.tlb> no_namespace rename("property", "aproperty") no_implementation
  40. #import <WorkObj.tlb> no_namespace no_implementation
  41. #import <MsPwdMig.tlb> no_namespace no_implementation
  42. #import "Internal.tlb" no_namespace no_implementation
  43. _bstr_t GetLogFolder();
  44. _bstr_t GetReportsFolder();
  45. //{{AFX_INSERT_LOCATION}}