diff options
Diffstat (limited to 'plugins/!NotAdopted/name_day/name_day.cpp')
-rw-r--r-- | plugins/!NotAdopted/name_day/name_day.cpp | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/plugins/!NotAdopted/name_day/name_day.cpp b/plugins/!NotAdopted/name_day/name_day.cpp new file mode 100644 index 0000000000..822f6ba439 --- /dev/null +++ b/plugins/!NotAdopted/name_day/name_day.cpp @@ -0,0 +1,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; +}
\ No newline at end of file |