summaryrefslogtreecommitdiff
path: root/plugins/TooltipNotify/src/main.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-03-10 12:42:08 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-03-10 12:42:08 +0000
commit102a413497df49bd2af8ee0a1770718fa0ecfcc2 (patch)
treef89a458502fb1679be3eeccc0bd0a8fbb3914a08 /plugins/TooltipNotify/src/main.cpp
parentcf72bb04a7650ae5e1b7011d17ce572bb06896b0 (diff)
added precompiled header
added version info git-svn-id: http://svn.miranda-ng.org/main/trunk@3956 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TooltipNotify/src/main.cpp')
-rw-r--r--plugins/TooltipNotify/src/main.cpp42
1 files changed, 8 insertions, 34 deletions
diff --git a/plugins/TooltipNotify/src/main.cpp b/plugins/TooltipNotify/src/main.cpp
index 8819529e1c..d3112e752e 100644
--- a/plugins/TooltipNotify/src/main.cpp
+++ b/plugins/TooltipNotify/src/main.cpp
@@ -3,8 +3,6 @@
*//////////////////////////////////////////////
#include "stdafx.h"
-#include "version.h"
-#include "TooltipNotify.h"
static int InitializeOptions(WPARAM wParam,LPARAM lParam);
static int ModulesLoaded(WPARAM wParam,LPARAM lParam);
@@ -18,7 +16,6 @@ static HANDLE g_hModulesLoaded = 0;
static HANDLE g_hProtoAck = 0;
static HANDLE g_hProtoContactIsTyping = 0;
static HINSTANCE g_hInstDLL = 0;
-static bool g_bRightModule = false; // i.e. ansi for win9x, and unicode for winnt
// Main global object
static CTooltipNotify *g_pTooltipNotify = 0;
@@ -31,41 +28,20 @@ int hLangpack;
BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
- switch(fdwReason)
- {
- case DLL_PROCESS_ATTACH:
- {
- DisableThreadLibraryCalls(hInstDLL);
- g_hInstDLL = hInstDLL;
-
- OSVERSIONINFO OsVersionInfo;
- OsVersionInfo.dwOSVersionInfoSize = sizeof(OsVersionInfo);
- GetVersionEx(&OsVersionInfo);
-
-
- g_bRightModule = (OsVersionInfo.dwPlatformId == VER_PLATFORM_WIN32_NT);
-
-
- break;
- }
-
- case DLL_PROCESS_DETACH:
- break;
- }
-
+ g_hInstDLL = hInstDLL;
return TRUE;
}
static PLUGININFOEX sPluginInfo =
{
sizeof(PLUGININFOEX),
- "Tooltip Notify",
- PLUGIN_MAKE_VERSION(MAJOR,MINOR,BUILD,REVISION), // major, minor, revision, build
- "Shows a small tooltip above system tray area when a contact status is changed.",
- "perf",
- "perf@mail333.com",
- "© 2004-2008 Gneedah software",
- "http://miranda-ng.org/",
+ __PLUGIN_NAME,
+ PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM),
+ __DESCRIPTION,
+ __AUTHOR,
+ __AUTHOREMAIL,
+ __COPYRIGHT,
+ __AUTHORWEB,
UNICODE_AWARE,
// {5906A545-F31A-4726-B48F-03A09F060318}
{0x5906a545, 0xf31a, 0x4726, {0xb4, 0x8f, 0x3, 0xa0, 0x9f, 0x6, 0x3, 0x18}}
@@ -78,8 +54,6 @@ extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD miranda
extern "C" int __declspec(dllexport) Load(void)
{
- if (!g_bRightModule) return 0;
-
mir_getLP(&sPluginInfo);
g_pTooltipNotify = new CTooltipNotify(g_hInstDLL);