From d0ad03493f626bebe46f7e17ba5bda4433f83687 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Sat, 7 Aug 2010 14:55:48 +0300 Subject: lets continues work ) --- init.cpp | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'init.cpp') diff --git a/init.cpp b/init.cpp index e64ce15..d03c951 100644 --- a/init.cpp +++ b/init.cpp @@ -18,7 +18,7 @@ HINSTANCE hInst; -static HANDLE hAccountsChanges, hDbContactAdded, hTabsrmmButtonPressed, hTabsrmmToolBarReload; +static HANDLE hLoadPubKey; PLUGINLINK *pluginLink; static int OnModulesLoaded(WPARAM wParam,LPARAM lParam); extern char *date(); @@ -67,12 +67,24 @@ extern "C" __declspec(dllexport) const MUUID* MirandaPluginInterfaces(void) return interfaces; } +int LoadKey(WPARAM w, LPARAM l); + extern "C" int __declspec(dllexport) Load(PLUGINLINK *link) { pluginLink=link; HookEvent(ME_SYSTEM_MODULESLOADED, OnModulesLoaded); mir_getMMI(&mmi); mir_getUTFI(&utfi); + CreateServiceFunction("/LoadPubKey",LoadKey); + CLISTMENUITEM mi; + ZeroMemory(&mi,sizeof(mi)); + mi.cbSize=sizeof(mi); + mi.position=-0x7FFFFFFF; + mi.flags=0; + mi.hIcon=LoadSkinnedIcon(SKINICON_OTHER_MIRANDA); + mi.pszName="Load public key"; + mi.pszService="/LoadPubKey"; + hLoadPubKey = (HANDLE)CallService(MS_CLIST_ADDCONTACTMENUITEM,0,(LPARAM)&mi); return 0; } @@ -91,3 +103,9 @@ extern "C" int __declspec(dllexport) Unload(void) { return 0; } + + +int LoadKey(WPARAM w, LPARAM l) +{ + return 0; +} \ No newline at end of file -- cgit v1.2.3