Microsoft Windows CE 3.0  

SetDirectDrawSurface

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The SetDirectDrawSurfacefunction associates the given DirectDraw surface with the current DDGPESurfobject.

You would use this function to associate a known DirectDraw surface with a known DDGPESurfobject, after setting up each of them to be complete surfaces referencing bits at the same memory location. This function merely associates the two structures and does nothing to adjust memory locations or any other elements of either structure.

virtual void SetDirectDrawSurface (
LPDDRAWI_DDRAWSURFACE_LCL
lpDDSurface
);

Parameters

lpDDSurface
A pointer to an existing DirectDraw surface. The DirectDraw surface will be associated with the current GPEsurface. Any existing DirectDraw surface associated with this surface will be replaced. The driver is responsible for management of surfaces replaced in this manner.

Return Values

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



 Last updated on Tuesday, July 13, 2004

© 2004 Microsoft Corporation. All rights reserved.