DirectDrawEnumerate

HRESULT DirectDrawEnumerate(LPDDENUMCALLBACK lpCallback,

LPVOID lpContext);

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

·Returns DD_OK if successful, or DDERR_INVALIDPARAMS otherwise.

lpCallback

Address of a Callback 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.