diff options
Diffstat (limited to 'plugins/Restart/src')
-rw-r--r-- | plugins/Restart/src/Common.h | 13 | ||||
-rw-r--r-- | plugins/Restart/src/Version.h | 14 | ||||
-rw-r--r-- | plugins/Restart/src/restart.cpp | 28 | ||||
-rw-r--r-- | plugins/Restart/src/stdafx.cpp | 18 |
4 files changed, 54 insertions, 19 deletions
diff --git a/plugins/Restart/src/Common.h b/plugins/Restart/src/Common.h new file mode 100644 index 0000000000..9a508effa5 --- /dev/null +++ b/plugins/Restart/src/Common.h @@ -0,0 +1,13 @@ +#define _CRT_SECURE_NO_WARNINGS
+#define WIN32_LEAN_AND_MEAN
+
+#include <windows.h>
+
+#include <newpluginapi.h>
+#include <m_langpack.h>
+#include <m_genmenu.h>
+#include <m_utils.h>
+#include <win2k.h>
+
+#include "resource.h"
+#include "Version.h"
diff --git a/plugins/Restart/src/Version.h b/plugins/Restart/src/Version.h new file mode 100644 index 0000000000..4f0aac51ef --- /dev/null +++ b/plugins/Restart/src/Version.h @@ -0,0 +1,14 @@ +#define __MAJOR_VERSION 0
+#define __MINOR_VERSION 0
+#define __RELEASE_NUM 6
+#define __BUILD_NUM 0
+
+#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM
+
+#define __PLUGIN_NAME "Restart"
+#define __FILENAME "Restart.dll"
+#define __DESCRIPTION "Adds Restart menu item."
+#define __AUTHOR "eugene.nv"
+#define __AUTHOREMAIL "ep@eugn.me"
+#define __AUTHORWEB "http://miranda-ng.org/"
+#define __COPYRIGHT "© 2008 - 2013 eugene.nv"
diff --git a/plugins/Restart/src/restart.cpp b/plugins/Restart/src/restart.cpp index a99d9ba27a..50dfa35e4c 100644 --- a/plugins/Restart/src/restart.cpp +++ b/plugins/Restart/src/restart.cpp @@ -1,14 +1,4 @@ -#include <windows.h>
-#include <newpluginapi.h>
-#include <m_clist.h>
-#include <m_skin.h>
-#include <m_icolib.h>
-#include <m_langpack.h>
-#include <m_system.h>
-#include <m_genmenu.h>
-#include <m_utils.h>
-#include <win2k.h>
-#include "resource.h"
+#include "Common.h"
HINSTANCE hInst;
int hLangpack;
@@ -16,15 +6,15 @@ HANDLE hRestartMe; PLUGININFOEX pluginInfo={
sizeof(PLUGININFOEX),
- "Restart plugin",
- PLUGIN_MAKE_VERSION(0,0,6,0),
- "Adds Restart menu item.",
- "eugene.nv",
- "ep@eugn.me",
- "© 2008 - 2013 eugene.nv",
- "http://miranda-ng.org",
+ __PLUGIN_NAME,
+ PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM),
+ __DESCRIPTION,
+ __AUTHOR,
+ __AUTHOREMAIL,
+ __COPYRIGHT,
+ __AUTHORWEB,
UNICODE_AWARE,
- // {61BEDF3A-0CC2-41a3-B980-BB9393368935}
+ // {61BEDF3A-0CC2-41A3-B980-BB9393368935}
{0x61bedf3a, 0xcc2, 0x41a3, {0xb9, 0x80, 0xbb, 0x93, 0x93, 0x36, 0x89, 0x35}}
};
diff --git a/plugins/Restart/src/stdafx.cpp b/plugins/Restart/src/stdafx.cpp new file mode 100644 index 0000000000..1976d867da --- /dev/null +++ b/plugins/Restart/src/stdafx.cpp @@ -0,0 +1,18 @@ +/*
+Copyright (C) 2012-13 Miranda NG Project (http://miranda-ng.org)
+
+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 version 2
+of the License.
+
+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, see <http://www.gnu.org/licenses/>.
+*/
+
+#include "common.h"
\ No newline at end of file |