DirectX SDK

DirectDraw7.GetFourCCCodes

The DirectDraw7.GetFourCCCodes method retrieves the FOURCC codes supported by the DirectDraw object.

object.GetFourCCCodes(ccCodes() As Long)

Parameters

object
Object expression that resolves to a DirectDraw7 object.
ccCodes
Array of variables to be filled with the Four-Character Codes(FOURCC) supported by this DirectDraw object.

Error Codes

If the method fails, it raises an error, and Err.Number can be set to one of the following values:

DDERR_INVALIDOBJECT
DDERR_INVALIDPARAMS

Remarks

To retrieve the number of codes supported by a DirectDraw7 object, use DirectDraw7.GetNumFourCCCodes.