Partager via


DDGPESurf::GetDDGPESurf (Compact 2013)

3/26/2014

This method gets the DDGPESurf object associated with a DirectDraw surface. Typically, you use this method to gain access to GPE methods that require a DDGPESurf object.

Syntax

static DDGPESurf* GetDDGPESurf(
  LPDDRAWI_DDRAWSURFACE_LCL lpDDSurface 
);

Parameters

  • lpDDSurface
    A pointer to an existing DirectDraw surface that has an associated DDGPESurf object.

Return Value

The return value is S_OK if the method is successful. Otherwise NULL is returned and an error code is generated.

Requirements

Header

ddgpe.h

Library

Ddgpe.lib

See Also

Reference

DDGPESurf Class
DDGPESurf Class Definition