explorerframe: Moved TaskbarList implementation to explorerframe.
[wine] / dlls / explorerframe / explorerframe_main.h
1 /*
2  * ExplorerFrame main include
3  *
4  * Copyright 2010 David Hedberg
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_EXPLORERFRAME_H
22 #define __WINE_EXPLORERFRAME_H
23
24 #define COBJMACROS
25
26 #include "shlobj.h"
27
28 /* Not declared in commctrl.h ("for internal use (msdn)") */
29 #define TVS_EX_NOSINGLECOLLAPSE 0x0001
30
31 extern HINSTANCE explorerframe_hinstance DECLSPEC_HIDDEN;
32
33 extern LONG EFRAME_refCount DECLSPEC_HIDDEN;
34 static inline void EFRAME_LockModule(void) { InterlockedIncrement( &EFRAME_refCount ); }
35 static inline void EFRAME_UnlockModule(void) { InterlockedDecrement( &EFRAME_refCount ); }
36
37 HRESULT NamespaceTreeControl_Constructor(IUnknown *pUnkOuter, REFIID riid, void **ppv) DECLSPEC_HIDDEN;
38 HRESULT TaskbarList_Constructor(IUnknown*,REFIID,void**) DECLSPEC_HIDDEN;
39
40 static inline void *heap_alloc(size_t len)
41 {
42     return HeapAlloc(GetProcessHeap(), 0, len);
43 }
44
45 static inline BOOL heap_free(void *mem)
46 {
47     return HeapFree(GetProcessHeap(), 0, mem);
48 }
49
50 #endif /* __WINE_EXPLORERFRAME_H */