summaryrefslogtreecommitdiff
path: root/plugins/IEView/src/IEView.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2016-01-22 14:10:15 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2016-01-22 14:10:15 +0000
commitd0d4495f1117682d2cee660f45fa422953487abf (patch)
tree94a78df60f1eb6f293ef6752c6e9fc8bff0a5065 /plugins/IEView/src/IEView.cpp
parent3a09ce8ad3e0aa8bb97266def2f38e1295392d2d (diff)
IEView: more external functions
git-svn-id: http://svn.miranda-ng.org/main/trunk@16143 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/IEView/src/IEView.cpp')
-rw-r--r--plugins/IEView/src/IEView.cpp15
1 files changed, 15 insertions, 0 deletions
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);
}