[PATCH 3/4] shell32: Add ExplorerBrowser with IExplorerBrowser interface stub.
David Hedberg
david.hedberg at gmail.com
Mon May 24 07:37:33 CDT 2010
---
dlls/shell32/Makefile.in | 1 +
dlls/shell32/ebrowser.c | 290 ++++++++++++++++++++++++++++++++++++++++
dlls/shell32/regsvr.c | 7 +
dlls/shell32/shell32_main.h | 1 +
dlls/shell32/shellole.c | 1 +
dlls/shell32/tests/Makefile.in | 1 +
dlls/shell32/tests/ebrowser.c | 233 ++++++++++++++++++++++++++++++++
7 files changed, 534 insertions(+), 0 deletions(-)
create mode 100644 dlls/shell32/ebrowser.c
create mode 100644 dlls/shell32/tests/ebrowser.c
diff --git a/dlls/shell32/Makefile.in b/dlls/shell32/Makefile.in
index 16f99f8..b92493a 100644
--- a/dlls/shell32/Makefile.in
+++ b/dlls/shell32/Makefile.in
@@ -23,6 +23,7 @@ C_SRCS = \
debughlp.c \
dialogs.c \
dragdrophelper.c \
+ ebrowser.c \
enumidlist.c \
folders.c \
iconcache.c \
diff --git a/dlls/shell32/ebrowser.c b/dlls/shell32/ebrowser.c
new file mode 100644
index 0000000..da993d7
--- /dev/null
+++ b/dlls/shell32/ebrowser.c
@@ -0,0 +1,290 @@
+/*
+ * Explorer Browser
+ *
+ * Copyright 2010 David Hedberg
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#include <stdarg.h>
+
+#define COBJMACROS
+
+#include "winerror.h"
+#include "windef.h"
+#include "winbase.h"
+
+#include "wine/debug.h"
+#include "debughlp.h"
+
+#include "shlobj.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL (ebrowser);
+
+typedef struct {
+ const IExplorerBrowserVtbl *lpEBVtbl;
+ LONG ref;
+} ExplorerBrowserImpl;
+
+/**************************************************************************
+* IExplorerBrowser Implementation
+*/
+static HRESULT WINAPI IExplorerBrowser_fnQueryInterface(IExplorerBrowser *iface, REFIID riid, void **ppvObject)
+{
+ ExplorerBrowserImpl *This = (ExplorerBrowserImpl*)iface;
+ TRACE("This: %p\n", This);
+
+ *ppvObject = NULL;
+ if(IsEqualGUID(riid, &IID_IExplorerBrowser)) {
+ *ppvObject = This;
+ }
+
+ if(*ppvObject) {
+ IUnknown_AddRef((IUnknown*)*ppvObject);
+ return S_OK;
+ }
+
+ return E_NOINTERFACE;
+}
+
+static ULONG WINAPI IExplorerBrowser_fnAddRef(IExplorerBrowser *iface)
+{
+ ExplorerBrowserImpl *This = (ExplorerBrowserImpl*)iface;
+ TRACE("This: %p\n", This);
+
+ This->ref++;
+ TRACE("Ref: %d\n", This->ref);
+
+ return This->ref;
+}
+
+static ULONG WINAPI IExplorerBrowser_fnRelease(IExplorerBrowser *iface)
+{
+ ExplorerBrowserImpl *This = (ExplorerBrowserImpl*)iface;
+ TRACE("This: %p\n", This);
+
+ This->ref--;
+ TRACE("Ref: %d\n", This->ref);
+
+ if(!This->ref) {
+ TRACE("Destroying.\n");
+ HeapFree(GetProcessHeap(), 0, This);
+ return 0;
+ }
+
+ return This->ref;
+}
+
+static HRESULT WINAPI IExplorerBrowser_fnInitialize(
+ IExplorerBrowser *iface,
+ HWND hwndParent,
+ const RECT *prc,
+ const FOLDERSETTINGS *pfs)
+{
+ ExplorerBrowserImpl *This = (ExplorerBrowserImpl*)iface;
+ TRACE("This: %p\n", This);
+
+ return S_OK;
+}
+
+static HRESULT WINAPI IExplorerBrowser_fnDestroy(IExplorerBrowser *iface)
+{
+ ExplorerBrowserImpl *This = (ExplorerBrowserImpl*)iface;
+ TRACE("This: %p\n", This);
+
+ return S_OK;
+}
+
+static HRESULT WINAPI IExplorerBrowser_fnSetRect(
+ IExplorerBrowser *iface,
+ HDWP *phdwp,
+ RECT rcBrowser)
+{
+ ExplorerBrowserImpl *This = (ExplorerBrowserImpl*)iface;
+ TRACE("This: %p\n", This);
+
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI IExplorerBrowser_fnSetPropertyBag(
+ IExplorerBrowser *iface,
+ LPCWSTR pszPropertyBag)
+{
+ ExplorerBrowserImpl *This = (ExplorerBrowserImpl*)iface;
+ TRACE("This: %p\n", This);
+
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI IExplorerBrowser_fnSetEmptyText(
+ IExplorerBrowser *iface,
+ LPCWSTR pszEmptyText)
+{
+ ExplorerBrowserImpl *This = (ExplorerBrowserImpl*)iface;
+ TRACE("This: %p\n", This);
+
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI IExplorerBrowser_fnSetFolderSettings(
+ IExplorerBrowser *iface,
+ const FOLDERSETTINGS *pfs)
+{
+ ExplorerBrowserImpl *This = (ExplorerBrowserImpl*)iface;
+ TRACE("This: %p\n", This);
+
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI IExplorerBrowser_fnAdvise(
+ IExplorerBrowser *iface,
+ IExplorerBrowserEvents *psbe,
+ DWORD *pdwCookie)
+{
+ ExplorerBrowserImpl *This = (ExplorerBrowserImpl*)iface;
+ TRACE("This: %p\n", This);
+
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI IExplorerBrowser_fnUnadvise(
+ IExplorerBrowser *iface,
+ DWORD dwCookie)
+{
+ ExplorerBrowserImpl *This = (ExplorerBrowserImpl*)iface;
+ TRACE("This: %p\n", This);
+
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI IExplorerBrowser_fnSetOptions(
+ IExplorerBrowser *iface,
+ EXPLORER_BROWSER_OPTIONS dwFlag)
+{
+ ExplorerBrowserImpl *This = (ExplorerBrowserImpl*)iface;
+ TRACE("This: %p\n", This);
+
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI IExplorerBrowser_fnGetOptions(
+ IExplorerBrowser *iface,
+ EXPLORER_BROWSER_OPTIONS *pdwFlag)
+{
+ ExplorerBrowserImpl *This = (ExplorerBrowserImpl*)iface;
+ TRACE("This: %p\n", This);
+
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI IExplorerBrowser_fnBrowseToIDList(
+ IExplorerBrowser *iface,
+ PCUIDLIST_RELATIVE pidl,
+ UINT uFlags)
+{
+ ExplorerBrowserImpl *This = (ExplorerBrowserImpl*)iface;
+ TRACE("This: %p\n", This);
+
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI IExplorerBrowser_fnBrowseToObject(
+ IExplorerBrowser *iface,
+ IUnknown *punk,
+ UINT uFlags)
+{
+ ExplorerBrowserImpl *This = (ExplorerBrowserImpl*)iface;
+ TRACE("This: %p\n", This);
+
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI IExplorerBrowser_fnFillFromObject(
+ IExplorerBrowser *iface,
+ IUnknown *punk,
+ EXPLORER_BROWSER_FILL_FLAGS dwFlags)
+{
+ ExplorerBrowserImpl *This = (ExplorerBrowserImpl*)iface;
+ TRACE("This: %p\n", This);
+
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI IExplorerBrowser_fnRemoveAll(
+ IExplorerBrowser *iface)
+{
+ ExplorerBrowserImpl *This = (ExplorerBrowserImpl*)iface;
+ TRACE("This: %p\n", This);
+
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI IExplorerBrowser_fnGetCurrentView(
+ IExplorerBrowser *iface,
+ REFIID riid,
+ IUnknown **ppv)
+{
+ ExplorerBrowserImpl *This = (ExplorerBrowserImpl*)iface;
+ TRACE("This: %p\n", This);
+
+ *ppv = NULL;
+ return E_NOTIMPL;
+}
+
+static const IExplorerBrowserVtbl vt_IExplorerBrowser =
+{
+ /* IUnknown */
+ IExplorerBrowser_fnQueryInterface,
+ IExplorerBrowser_fnAddRef,
+ IExplorerBrowser_fnRelease,
+
+
+ /* IExplorerBrowser */
+ IExplorerBrowser_fnInitialize,
+ IExplorerBrowser_fnDestroy,
+ IExplorerBrowser_fnSetRect,
+ IExplorerBrowser_fnSetPropertyBag,
+ IExplorerBrowser_fnSetEmptyText,
+ IExplorerBrowser_fnSetFolderSettings,
+ IExplorerBrowser_fnAdvise,
+ IExplorerBrowser_fnUnadvise,
+ IExplorerBrowser_fnSetOptions,
+ IExplorerBrowser_fnGetOptions,
+ IExplorerBrowser_fnBrowseToIDList,
+ IExplorerBrowser_fnBrowseToObject,
+ IExplorerBrowser_fnFillFromObject,
+ IExplorerBrowser_fnRemoveAll,
+ IExplorerBrowser_fnGetCurrentView
+};
+
+HRESULT WINAPI ExplorerBrowser_Constructor(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv) {
+ ExplorerBrowserImpl *eb;
+
+ TRACE ("unkOut=%p %s\n", pUnkOuter, shdebugstr_guid (riid));
+
+ if(!ppv)
+ return E_POINTER;
+ if(pUnkOuter)
+ return CLASS_E_NOAGGREGATION;
+
+ eb = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(ExplorerBrowserImpl));
+ eb->ref = 1;
+ eb->lpEBVtbl = &vt_IExplorerBrowser;
+
+ *ppv = eb;
+
+ TRACE("--(%p)\n", ppv);
+ return S_OK;
+}
diff --git a/dlls/shell32/regsvr.c b/dlls/shell32/regsvr.c
index b02c2ce..7a3c188 100644
--- a/dlls/shell32/regsvr.c
+++ b/dlls/shell32/regsvr.c
@@ -681,6 +681,13 @@ static struct regsvr_coclass const coclass_list[] = {
"shell32.dll",
"Apartment"
},
+ { &CLSID_ExplorerBrowser,
+ "Explorer Browser",
+ 0,
+ NULL,
+ "shell32.dll",
+ "Apartment"
+ },
{ NULL } /* list terminator */
};
diff --git a/dlls/shell32/shell32_main.h b/dlls/shell32/shell32_main.h
index 8f51850..78b37a8 100644
--- a/dlls/shell32/shell32_main.h
+++ b/dlls/shell32/shell32_main.h
@@ -99,6 +99,7 @@ HRESULT WINAPI FolderShortcut_Constructor(IUnknown * pUnkOuter, REFIID riid, LPV
HRESULT WINAPI MyDocuments_Constructor(IUnknown * pUnkOuter, REFIID riid, LPVOID *ppv);
HRESULT WINAPI RecycleBin_Constructor(IUnknown * pUnkOuter, REFIID riif, LPVOID *ppv);
HRESULT WINAPI QueryAssociations_Constructor(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppOutput);
+HRESULT WINAPI ExplorerBrowser_Constructor(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv);
extern HRESULT CPanel_GetIconLocationW(LPCITEMIDLIST, LPWSTR, UINT, int*);
HRESULT WINAPI CPanel_ExtractIconA(LPITEMIDLIST pidl, LPCSTR pszFile, UINT nIconIndex, HICON *phiconLarge, HICON *phiconSmall, UINT nIconSize);
HRESULT WINAPI CPanel_ExtractIconW(LPITEMIDLIST pidl, LPCWSTR pszFile, UINT nIconIndex, HICON *phiconLarge, HICON *phiconSmall, UINT nIconSize);
diff --git a/dlls/shell32/shellole.c b/dlls/shell32/shellole.c
index 10244fd..54ae017 100644
--- a/dlls/shell32/shellole.c
+++ b/dlls/shell32/shellole.c
@@ -77,6 +77,7 @@ static const struct {
{&CLSID_ShellLink, IShellLink_Constructor},
{&CLSID_UnixDosFolder, UnixDosFolder_Constructor},
{&CLSID_UnixFolder, UnixFolder_Constructor},
+ {&CLSID_ExplorerBrowser,ExplorerBrowser_Constructor},
{NULL, NULL}
};
diff --git a/dlls/shell32/tests/Makefile.in b/dlls/shell32/tests/Makefile.in
index 2849a33..d6965d4 100644
--- a/dlls/shell32/tests/Makefile.in
+++ b/dlls/shell32/tests/Makefile.in
@@ -8,6 +8,7 @@ IMPORTS = shell32 ole32 oleaut32 user32 advapi32 kernel32
C_SRCS = \
appbar.c \
autocomplete.c \
+ ebrowser.c \
generated.c \
progman_dde.c \
shelllink.c \
diff --git a/dlls/shell32/tests/ebrowser.c b/dlls/shell32/tests/ebrowser.c
new file mode 100644
index 0000000..41dc079
--- /dev/null
+++ b/dlls/shell32/tests/ebrowser.c
@@ -0,0 +1,233 @@
+/*
+ * Unit tests for the Explorer Browser control
+ *
+ * Copyright 2010 David Hedberg
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#include <stdio.h>
+
+#define COBJMACROS
+
+#include "shlobj.h"
+
+#include "wine/test.h"
+
+
+HWND hwnd;
+static void test_Initialize(void) {
+ IExplorerBrowser *lpEB;
+ RECT rc;
+ HRESULT hres;
+ ULONG lres;
+
+ hres = CoCreateInstance(&CLSID_ExplorerBrowser, NULL, CLSCTX_INPROC_SERVER,
+ &IID_IExplorerBrowser, (LPVOID*)&lpEB);
+
+ if(FAILED(hres)) {
+ skip("Failed to create Explorer Browser instance.\n");
+ return;
+ }
+
+ if(0) {
+ /* Crashes on Windows 7 */
+ hres = IExplorerBrowser_Initialize(lpEB, NULL, NULL, NULL);
+ hres = IExplorerBrowser_Initialize(lpEB, hwnd, NULL, NULL);
+ }
+
+ ZeroMemory(&rc, sizeof(RECT));
+
+ hres = IExplorerBrowser_Initialize(lpEB, hwnd, &rc, NULL);
+ ok(SUCCEEDED(hres), "got (0x%08x)\n", hres);
+
+ hres = IExplorerBrowser_Destroy(lpEB);
+ ok(SUCCEEDED(hres), "got (0x%08x)\n", hres);
+
+ /* Initialize again */
+ IExplorerBrowser_Initialize(lpEB, hwnd, &rc, NULL);
+ ok(SUCCEEDED(hres), "got (0x%08x)\n", hres);
+
+ /* Initialize twice */
+ IExplorerBrowser_Initialize(lpEB, hwnd, &rc, NULL);
+ ok(SUCCEEDED(hres), "got (0x%08x)\n", hres);
+
+ lres = IExplorerBrowser_Release(lpEB);
+ ok(lres == 0, "got %d\n", lres);
+}
+
+static void test_Interfaces(void) {
+ IExplorerBrowser *lpEB;
+ IShellFolder *lpSF;
+ IUnknown *lpUnk;
+ RECT rc;
+ HRESULT hres;
+ ULONG lres;
+
+ hres = CoCreateInstance(&CLSID_ExplorerBrowser, NULL, CLSCTX_INPROC_SERVER,
+ &IID_IExplorerBrowser, (LPVOID*)&lpEB);
+
+ if(FAILED(hres)) {
+ skip("Failed to create Explorer Browser instance.\n");
+ return;
+ }
+
+ ZeroMemory(&rc, sizeof(RECT));
+
+ /* Test getting different interfaces */
+ hres = IExplorerBrowser_QueryInterface(lpEB, &IID_IShellBrowser, (LPVOID*)&lpUnk);
+ todo_wine { ok(SUCCEEDED(hres), "got (0x%08x)\n", hres); }
+
+ if(SUCCEEDED(hres)) {
+ lres = IUnknown_Release(lpUnk);
+ ok(lres == 1, "got %d\n", lres);
+ } else
+ skip("No IShellBrowser.\n");
+
+ hres = IExplorerBrowser_QueryInterface(lpEB, &IID_ICommDlgBrowser, (LPVOID*)&lpUnk);
+ todo_wine { ok(SUCCEEDED(hres), "got (0x%08x)\n", hres); }
+
+ if(SUCCEEDED(hres)) {
+ lres = IUnknown_Release(lpUnk);
+ ok(lres == 1, "got %d\n", lres);
+ } else
+ skip("No CommDlgBrowser.\n");
+
+ hres = IExplorerBrowser_QueryInterface(lpEB, &IID_ICommDlgBrowser2, (LPVOID*)&lpUnk);
+ todo_wine { ok(SUCCEEDED(hres), "got (0x%08x)\n", hres); }
+
+ if(SUCCEEDED(hres)) {
+ lres = IUnknown_Release(lpUnk);
+ ok(lres == 1, "got %d\n", lres);
+ } else
+ skip("No ICommDlgBrowser2.\n");
+
+ hres = IExplorerBrowser_QueryInterface(lpEB, &IID_ICommDlgBrowser3, (LPVOID*)&lpUnk);
+ todo_wine { ok(SUCCEEDED(hres), "got (0x%08x)\n", hres); }
+
+ if(SUCCEEDED(hres)) {
+ lres = IUnknown_Release(lpUnk);
+ ok(lres == 1, "got %d\n", lres);
+ } else
+ skip("No ICommDlgBrowser3.\n");
+
+ hres = IExplorerBrowser_QueryInterface(lpEB, &IID_IServiceProvider, (LPVOID*)&lpUnk);
+ todo_wine { ok(SUCCEEDED(hres), "got (0x%08x)\n", hres); }
+
+ if(SUCCEEDED(hres)) {
+ lres = IUnknown_Release(lpUnk);
+ ok(lres == 1, "got %d\n", lres);
+ } else
+ skip("No IServiceProvider.\n");
+
+ hres = IExplorerBrowser_QueryInterface(lpEB, &IID_IObjectWithSite, (LPVOID*)&lpUnk);
+ todo_wine { ok(SUCCEEDED(hres), "got (0x%08x)\n", hres); }
+
+ if(SUCCEEDED(hres)) {
+ lres = IUnknown_Release(lpUnk);
+ ok(lres == 1, "got %d\n", lres);
+ } else
+ skip("No IObjectWithSite.\n");
+
+ hres = IExplorerBrowser_QueryInterface(lpEB, &IID_IShellView, (LPVOID*)&lpUnk);
+ ok(FAILED(hres), "Unexpected success: (0x%08x)\n", hres);
+
+ /* GetCurrentView without having browsed anywhere */
+ hres = IExplorerBrowser_GetCurrentView(lpEB, &IID_IShellView, (IUnknown**)&lpUnk);
+ ok(FAILED(hres), "Unexpected success: (0x%08x)\n", hres);
+
+ hres = IExplorerBrowser_GetCurrentView(lpEB, &IID_IShellView2, (IUnknown**)&lpUnk);
+ ok(FAILED(hres), "Unexpected success: (0x%08x)\n", hres);
+
+ hres = IExplorerBrowser_GetCurrentView(lpEB, &IID_IFolderView, (IUnknown**)&lpUnk);
+ ok(FAILED(hres), "Unexpected success: (0x%08x)\n", hres);
+
+ /* Initialize the browser and browse to the desktop */
+ IExplorerBrowser_Initialize(lpEB, hwnd, &rc, NULL);
+ SHGetDesktopFolder(&lpSF);
+ hres = IExplorerBrowser_BrowseToObject(lpEB, (IUnknown*)lpSF, 0);
+ todo_wine { ok(SUCCEEDED(hres), "got (0x%08x)\n", hres); }
+
+ hres = IExplorerBrowser_GetCurrentView(lpEB, &IID_IShellView, (IUnknown**)&lpUnk);
+ todo_wine { ok(SUCCEEDED(hres), "got (0x%08x)\n", hres); }
+ if(SUCCEEDED(hres)) IUnknown_Release(lpUnk);
+
+ hres = IExplorerBrowser_GetCurrentView(lpEB, &IID_IShellView2, (IUnknown**)&lpUnk);
+ todo_wine { ok(SUCCEEDED(hres), "got (0x%08x)\n", hres); }
+ if(SUCCEEDED(hres)) IUnknown_Release(lpUnk);
+
+ hres = IExplorerBrowser_GetCurrentView(lpEB, &IID_IFolderView, (IUnknown**)&lpUnk);
+ todo_wine { ok(SUCCEEDED(hres), "got (0x%08x)\n", hres); }
+ if(SUCCEEDED(hres)) IUnknown_Release(lpUnk);
+
+ IShellFolder_Release(lpSF);
+ IExplorerBrowser_Destroy(lpEB);
+ lres = IExplorerBrowser_Release(lpEB);
+ ok(lres == 0, "got %d\n", lres);
+}
+
+static int have_IExplorerBrowser(void) {
+ IExplorerBrowser *lpEB;
+ HRESULT hres;
+
+ hres = CoCreateInstance(&CLSID_ExplorerBrowser, NULL, CLSCTX_INPROC_SERVER,
+ &IID_IExplorerBrowser, (LPVOID*)&lpEB);
+
+ if(hres == REGDB_E_CLASSNOTREG)
+ return FALSE;
+
+ if(SUCCEEDED(hres))
+ IExplorerBrowser_Release(lpEB);
+
+ return TRUE;
+}
+
+/* Set up a window for the tests */
+static const WCHAR EB_TEST[] = {'E','b','T','e','s','t','C','l','a','s','s','\0'};
+static LRESULT CALLBACK ebtest_WndProc(HWND hWnd, UINT uMessage, WPARAM wParam, LPARAM lParam)
+{ return DefWindowProcW(hWnd, uMessage, wParam, lParam); }
+
+static void setup_window(void) {
+ WNDCLASSW wc;
+
+ ZeroMemory(&wc, sizeof(WNDCLASSW));
+ wc.lpfnWndProc = ebtest_WndProc;
+ wc.lpszClassName = EB_TEST;
+ RegisterClassW(&wc);
+ hwnd = CreateWindowExW(0, EB_TEST, NULL, WS_TABSTOP,
+ 0, 25, 100, 100,
+ NULL, 0, 0, NULL);
+}
+
+static void destroy_window(void) {
+ DestroyWindow(hwnd);
+}
+
+START_TEST(ebrowser)
+{
+ OleInitialize(NULL);
+ setup_window();
+
+ if(!have_IExplorerBrowser()) {
+ skip("No ExplorerBrowser control registered.\n");
+ return;
+ }
+
+ test_Initialize();
+ test_Interfaces();
+
+ destroy_window();
+ OleUninitialize();
+}
--
1.7.1
More information about the wine-patches
mailing list