summaryrefslogtreecommitdiff
path: root/plugins/!NotAdopted/sametime/common.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/!NotAdopted/sametime/common.cpp')
-rw-r--r--plugins/!NotAdopted/sametime/common.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/!NotAdopted/sametime/common.cpp b/plugins/!NotAdopted/sametime/common.cpp
new file mode 100644
index 0000000000..c2a503f8d6
--- /dev/null
+++ b/plugins/!NotAdopted/sametime/common.cpp
@@ -0,0 +1,12 @@
+#include "common.h"
+
+int DBGetContactSettingUtf(HANDLE hContact, char *module, char *setting, DBVARIANT *dbv) {
+ DBCONTACTGETSETTING cgs;
+ cgs.szModule = module;
+ cgs.szSetting = setting;
+ cgs.pValue = dbv;
+
+ dbv->type = DBVT_UTF8;
+
+ return CallService(MS_DB_CONTACT_GETSETTING_STR, (WPARAM)hContact, (LPARAM)&cgs);
+} \ No newline at end of file