jscript: Use compiler for handling if statement.
[wine.git] / dlls / shdocvw / shdocvw.h
blobe741482502ec03f1e77069fb40a9ccc8d68165a0
1 /*
2 * Header includes for shdocvw.dll
4 * Copyright 2001 John R. Sheets (for CodeWeavers)
5 * Copyright 2005-2006 Jacek Caban for CodeWeavers
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.
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.
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
22 #ifndef __WINE_SHDOCVW_H
23 #define __WINE_SHDOCVW_H
25 #define COBJMACROS
27 #include <stdarg.h>
29 #include "windef.h"
30 #include "winbase.h"
31 #include "winuser.h"
33 #include "ole2.h"
34 #include "shlobj.h"
35 #include "exdisp.h"
37 #include "wine/unicode.h"
38 #include "wine/list.h"
40 /**********************************************************************
41 * Shell Instance Objects
43 extern HRESULT SHDOCVW_GetShellInstanceObjectClassObject(REFCLSID rclsid,
44 REFIID riid, LPVOID *ppvClassObj) DECLSPEC_HIDDEN;
46 /**********************************************************************
47 * Dll lifetime tracking declaration for shdocvw.dll
49 extern LONG SHDOCVW_refCount DECLSPEC_HIDDEN;
50 static inline void SHDOCVW_LockModule(void) { InterlockedIncrement( &SHDOCVW_refCount ); }
51 static inline void SHDOCVW_UnlockModule(void) { InterlockedDecrement( &SHDOCVW_refCount ); }
53 extern HINSTANCE shdocvw_hinstance DECLSPEC_HIDDEN;
56 /* memory allocation functions */
58 static inline void *heap_alloc(size_t len)
60 return HeapAlloc(GetProcessHeap(), 0, len);
63 static inline BOOL heap_free(void *mem)
65 return HeapFree(GetProcessHeap(), 0, mem);
68 #endif /* __WINE_SHDOCVW_H */