summaryrefslogtreecommitdiff
path: root/plugins/WhoUsesMyFiles/src/wumfplug.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-03-14 11:40:27 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-03-14 11:40:27 +0000
commitbf7494126f2ce1f6de9fda7ea1de0d02809be131 (patch)
tree00724c8e5ae52910224930de05beb6e4feb12926 /plugins/WhoUsesMyFiles/src/wumfplug.cpp
parent829c4ca618d393e194f075d641a55c75a58dfa66 (diff)
plusification
git-svn-id: http://svn.miranda-ng.org/main/trunk@4020 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/WhoUsesMyFiles/src/wumfplug.cpp')
-rw-r--r--plugins/WhoUsesMyFiles/src/wumfplug.cpp18
1 files changed, 7 insertions, 11 deletions
diff --git a/plugins/WhoUsesMyFiles/src/wumfplug.cpp b/plugins/WhoUsesMyFiles/src/wumfplug.cpp
index 545909511a..b4af03a16b 100644
--- a/plugins/WhoUsesMyFiles/src/wumfplug.cpp
+++ b/plugins/WhoUsesMyFiles/src/wumfplug.cpp
@@ -2,13 +2,9 @@
HINSTANCE hInst;
WUMF_OPTIONS WumfOptions = { 0 };
-const char ModuleName[] = "WUMF Plugin";
HANDLE hMenuItem = 0;
-extern HANDLE hLog;
-static HWND hDlg;
-static HANDLE hWumfBut;
-extern PWumf list;
int hLangpack;
+HWND hDlg;
static PLUGININFOEX pluginInfo = {
sizeof(PLUGININFOEX),
@@ -21,7 +17,7 @@ static PLUGININFOEX pluginInfo = {
"http://miranda-ng.org/",
UNICODE_AWARE,
// {80DCA515-973A-4A7E-8B85-5D8EC88FC5A7}
- { 0x80dca515, 0x973a, 0x4a7e, { 0x8b, 0x85, 0x5d, 0x8e, 0xc8, 0x8f, 0xc5, 0xa7 } }
+ {0x80dca515, 0x973a, 0x4a7e, {0x8b, 0x85, 0x5d, 0x8e, 0xc8, 0x8f, 0xc5, 0xa7}}
};
void LoadOptions()
@@ -228,9 +224,9 @@ void ShowThePreview()
-BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
- hInst=hinstDLL;
+ hInst = hinstDLL;
return TRUE;
}
@@ -289,7 +285,7 @@ static INT_PTR WumfMenuCommand(WPARAM wParam,LPARAM lParam)
return iResult;
}
-__declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
+extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
return &pluginInfo;
}
@@ -574,7 +570,7 @@ int OptionsInit(WPARAM wparam,LPARAM lparam)
return 0;
}
-__declspec(dllexport) int Load(void)
+extern "C" __declspec(dllexport) int Load(void)
{
mir_getLP(&pluginInfo);
@@ -619,7 +615,7 @@ __declspec(dllexport) int Load(void)
return 0;
}
-__declspec(dllexport) int Unload(void)
+extern "C" __declspec(dllexport) int Unload(void)
{
KillTimer(NULL, 777);
CloseHandle(hLog);