Sync to trunk revision 61757.
[reactos.git] / dll / win32 / shdocvw / shdocvw.h
1 /*
2 * Header includes for shdocvw.dll
3 *
4 * Copyright 2001 John R. Sheets (for CodeWeavers)
5 * Copyright 2005-2006 Jacek Caban for CodeWeavers
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * 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 #ifndef __WINE_SHDOCVW_H
23 #define __WINE_SHDOCVW_H
24
25 #include <config.h>
26
27 #include <stdarg.h>
28
29 #define WIN32_NO_STATUS
30 #define _INC_WINDOWS
31 #define COM_NO_WINDOWS_H
32
33 #define COBJMACROS
34
35 #include <windef.h>
36 #include <winbase.h>
37 #include <winreg.h>
38 #include <shlobj.h>
39
40 #include <wine/unicode.h>
41
42 #include <wine/debug.h>
43 WINE_DEFAULT_DEBUG_CHANNEL(shdocvw);
44
45 /**********************************************************************
46 * Shell Instance Objects
47 */
48 extern HRESULT SHDOCVW_GetShellInstanceObjectClassObject(REFCLSID rclsid,
49 REFIID riid, LPVOID *ppvClassObj) DECLSPEC_HIDDEN;
50
51 /**********************************************************************
52 * Dll lifetime tracking declaration for shdocvw.dll
53 */
54 extern LONG SHDOCVW_refCount DECLSPEC_HIDDEN;
55 static inline void SHDOCVW_LockModule(void) { InterlockedIncrement( &SHDOCVW_refCount ); }
56 static inline void SHDOCVW_UnlockModule(void) { InterlockedDecrement( &SHDOCVW_refCount ); }
57
58
59 /* memory allocation functions */
60
61 static inline void *heap_alloc(size_t len)
62 {
63 return HeapAlloc(GetProcessHeap(), 0, len);
64 }
65
66 static inline BOOL heap_free(void *mem)
67 {
68 return HeapFree(GetProcessHeap(), 0, mem);
69 }
70
71 #endif /* __WINE_SHDOCVW_H */