diff options
author | George Hazan <george.hazan@gmail.com> | 2013-08-10 14:04:29 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-08-10 14:04:29 +0000 |
commit | cd997e12f2ecf29c927f9c8c36ade9261140b2c5 (patch) | |
tree | fa382d3bad53952db440975922991e68c7383c72 /plugins/ExternalAPI | |
parent | 794fa3fb5cc63ac9b69908bd04f4be985a4a8cd1 (diff) |
- 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
Diffstat (limited to 'plugins/ExternalAPI')
-rw-r--r-- | plugins/ExternalAPI/m_fingerprint.h | 21 |
1 files changed, 17 insertions, 4 deletions
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"
@@ -41,6 +41,18 @@ __forceinline LPCWSTR Finger_IsSameClents(LPCWSTR pwszName1, LPCWSTR 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.
* lParam - int noCopy - if wParam is equal to "1" will return icon handler without copiing icon.
@@ -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
|