EnumSurfacesCallback2
Collapse the table of content
Expand the table of content

EnumSurfacesCallback2 callback function

Do not use. This callback function is superseded by the EnumSurfacesCallback7 function that is used with the IDirectDraw7::EnumSurfaces, IDirectDrawSurface7::EnumAttachedSurfaces, and IDirectDrawSurface7::EnumOverlayZOrders methods.

Syntax


HRESULT WINAPI EnumSurfacesCallback2(
  _In_ LPDIRECTDRAWSURFACE4 lpDDSurface,
  _In_ LPDDSURFACEDESC2     lpDDSurfaceDesc,
  _In_ LPVOID               lpContext
);

Parameters

lpDDSurface [in]

A pointer to the IDirectDrawSurface4 interface of the attached surface.

lpDDSurfaceDesc [in]

A pointer to a DDSURFACEDESC2 structure that describes the attached surface.

lpContext [in]

A pointer to an application-defined structure to be passed to the callback function each time that the function is called.

Return value

The callback function returns DDENUMRET_OK to continue the enumeration.

It returns DDENUMRET_CANCEL to stop the enumeration.

Remarks

You can use the LPDDENUMSURFACESCALLBACK2 data type to declare a variable that can contain a pointer to this callback function.

Requirements

Header

Ddraw.h

 

 

Show:
© 2016 Microsoft