winex11: add owned windows to taskbar if owner is not mapped
[wine] / dlls / browseui / browseui.h
1 /*
2  * Internal header for browseui.dll
3  *
4  * Copyright 2007 Mikolaj Zalewski
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19  */
20
21 #ifndef __WINE_BROWSEUI_H
22 #define __WINE_BROWSEUI_H
23
24 extern LONG BROWSEUI_refCount;
25 extern HINSTANCE BROWSEUI_hinstance;
26
27 extern HRESULT ACLMulti_Constructor(IUnknown *punkOuter, IUnknown **ppOut);
28 extern HRESULT ProgressDialog_Constructor(IUnknown *punkOuter, IUnknown **ppOut);
29 extern HRESULT CompCatCacheDaemon_Constructor(IUnknown *punkOuter, IUnknown **ppOut);
30
31 extern const GUID CLSID_CompCatCacheDaemon;
32
33 static inline void *heap_alloc(size_t size)
34 {
35     return HeapAlloc(GetProcessHeap(), 0, size);
36 }
37
38 static inline void *heap_alloc_zero(size_t size)
39 {
40     return HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, size);
41 }
42
43 static inline void *heap_realloc(void *mem, size_t size)
44 {
45     return mem ? HeapReAlloc(GetProcessHeap(), 0, mem, size) : heap_alloc(size);
46 }
47
48 static inline BOOL heap_free(void *mem)
49 {
50     return HeapFree(GetProcessHeap(), 0, mem);
51 }
52
53 #endif /* __WINE_BROWSEUI_H */