From 504307b184517248795d3ae4301969bfa93a050a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 18 May 2016 12:31:56 +0000 Subject: unused proprietary services removed from UserInfoEx git-svn-id: http://svn.miranda-ng.org/main/trunk@16848 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/ExternalAPI/m_userinfoex.h | 58 -------------------------------------- 1 file changed, 58 deletions(-) (limited to 'plugins/ExternalAPI') diff --git a/plugins/ExternalAPI/m_userinfoex.h b/plugins/ExternalAPI/m_userinfoex.h index eb681fb269..2957c62a6f 100644 --- a/plugins/ExternalAPI/m_userinfoex.h +++ b/plugins/ExternalAPI/m_userinfoex.h @@ -308,63 +308,5 @@ lParam=not used */ #define MS_USERINFO_HOMEPAGE_OPENURL "UserInfo/Homepage/OpenURL" -/************************************************************* - * extended database module - */ - -/* DB/Contact/GetSettingStrEx v0.7.0.1+ -This service function reads a database setting from USERINFO module. -If the setting does not exist, it is looked up in 'pszProto'. -If 'hContact' points to a MetaContact, the setting is recursivly -searched in all sub contacts, too, starting with the default contact, -if the MetaContact does not directly provide the setting. -This service can directly replace the default MS_DB_CONTACT_GETSETTING_STR -for reading contact information from the database. -There will be no difference for the user but the possible source of information. - -This service can be used to retrieve all kinds of settings! -Some versions of the default MS_DB_CONTACT_GETSETTING_STR service return -an error for BYTE, WORD and DWORD values if cgs.pValue->type is not 0. - -wParam = (WPARAM)(HANDLE)hContact -lParam = (LPARAM)(DBCONTACTGETSETTING*)&cgs - -This service returns one of the results of MS_DB_CONTACT_GETSETTING_STR! -*/ -#define MS_DB_CONTACT_GETSETTING_STR_EX "DB/Contact/GetSettingStrEx" - -static FORCEINLINE INT_PTR - DBGetContactSettingEx_Helper( - MCONTACT hContact, - const char* pszProto, - const char* pszSetting, - DBVARIANT *dbv, - BYTE nType) -{ - INT_PTR rc; - DBCONTACTGETSETTING cgs; - - cgs.szModule = pszProto; - cgs.szSetting = pszSetting; - cgs.pValue = dbv; - dbv->type = nType; - - rc = CallService(MS_DB_CONTACT_GETSETTING_STR_EX, (WPARAM)hContact, (LPARAM)&cgs); - if (rc == CALLSERVICE_NOTFOUND) - rc = db_get_s(hContact, pszProto, pszSetting, dbv, nType); - - return rc; -} - -#define DBGetContactSettingStringEx(c,p,s,v) DBGetContactSettingEx_Helper(c,p,s,v,DBVT_ASCIIZ) -#define DBGetContactSettingWStringEx(c,p,s,v) DBGetContactSettingEx_Helper(c,p,s,v,DBVT_WCHAR) -#define DBGetContactSettingUTF8StringEx(c,p,s,v) DBGetContactSettingEx_Helper(c,p,s,v,DBVT_UTF8) - -#ifdef _UNICODE -#define DBGetContactSettingTStringEx DBGetContactSettingWStringEx -#else -#define DBGetContactSettingTStringEx DBGetContactSettingStringEx -#endif - /*************************************************************/ #endif /* _M_USERINFOEX_H_ */ \ No newline at end of file -- cgit v1.2.3