summaryrefslogtreecommitdiff
path: root/plugins/Scriver/src/srmm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Scriver/src/srmm.cpp')
-rw-r--r--plugins/Scriver/src/srmm.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/plugins/Scriver/src/srmm.cpp b/plugins/Scriver/src/srmm.cpp
index 493e698e23..26b671eda3 100644
--- a/plugins/Scriver/src/srmm.cpp
+++ b/plugins/Scriver/src/srmm.cpp
@@ -27,11 +27,13 @@ int OnLoadModule(void);
int OnUnloadModule(void);
int hLangpack;
-HINSTANCE g_hInst;
+CMPlugin g_plugin;
CLIST_INTERFACE *pcli;
ITaskbarList3 *pTaskbarInterface;
+/////////////////////////////////////////////////////////////////////////////////////////
+
PLUGININFOEX pluginInfo = {
sizeof(PLUGININFOEX),
__PLUGIN_NAME,
@@ -45,19 +47,17 @@ PLUGININFOEX pluginInfo = {
{ 0x84636f78, 0x2057, 0x4302, { 0x8a, 0x65, 0x23, 0xa1, 0x6d, 0x46, 0x84, 0x4c } }
};
-BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD, LPVOID)
-{
- g_hInst = hinstDLL;
- return TRUE;
-}
-
extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD)
{
return &pluginInfo;
}
+/////////////////////////////////////////////////////////////////////////////////////////
+
extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_SRMM, MIID_LAST };
+/////////////////////////////////////////////////////////////////////////////////////////
+
extern "C" __declspec(dllexport) int Load(void)
{
// set the memory manager
@@ -70,6 +70,8 @@ extern "C" __declspec(dllexport) int Load(void)
return OnLoadModule();
}
+/////////////////////////////////////////////////////////////////////////////////////////
+
extern "C" __declspec(dllexport) int Unload(void)
{
if (pTaskbarInterface)