9DEFINE_GUID(CLSID_DirectDrawFactory, 0x4FD2A832, 0x86C8, 0x11D0, 0x8F, 0xCA, 0x00, 0xC0, 0x4F, 0xD9, 0x18, 0x9D);
10DEFINE_GUID(IID_IDirectDrawFactory, 0x4FD2A833, 0x86C8, 0x11D0, 0x8F, 0xCA, 0x00, 0xC0, 0x4F, 0xD9, 0x18, 0x9D);
11DEFINE_GUID(IID_IDirectDraw3, 0x618F8AD4, 0x8B7A, 0x11D0, 0x8F, 0xCC, 0x00, 0xC0, 0x4F, 0xD9, 0x18, 0x9D);
13#define DDSCAPS_DATAEXCHANGE (DDSCAPS_SYSTEMMEMORY|DDSCAPS_VIDEOMEMORY)
14#define DDERR_LOADFAILED MAKE_DDHRESULT( 901 )
15#define DDERR_BADVERSIONINFO MAKE_DDHRESULT( 902 )
16#define DDERR_BADPROCADDRESS MAKE_DDHRESULT( 903 )
17#define DDERR_LEGACYUSAGE MAKE_DDHRESULT( 904 )
21#ifndef DIRECTDRAW_VERSION
22 #define DDSD_LPSURFACE 0x00000800
24 DEFINE_GUID( IID_IDirectDrawSurface3, 0xDA044E00,0x69B2,0x11D0,0xA1,0xD5,0x00,0xAA,0x00,0xB8,0xDF,0xBB );
26 #if defined( _WIN32 ) && !defined( _NO_COM )
28 #define INTERFACE IDirectDrawSurface3
75#if defined( _WIN32 ) && !defined( _NO_COM )
77#define INTERFACE IDirectDrawFactory
89#if defined( _WIN32 ) && !defined( _NO_COM )
91 #define INTERFACE IDirectDraw3
120 #if !defined(__cplusplus) || defined(CINTERFACE)
121 #define IDirectDraw3_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
122 #define IDirectDraw3_AddRef(p) (p)->lpVtbl->AddRef(p)
123 #define IDirectDraw3_Release(p) (p)->lpVtbl->Release(p)
124 #define IDirectDraw3_Compact(p) (p)->lpVtbl->Compact(p)
125 #define IDirectDraw3_CreateClipper(p,a,b,c) (p)->lpVtbl->CreateClipper(p,a,b,c)
126 #define IDirectDraw3_CreatePalette(p,a,b,c,d) (p)->lpVtbl->CreatePalette(p,a,b,c,d)
127 #define IDirectDraw3_CreateSurface(p,a,b,c) (p)->lpVtbl->CreateSurface(p,a,b,c)
128 #define IDirectDraw3_DuplicateSurface(p,a,b) (p)->lpVtbl->DuplicateSurface(p,a,b)
129 #define IDirectDraw3_EnumDisplayModes(p,a,b,c,d) (p)->lpVtbl->EnumDisplayModes(p,a,b,c,d)
130 #define IDirectDraw3_EnumSurfaces(p,a,b,c,d) (p)->lpVtbl->EnumSurfaces(p,a,b,c,d)
131 #define IDirectDraw3_FlipToGDISurface(p) (p)->lpVtbl->FlipToGDISurface(p)
132 #define IDirectDraw3_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b)
133 #define IDirectDraw3_GetDisplayMode(p,a) (p)->lpVtbl->GetDisplayMode(p,a)
134 #define IDirectDraw3_GetFourCCCodes(p,a,b) (p)->lpVtbl->GetFourCCCodes(p,a,b)
135 #define IDirectDraw3_GetGDISurface(p,a) (p)->lpVtbl->GetGDISurface(p,a)
136 #define IDirectDraw3_GetMonitorFrequency(p,a) (p)->lpVtbl->GetMonitorFrequency(p,a)
137 #define IDirectDraw3_GetScanLine(p,a) (p)->lpVtbl->GetScanLine(p,a)
138 #define IDirectDraw3_GetVerticalBlankStatus(p,a) (p)->lpVtbl->GetVerticalBlankStatus(p,a)
139 #define IDirectDraw3_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
140 #define IDirectDraw3_RestoreDisplayMode(p) (p)->lpVtbl->RestoreDisplayMode(p)
141 #define IDirectDraw3_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b)
142 #define IDirectDraw3_SetDisplayMode(p,a,b,c,d,e) (p)->lpVtbl->SetDisplayMode(p,a,b,c,d,e)
143 #define IDirectDraw3_WaitForVerticalBlank(p,a,b) (p)->lpVtbl->WaitForVerticalBlank(p,a,b)
144 #define IDirectDraw3_GetAvailableVidMem(p,a,b,c) (p)->lpVtbl->GetAvailableVidMem(p,a,b,c)
145 #define IDirectDraw3_GetSurfaceFromDC(p,a,b) (p)->lpVtbl->GetSurfaceFromDC(p,a,b)
147 #define IDirectDraw3_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
148 #define IDirectDraw3_AddRef(p) (p)->AddRef()
149 #define IDirectDraw3_Release(p) (p)->Release()
150 #define IDirectDraw3_Compact(p) (p)->Compact()
151 #define IDirectDraw3_CreateClipper(p,a,b,c) (p)->CreateClipper(a,b,c)
152 #define IDirectDraw3_CreatePalette(p,a,b,c,d) (p)->CreatePalette(a,b,c,d)
153 #define IDirectDraw3_CreateSurface(p,a,b,c) (p)->CreateSurface(a,b,c)
154 #define IDirectDraw3_DuplicateSurface(p,a,b) (p)->DuplicateSurface(a,b)
155 #define IDirectDraw3_EnumDisplayModes(p,a,b,c,d) (p)->EnumDisplayModes(a,b,c,d)
156 #define IDirectDraw3_EnumSurfaces(p,a,b,c,d) (p)->EnumSurfaces(a,b,c,d)
157 #define IDirectDraw3_FlipToGDISurface(p) (p)->FlipToGDISurface()
158 #define IDirectDraw3_GetCaps(p,a,b) (p)->GetCaps(a,b)
159 #define IDirectDraw3_GetDisplayMode(p,a) (p)->GetDisplayMode(a)
160 #define IDirectDraw3_GetFourCCCodes(p,a,b) (p)->GetFourCCCodes(a,b)
161 #define IDirectDraw3_GetGDISurface(p,a) (p)->GetGDISurface(a)
162 #define IDirectDraw3_GetMonitorFrequency(p,a) (p)->GetMonitorFrequency(a)
163 #define IDirectDraw3_GetScanLine(p,a) (p)->GetScanLine(a)
164 #define IDirectDraw3_GetVerticalBlankStatus(p,a) (p)->GetVerticalBlankStatus(a)
165 #define IDirectDraw3_Initialize(p,a) (p)->Initialize(a)
166 #define IDirectDraw3_RestoreDisplayMode(p) (p)->RestoreDisplayMode()
167 #define IDirectDraw3_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b)
168 #define IDirectDraw3_SetDisplayMode(p,a,b,c,d,e) (p)->SetDisplayMode(a,b,c,d,e)
169 #define IDirectDraw3_WaitForVerticalBlank(p,a,b) (p)->WaitForVerticalBlank(a,b)
170 #define IDirectDraw3_GetAvailableVidMem(p,a,b,c) (p)->GetAvailableVidMem(a,b,c)
171 #define IDirectDraw3_GetSurfaceFromDC(p,a,b) (p)->GetSurfaceFromDC(a,b)
#define DECLARE_INTERFACE_(i, b)
struct IDirectDraw3 * LPDIRECTDRAW3
struct IDirectDrawSurface3 * LPDIRECTDRAWSURFACE3
HRESULT CALLBACK EnumDisplayModes(LPDDSURFACEDESC2 pDDSD, ENUMCONTEXT *Context)
HRESULT WINAPI GetSurfaceFromDC(HDC dc, IDirectDrawSurface4 **surface, HDC *device_dc)
static const WCHAR dwWidth[]
static const WCHAR dwHeight[]
static const WCHAR dwRefreshRate[]
DDCOLORKEY * LPDDCOLORKEY
BOOL CreateSurface(LPDIRECTDRAWSURFACE7 *pSurface)
static HRESULT QueryInterface(REFIID, void **)
static ULONG WINAPI AddRef(IStream *iface)
_In_ HANDLE _In_ DWORD _In_ DWORD _Inout_opt_ LPOVERLAPPED _In_opt_ LPTRANSMIT_FILE_BUFFERS _In_ DWORD dwReserved
#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8)
struct IDirectDrawClipper * LPDIRECTDRAWCLIPPER
HRESULT(WINAPI * LPDDENUMSURFACESCALLBACK)(LPDIRECTDRAWSURFACE, LPDDSURFACEDESC, LPVOID)
struct _DDBLTBATCH * LPDDBLTBATCH
struct IDirectDraw * LPDIRECTDRAW
HRESULT(WINAPI * LPDDENUMMODESCALLBACK)(LPDDSURFACEDESC, LPVOID)
struct IDirectDrawPalette * LPDIRECTDRAWPALETTE
struct _DDOVERLAYFX * LPDDOVERLAYFX
struct _DDSCAPS * LPDDSCAPS
struct _DDBLTFX * LPDDBLTFX
_Must_inspect_result_ _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFWAITLOCK * Lock
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
_In_ void _In_ PCCERT_CONTEXT _In_opt_ LPFILETIME _In_ DWORD _In_ DWORD _Outptr_opt_ void ** ppvObject
int WINAPI GetPixelFormat(_In_ HDC)
HPALETTE WINAPI CreatePalette(_In_reads_(_Inexpressible_(2 *sizeof(WORD)+plpal->palNumEntries *sizeof(PALETTEENTRY))) const LOGPALETTE *)
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
HDC WINAPI GetDC(_In_opt_ HWND)