Microsoft DirectX 9.0

IDirectDrawFactory::DirectDrawEnumerate

Note   The IDirectDrawFactory interface is deprecated.

Enumerates the available DirectDraw compatible devices in the system.

Syntax

STDMETHOD DirectDrawEnumerate(
    LPDDENUMCALLBACK lpCallback,
    LPVOID lpContext
);

Parameters

lpCallback

[in] Pointer to a DDEnumCallback function that will be called with a description of each DirectDrawEx-enabled hardware abstraction layer (HAL) installed in the system.

lpContext

[in] Address of an application-defined structure that the system will pass to the callback function each time the function is called.

Return Value

Returns DD_OK if successful, or DDERR_INVALIDPARAMS otherwise.

Remarks

This method functions in a similar manner to the DirectDraw function DirectDrawEnumerate, defined in the DirectX SDK.

See Also