summaryrefslogtreecommitdiff
path: root/nohtml/nohtml.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'nohtml/nohtml.cpp')
-rw-r--r--nohtml/nohtml.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/nohtml/nohtml.cpp b/nohtml/nohtml.cpp
index 77fbf35..cd83377 100644
--- a/nohtml/nohtml.cpp
+++ b/nohtml/nohtml.cpp
@@ -10,6 +10,7 @@
///////////////////////////////////////////////
HINSTANCE hInst;
PLUGINLINK *pluginLink;
+DWORD mirandaVer;
PLUGININFOEX pluginInfo={
sizeof(PLUGININFOEX),
@@ -34,10 +35,12 @@ extern "C" BOOL APIENTRY DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvRe
}
extern "C" __declspec (dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) {
+ mirandaVer = mirandaVersion;
return &pluginInfo;
}
extern "C" __declspec (dllexport) PLUGININFO* MirandaPluginInfo(DWORD mirandaVersion) {
+ mirandaVer = mirandaVersion;
pluginInfo.cbSize = sizeof(PLUGININFO);
return (PLUGININFO*)&pluginInfo;
}
@@ -75,6 +78,14 @@ int ModulesLoaded(WPARAM wParam, LPARAM lParam) {
CallService(MS_UPDATE_REGISTER, 0, (WPARAM)&update);
}
+#ifdef _DEBUG
+ // show miranda version
+ char str[20];
+ str[0] = '0';
+ str[1] = 'x';
+ _itoa(mirandaVer, str+2, 16);
+ PUShowMessage(str, SM_NOTIFY);
+#endif
return 0;
}