2001-01-11 23:32:44 +01:00
|
|
|
/*
|
2002-05-05 21:40:57 +02:00
|
|
|
* Header includes for shdocvw.dll
|
|
|
|
*
|
2002-03-10 00:29:33 +01:00
|
|
|
* Copyright 2001 John R. Sheets (for CodeWeavers)
|
2006-01-25 13:14:57 +01:00
|
|
|
* Copyright 2005-2006 Jacek Caban for CodeWeavers
|
2002-03-10 00:29:33 +01: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
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2001-01-11 23:32:44 +01:00
|
|
|
*/
|
|
|
|
|
2002-05-05 21:40:57 +02:00
|
|
|
#ifndef __WINE_SHDOCVW_H
|
|
|
|
#define __WINE_SHDOCVW_H
|
|
|
|
|
2005-09-06 13:41:14 +02:00
|
|
|
#define COBJMACROS
|
|
|
|
|
2003-09-06 01:08:26 +02:00
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
|
|
#include "windef.h"
|
2002-05-05 21:40:57 +02:00
|
|
|
#include "winbase.h"
|
|
|
|
#include "winuser.h"
|
|
|
|
|
2002-12-05 21:33:07 +01:00
|
|
|
#include "ole2.h"
|
|
|
|
#include "shlobj.h"
|
2003-09-04 04:00:46 +02:00
|
|
|
#include "exdisp.h"
|
2002-05-05 21:40:57 +02:00
|
|
|
|
2008-01-18 21:53:06 +01:00
|
|
|
#include "wine/unicode.h"
|
2011-01-07 19:07:05 +01:00
|
|
|
#include "wine/list.h"
|
2010-07-27 14:23:14 +02:00
|
|
|
|
2005-11-08 17:12:06 +01:00
|
|
|
/**********************************************************************
|
|
|
|
* Shell Instance Objects
|
|
|
|
*/
|
|
|
|
extern HRESULT SHDOCVW_GetShellInstanceObjectClassObject(REFCLSID rclsid,
|
2011-05-13 18:17:44 +02:00
|
|
|
REFIID riid, LPVOID *ppvClassObj) DECLSPEC_HIDDEN;
|
2002-05-05 21:40:57 +02:00
|
|
|
|
2005-01-27 11:43:53 +01:00
|
|
|
/**********************************************************************
|
|
|
|
* Dll lifetime tracking declaration for shdocvw.dll
|
|
|
|
*/
|
2011-05-13 18:17:44 +02:00
|
|
|
extern LONG SHDOCVW_refCount DECLSPEC_HIDDEN;
|
2005-06-20 16:18:03 +02:00
|
|
|
static inline void SHDOCVW_LockModule(void) { InterlockedIncrement( &SHDOCVW_refCount ); }
|
|
|
|
static inline void SHDOCVW_UnlockModule(void) { InterlockedDecrement( &SHDOCVW_refCount ); }
|
2005-01-27 11:43:53 +01:00
|
|
|
|
2011-05-13 18:17:44 +02:00
|
|
|
extern HINSTANCE shdocvw_hinstance DECLSPEC_HIDDEN;
|
2005-11-22 12:59:57 +01:00
|
|
|
|
2011-07-23 18:40:54 +02:00
|
|
|
|
2006-05-11 06:45:43 +02:00
|
|
|
/* memory allocation functions */
|
|
|
|
|
2007-11-28 00:09:35 +01:00
|
|
|
static inline void *heap_alloc(size_t len)
|
2006-05-11 06:45:43 +02:00
|
|
|
{
|
|
|
|
return HeapAlloc(GetProcessHeap(), 0, len);
|
|
|
|
}
|
|
|
|
|
2007-11-28 00:09:35 +01:00
|
|
|
static inline BOOL heap_free(void *mem)
|
2006-05-11 06:45:43 +02:00
|
|
|
{
|
|
|
|
return HeapFree(GetProcessHeap(), 0, mem);
|
|
|
|
}
|
|
|
|
|
2002-05-05 21:40:57 +02:00
|
|
|
#endif /* __WINE_SHDOCVW_H */
|