From e39a0d8ea79a50de094811ce9adf110252aa7f31 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Thu, 21 Jan 2016 12:45:04 +0000 Subject: IEView: win32_ShellExecute javascript function git-svn-id: http://svn.miranda-ng.org/main/trunk@16134 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/IEView/src/IEView.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'plugins/IEView/src/IEView.cpp') diff --git a/plugins/IEView/src/IEView.cpp b/plugins/IEView/src/IEView.cpp index 3b92ddf519..9ceca7c676 100644 --- a/plugins/IEView/src/IEView.cpp +++ b/plugins/IEView/src/IEView.cpp @@ -414,7 +414,7 @@ STDMETHODIMP_(ULONG) IEView::Release(void) STDMETHODIMP IEView::GetTypeInfoCount(UINT *pctinfo) { if (pctinfo == NULL) return E_INVALIDARG; - *pctinfo = 1; + *pctinfo = 2; return S_OK; } STDMETHODIMP IEView::GetTypeInfo(UINT, LCID, LPTYPEINFO*) @@ -428,6 +428,9 @@ STDMETHODIMP IEView::GetIDsOfNames(REFIID riid, LPOLESTR *rgszNames, UINT cNames { if (!wcscmp(L"db_get", rgszNames[i])) rgDispId[i] = DISPID_EXTERNAL_DB_GET; + else if (!wcscmp(L"win32_ShellExecute", rgszNames[i])) + rgDispId[i] = DISPID_EXTERNAL_WIN32_SHELL_EXECUTE; + else { rgDispId[i] = NULL; @@ -451,6 +454,8 @@ STDMETHODIMP IEView::Invoke(DISPID dispIdMember, { case DISPID_EXTERNAL_DB_GET: return External::db_get(pDispParams, pVarResult); + case DISPID_EXTERNAL_WIN32_SHELL_EXECUTE: + return External::win32_ShellExecute(pDispParams, pVarResult); } return DISP_E_MEMBERNOTFOUND; -- cgit v1.2.3