Platform SDK: DirectX

DirectDraw7.GetNumFourCCCodes

The DirectDraw7.GetNumFourCCCodes method retrieves the number of FOURCC codes supported by the DirectDraw object.

object.GetFourCCCodes() As Long

Parameters

object
Object expression that resolves to a DirectDraw7 object.

Return Values

If the method succeeds, it returns the number of supported Four-Character Codes(FOURCC).

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

This method is typically called before calling DirectDraw7.GetFourCCCodes.