diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-07 14:55:48 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-07 14:55:48 +0300 |
commit | d0ad03493f626bebe46f7e17ba5bda4433f83687 (patch) | |
tree | 69dcf69af7325f37a5367e59eff0f88da75cc5e6 /init.cpp | |
parent | 9022cd651aaf7e0cd44d2c987b329f9ae0a21529 (diff) |
lets continues work )
Diffstat (limited to 'init.cpp')
-rw-r--r-- | init.cpp | 20 |
1 files changed, 19 insertions, 1 deletions
@@ -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 |