summaryrefslogtreecommitdiff
path: root/plugins/HistoryStats/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/HistoryStats/src')
-rw-r--r--plugins/HistoryStats/src/mu_common.cpp35
-rw-r--r--plugins/HistoryStats/src/mu_common.h11
-rw-r--r--plugins/HistoryStats/src/statistic.cpp2
-rw-r--r--plugins/HistoryStats/src/statistic.h2
4 files changed, 3 insertions, 47 deletions
diff --git a/plugins/HistoryStats/src/mu_common.cpp b/plugins/HistoryStats/src/mu_common.cpp
index 9737381a2f..62c9e21bb0 100644
--- a/plugins/HistoryStats/src/mu_common.cpp
+++ b/plugins/HistoryStats/src/mu_common.cpp
@@ -110,35 +110,13 @@ namespace mu
}
/*
- * system
- */
-
- namespace system
- {
- DWORD getVersion()
- {
- return static_cast<DWORD>(CallService(MS_SYSTEM_GETVERSION, 0, 0));
- }
-
- int getVersionText(int cchVersion, char* szVersion)
- {
- return CallService(MS_SYSTEM_GETVERSIONTEXT, cchVersion, reinterpret_cast<LPARAM>(szVersion));
- }
-
- int terminated()
- {
- return CallService(MS_SYSTEM_TERMINATED, 0, 0);
- }
- }
-
- /*
* core interface functions
*/
bool load()
{
// check for version
- if (!isMirandaVersionOk(system::getVersion()))
+ if (!isMirandaVersionOk(Miranda_GetVersion()))
return false;
return true;
@@ -160,17 +138,6 @@ namespace mu
bool isMirandaUnicode()
{
- if (system::getVersion() < PLUGIN_MAKE_VERSION(0, 4, 3, 33))
- return false;
-
- char szVersion[256] = { 0 };
-
- if (system::getVersionText(256, szVersion) != 0)
- return false;
-
- if (!strstr(szVersion, "Unicode"))
- return false;
-
return true;
}
diff --git a/plugins/HistoryStats/src/mu_common.h b/plugins/HistoryStats/src/mu_common.h
index f2afb7c9df..11905e187d 100644
--- a/plugins/HistoryStats/src/mu_common.h
+++ b/plugins/HistoryStats/src/mu_common.h
@@ -58,17 +58,6 @@ namespace mu
}
/*
- * system
- */
-
- namespace system
- {
- DWORD getVersion();
- int getVersionText(int cchVersion, char* szVersion);
- int terminated();
- }
-
- /*
* updater [external]
*/
diff --git a/plugins/HistoryStats/src/statistic.cpp b/plugins/HistoryStats/src/statistic.cpp
index b064304cbf..b2882ed476 100644
--- a/plugins/HistoryStats/src/statistic.cpp
+++ b/plugins/HistoryStats/src/statistic.cpp
@@ -1379,7 +1379,7 @@ void __cdecl Statistic::threadProc(void *lpParameter)
pStats->createStatistics();
// check for errors
- if (!pStats->m_ErrorText.empty() && !mu::system::terminated())
+ if (!pStats->m_ErrorText.empty() && !Miranda_IsTerminated())
MessageBox(0, pStats->m_ErrorText.c_str(), TranslateT("HistoryStats - Error"), MB_ICONERROR | MB_OK);
// free statistics
diff --git a/plugins/HistoryStats/src/statistic.h b/plugins/HistoryStats/src/statistic.h
index 93f3d729bf..c08661a373 100644
--- a/plugins/HistoryStats/src/statistic.h
+++ b/plugins/HistoryStats/src/statistic.h
@@ -133,7 +133,7 @@ private:
// misc routines
DWORD getTimeStarted() { return m_TimeStarted; }
- bool shouldTerminate() { return (WaitForSingleObject(m_hCancelEvent, 0) == WAIT_OBJECT_0) || (bool_(mu::system::terminated())); }
+ bool shouldTerminate() { return (WaitForSingleObject(m_hCancelEvent, 0) == WAIT_OBJECT_0) || bool_(Miranda_IsTerminated()); }
void handleAddMessage(Contact& contact, Message& msg);
void handleAddChat(Contact& contact, bool bOutgoing, DWORD localTimestampStarted, DWORD duration);