diff options
author | George Hazan <george.hazan@gmail.com> | 2013-04-13 17:36:17 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-04-13 17:36:17 +0000 |
commit | 9370749734fa9e0a22e5ed7ff89857c6124c5ae0 (patch) | |
tree | c978edaf059b0d3bd498aea1e29a444b7ad53031 /src/core/stdcrypt/main.cpp | |
parent | fac653bb24ce1ab2786e4502419532d276f741fc (diff) |
stub for the standard encryptor
git-svn-id: http://svn.miranda-ng.org/main/trunk@4443 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/core/stdcrypt/main.cpp')
-rw-r--r-- | src/core/stdcrypt/main.cpp | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/src/core/stdcrypt/main.cpp b/src/core/stdcrypt/main.cpp new file mode 100644 index 0000000000..5c2d8b3084 --- /dev/null +++ b/src/core/stdcrypt/main.cpp @@ -0,0 +1,65 @@ +/*
+
+Standard encryption plugin for Myranda NG
+Copyright (C) 2012-13 George Hazan
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License along
+with this program; if not, write to the Free Software Foundation, Inc.,
+51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+*/
+
+#include "commonheaders.h"
+
+int LoadEncryptionModule(void);
+
+HINSTANCE hInst;
+int hLangpack;
+
+PLUGININFOEX pluginInfo = {
+ sizeof(PLUGININFOEX),
+ __PLUGIN_NAME,
+ MIRANDA_VERSION_DWORD,
+ __DESCRIPTION,
+ __AUTHOR,
+ __AUTHOREMAIL,
+ __COPYRIGHT,
+ __AUTHORWEB,
+ UNICODE_AWARE,
+ // {D3637189-A5A5-41F5-BC72-67A2F8AF1B6F}
+ { 0xd3637189, 0xa5a5, 0x41f5, {0xbc, 0x72, 0x67, 0xa2, 0xf8, 0xaf, 0x1b, 0x6f}}
+};
+
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
+{
+ hInst = hinstDLL;
+ return TRUE;
+}
+
+extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
+{
+ return &pluginInfo;
+}
+
+extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_CRYPTO, MIID_LAST };
+
+extern "C" int __declspec(dllexport) Load(void)
+{
+ mir_getLP(&pluginInfo);
+
+ return LoadEncryptionModule();
+}
+
+extern "C" int __declspec(dllexport) Unload(void)
+{
+ return 0;
+}
|