Compartilhar via


DDGPESurf::SetDDGPESurf (Windows CE 5.0)

Send Feedback

This method associates the current DDGPESurf object with a DirectDraw surface.

virtual void SetDDGPESurf(LPDDRAWI_DDRAWSURFACE_GBLlpDDSurface);

Parameters

  • lpDDSurface
    A pointer to an existing DirectDraw surface. The DDGPESurf object is associated with it. Any existing DDGPESurf object associated with this surface is replaced. The driver is responsible for managing surfaces replaced in this manner.

Return Values

The return value is S_OK, if the method is successful. Otherwise, an error code is returned.

Remarks

Use this method to associate a known DDGPESurf object with a DirectDraw surface with no associated surface data. Avoid associating a single DDGPESurf object with more than one distinct DirectDraw surface. Your driver is required to set up the appropriate DirectDraw surface attributes.

Requirements

OS Versions: Windows CE 2.12 and later. Version 2.12 requires DXPAK 1.0 or later.
Header: Ddgpe.h.
Link Library: Ddgpe.lib.

See Also

DDGPESurf Class | DDGPESurf Class Definition

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.