summaryrefslogtreecommitdiff
path: root/no_history/dllmain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'no_history/dllmain.cpp')
-rw-r--r--no_history/dllmain.cpp20
1 files changed, 16 insertions, 4 deletions
diff --git a/no_history/dllmain.cpp b/no_history/dllmain.cpp
index 7996e09..9a042ae 100644
--- a/no_history/dllmain.cpp
+++ b/no_history/dllmain.cpp
@@ -33,8 +33,8 @@ struct EventListNode {
EventListNode *event_list = 0;
// plugin stuff
-PLUGININFO pluginInfo={
- sizeof(PLUGININFO),
+PLUGININFOEX pluginInfo={
+ sizeof(PLUGININFOEX),
MODULE,
PLUGIN_MAKE_VERSION(VER_MAJOR, VER_MINOR, VER_RELEASE, VER_BUILD),
DESC_STRING,
@@ -43,7 +43,12 @@ PLUGININFO pluginInfo={
"© 2005 Scott Ellis",
"http://www.scottellis.com.au/",
0, //not transient
- 0 //doesn't replace anything built-in
+ 0, //doesn't replace anything built-in
+#ifdef _UNICODE
+{ 0xb25e8c7b, 0x292b, 0x495a, { 0x9f, 0xb8, 0xa4, 0xc3, 0xd4, 0xee, 0xb0, 0x4b } } // {B25E8C7B-292B-495a-9FB8-A4C3D4EEB04B}
+#else
+{ 0x12e5a39, 0x78a6, 0x4ccb, { 0xa6, 0x3f, 0x60, 0xfa, 0x7c, 0xb4, 0xd, 0xee } } // {012E5A39-78A6-4ccb-A63F-60FA7CB40DEE}
+#endif
};
extern "C" BOOL APIENTRY DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved) {
@@ -51,10 +56,17 @@ extern "C" BOOL APIENTRY DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvRe
return TRUE;
}
-extern "C" __declspec (dllexport) PLUGININFO* MirandaPluginInfo(DWORD mirandaVersion) {
+extern "C" __declspec (dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) {
return &pluginInfo;
}
+static const MUUID interfaces[] = {MIID_NOHISTORY, MIID_LAST};
+extern "C" __declspec(dllexport) const MUUID* MirandaPluginInterfaces(void) {
+ return interfaces;
+}
+
+
+
void RemoveReadEvents() {
DBEVENTINFO info = {0};
info.cbSize = sizeof(info);