## DirectDrawEnumerate

The DirectDrawEnumerate function enumerates the DirectDraw objects installed on the system. The NULL GUID entry always identifies the primary display device shared with GDI.

HRESULT DirectDrawEnumerate(

LPDDENUMCALLBACK lpCallback,

LPVOID lpContext

);

##### Parameters

lpCallback
  Address of a DDEnumCallback function that will be called with a description of each DirectDraw-enabled HAL installed in the system.
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.

##### Remarks

On systems with multiple monitors, this method enumerates multiple display devices. For more information, see Working with Multiple Monitors.