ntdll: Add a test for NtNotifyChangeDirectoryFile.
[wine/multimedia.git] / dlls / mshtml / hlink.c
blob5a045090751b8434608f3892535902c739a5494f
1 /*
2 * Copyright 2005 Jacek Caban
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * License along with this library; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 #include "config.h"
20 #include <stdarg.h>
21 #include <stdio.h>
23 #define COBJMACROS
25 #include "windef.h"
26 #include "winbase.h"
27 #include "winuser.h"
28 #include "ole2.h"
30 #include "wine/debug.h"
32 #include "mshtml_private.h"
34 WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
36 /**********************************************************
37 * IHlinkTarget implementation
40 #define HLINKTRG_THIS(iface) DEFINE_THIS(HTMLDocument, HlinkTarget, iface)
42 static HRESULT WINAPI HlinkTarget_QueryInterface(IHlinkTarget *iface, REFIID riid, void **ppv)
44 HTMLDocument *This = HLINKTRG_THIS(iface);
45 return IHTMLDocument2_QueryInterface(HTMLDOC(This), riid, ppv);
48 static ULONG WINAPI HlinkTarget_AddRef(IHlinkTarget *iface)
50 HTMLDocument *This = HLINKTRG_THIS(iface);
51 return IHTMLDocument2_AddRef(HTMLDOC(This));
54 static ULONG WINAPI HlinkTarget_Release(IHlinkTarget *iface)
56 HTMLDocument *This = HLINKTRG_THIS(iface);
57 return IHTMLDocument2_Release(HTMLDOC(This));
60 static HRESULT WINAPI HlinkTarget_SetBrowseContext(IHlinkTarget *iface, IHlinkBrowseContext *pihlbc)
62 HTMLDocument *This = HLINKTRG_THIS(iface);
63 FIXME("(%p)->(%p)\n", This, pihlbc);
64 return E_NOTIMPL;
67 static HRESULT WINAPI HlinkTarget_GetBrowseContext(IHlinkTarget *iface, IHlinkBrowseContext **ppihlbc)
69 HTMLDocument *This = HLINKTRG_THIS(iface);
70 FIXME("(%p)->(%p)\n", This, ppihlbc);
71 return E_NOTIMPL;
74 static HRESULT WINAPI HlinkTarget_Navigate(IHlinkTarget *iface, DWORD grfHLNF, LPCWSTR pwzJumpLocation)
76 HTMLDocument *This = HLINKTRG_THIS(iface);
78 TRACE("(%p)->(%08lx %s)\n", This, grfHLNF, debugstr_w(pwzJumpLocation));
80 if(grfHLNF)
81 FIXME("Unsupported grfHLNF=%08lx\n", grfHLNF);
82 if(pwzJumpLocation)
83 FIXME("JumpLocation not supported\n");
85 return IOleObject_DoVerb(OLEOBJ(This), OLEIVERB_SHOW, NULL, NULL, -1, NULL, NULL);
88 static HRESULT WINAPI HlinkTarget_GetMoniker(IHlinkTarget *iface, LPCWSTR pwzLocation, DWORD dwAssign,
89 IMoniker **ppimkLocation)
91 HTMLDocument *This = HLINKTRG_THIS(iface);
92 FIXME("(%p)->(%s %08lx %p)\n", This, debugstr_w(pwzLocation), dwAssign, ppimkLocation);
93 return E_NOTIMPL;
96 static HRESULT WINAPI HlinkTarget_GetFriendlyName(IHlinkTarget *iface, LPCWSTR pwzLocation,
97 LPWSTR *ppwzFriendlyName)
99 HTMLDocument *This = HLINKTRG_THIS(iface);
100 FIXME("(%p)->(%s %p)\n", This, debugstr_w(pwzLocation), ppwzFriendlyName);
101 return E_NOTIMPL;
104 static const IHlinkTargetVtbl HlinkTargetVtbl = {
105 HlinkTarget_QueryInterface,
106 HlinkTarget_AddRef,
107 HlinkTarget_Release,
108 HlinkTarget_SetBrowseContext,
109 HlinkTarget_GetBrowseContext,
110 HlinkTarget_Navigate,
111 HlinkTarget_GetMoniker,
112 HlinkTarget_GetFriendlyName
115 void HTMLDocument_Hlink_Init(HTMLDocument *This)
117 This->lpHlinkTargetVtbl = &HlinkTargetVtbl;