diff options
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
|