mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 12:20:07 +00:00
67 lines
2.0 KiB
C
67 lines
2.0 KiB
C
/*
|
|
* Header includes for shdocvw.dll
|
|
*
|
|
* Copyright 2001 John R. Sheets (for CodeWeavers)
|
|
* Copyright 2005-2006 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
|
|
*/
|
|
|
|
#ifndef __WINE_SHDOCVW_H
|
|
#define __WINE_SHDOCVW_H
|
|
|
|
#define COBJMACROS
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include "windef.h"
|
|
#include "winbase.h"
|
|
#include "winuser.h"
|
|
|
|
#include "ole2.h"
|
|
#include "shlobj.h"
|
|
#include "exdisp.h"
|
|
|
|
#include "wine/unicode.h"
|
|
#include "wine/list.h"
|
|
|
|
/**********************************************************************
|
|
* Shell Instance Objects
|
|
*/
|
|
extern HRESULT SHDOCVW_GetShellInstanceObjectClassObject(REFCLSID rclsid,
|
|
REFIID riid, LPVOID *ppvClassObj) DECLSPEC_HIDDEN;
|
|
|
|
/**********************************************************************
|
|
* Dll lifetime tracking declaration for shdocvw.dll
|
|
*/
|
|
extern LONG SHDOCVW_refCount DECLSPEC_HIDDEN;
|
|
static inline void SHDOCVW_LockModule(void) { InterlockedIncrement( &SHDOCVW_refCount ); }
|
|
static inline void SHDOCVW_UnlockModule(void) { InterlockedDecrement( &SHDOCVW_refCount ); }
|
|
|
|
|
|
/* memory allocation functions */
|
|
|
|
static inline void *heap_alloc(size_t len)
|
|
{
|
|
return HeapAlloc(GetProcessHeap(), 0, len);
|
|
}
|
|
|
|
static inline BOOL heap_free(void *mem)
|
|
{
|
|
return HeapFree(GetProcessHeap(), 0, mem);
|
|
}
|
|
|
|
#endif /* __WINE_SHDOCVW_H */
|