hlink: Add a stub implementation (based on Aric Stewart's code).
This commit is contained in:
parent
bf7eb624a9
commit
b732e9b4c1
|
@ -1602,6 +1602,7 @@ dlls/glu32/Makefile
|
|||
dlls/glut32/Makefile
|
||||
dlls/gphoto2.ds/Makefile
|
||||
dlls/hhctrl.ocx/Makefile
|
||||
dlls/hlink/Makefile
|
||||
dlls/iccvid/Makefile
|
||||
dlls/icmp/Makefile
|
||||
dlls/ifsmgr.vxd/Makefile
|
||||
|
|
|
@ -62,6 +62,7 @@ BASEDIRS = \
|
|||
gdi \
|
||||
gphoto2.ds \
|
||||
hhctrl.ocx \
|
||||
hlink \
|
||||
iccvid \
|
||||
icmp \
|
||||
ifsmgr.vxd \
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Makefile
|
|
@ -0,0 +1,15 @@
|
|||
TOPSRCDIR = @top_srcdir@
|
||||
TOPOBJDIR = ../..
|
||||
SRCDIR = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
MODULE = hlink.dll
|
||||
IMPORTS = ole32 advapi32 kernel32
|
||||
DELAYIMPORTS = urlmon
|
||||
EXTRALIBS = -luuid $(LIBUNICODE)
|
||||
|
||||
C_SRCS = \
|
||||
hlink_main.c
|
||||
|
||||
@MAKE_DLL_RULES@
|
||||
|
||||
### Dependencies:
|
|
@ -0,0 +1,33 @@
|
|||
3 stdcall HlinkCreateFromMoniker(ptr wstr wstr ptr long ptr ptr ptr)
|
||||
4 stdcall HlinkCreateFromString(wstr wstr wstr ptr long ptr ptr ptr)
|
||||
5 stdcall HlinkCreateFromData(ptr ptr long ptr ptr ptr)
|
||||
6 stdcall HlinkCreateBrowseContext(ptr ptr ptr)
|
||||
7 stub HlinkClone
|
||||
8 stub HlinkNavigateToStringReference
|
||||
9 stdcall HlinkOnNavigate(ptr ptr long ptr wstr wstr ptr)
|
||||
10 stdcall HlinkNavigate(ptr ptr long ptr ptr ptr)
|
||||
11 stub HlinkUpdateStackItem
|
||||
12 stub HlinkOnRenameDocument
|
||||
14 stub HlinkResolveMonikerForData
|
||||
15 stub HlinkResolveStringForData
|
||||
16 stub OleSaveToStreamEx
|
||||
18 stub HlinkParseDisplayName
|
||||
20 stub HlinkQueryCreateFromData
|
||||
21 stub HlinkSetSpecialReference
|
||||
22 stub HlinkGetSpecialReference
|
||||
23 stub HlinkCreateShortcut
|
||||
24 stub HlinkResolveShortcut
|
||||
25 stub HlinkIsShortcut
|
||||
26 stub HlinkResolveShortcutToString
|
||||
27 stub HlinkCreateShortcutFromString
|
||||
28 stub HlinkGetValueFromParams
|
||||
29 stub HlinkCreateShortcutFromMoniker
|
||||
30 stub HlinkResolveShortcutToMoniker
|
||||
31 stub HlinkTranslateURL
|
||||
32 stdcall HlinkCreateExtensionServices(wstr long wstr wstr ptr ptr ptr)
|
||||
33 stub HlinkPreprocessMoniker
|
||||
|
||||
@ stdcall -private DllCanUnloadNow()
|
||||
@ stdcall -private DllGetClassObject(ptr ptr ptr)
|
||||
@ stub -private DllRegisterServer
|
||||
@ stub -private DllUnregisterServer
|
|
@ -0,0 +1,140 @@
|
|||
/*
|
||||
* Implementation of hyperlinking (hlink.dll)
|
||||
*
|
||||
* Copyright 2005 Aric Stewart for CodeWeavers
|
||||
*
|
||||
* 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 "winuser.h"
|
||||
#include "ole2.h"
|
||||
#include "unknwn.h"
|
||||
|
||||
#include "wine/debug.h"
|
||||
#include "hlink.h"
|
||||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(hlink);
|
||||
|
||||
|
||||
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
||||
{
|
||||
TRACE("%p %ld %p\n", hinstDLL, fdwReason, lpvReserved);
|
||||
|
||||
switch (fdwReason)
|
||||
{
|
||||
case DLL_WINE_PREATTACH:
|
||||
return FALSE; /* prefer native version */
|
||||
case DLL_PROCESS_ATTACH:
|
||||
DisableThreadLibraryCalls(hinstDLL);
|
||||
break;
|
||||
case DLL_PROCESS_DETACH:
|
||||
break;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
HRESULT WINAPI DllCanUnloadNow( void )
|
||||
{
|
||||
FIXME("\n");
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT WINAPI HlinkCreateFromMoniker( IMoniker *pimkTrgt, LPCWSTR pwzLocation,
|
||||
LPCWSTR pwzFriendlyName, IHlinkSite* pihlsite, DWORD dwSiteData,
|
||||
IUnknown* piunkOuter, REFIID riid, void** ppvObj)
|
||||
{
|
||||
FIXME("%p %s %s %p %li %p %s %p\n", pimkTrgt, debugstr_w(pwzLocation),
|
||||
debugstr_w(pwzFriendlyName), pihlsite, dwSiteData, piunkOuter,
|
||||
debugstr_guid(riid), ppvObj);
|
||||
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
HRESULT WINAPI HlinkCreateFromString( LPCWSTR pwzTarget, LPCWSTR pwzLocation,
|
||||
LPCWSTR pwzFriendlyName, IHlinkSite* pihlsite, DWORD dwSiteData,
|
||||
IUnknown* piunkOuter, REFIID riid, void** ppvObj)
|
||||
{
|
||||
FIXME("%s %s %s %p %li %p %s %p\n", debugstr_w(pwzTarget),
|
||||
debugstr_w(pwzLocation), debugstr_w(pwzFriendlyName), pihlsite,
|
||||
dwSiteData, piunkOuter, debugstr_guid(riid), ppvObj);
|
||||
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
||||
HRESULT WINAPI HlinkCreateBrowseContext( IUnknown* piunkOuter, REFIID riid, void** ppvObj)
|
||||
{
|
||||
FIXME("%p %s %p\n", piunkOuter, debugstr_guid(riid), ppvObj);
|
||||
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
HRESULT WINAPI HlinkNavigate(IHlink *phl, IHlinkFrame *phlFrame,
|
||||
DWORD grfHLNF, LPBC pbc, IBindStatusCallback *pbsc,
|
||||
IHlinkBrowseContext *phlbc)
|
||||
{
|
||||
FIXME("%p %p %li %p %p %p\n", phl, phlFrame, grfHLNF, pbc, pbsc, phlbc);
|
||||
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
HRESULT WINAPI HlinkOnNavigate( IHlinkFrame *phlFrame,
|
||||
IHlinkBrowseContext* phlbc, DWORD grfHLNF, IMoniker *pmkTarget,
|
||||
LPCWSTR pwzLocation, LPCWSTR pwzFriendlyName, ULONG* puHLID)
|
||||
{
|
||||
FIXME("%p %p %li %p %s %s %p\n",phlFrame, phlbc, grfHLNF, pmkTarget,
|
||||
debugstr_w(pwzLocation), debugstr_w(pwzFriendlyName), puHLID);
|
||||
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
HRESULT WINAPI HlinkCreateFromData(IDataObject *piDataObj,
|
||||
IHlinkSite *pihlsite, DWORD dwSiteData, IUnknown *piunkOuter,
|
||||
REFIID riid, void **ppvObj)
|
||||
{
|
||||
FIXME("%p %p %ld %p %p %p\n",
|
||||
piDataObj, pihlsite, dwSiteData, piunkOuter, riid, ppvObj);
|
||||
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
HRESULT WINAPI HlinkCreateExtensionServices(LPCWSTR pwzAdditionalHeaders,
|
||||
HWND phwnd, LPCWSTR pszUsername, LPCWSTR pszPassword,
|
||||
IUnknown *punkOuter, REFIID riid, void** ppvObj)
|
||||
{
|
||||
FIXME("%s %p %s %s %p %s %p\n",debugstr_w(pwzAdditionalHeaders),
|
||||
phwnd, debugstr_w(pszUsername), debugstr_w(pszPassword),
|
||||
punkOuter, debugstr_guid(riid), ppvObj);
|
||||
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID iid, LPVOID *ppv)
|
||||
{
|
||||
FIXME("%s %s %p\n", debugstr_guid(rclsid), debugstr_guid(iid), ppv);
|
||||
|
||||
if (!ppv)
|
||||
return E_INVALIDARG;
|
||||
*ppv = NULL;
|
||||
|
||||
return CLASS_E_CLASSNOTAVAILABLE;
|
||||
}
|
Loading…
Reference in New Issue