IDirectDraw7::GetFourCCCodes method (ddraw.h)

Retrieves the four-character codes (FOURCC) that are supported by the DirectDraw object. This method can also retrieve the number of codes that are supported.

Syntax

HRESULT GetFourCCCodes(
  [in, out] LPDWORD unnamedParam1,
  [in, out] LPDWORD unnamedParam2
);

Parameters

[in, out] unnamedParam1

A pointer to a variable that contains the number of entries that the array specified by lpCodes can hold. If the number of entries is too small to accommodate all the codes, lpNumCodes is set to the required number, and the array specified by lpCodes is filled with all that fits.

[in, out] unnamedParam2

An array of variables to be filled with FOURCCs that are supported by this DirectDraw object. If you specify NULL, lpNumCodes is set to the number of supported FOURCCs, and the method returns.

Return value

If the method succeeds, the return value is DD_OK.

If it fails, the method can return one of the following error values:

  • DDERR_INVALIDOBJECT
  • DDERR_INVALIDPARAMS

Requirements

Requirement Value
Target Platform Windows
Header ddraw.h
Library Ddraw.lib
DLL Ddraw.dll

See also

IDirectDraw7