00001
00002
00003
00004
00005
00006 #if !defined(AFX_STDAFX_H__3DEDF9D7_1A31_481A_8FBD_C2D53CEFE688__INCLUDED_)
00007 #define AFX_STDAFX_H__3DEDF9D7_1A31_481A_8FBD_C2D53CEFE688__INCLUDED_
00008
00009 #if _MSC_VER > 1000
00010 #pragma once
00011 #endif
00012
00013 #define VC_EXTRALEAN
00014
00015 #define WINVER 0x400
00016 #define _WIN32_IE 0x501
00017 #define _WIN32_WINNT 0x400
00018
00019 const int PRG_BUILD_NUMBER = 724;
00020
00021 const char* const PRG_AGENT_NAME = "ODM 1.x";
00022
00023 const char* const PRG_NAME = "Open Download Manager";
00024 const char* const PRG_FULL_NAME = "Open Download Manager 1.0";
00025
00026 const char* const PRG_VERSION = "1.0";
00027
00028 const char* const IE_USERAGENT_ADDITION = "ODM";
00029
00030 #ifdef _USELOGGING
00031 #pragma message ("============== WARNING: _USELOGGING is defined ==============")
00032 #endif
00033
00034 #define _TB_SIZE_X _SkinMgr.tbSizeX()
00035 #define _TB_SIZE_Y _SkinMgr.tbSizeY()
00036 #define _TB_USE_ALPHA _SkinMgr.tbUseAlpha()
00037
00038 #include <afxwin.h>
00039 #include <afxext.h>
00040 #include <afxdisp.h>
00041 #include <afxdtctl.h>
00042 #ifndef _AFX_NO_AFXCMN_SUPPORT
00043 #include <afxcmn.h>
00044 #endif
00045
00046 #pragma warning (disable : 4192)
00047 #pragma warning (disable : 4146)
00048 #import "mshtml.tlb"
00049 #import "shdocvw.dll"
00050 #pragma warning (default : 4192)
00051 #pragma warning (default : 4146)
00052
00053 #include <msxml.h>
00054 _COM_SMARTPTR_TYPEDEF(IXMLDOMDocument, __uuidof(IXMLDOMDocument));
00055 _COM_SMARTPTR_TYPEDEF(IXMLDOMNode, __uuidof(IXMLDOMNode));
00056 _COM_SMARTPTR_TYPEDEF(IXMLDOMElement, __uuidof(IXMLDOMElement));
00057 _COM_SMARTPTR_TYPEDEF(IXMLDOMNodeList, __uuidof(IXMLDOMNodeList));
00058
00059 #define _ATL_APARTMENT_THREADED
00060 #include <atlbase.h>
00061
00062 class CFdmModule : public CComModule
00063 {
00064 public:
00065 LONG Unlock();
00066 LONG Lock();
00067 LPCTSTR FindOneOf(LPCTSTR p1, LPCTSTR p2);
00068 DWORD dwThreadID;
00069 };
00070 extern CFdmModule _Module;
00071 #include <atlcom.h>
00072
00073 #ifndef LONG_PTR
00074 #define LONG_PTR LONG
00075 #define DWORD_PTR DWORD
00076 #endif
00077
00078 #define MY_MAX_PATH 10000
00079
00080 #pragma warning (push, 3)
00081 #include <vector>
00082 #include <list>
00083 #include <string>
00084 #include <xlocale>
00085 #pragma warning (pop)
00086
00087
00088
00089 #include "Include.add/inetfile/inetfile.h"
00090 #include "vmsMediaConvertMgr.h"
00091 #include "vmsFdmAppMgr.h"
00092 #include "fsAppSettings.h"
00093 #include "common.h"
00094 #include "system.h"
00095 #include <limits.h>
00096 #include "vmsBtSupport.h"
00097 #include "fsTrayIconMgr.h"
00098 #include "fsDialogsMgr.h"
00099 #include "fsClipboardMgr.h"
00100 #include "ToolBarEx.h"
00101 #include "fsUpdateMgr.h"
00102 #include "fsAutorunMgr.h"
00103 #include "fsCmdHistoryMgr.h"
00104 #include <exdispid.h>
00105 #include <htmlhelp.h>
00106 #include "fsContextHelpMgr.h"
00107 #include "fsMFCLangMgr.h"
00108 #include "fsSitesMgr.h"
00109 #include "fsIEContextMenuMgr.h"
00110 #include "fsOpNetIntegrationMgr.h"
00111 #include "fsIECatchMgr.h"
00112 #include "fsProgramLogMgr.h"
00113 #include "fsSoundsMgr.h"
00114 #include "fsHistoriesMgr.h"
00115 #include "vmsSkinMgr.h"
00116 #include "vmsDownloadsGroupsMgr.h"
00117 #include "fsDownloadsMgr.h"
00118 #include "vmsTheme.h"
00119 #include "fsPluginMgr.h"
00120
00121 #define SBMP(id) _SkinMgr.bmp (id)
00122 #define SICO(id) _SkinMgr.icon (id)
00123 #define SICOEX(id,cx,cy) _SkinMgr.icon(id,cx,cy)
00124
00125 extern fsAppSettings _App;
00126 extern fsTrayIconMgr _TrayMgr;
00127 extern fsDialogsMgr _DlgMgr;
00128 extern fsClipboardMgr _ClipbrdMgr;
00129 extern CToolBarEx _TBMgr;
00130 extern fsUpdateMgr _UpdateMgr;
00131 extern fsAutorunMgr _AutorunMgr;
00132 extern fsCmdHistoryMgr _LastUrlFiles;
00133 extern fsCmdHistoryMgr _LastUrlPaths;
00134 extern fsCmdHistoryMgr _LastFlashVideoUrls;
00135 extern fsCmdHistoryMgr _LastBatchUrls;
00136 extern fsCmdHistoryMgr _LastFolders;
00137 extern fsContextHelpMgr _CHMgr;
00138 extern fsMFCLangMgr _LngMgr;
00139 extern fsSitesMgr _SitesMgr;
00140 extern fsIEContextMenuMgr _IECMM;
00141 extern fsOpNetIntegrationMgr _NOMgr;
00142 extern fsIECatchMgr _IECatchMgr;
00143 #ifdef _USELOGGING
00144 extern fsProgramLogMgr _Log;
00145 #define LOG(x) _Log << x
00146 #else
00147 #define LOG(x)
00148 #endif
00149 extern fsSoundsMgr _Snds;
00150 extern fsHistoriesMgr _HsMgr;
00151 extern fsCmdHistoryMgr _LastFind;
00152 extern vmsSkinMgr _SkinMgr;
00153 extern fsDownloadsMgr _DldsMgr;
00154 extern vmsTheme _theme;
00155 extern vmsDownloadsGroupsMgr _DldsGrps;
00156 extern FILETIME _timeAppHasStarted;
00157 extern vmsBtSupport _BT;
00158 extern vmsMediaConvertMgr _MediaConvertMgr;
00159 extern vmsFdmAppMgr _AppMgr;
00160
00161 #define APPSTATE_PORTABLE_MODE 1
00162 #define APPSTATE_PORTABLE_MODE_NOREG 2
00163 extern DWORD _dwAppState;
00164 #ifndef _DEBUG
00165 #define IS_PORTABLE_MODE ((_dwAppState & APPSTATE_PORTABLE_MODE) != 0)
00166 #else
00167 #define IS_PORTABLE_MODE ((_dwAppState & APPSTATE_PORTABLE_MODE) != 0)
00168
00169 #endif
00170
00171 #include "lngphrases.h"
00172
00173 #define TRAY_ICON_NORMAL 0
00174 #define TRAY_ICON_DOWNLOADING 1
00175 #define TRAY_ICON_ERRORS 2
00176 #define TRAY_ICON_UNKNOWN 3
00177
00178 #ifdef _DEBUG
00179 extern void dbglog ( char* szFormat ... );
00180 extern void dbglog_eraselog ();
00181 #endif
00182
00183 #endif