diff options
Diffstat (limited to 'meta2/common.h')
-rw-r--r-- | meta2/common.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta2/common.h b/meta2/common.h index 67f3a50..35a0aca 100644 --- a/meta2/common.h +++ b/meta2/common.h @@ -74,8 +74,6 @@ extern UTF8_INTERFACE utfi; extern HANDLE metaMainThread;
extern DWORD next_meta_id;
-extern int meta_count;
-
#ifndef MIID_META2
#define MIID_META2 { 0x4415A85D, 0xD6DA, 0x4551, { 0xB2, 0xB8, 0x9B, 0xDD, 0x82, 0xE2, 0x4B, 0x50 } }
#endif
@@ -98,6 +96,10 @@ inline char *ContactProto(HANDLE hContact) { return (char *)CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM)hContact, 0);
}
+inline TCHAR *ContactName(HANDLE hContact) {
+ return (TCHAR *)CallService(MS_CLIST_GETCONTACTDISPLAYNAME, (WPARAM)hContact, GCDNF_TCHAR);
+}
+
inline WORD ContactStatus(HANDLE hContact, char *proto) {
if(!proto) return ID_STATUS_OFFLINE;
return DBGetContactSettingWord(hContact, proto, "Status", ID_STATUS_OFFLINE);
|