summaryrefslogtreecommitdiff
path: root/plugins/FileAsMessage/src/stdafx.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-12-24 12:40:13 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-12-24 12:40:13 +0300
commit4236340c7b82f8db0e4ca2b889886342d18da2b7 (patch)
tree738f564ad100ff543a4bb4089aa58a727bfd8b09 /plugins/FileAsMessage/src/stdafx.h
parent1395aa0326932bcb4b30689275b10363940c3cdc (diff)
FileAsMessage converted into Unicode and merged into master
Diffstat (limited to 'plugins/FileAsMessage/src/stdafx.h')
-rw-r--r--plugins/FileAsMessage/src/stdafx.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/plugins/FileAsMessage/src/stdafx.h b/plugins/FileAsMessage/src/stdafx.h
new file mode 100644
index 0000000000..af2ed0eda7
--- /dev/null
+++ b/plugins/FileAsMessage/src/stdafx.h
@@ -0,0 +1,50 @@
+#define _CRT_NONSTDC_NO_DEPRECATE
+
+#include <windows.h>
+#include <io.h>
+#include <fcntl.h>
+#include <commctrl.h>
+
+#include <newpluginapi.h>
+#include <m_database.h>
+#include <m_protosvc.h>
+#include <m_langpack.h>
+#include <m_clist.h>
+#include <m_options.h>
+#include <m_skin.h>
+#include <m_popup.h>
+#include <m_icolib.h>
+#include <m_button.h>
+#include <m_netlib.h>
+#include <m_file.h>
+#include <win2k.h>
+
+#include "dialog.h"
+#include "resource.h"
+#include "version.h"
+
+#define MAXBUFSIZE 4096
+#define SERVICE_TITLE LPGEN("File As Message")
+#define SERVICE_NAME "FileAsMessage"
+
+#define SERVICE_PREFIX "<%fAM-0023%>"
+
+#define NOPLUGIN_MESSAGE "If you see this \"garbage\", probably you have no \"fileAsMessage\" plugin installed, see https://miranda-ng.org/p/FileAsMessage/ for more information and download."
+
+extern char *szServiceTitle;
+extern char *szServicePrefix;
+extern const ulong INITCRC;
+
+#define WM_FE_MESSAGE WM_USER+100
+#define WM_FE_STATUSCHANGE WM_USER+101
+#define WM_FE_SKINCHANGE WM_USER+102
+
+extern HINSTANCE hInst;
+extern MWindowList hFileList;
+extern HANDLE hEventNewFile;
+
+extern HICON hIcons[5];
+extern IconItem iconList[];
+
+ulong memcrc32(uchar *ptr, int size, ulong crc);
+INT_PTR CALLBACK OptionsDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);