IDirectDrawSurface7::GetDDInterface method (ddraw.h)

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

Syntax

HRESULT GetDDInterface(
  LPVOID *
);

Parameters

unnamedParam1

A pointer to a variable that receives a valid interface pointer if the call succeeds. Cast this pointer to an IUnknown interface pointer; then query for the IDirectDraw7 interface.

Return value

If the method succeeds, the return value is DD_OK.

If it fails, the method can return one of the following error values:

  • DDERR_INVALIDOBJECT
  • DDERR_INVALIDPARAMS

Remarks

You must use LoadLibrary to explicitly link to Ddraw.dll and then use GetProcAddress to access the GetDDInterface method.

Requirements

   
Target Platform Windows
Header ddraw.h
Library Ddraw.lib
DLL Ddraw.dll

See also

IDirectDrawSurface7