diff --git a/dlls/hlink/browse_ctx.c b/dlls/hlink/browse_ctx.c index f36fd2fbe15..bd9b6fc8144 100644 --- a/dlls/hlink/browse_ctx.c +++ b/dlls/hlink/browse_ctx.c @@ -18,20 +18,9 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ -#include - -#define COBJMACROS - -#include "winerror.h" -#include "windef.h" -#include "winbase.h" -#include "winuser.h" -#include "ole2.h" -#include "unknwn.h" -#include "objidl.h" +#include "hlink_private.h" #include "wine/debug.h" -#include "hlink.h" WINE_DEFAULT_DEBUG_CHANNEL(hlink); diff --git a/dlls/hlink/hlink_main.c b/dlls/hlink/hlink_main.c index 69e3cef66a7..a68585f6512 100644 --- a/dlls/hlink/hlink_main.c +++ b/dlls/hlink/hlink_main.c @@ -18,28 +18,16 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ -#include +#include "hlink_private.h" -#define COBJMACROS - -#include "winerror.h" -#include "windef.h" -#include "winbase.h" -#include "winuser.h" #include "winreg.h" -#include "ole2.h" -#include "unknwn.h" +#include "hlguids.h" #include "wine/debug.h" #include "wine/unicode.h" -#include "hlink.h" -#include "hlguids.h" WINE_DEFAULT_DEBUG_CHANNEL(hlink); -extern HRESULT WINAPI HLink_Constructor(IUnknown *, REFIID, LPVOID*); -extern HRESULT WINAPI HLinkBrowseContext_Constructor(IUnknown *, REFIID, LPVOID*); - typedef HRESULT (CALLBACK *LPFNCREATEINSTANCE)(IUnknown*, REFIID, LPVOID*); typedef struct diff --git a/dlls/hlink/hlink_private.h b/dlls/hlink/hlink_private.h new file mode 100644 index 00000000000..0a765be34bb --- /dev/null +++ b/dlls/hlink/hlink_private.h @@ -0,0 +1,31 @@ +/* + * Copyright 2007 Jacek Caban 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 + +#define COBJMACROS + +#include "winerror.h" +#include "windef.h" +#include "winbase.h" +#include "winuser.h" +#include "ole2.h" +#include "hlink.h" + +extern HRESULT WINAPI HLink_Constructor(IUnknown*,REFIID,void**); +extern HRESULT WINAPI HLinkBrowseContext_Constructor(IUnknown*,REFIID,void**); diff --git a/dlls/hlink/link.c b/dlls/hlink/link.c index c450951ea8a..e1eb6f9cfc7 100644 --- a/dlls/hlink/link.c +++ b/dlls/hlink/link.c @@ -18,25 +18,14 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ -#include +#include "hlink_private.h" -#define COBJMACROS - -#include "winerror.h" -#include "windef.h" -#include "winbase.h" -#include "winuser.h" -#include "ole2.h" -#include "unknwn.h" -#include "objidl.h" #include "shellapi.h" +#include "hlguids.h" #include "wine/debug.h" #include "wine/unicode.h" -#include "hlink.h" -#include "hlguids.h" - WINE_DEFAULT_DEBUG_CHANNEL(hlink); #define HLINK_SAVE_MAGIC 0x00000002