Windows Dev Center

EnumModesCallback2 callback function

The EnumModesCallback2 function is an application-defined callback function for the IDirectDraw7::EnumDisplayModes method.

Syntax


HRESULT WINAPI EnumModesCallback2(
  _In_ LPDDSURFACEDESC2 lpDDSurfaceDesc,
  _In_ LPVOID           lpContext
);

Parameters

lpDDSurfaceDesc [in]

A pointer to a read-only DDSURFACEDESC2 structure that provides the monitor frequency and the mode that can be created.

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 LPDDENUMMODESCALLBACK2 data type to declare a variable that can contain a pointer to this callback function.

Requirements

Header

Ddraw.h

 

 

Community Additions

ADD
Show:
© 2015 Microsoft