Partager via


IDirectDrawSurface::GetSurfaceDesc

Send Feedback

This method retrieves a description of the surface in its current condition.

HRESULT GetSurfaceDesc(
  LPDDSURFACEDESC lpDDSurfaceDesc
); 

Parameters

  • lpDDSurfaceDesc
    Address of a DDSURFACEDESC structure that will be filled with the current description of this surface. You 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 Values

If the method succeeds, the return value is DD_OK.

If the method fails, the return value may be one of the following error values:

DDERR_INVALIDOBJECT
DDERR_INVALIDPARAMS

Requirements

Pocket PC: Windows Mobile 5.0 and later
Smartphone: Windows Mobile 5.0 and later
OS Versions: Windows CE 5.01 and later
Header: Ddraw.h.
Library: Ddraw.lib.

See Also

DDSURFACEDESC

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.