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
64
65
66
67
68
69
70
71
72
73
74
75
76
|
/**
* @file Name day plugin
*/
#include <windows.h>
#include "../../headers_c/newpluginapi.h"
#include "name_day_core.h"
static name_day_core_t name_day_core;
HINSTANCE hInst;
PLUGINLINK *pluginLink;
/**
* @brief Plugin info.
*
*/
PLUGININFO pluginInfo={
sizeof(PLUGININFO),
"Name Day Plugin",
PLUGIN_MAKE_VERSION(0, 0, 0, 7),
"The Name Day plugin.",
"Tibor Szabo",
"tibor.szabo@gmail.com",
"© 2005 Tibor Szabo",
"",
0, //not transient
0 //doesn't replace anything built-in
};
/**
* @brief DllMain
*
*/
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
hInst = hinstDLL;
return TRUE;
}
/**
* @brief Plugin Info
*
*/
extern "C" __declspec(dllexport) PLUGININFO* MirandaPluginInfo(DWORD mirandaVersion)
{
return &pluginInfo;
}
/**
* @brief Load
*
*/
extern "C" int __declspec(dllexport) Load(PLUGINLINK *link)
{
pluginLink = link;
//create_menu();
//check_contacts();
name_day_core.create_menu();
name_day_core.perform_name_day_test();
return 0;
}
/**
* @brief Unload
*
*/
extern "C" int __declspec(dllexport) Unload(void)
{
return 0;
}
|