summaryrefslogtreecommitdiff
path: root/plugins/PluginUpdater/src/Compat
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-08-02 20:51:49 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-08-02 20:51:49 +0000
commit03d2586c6dc4c4163f9df52cc8efe0a16768a28c (patch)
tree4134d241dd14221fa0ba3848c5efe769750cc9d1 /plugins/PluginUpdater/src/Compat
parent419e301b09de1935ab61f9a28363bb375fc7e208 (diff)
IM_Updater:
-Compilation fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@14825 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater/src/Compat')
-rw-r--r--plugins/PluginUpdater/src/Compat/compat.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/plugins/PluginUpdater/src/Compat/compat.h b/plugins/PluginUpdater/src/Compat/compat.h
index e4f15f53d8..5818adcef1 100644
--- a/plugins/PluginUpdater/src/Compat/compat.h
+++ b/plugins/PluginUpdater/src/Compat/compat.h
@@ -26,6 +26,8 @@
#define NETLIB_USER_AGENT "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0)"
+typedef HANDLE MCONTACT;
+
template<class T> class mir_ptr
{
T *data;
@@ -140,8 +142,18 @@ __forceinline INT_PTR Hotkey_Register(HOTKEYDESC *hk) {
return CallService(MS_HOTKEY_REGISTER, 0, (LPARAM)hk);
}
-__forceinline INT_PTR CreateDirectoryTreeT(const TCHAR *ptszPath)
-{ return CallService(MS_UTILS_CREATEDIRTREET, 0, (LPARAM)ptszPath);
+__forceinline INT_PTR CreateDirectoryTreeT(const TCHAR *ptszPath) {
+ return CallService(MS_UTILS_CREATEDIRTREET, 0, (LPARAM)ptszPath);
+}
+
+__forceinline TCHAR *Utils_ReplaceVarsT(const TCHAR *szData, MCONTACT hContact, REPLACEVARSARRAY *variables) {
+ REPLACEVARSDATA vars;
+ vars.cbSize = sizeof(vars);
+ vars.dwFlags = RVF_TCHAR;
+ vars.hContact = hContact;
+ vars.variables = variables;
+ return (TCHAR*)CallService(MS_UTILS_REPLACEVARS, (WPARAM)szData, (LPARAM)&vars);
}
+
#define _qtoupper(_c) (((_c) >= 'a' && (_c) <= 'z')?((_c)-('a'+'A')):(_c))