#define WIN32_LEAN_AND_MEAN #include #include "IDirectDrawClipper.h" #include "ddclipper.h" #include "debug.h" HRESULT dd_CreateClipper(DWORD dwFlags, LPDIRECTDRAWCLIPPER FAR *lplpDDClipper, IUnknown FAR *pUnkOuter ) { if (!lplpDDClipper) return DDERR_INVALIDPARAMS; IDirectDrawClipperImpl *c = (IDirectDrawClipperImpl *)HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IDirectDrawClipperImpl)); dprintf(" Clipper = %p\n", c); c->lpVtbl = &g_ddc_vtbl; IDirectDrawClipper_AddRef(c); *lplpDDClipper = (LPDIRECTDRAWCLIPPER)c; return DD_OK; }