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.

114 lines
5.1 KiB

  1. // --------------------------------------------------------------------------
  2. // DLLMAIN.H
  3. // Copyright (c)1993-1995 Microsoft Corporation, All Rights Reserved
  4. // --------------------------------------------------------------------------
  5. #ifndef __DLLMAIN_H
  6. #define __DLLMAIN_H
  7. // --------------------------------------------------------------------------------
  8. // Forward Decls
  9. // --------------------------------------------------------------------------------
  10. class COutlookExpress;
  11. class CNote;
  12. class CBrowser;
  13. class CConnectionManager;
  14. class CSubManager;
  15. class CFontCache;
  16. class CStationery;
  17. class CNote;
  18. interface IMimeAllocator;
  19. interface IImnAccountManager;
  20. interface ISpoolerEngine;
  21. interface IFontCache;
  22. interface IOERulesManager;
  23. typedef struct tagACTIVEFINDFOLDER *LPACTIVEFINDFOLDER;
  24. // --------------------------------------------------------------------------------
  25. // HINITREF - Used internally by msoe.dll
  26. // --------------------------------------------------------------------------------
  27. DECLARE_HANDLE(HINITREF);
  28. typedef HINITREF *LPHINITREF;
  29. // --------------------------------------------------------------------------------
  30. // Enumerations
  31. // --------------------------------------------------------------------------------
  32. typedef enum tagROAMSTATE {
  33. RS_NO_ROAMING, // OE not currently roaming any settings
  34. RS_SETTINGS_DOWNLOADED // OE has successfully DL'ed settings from cfg svr
  35. } ROAMSTATE;
  36. // --------------------------------------------------------------------------------
  37. // Globals
  38. // --------------------------------------------------------------------------------
  39. extern HINSTANCE g_hInst;
  40. extern HINSTANCE g_hLocRes;
  41. extern CRITICAL_SECTION g_csDBListen;
  42. extern CRITICAL_SECTION g_csgoCommon;
  43. extern CRITICAL_SECTION g_csgoMail;
  44. extern CRITICAL_SECTION g_csgoNews;
  45. extern CRITICAL_SECTION g_csFolderDlg;
  46. extern CRITICAL_SECTION g_csFmsg;
  47. extern CRITICAL_SECTION s_csPasswordList;
  48. extern CRITICAL_SECTION g_csAccountPropCache;
  49. extern CRITICAL_SECTION g_csMsgrList;
  50. extern CRITICAL_SECTION g_csThreadList;
  51. extern COutlookExpress *g_pInstance;
  52. extern HWND g_hwndInit,
  53. g_hwndActiveModal;
  54. extern UINT g_msgMSWheel;
  55. extern HACCEL g_haccelNewsView;
  56. extern DWORD g_dwAthenaMode;
  57. extern IImnAccountManager2 *g_pAcctMan;
  58. extern HMODULE g_hlibMAPI;
  59. extern CBrowser *g_pBrowser;
  60. extern DWORD g_dwSecurityCheckedSchemaProp;
  61. extern CSubManager *g_pSubMgr;
  62. extern IMimeAllocator *g_pMoleAlloc;
  63. extern CConnectionManager *g_pConMan;
  64. extern ISpoolerEngine *g_pSpooler;
  65. extern IFontCache *g_lpIFontCache;
  66. // bobn: brianv says we have to take this out...
  67. //extern DWORD g_dwBrowserFlags;
  68. extern UINT CF_FILEDESCRIPTORA;
  69. extern UINT CF_FILEDESCRIPTORW;
  70. extern UINT CF_FILECONTENTS;
  71. extern UINT CF_HTML;
  72. extern UINT CF_INETMSG;
  73. extern UINT CF_OEFOLDER;
  74. extern UINT CF_SHELLURL;
  75. extern UINT CF_OEMESSAGES;
  76. extern UINT CF_OESHORTCUT;
  77. extern CStationery *g_pStationery;
  78. extern ROAMSTATE g_rsRoamState;
  79. extern IOERulesManager *g_pRulesMan;
  80. extern IMessageStore *g_pStore;
  81. extern DWORD g_dwTlsTimeout;
  82. extern CRITICAL_SECTION g_csFindFolder;
  83. extern LPACTIVEFINDFOLDER g_pHeadFindFolder;
  84. extern SYSTEM_INFO g_SystemInfo;
  85. extern OSVERSIONINFO g_OSInfo;
  86. extern BOOL g_fPluralIDs;
  87. extern UINT g_uiCodePage;
  88. extern IDatabaseSession *g_pDBSession;
  89. extern BOOL g_bMirroredOS;
  90. IF_DEBUG(extern DWORD TAG_OBJECTDB;)
  91. IF_DEBUG(extern DWORD TAG_INITTRACE;)
  92. IF_DEBUG(extern DWORD TAG_SERVERQ;)
  93. IF_DEBUG(extern DWORD TAG_IMAPSYNC;)
  94. // global OE type-lib. Defer-created in BaseDisp.Cpp
  95. // freed on process detach, protected with CS
  96. extern ITypeLib *g_pOETypeLib;
  97. extern CRITICAL_SECTION g_csOETypeLib;
  98. inline BOOL fIsNT5() { return((g_OSInfo.dwPlatformId == VER_PLATFORM_WIN32_NT) && (g_OSInfo.dwMajorVersion >= 5)); }
  99. inline BOOL fIsWhistler() { return((fIsNT5() && g_OSInfo.dwMinorVersion >=1) ||
  100. ((g_OSInfo.dwMajorVersion > 5) && (g_OSInfo.dwPlatformId == VER_PLATFORM_WIN32_NT))); }
  101. #endif // __DLLMAIN_H