summaryrefslogtreecommitdiff
path: root/plugins/ModernOpt/main.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2012-05-18 22:02:50 +0000
committerKirill Volinsky <mataes2007@gmail.com>2012-05-18 22:02:50 +0000
commitf920ef497f3299ae24fe783ce03bdd93b419f764 (patch)
treebdaa9197c08d29ab141a6adfdd6cc0a68ddd3996 /plugins/ModernOpt/main.cpp
parent6c3b0571f0678da0512069869afaa284c054377e (diff)
plugins folders renaming
git-svn-id: http://svn.miranda-ng.org/main/trunk@60 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ModernOpt/main.cpp')
-rw-r--r--plugins/ModernOpt/main.cpp81
1 files changed, 81 insertions, 0 deletions
diff --git a/plugins/ModernOpt/main.cpp b/plugins/ModernOpt/main.cpp
new file mode 100644
index 0000000000..5adb79cc25
--- /dev/null
+++ b/plugins/ModernOpt/main.cpp
@@ -0,0 +1,81 @@
+
+#include "commonheaders.h"
+
+PLUGINLINK *pluginLink;
+HINSTANCE hInst;
+MM_INTERFACE mmi;
+LIST_INTERFACE li;
+int hLangpack;
+
+#if defined( _UNICODE )
+ // {621f886b-a7f6-457f-9d62-8ee84c275993}
+ #define MIID_MODERNOPTS { 0x621f886b, 0xa7f6, 0x457f, { 0x9d, 0x62, 0x8e, 0xe8, 0x4c, 0x27, 0x59, 0x93 }}
+#else
+ // {0a8e1133-d12d-4103-a912-39 96 3b 49 b3 5f}
+ #define MIID_MODERNOPTS { 0x0a8e1133, 0xd12d, 0x4103, { 0xa9, 0x12, 0x39, 0x96, 0x3b, 0x49, 0xb3, 0x5f }}
+#endif
+
+PLUGININFOEX pluginInfoEx = {
+ sizeof(PLUGININFOEX),
+ "Support for new options design",
+ PLUGIN_MAKE_VERSION(0,1,0,0),
+ "Support for new options design.",
+ "Victor Pavlychko, George Hazan",
+ "ghazan@miranda-im.org",
+ "é 2009 Victor Pavlychko, George Hazan",
+ "http://www.miranda-im.org",
+ UNICODE_AWARE,
+ 0,
+ MIID_MODERNOPTS
+};
+
+BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)
+{
+ hInst = hinstDLL;
+ return TRUE;
+}
+
+/////////////////////////////////////////////////////////////////////////////////////////
+// MirandaPluginInfoEx - returns an information about a plugin
+
+extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
+{
+ if (mirandaVersion < PLUGIN_MAKE_VERSION(0, 8, 0, 0))
+ return NULL;
+
+ return &pluginInfoEx;
+}
+
+/////////////////////////////////////////////////////////////////////////////////////////
+// MirandaPluginInterfaces - returns the protocol interface to the core
+
+static const MUUID interfaces[] = { MIID_MODERNOPTS, MIID_LAST };
+
+extern "C" __declspec(dllexport) const MUUID* MirandaPluginInterfaces(void)
+{
+ return interfaces;
+}
+
+/////////////////////////////////////////////////////////////////////////////////////////
+// Performs a primary set of actions upon plugin loading
+
+int LoadModernOptsModule();
+
+extern "C" int __declspec(dllexport) Load(PLUGINLINK *link)
+{
+ pluginLink = link;
+ mir_getMMI( &mmi );
+ mir_getLI( &li );
+ mir_getLP(&pluginInfoEx);
+
+ LoadModernOptsModule();
+ return 0;
+}
+
+/////////////////////////////////////////////////////////////////////////////////////////
+// Unload a plugin
+
+extern "C" int __declspec(dllexport) Unload(void)
+{
+ return 0;
+}