void gg_links_init() { if (ServiceExists(MS_ASSOCMGR_ADDNEWURLTYPE)) { CreateServiceFunction(GGS_PARSELINK, gg_parselink); AssocMgr_AddNewUrlType("gg:", Translate("Gadu-Gadu Link Protocol"), hInstance, IDI_GG, GGS_PARSELINK, 0); } }
static int JabberLinksModulesLoaded(WPARAM wParam, LPARAM lParam) { char szService[MAXMODULELABELLENGTH]; UNREFERENCED_PARAMETER(wParam); UNREFERENCED_PARAMETER(lParam); mir_snprintf(szService, _countof(szService), "%s%s", jabberProtoName, "ParseXmppURI"); AssocMgr_AddNewUrlType("xmpp:", Translate("Jabber link protocol"), hInst, IDI_JABBER, szService, 0); return 0; }
static int LinksModulesLoaded(WPARAM wParam, LPARAM lParam) { char szService[MAXMODULELABELLENGTH]; UNREFERENCED_PARAMETER(wParam); UNREFERENCED_PARAMETER(lParam); mir_snprintf(szService, _countof(szService), "%s%s", GG_PROTO, "ParseMsnimLink"); AssocMgr_AddNewUrlType("gg:", Translate("Gadu-Gadu link protocol"), hInstance, IDI_GG, szService, 0); return 0; }
static int MsnLinksModulesLoaded(WPARAM wParam, LPARAM lParam) { char szService[MAXMODULELABELLENGTH]; UNREFERENCED_PARAMETER(wParam); UNREFERENCED_PARAMETER(lParam); mir_snprintf(szService, _countof(szService), "%s%s", msnProtocolName, "ParseMsnimLink"); AssocMgr_AddNewUrlType("msnim:", Translate("MSN link protocol"), hInst, IDI_MSN, szService, 0); return 0; }
static int YmsgrLinksModulesLoaded(WPARAM wParam, LPARAM lParam) { char szService[MAXMODULELABELLENGTH]; UNREFERENCED_PARAMETER(wParam); UNREFERENCED_PARAMETER(lParam); mir_snprintf(szService, _countof(szService), "%s%s", yahooProtocolName, "ParseYmsgrLink"); AssocMgr_AddNewUrlType("ymsgr:", Translate("Yahoo link protocol"), hinstance, IDI_YAHOO, szService, 0); return 0; }
static int AimLinksModulesLoaded(WPARAM wParam, LPARAM lParam) { char service_name[MAXMODULELABELLENGTH]; UNREFERENCED_PARAMETER(wParam); UNREFERENCED_PARAMETER(lParam); mir_snprintf(service_name, _countof(service_name), "%s%s", AIM_PROTOCOL_NAME, "ParseAimLink"); /* or "AOL Instant Messenger Links" */ AssocMgr_AddNewUrlType("aim:", Translate("AIM link protocol"), conn.hInstance, IDI_AOL, service_name, 0); return 0; }
void gg_links_init() { if (ServiceExists(MS_ASSOCMGR_ADDNEWURLTYPE)) { char service[MAXMODULELABELLENGTH]; mir_snprintf(service, sizeof(service), GGS_PARSELINK, GGDEF_PROTO); hServiceParseLink = CreateServiceFunction(service, gg_parselink); AssocMgr_AddNewUrlType("gg:", Translate("Gadu-Gadu Link Protocol"), hInstance, IDI_GG, service, 0); } }