shdocvw.h 1.95 KB
Newer Older
1
/*
2 3
 * Header includes for shdocvw.dll
 *
4
 * Copyright 2001 John R. Sheets (for CodeWeavers)
5
 * Copyright 2005-2006 Jacek Caban for CodeWeavers
6 7 8 9 10 11 12 13 14 15 16 17 18
 *
 * 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
19
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 21
 */

22 23 24
#ifndef __WINE_SHDOCVW_H
#define __WINE_SHDOCVW_H

25 26
#define COBJMACROS

27 28 29
#include <stdarg.h>

#include "windef.h"
30 31 32
#include "winbase.h"
#include "winuser.h"

33 34
#include "ole2.h"
#include "shlobj.h"
35
#include "exdisp.h"
36

37
#include "wine/unicode.h"
38
#include "wine/list.h"
39

40 41 42 43
/**********************************************************************
 * Shell Instance Objects
 */
extern HRESULT SHDOCVW_GetShellInstanceObjectClassObject(REFCLSID rclsid, 
44
    REFIID riid, LPVOID *ppvClassObj) DECLSPEC_HIDDEN;
45

46 47 48
/**********************************************************************
 * Dll lifetime tracking declaration for shdocvw.dll
 */
49
extern LONG SHDOCVW_refCount DECLSPEC_HIDDEN;
50 51
static inline void SHDOCVW_LockModule(void) { InterlockedIncrement( &SHDOCVW_refCount ); }
static inline void SHDOCVW_UnlockModule(void) { InterlockedDecrement( &SHDOCVW_refCount ); }
52

53

54 55
/* memory allocation functions */

56
static inline void *heap_alloc(size_t len)
57 58 59 60
{
    return HeapAlloc(GetProcessHeap(), 0, len);
}

61
static inline BOOL heap_free(void *mem)
62 63 64 65
{
    return HeapFree(GetProcessHeap(), 0, mem);
}

66
#endif /* __WINE_SHDOCVW_H */