From 11354effc08a8d1b1b0fc95b5c473256f33c8ec3 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 21 Dec 2014 17:52:29 +0000 Subject: - MS_PROTO_ISPROTOCOLLOADED now switched back to protocols instead of accounts; - calls of MS_PROTO_ISPROTOCOLLOADED replaced with ProtoGetAccount() wherever possible git-svn-id: http://svn.miranda-ng.org/main/trunk@11558 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- include/m_protocols.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'include/m_protocols.h') diff --git a/include/m_protocols.h b/include/m_protocols.h index fc21f8d9a4..a437e5aa5f 100644 --- a/include/m_protocols.h +++ b/include/m_protocols.h @@ -217,12 +217,16 @@ typedef struct { #define MS_PROTO_ENUMPROTOS "Proto/EnumProtos" // determines if a protocol module is loaded or not -// wParam = 0 +// wParam = 0 (unused) // lParam = (LPARAM)(const char*)szName -// Returns a pointer to the PROTOACCOUNT if the protocol is loaded, or +// Returns a pointer to the PROTOCOLDESCRIPTOR if the protocol is loaded, or // NULL if it isn't. #define MS_PROTO_ISPROTOCOLLOADED "Proto/IsProtocolLoaded" +__forceinline PROTOCOLDESCRIPTOR* IsProtocolLoaded(const char *szProto) +{ return (PROTOCOLDESCRIPTOR*)CallService(MS_PROTO_ISPROTOCOLLOADED, 0, (LPARAM)szProto); +} + // gets the network-level protocol associated with a contact // wParam = (MCONTACT)hContact // lParam = 0 -- cgit v1.2.3