diff options
Diffstat (limited to 'plugins/CloudFile/src/main.cpp')
-rw-r--r-- | plugins/CloudFile/src/main.cpp | 25 |
1 files changed, 3 insertions, 22 deletions
diff --git a/plugins/CloudFile/src/main.cpp b/plugins/CloudFile/src/main.cpp index d3582642cc..a95c9db056 100644 --- a/plugins/CloudFile/src/main.cpp +++ b/plugins/CloudFile/src/main.cpp @@ -16,9 +16,7 @@ PLUGININFOEX pluginInfo = __AUTHORWEB, UNICODE_AWARE, // {E876FE63-0701-4CDA-BED5-7C73A379C1D1} - //{ 0xe876fe63, 0x701, 0x4cda, { 0xbe, 0xd5, 0x7c, 0x73, 0xa3, 0x79, 0xc1, 0xd1 }} - // {B908773A-86F7-4A91-8674-6A20BA0E67D1} - { 0xb908773a, 0x86f7, 0x4a91,{ 0x86, 0x74, 0x6a, 0x20, 0xba, 0xe, 0x67, 0xd1 } } + { 0xe876fe63, 0x701, 0x4cda, { 0xbe, 0xd5, 0x7c, 0x73, 0xa3, 0x79, 0xc1, 0xd1 }} }; DWORD WINAPI DllMain(HINSTANCE hInst, DWORD, LPVOID) @@ -32,32 +30,15 @@ extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD) return &pluginInfo; } +extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_DROPBOX, MIID_LAST }; + extern "C" int __declspec(dllexport) Load(void) { mir_getLP(&pluginInfo); - PROTOCOLDESCRIPTOR pd = { sizeof(pd) }; - pd.szName = MODULE; - pd.type = PROTOTYPE_VIRTUAL; - Proto_RegisterModule(&pd); - - CreateServiceFunction(MODULE PS_GETCAPS, ProtoGetCaps); - CreateServiceFunction(MODULE PS_GETNAME, ProtoGetName); - CreateServiceFunction(MODULE PS_LOADICON, ProtoLoadIcon); - HookEvent(ME_PROTO_ACK, OnProtoAck); HookEvent(ME_SYSTEM_MODULESLOADED, OnModulesLoaded); - NETLIBUSER nlu = {}; - nlu.flags = NUF_INCOMING | NUF_OUTGOING | NUF_HTTPCONNS | NUF_UNICODE; - nlu.szSettingsModule = MODULE; - nlu.szDescriptiveName.w = _A2W("MODULE"); - hNetlibConnection = Netlib_RegisterUser(&nlu); - - InitServices(); - InitializeIcons(); - InitializeMenus(); - return 0; } |