summaryrefslogtreecommitdiff
path: root/plugins/ExternalAPI/m_fingerprint.h
blob: 30482429256cba244834fbefec5dc7be28be5c98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/*
Fingerprint Mod+ (client version) icons module for Miranda IM

Copyright © 2006-2007 Artem Shpynov aka FYR, Bio, Faith Healer. 2009-2010 HierOS

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
*/

/************************************************************************/
/*  Author: Artem Shpynov aka FYR     mailto:shpynov@nm.ru              */
/*  icons by Angeli-Ka                                                  */
/*  January 12, 2006													*/
/************************************************************************/

/*
 *   FINGERPRINT PLUGIN SERVICES HEADER
 */

/*
 *  Service SameClientsW MS_FP_SAMECLIENTSW
 *	 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"

__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.
 *  lParam - int noCopy - if wParam is equal to "1"  will return icon handler without copiing icon.
 *  the returned in this case handler is static valid  only till next service call.
 */
#define MS_FP_GETCLIENTICONW "Fingerprint/GetClientIconW"

__forceinline HICON Finger_GetClientIcon(LPCWSTR pwszName, BOOL 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