From d0d4495f1117682d2cee660f45fa422953487abf Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Fri, 22 Jan 2016 14:10:15 +0000 Subject: IEView: more external functions git-svn-id: http://svn.miranda-ng.org/main/trunk@16143 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/IEView/src/IEView.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'plugins/IEView/src/IEView.cpp') diff --git a/plugins/IEView/src/IEView.cpp b/plugins/IEView/src/IEView.cpp index 1ae29850a9..c09544c6f7 100644 --- a/plugins/IEView/src/IEView.cpp +++ b/plugins/IEView/src/IEView.cpp @@ -430,10 +430,18 @@ STDMETHODIMP IEView::GetIDsOfNames(REFIID /*riid*/, LPOLESTR *rgszNames, UINT cN rgDispId[i] = DISPID_EXTERNAL_DB_GET; else if (!wcscmp(L"db_set", rgszNames[i])) rgDispId[i] = DISPID_EXTERNAL_DB_SET; + else if (!wcscmp(L"win32_ShellExecute", rgszNames[i])) rgDispId[i] = DISPID_EXTERNAL_WIN32_SHELL_EXECUTE; + else if (!wcscmp(L"IEView_SetContextMenuHandler", rgszNames[i])) rgDispId[i] = DISPID_EXTERNAL_SET_CONTEXTMENUHANDLER; + else if (!wcscmp(L"IEView_GetCurrentContact", rgszNames[i])) + rgDispId[i] = DISPID_EXTERNAL_GET_CURRENTCONTACT; + + else if (!wcscmp(L"mir_CallService", rgszNames[i])) + rgDispId[i] = DISPID_EXTERNAL_CALLSERVICE; + else { rgDispId[i] = NULL; @@ -455,12 +463,19 @@ STDMETHODIMP IEView::Invoke(DISPID dispIdMember, switch (dispIdMember) { + case DISPID_EXTERNAL_CALLSERVICE: + return External::mir_CallService(pDispParams, pVarResult); + case DISPID_EXTERNAL_DB_GET: return External::db_get(pDispParams, pVarResult); case DISPID_EXTERNAL_DB_SET: return External::db_set(pDispParams, pVarResult); + case DISPID_EXTERNAL_WIN32_SHELL_EXECUTE: return External::win32_ShellExecute(pDispParams, pVarResult); + + case DISPID_EXTERNAL_GET_CURRENTCONTACT: + return External::IEView_GetCurrentContact(this, pDispParams, pVarResult); case DISPID_EXTERNAL_SET_CONTEXTMENUHANDLER: return External::IEView_SetContextMenuHandler(this, pDispParams, pVarResult); } -- cgit v1.2.3