summaryrefslogtreecommitdiff
path: root/plugins/ClientChangeNotify
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2012-06-05 15:39:50 +0000
committerKirill Volinsky <mataes2007@gmail.com>2012-06-05 15:39:50 +0000
commit357af8c5a3cf922818ee014a8f2b54a799917eea (patch)
tree2ed1b38f979d7b3991f9ca9a4103347f2fddfe62 /plugins/ClientChangeNotify
parenta039e3378554f4f7b12a38722f72dfded2f4b277 (diff)
removed old PLUGININFO. plugin info cleanup starts
git-svn-id: http://svn.miranda-ng.org/main/trunk@312 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ClientChangeNotify')
-rw-r--r--plugins/ClientChangeNotify/ClientChangeNotify.cpp61
-rw-r--r--plugins/ClientChangeNotify/Resources.rc217
-rw-r--r--plugins/ClientChangeNotify/VersionNo.h16
3 files changed, 20 insertions, 74 deletions
diff --git a/plugins/ClientChangeNotify/ClientChangeNotify.cpp b/plugins/ClientChangeNotify/ClientChangeNotify.cpp
index d70b76e943..e15b7b72e1 100644
--- a/plugins/ClientChangeNotify/ClientChangeNotify.cpp
+++ b/plugins/ClientChangeNotify/ClientChangeNotify.cpp
@@ -40,62 +40,19 @@ MM_INTERFACE mmi;
TMyArray<HANDLE> hHooks, hServices;
COptPage *g_PreviewOptPage; // we need to show popup even for the NULL contact if g_PreviewOptPage is not NULL (used for popup preview)
-
-// my_make_version is required to break up #define PRODUCTVER from VersionNo.h
-DWORD my_make_version(const int a, const int b, const int c, const int d)
-{
- return PLUGIN_MAKE_VERSION(a, b, c, d);
-}
-
PLUGININFOEX pluginInfo = {
sizeof(PLUGININFOEX),
- "ClientChangeNotify ("
-#ifdef _DEBUG
- "DEBUG "
-#endif
-#ifdef _UNICODE
- "Unicode"
-#else
- "ANSI"
-#endif
- ")",
- 0, // see VersionNo.h
- "ClientChangeNotify plugin for Miranda IM. Build #"STRSPECIALBUILD" [ "__DATE__" "__TIME__
-#ifdef _DEBUG
- " DEBUG"
-#endif
-#ifdef _UNICODE
- " Unicode"
-#else
- " ANSI"
-#endif
- " ]",
+ "ClientChangeNotify",
+ PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM),
+ "ClientChangeNotify plugin for Miranda IM.",
"Deathdemon",
"dchervov@yahoo.com",
"© 2006-2008 Chervov Dmitry",
"http://deathdemon.int.ru/",
UNICODE_AWARE,
0,
-#ifdef _UNICODE
+ // {B68A8906-748B-435d-930E-21CC6E8F3B3F}
{0xb68a8906, 0x748b, 0x435d, {0x93, 0xe, 0x21, 0xcc, 0x6e, 0x8f, 0x3b, 0x3f}}
-// {B68A8906-748B-435d-930E-21CC6E8F3B3F}
-#else
- {0x4e8d06c6, 0xde4f, 0x4b72, {0x9c, 0x52, 0xc2, 0x78, 0x72, 0xed, 0x3, 0xb9}}
-// {4E8D06C6-DE4F-4b72-9C52-C27872ED03B9}
-#endif
-};
-
-PLUGININFO oldPluginInfo = {
- sizeof(PLUGININFO),
- pluginInfo.shortName,
- pluginInfo.version,
- pluginInfo.description,
- pluginInfo.author,
- pluginInfo.authorEmail,
- pluginInfo.copyright,
- pluginInfo.homepage,
- pluginInfo.flags,
- pluginInfo.replacesDefaultModule
};
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
@@ -115,17 +72,9 @@ extern "C" __declspec(dllexport) const MUUID *MirandaPluginInterfaces(void)
extern "C" __declspec(dllexport) PLUGININFOEX *MirandaPluginInfoEx(DWORD mirandaVersion)
{
- pluginInfo.version = my_make_version(PRODUCTVER);
return &pluginInfo;
}
-extern "C" __declspec(dllexport) PLUGININFO *MirandaPluginInfo(DWORD mirandaVersion)
-{
- oldPluginInfo.version = my_make_version(PRODUCTVER);
- return &oldPluginInfo;
-}
-
-
static int CALLBACK MenuWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
switch (uMsg)
@@ -464,7 +413,7 @@ int MirandaLoaded(WPARAM wParam, LPARAM lParam)
char szVersion[16];
update.cbSize = sizeof(Update);
update.szComponentName = pluginInfo.shortName;
- update.pbVersion = (BYTE*)CreateVersionString(my_make_version(PRODUCTVER), szVersion);
+ update.pbVersion = (BYTE*)CreateVersionString(PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM), szVersion);
update.cpbVersion = (int)strlen((char*)update.pbVersion);
update.szUpdateURL = "http://deathdemon.int.ru/projects/ClientChangeNotify"
#ifdef _UNICODE
diff --git a/plugins/ClientChangeNotify/Resources.rc2 b/plugins/ClientChangeNotify/Resources.rc2
index 2a2e6517dd..7a6a4c4a18 100644
--- a/plugins/ClientChangeNotify/Resources.rc2
+++ b/plugins/ClientChangeNotify/Resources.rc2
@@ -17,8 +17,8 @@
//
#include "VersionNo.h"
VS_VERSION_INFO VERSIONINFO
- FILEVERSION FILEVER
- PRODUCTVERSION PRODUCTVER
+ FILEVERSION __FILEVERSION_STRING
+ PRODUCTVERSION __FILEVERSION_STRING
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x21L
@@ -34,20 +34,11 @@ BEGIN
BLOCK "040904b0"
BEGIN
VALUE "CompanyName", "Deathdemon"
- VALUE "FileDescription", "ClientChangeNotify plugin for Miranda IM"
- VALUE "FileVersion", STRFILEVER
+ VALUE "FileDescription", "ClientChangeNotify plugin for Miranda IM."
VALUE "LegalCopyright", "© 2006-2008 Chervov Dmitry"
-#ifdef _UNICODE
- VALUE "InternalName", "ClientChangeNotifyW"
+ VALUE "InternalName", "ClientChangeNotify"
VALUE "OriginalFilename", "ClientChangeNotifyW.dll"
VALUE "ProductName", "ClientChangeNotify (Unicode)"
-#else
- VALUE "InternalName", "ClientChangeNotify"
- VALUE "OriginalFilename", "ClientChangeNotify.dll"
- VALUE "ProductName", "ClientChangeNotify (ANSI)"
-#endif
- VALUE "ProductVersion", STRPRODUCTVER
- VALUE "SpecialBuild", STRSPECIALBUILD
END
END
BLOCK "VarFileInfo"
diff --git a/plugins/ClientChangeNotify/VersionNo.h b/plugins/ClientChangeNotify/VersionNo.h
index a393471376..13ba7afb9f 100644
--- a/plugins/ClientChangeNotify/VersionNo.h
+++ b/plugins/ClientChangeNotify/VersionNo.h
@@ -1,5 +1,11 @@
-#define STRSPECIALBUILD "62"
-#define FILEVER 0, 1, 1, 3
-#define STRFILEVER "0, 1, 1, 3"
-#define PRODUCTVER FILEVER
-#define STRPRODUCTVER STRFILEVER
+#define __MAJOR_VERSION 0
+#define __MINOR_VERSION 1
+#define __RELEASE_NUM 1
+#define __BUILD_NUM 3
+
+#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM
+#define __FILEVERSION_DOTS __MAJOR_VERSION.__MINOR_VERSION.__RELEASE_NUM.__BUILD_NUM
+
+#define __STRINGIFY_IMPL(x) #x
+#define __STRINGIFY(x) __STRINGIFY_IMPL(x)
+#define __VERSION_STRING __STRINGIFY(__FILEVERSION_DOTS)