2002-08-13 18:20:24 +00:00
|
|
|
/*
|
2003-09-08 19:38:45 +00:00
|
|
|
* Copyright 2002 Huw D M Davies for CodeWeavers
|
2002-08-13 18:20:24 +00:00
|
|
|
*
|
|
|
|
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_URLMON_MAIN_H
|
|
|
|
#define __WINE_URLMON_MAIN_H
|
|
|
|
|
2003-09-05 23:08:26 +00:00
|
|
|
#include <stdarg.h>
|
|
|
|
|
2002-08-13 18:20:24 +00:00
|
|
|
#include "windef.h"
|
2003-09-05 23:08:26 +00:00
|
|
|
#include "winbase.h"
|
2002-08-13 18:20:24 +00:00
|
|
|
|
|
|
|
extern HINSTANCE URLMON_hInstance;
|
2004-09-28 19:18:52 +00:00
|
|
|
extern HRESULT SecManagerImpl_Construct(IUnknown *pUnkOuter, LPVOID *ppobj);
|
2004-11-30 21:14:21 +00:00
|
|
|
extern HRESULT ZoneMgrImpl_Construct(IUnknown *pUnkOuter, LPVOID *ppobj);
|
2005-09-06 09:27:04 +00:00
|
|
|
extern HRESULT FileProtocol_Construct(IUnknown *pUnkOuter, LPVOID *ppobj);
|
2005-09-14 15:38:26 +00:00
|
|
|
extern HRESULT HttpProtocol_Construct(IUnknown *pUnkOuter, LPVOID *ppobj);
|
|
|
|
extern HRESULT FtpProtocol_Construct(IUnknown *pUnkOuter, LPVOID *ppobj);
|
2002-08-13 18:20:24 +00:00
|
|
|
|
2005-02-03 19:38:37 +00:00
|
|
|
/**********************************************************************
|
|
|
|
* Dll lifetime tracking declaration for urlmon.dll
|
|
|
|
*/
|
|
|
|
extern LONG URLMON_refCount;
|
2005-06-21 20:53:13 +00:00
|
|
|
static inline void URLMON_LockModule(void) { InterlockedIncrement( &URLMON_refCount ); }
|
|
|
|
static inline void URLMON_UnlockModule(void) { InterlockedDecrement( &URLMON_refCount ); }
|
2005-02-03 19:38:37 +00:00
|
|
|
|
2004-08-13 00:44:22 +00:00
|
|
|
#define ICOM_THIS_MULTI(impl,field,iface) impl* const This=(impl*)((char*)(iface) - offsetof(impl,field))
|
2005-09-06 09:27:04 +00:00
|
|
|
#define DEFINE_THIS(cls,ifc,iface) ((cls*)((BYTE*)(iface)-offsetof(cls,lp ## ifc ## Vtbl)))
|
2004-08-13 00:44:22 +00:00
|
|
|
|
2005-05-04 10:36:54 +00:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
const IStreamVtbl *lpVtbl;
|
2005-07-03 12:05:03 +00:00
|
|
|
LONG ref;
|
2005-05-04 10:36:54 +00:00
|
|
|
HANDLE handle;
|
|
|
|
BOOL closed;
|
|
|
|
WCHAR *pszFileName;
|
|
|
|
WCHAR *pszURL;
|
|
|
|
} IUMCacheStream;
|
|
|
|
|
|
|
|
HRESULT UMCreateStreamOnCacheFile(LPCWSTR pszURL, DWORD dwSize, LPWSTR pszFileName, HANDLE *phfile, IUMCacheStream **ppstr);
|
|
|
|
void UMCloseCacheFileStream(IUMCacheStream *pstr);
|
|
|
|
|
2002-08-13 18:20:24 +00:00
|
|
|
#endif /* __WINE_URLMON_MAIN_H */
|