From cd997e12f2ecf29c927f9c8c36ade9261140b2c5 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 10 Aug 2013 14:04:29 +0000 Subject: - much more effective implementation of MS_FP_GETCLIENTICONT; - new service, MS_FP_GETCLIENTDESCRT, to avoid perversions git-svn-id: http://svn.miranda-ng.org/main/trunk@5633 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/ExternalAPI/m_fingerprint.h | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) (limited to 'plugins/ExternalAPI') diff --git a/plugins/ExternalAPI/m_fingerprint.h b/plugins/ExternalAPI/m_fingerprint.h index 3dd6cbd694..35fc75c260 100644 --- a/plugins/ExternalAPI/m_fingerprint.h +++ b/plugins/ExternalAPI/m_fingerprint.h @@ -30,9 +30,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. /* * Service SameClientsW MS_FP_SAMECLIENTSW - * wParam - LPWSTR first MirVer value - * lParam - LPWSTR second MirVer value - * return LPWSTR: client desription (DO NOT DESTROY) if clients are same otherwise NULL + * wParam - LPCWSTR first MirVer value + * lParam - LPCWSTR second MirVer value + * returns LPCWSTR: client desription (DO NOT DESTROY) if clients are same otherwise NULL */ #define MS_FP_SAMECLIENTSW "Fingerprint/SameClientsW" @@ -40,6 +40,18 @@ __forceinline LPCWSTR Finger_IsSameClents(LPCWSTR pwszName1, LPCWSTR pwszName2) { return (LPCWSTR)CallService(MS_FP_SAMECLIENTSW, (WPARAM)pwszName1, (WPARAM)pwszName2); } +/* + * Service GetClientDescrW MS_FP_GETCLIENTDESCRW + * wParam - LPCWSTR MirVer value to get client for. + * lParam - NULL (unused) + * returns LPCWSTR: client description (DO NOT DESTROY) otherwise NULL + */ +#define MS_FP_GETCLIENTDESCRW "Fingerprint/GetClientDescrW" + +__forceinline LPCWSTR Finger_GetClientDescr(LPCWSTR pwszName) +{ return (LPCWSTR)CallService(MS_FP_GETCLIENTDESCRW, (WPARAM)pwszName, 0); +} + /* * Service GetClientIconW MS_FP_GETCLIENTICONW * wParam - LPWSTR MirVer value to get client for. @@ -49,8 +61,9 @@ __forceinline LPCWSTR Finger_IsSameClents(LPCWSTR pwszName1, LPCWSTR pwszName2) #define MS_FP_GETCLIENTICONW "Fingerprint/GetClientIconW" __forceinline HICON Finger_GetClientIcon(LPCWSTR pwszName, BOOL bNoCopy) -{ return (HICON)CallService(MS_FP_SAMECLIENTSW, (WPARAM)pwszName, bNoCopy); +{ return (HICON)CallService(MS_FP_GETCLIENTICONW, (WPARAM)pwszName, bNoCopy); } #define MS_FP_SAMECLIENTST MS_FP_SAMECLIENTSW +#define MS_FP_GETCLIENTDESCRT MS_FP_GETCLIENTDESCRW #define MS_FP_GETCLIENTICONT MS_FP_GETCLIENTICONW -- cgit v1.2.3