IDirectDrawSurface7::GetDDInterface method

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

Syntax


HRESULT GetDDInterface(
  [out]  LPVOID FAR *lplpDD
);

Parameters

lplpDD [out]

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

Header

Ddraw.h

Library

Ddraw.dll

See also

IDirectDrawSurface7

 

 

Community Additions

ADD
Show:
© 2015 Microsoft