IDirectDrawSurface2::GetDDInterface

HRESULT GetDDInterface(LPVOID FAR *lplpDD);

Retrieves an interface to the DirectDraw object that was used to create the surface.

·Returns DD_OK if successful, or one of the following error values otherwise:

DDERR_INVALIDOBJECT

DDERR_INVALIDPARAMS

lplpDD

Address of a pointer that will be filled with a valid DirectDraw pointer if the call succeeds.

This method was not implemented in the IDirectDraw interface.