LPDDENUMMODESCALLBACK2 callback function (ddraw.h)
The EnumModesCallback2 function is an application-defined callback function for the IDirectDraw7::EnumDisplayModes method.
Syntax
LPDDENUMMODESCALLBACK2 Lpddenummodescallback2;
HRESULT Lpddenummodescallback2(
[in] LPDDSURFACEDESC2 unnamedParam1,
[in] LPVOID unnamedParam2
)
{...}
Parameters
[in] unnamedParam1
A pointer to a read-only DDSURFACEDESC2 structure that provides the monitor frequency and the mode that can be created.
[in] unnamedParam2
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
Requirement | Value |
---|---|
Target Platform | Windows |
Header | ddraw.h |