summaryrefslogtreecommitdiff
path: root/plugins/FileAsMessage/main.h
blob: 9437a87a982ac2e9effb2759a8cfac024e5512f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
//#include "AggressiveOptimize.h"

#define _CRT_SECURE_NO_WARNINGS
#define _CRT_NONSTDC_NO_DEPRECATE

#define _WIN32_WINNT 0x0501
#include <windows.h>
#include <stdio.h>

#include "newpluginapi.h"
#include "m_system.h"
#include "m_database.h"
#include "m_protomod.h"
#include "m_protosvc.h"
#include "m_langpack.h"
#include "m_clist.h"
#include "m_options.h"
#include "m_clui.h"
#include "m_clc.h"
#include "m_utils.h"
#include "m_skin.h"
#include "m_popup.h"
#include "m_icolib.h"
#include "m_message.h"
#include "m_button.h"
#include "m_netlib.h"
#include "m_file.h"
#include "win2k.h"

#define ARRAY_SIZE(n)	(sizeof(n)/sizeof(n[0]))

#define MAXBUFSIZE 4096
#define SERVICE_TITLE "file As Message"
#define SERVICE_NAME "FileAsMessage"

#define SERVICE_PREFIX "<%fAM-0023%>"

#define PLUGIN_URL "http://miranda-im.org/download/details.php?action=viewfile&id=1811"
#define NOPLUGIN_MESSAGE "\nIf you see this \"garbage\", probably you "\
                         "have no \"fileAsMessage\" plugin installed, see "\
						 PLUGIN_URL " for more information and download."
extern char *szServiceTitle;
extern char *szServicePrefix;

#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 HANDLE hFileList;
extern HANDLE hEventNewFile;

extern HICON hIcons[5];

#ifdef __cplusplus
extern "C" {
#endif 
int __declspec(dllexport) Load( PLUGINLINK *link );
int __declspec(dllexport) Unload( void );
    __declspec(dllexport) PLUGININFOEX *MirandaPluginInfo( DWORD dwVersion );
#ifdef __cplusplus
}
#endif