35{
37
41
43
44 if(pUnkOuter)
45 {
47 }
48
50 {
52 }
53
54
56 {
58 }
59
60
62 if( ThisPalInt ==
NULL )
63 {
66 }
67
69 if( ThisPalLcl ==
NULL )
70 {
73 }
74
76 if( ThisPalGbl ==
NULL )
77 {
80 }
81
82
83
84 ThisPalInt->
lpLcl = ThisPalLcl;
85 ThisPalLcl->
lpGbl = ThisPalGbl;
86
89
92
98 }
99 else {
102 }
105
107 {
108 DX_STUB_str(
"mDdCreateSurface failed with DDHAL_DRIVER_NOTHANDLED.");
111 }
112
114 {
118 }
119
124 IDirectDrawPalette_AddRef(*ppPalette);
125
127
132
134}
DWORD ConvertPCapsFlags(DWORD dwFlags)
#define DDHAL_CB32_CREATEPALETTE
#define DDRAWILCL_SETCOOPCALLED
#define DDHAL_DRIVER_NOTHANDLED
const IDirectDrawPaletteVtbl DirectDrawPalette_Vtable
static void cleanup(void)
#define DxHeapMemAlloc(p, m)
#define DDERR_INVALIDOBJECT
#define DDERR_OUTOFMEMORY
#define DDERR_NOTINITIALIZED
#define DDERR_NOCOOPERATIVELEVELSET
struct IDirectDrawPalette * LPDIRECTDRAWPALETTE
LPDDRAWI_DIRECTDRAW_GBL lpDD
LPPALETTEENTRY lpColorTable
LPDDHAL_CREATEPALETTE CreatePalette
LPDDRAWI_DDRAWPALETTE_GBL lpDDPalette
LPDDHAL_CREATEPALETTE CreatePalette
LPDDRAWI_DIRECTDRAW_LCL lpDD_lcl
LPDDRAWI_DDRAWPALETTE_LCL lpLcl
LPDDRAWI_DDRAWPALETTE_INT lpLink
LPDDRAWI_DDRAWPALETTE_GBL lpGbl
LPDDRAWI_DIRECTDRAW_LCL lpDD_lcl
LPDDRAWI_DDRAWPALETTE_INT palList
LPDDHAL_CALLBACKS lpDDCBtmp
LPDDRAWI_DIRECTDRAW_LCL lpLcl
LPDDRAWI_DIRECTDRAW_GBL lpGbl
DWORD WINAPI GetCurrentProcessId(void)
#define CLASS_E_NOAGGREGATION