From 690f5e6d29d1c85c4be72638eb22843964c2f512 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Fri, 24 Apr 2015 08:21:28 +0000 Subject: All non-working stuff moved from trunk git-svn-id: http://svn.miranda-ng.org/main/trunk@13071 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/!NotAdopted/VypressChat/main.c | 132 --------------------------------- 1 file changed, 132 deletions(-) delete mode 100644 plugins/!NotAdopted/VypressChat/main.c (limited to 'plugins/!NotAdopted/VypressChat/main.c') diff --git a/plugins/!NotAdopted/VypressChat/main.c b/plugins/!NotAdopted/VypressChat/main.c deleted file mode 100644 index ccf295017d..0000000000 --- a/plugins/!NotAdopted/VypressChat/main.c +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Miranda-IM Vypress Chat/quickChat plugins - * Copyright (C) Saulius Menkevicius - * - * 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 - * - * $Id: main.c,v 1.11 2005/03/09 14:44:22 bobas Exp $ - */ - -#include "miranda.h" -#include "main.h" -#include "service.h" -#include "user.h" -#include "userlist.h" -#include "chatroom.h" -#include "msghandler.h" -#include "options.h" -#include "skin.h" - -/* forward references - */ - -/* global data - */ -HINSTANCE g_hDllInstance; /* plugin dll instance */ -HANDLE g_hMainThread; - -PLUGINLINK * pluginLink; - -/* exported routines - */ -BOOL WINAPI -DllMain(HINSTANCE hInstanceDLL, DWORD fwReason, LPVOID lpvReserved) -{ - g_hDllInstance = hInstanceDLL; - return TRUE; -} - -PLUGININFO pluginInfo = { - sizeof(PLUGININFO), - VQCHAT_PROTO_NAME " Protocol", - PLUGIN_MAKE_VERSION(VQCHAT_VER_MAJ0, VQCHAT_VER_MAJ1, VQCHAT_VER_MIN0, VQCHAT_VER_MIN1), - "Adds support for " VQCHAT_PROTO_NAME " networks.", - "Saulius Menkevicius", - "bobas@sourceforge.net", - "(C) 2005 Saulius Menkevicius", - "http://sourceforge.net/projects/miranda-vqchat/", - 0, // NOT transient - 0 // doesn't replace anything builtin -}; - -__declspec(dllexport) PLUGININFO * -MirandaPluginInfo(DWORD mirandaVersion) -{ - return &pluginInfo; -} - -__declspec(dllexport) int -Load(PLUGINLINK * link) -{ - PROTOCOLDESCRIPTOR pd; - INITCOMMONCONTROLSEX iccs; - - /* setup static data */ - pluginLink = link; - - /* get main thread handle */ - DuplicateHandle( - GetCurrentProcess(), GetCurrentThread(), - GetCurrentProcess(), &g_hMainThread, - THREAD_SET_CONTEXT, FALSE, 0); - - /* init common controls library (for the IP adress entries to work) - */ - memset(&iccs, 0, sizeof(iccs)); - iccs.dwSize = sizeof(iccs); - iccs.dwICC = ICC_INTERNET_CLASSES; - InitCommonControlsEx(&iccs); - - /* init vqp_link module */ - vqp_init(NULL, NULL); - - /* register this module with miranda */ - memset(&pd, 0, sizeof(pd)); - pd.cbSize = sizeof(pd); - pd.szName = VQCHAT_PROTO; - pd.type = PROTOTYPE_PROTOCOL; - CallService(MS_PROTO_REGISTERMODULE, 0, (LPARAM)&pd); - - /* init our modules */ - options_init(); - msghandler_init(); - skin_init(); - user_init(); - userlist_init(); - chatroom_init(); - - /* register protocol services */ - service_register_services(); - service_hook_all(); - - return 0; -} - -__declspec(dllexport) int -Unload(void) -{ - service_uninit(); - user_uninit(); - userlist_uninit(); - chatroom_uninit(); - msghandler_uninit(); - options_uninit(); - skin_uninit(); - - vqp_uninit(); - - return 0; -} - -- cgit v1.2.3