summaryrefslogtreecommitdiff
path: root/plugins/Ping/src/ping.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-02-09 21:10:50 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-02-09 21:10:50 +0000
commit9e21d2fdb78b7ef70dec5ad2b0d40062e83692f2 (patch)
treefb57348c4ce09ee11842158815812b1c3c8b2d5e /plugins/Ping/src/ping.cpp
parent34abc371842aa00d41bcd100fc26aa87f3c73880 (diff)
removed not needed interfaces
git-svn-id: http://svn.miranda-ng.org/main/trunk@3508 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Ping/src/ping.cpp')
-rw-r--r--plugins/Ping/src/ping.cpp24
1 files changed, 8 insertions, 16 deletions
diff --git a/plugins/Ping/src/ping.cpp b/plugins/Ping/src/ping.cpp
index 10803ce5c5..7e3863ae81 100644
--- a/plugins/Ping/src/ping.cpp
+++ b/plugins/Ping/src/ping.cpp
@@ -19,30 +19,22 @@ PLUGININFOEX pluginInfo={
"mail@scottellis.com.au",
"© 2005 Scott Ellis",
"http://www.scottellis.com.au/",
- UNICODE_AWARE, //not transient
- { 0x760ea901, 0xc0c2, 0x446c, { 0x80, 0x29, 0x94, 0xc3, 0xbc, 0x47, 0xc4, 0x5e } } // {760EA901-C0C2-446c-8029-94C3BC47C45E}
+ UNICODE_AWARE,
+ // {760EA901-C0C2-446c-8029-94C3BC47C45E}
+ {0x760ea901, 0xc0c2, 0x446c, {0x80, 0x29, 0x94, 0xc3, 0xbc, 0x47, 0xc4, 0x5e}}
};
-extern "C" BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)
+extern "C" BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
- hInst=hinstDLL;
- DisableThreadLibraryCalls(hInst);
+ hInst = hinstDLL;
return TRUE;
}
-extern "C" PING_API PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
+extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
return &pluginInfo;
}
-static const MUUID interfaces[] = {MIID_PING, MIID_LAST};
-extern "C" __declspec(dllexport) const MUUID* MirandaPluginInterfaces(void)
-{
- return interfaces;
-}
-
-
-
void CreatePluginServices() {
// general
CreateServiceFunction(PLUG "/Ping", PluginPing);
@@ -128,7 +120,7 @@ int OnModulesLoaded(WPARAM wParam, LPARAM lParam) {
return 0;
}
-extern "C" PING_API int Load(void)
+extern "C" __declspec(dllexport) int Load(void)
{
//if(init_raw_ping()) {
//MessageBox(0, Translate("Failed to initialize. Plugin disabled."), Translate("Ping Plugin"), MB_OK | MB_ICONERROR);
@@ -162,7 +154,7 @@ extern "C" PING_API int Load(void)
return 0;
}
-extern "C" PING_API int Unload(void)
+extern "C" __declspec(dllexport) int Unload(void)
{
SavePingList(0, 0);