IDirectDrawSurface7::GetSurfaceDesc method

Retrieves a description of this surface in its current condition.

Syntax


HRESULT GetSurfaceDesc(
  [in, out]  LPDDSURFACEDESC2 lpDDSurfaceDesc
);

Parameters

lpDDSurfaceDesc [in, out]

A pointer to a DDSURFACEDESC2 structure that receives the current description of this surface. You need only initialize this structure's dwSize member to the size, in bytes, of the structure prior to the call; no other preparation is required.

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 GetSurfaceDesc method.

Requirements

Header

Ddraw.h

Library

Ddraw.dll

See also

IDirectDrawSurface7

 

 

Community Additions

ADD
Show:
© 2014 Microsoft