DirectDrawEnumerate

The DirectDrawEnumerate function enumerates the primary DirectDraw display device and a non-display device (such as a 3-D accelerator that has no 2-D capabilities) if one is installed. The NULL entry always identifies the primary display device shared with GDI.

HRESULT WINAPI DirectDrawEnumerate(
  LPDDENUMCALLBACK lpCallback,  
  LPVOID lpContext              
);
 

Parameters

lpCallback
Address of a DDEnumCallback function that will be called with a description of each enumerated DirectDraw-enabled HAL.
lpContext
Address of an application-defined context that will be passed to the enumeration callback function each time it is called.

Return Values

If the function succeeds, the return value is DD_OK.

If the function fails, the return value is DDERR_INVALIDPARAMS.

QuickInfo

  Windows NT: Use version 4.0 or later.
  Windows: Use Windows 95 or later. Available as a redistributable for Windows 95.
  Windows CE: Unsupported.
  Header: Declared in ddraw.h.
  Import Library: Use ddraw.lib.

See Also

DirectDrawEnumerateEx