Avoid crashes in ddraw.dll when loading it without x11drv, for
[wine] / dlls / ddraw / dpalette / main.h
1 /*
2  * Copyright 2000-2001 TransGaming Technologies Inc.
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17  */
18
19 #ifndef WINE_DDRAW_DPALETTE_MAIN_H_INCLUDED
20 #define WINE_DDRAW_DPALETTE_MAIN_H_INCLUDED
21
22 HRESULT Main_DirectDrawPalette_Construct(IDirectDrawPaletteImpl* This,
23                                          IDirectDrawImpl* pDD, DWORD dwFlags);
24 void Main_DirectDrawPalette_final_release(IDirectDrawPaletteImpl* This);
25
26
27 HRESULT
28 Main_DirectDrawPalette_Create(IDirectDrawImpl* pDD, DWORD dwFlags,
29                               LPDIRECTDRAWPALETTE* ppPalette,
30                               LPUNKNOWN pUnkOuter);
31 void Main_DirectDrawPalette_ForceDestroy(IDirectDrawPaletteImpl* This);
32
33
34 DWORD Main_DirectDrawPalette_Size(DWORD dwFlags);
35
36
37
38 HRESULT WINAPI
39 Main_DirectDrawPalette_GetEntries(LPDIRECTDRAWPALETTE iface, DWORD dwFlags,
40                                   DWORD dwStart, DWORD dwCount,
41                                   LPPALETTEENTRY palent);
42 HRESULT WINAPI
43 Main_DirectDrawPalette_SetEntries(LPDIRECTDRAWPALETTE iface, DWORD dwFlags,
44                                   DWORD dwStart, DWORD dwCount,
45                                   LPPALETTEENTRY palent);
46 ULONG WINAPI
47 Main_DirectDrawPalette_Release(LPDIRECTDRAWPALETTE iface);
48 ULONG WINAPI Main_DirectDrawPalette_AddRef(LPDIRECTDRAWPALETTE iface);
49 HRESULT WINAPI
50 Main_DirectDrawPalette_Initialize(LPDIRECTDRAWPALETTE iface,
51                                   LPDIRECTDRAW ddraw, DWORD dwFlags,
52                                   LPPALETTEENTRY palent);
53 HRESULT WINAPI
54 Main_DirectDrawPalette_GetCaps(LPDIRECTDRAWPALETTE iface, LPDWORD lpdwCaps);
55 HRESULT WINAPI
56 Main_DirectDrawPalette_QueryInterface(LPDIRECTDRAWPALETTE iface,
57                                       REFIID refiid, LPVOID *obj);
58
59
60 #endif