HRESULT GetFourCCCodes(LPDWORD lpNumCodes,
LPDWORD lpCodes);
Returns the FourCCCodes supported by the DirectDraw object. IDirectDraw::GetFourCCCodes can also return the number of codes supported.
·Returns DD_OK if successful, or one of the following error values otherwise:
DDERR_INVALIDOBJECT DDERR_INVALIDPARAMS
lpNumCodes
Address of a doubleword that contains the number of entries the lpCodes array can hold. If the number of entries is too small to accommodate all the codes, lpNumCodes will be set to the required number and the lpCodes array will be filled with all that will fit.
lpCodes
Address of an array of doublewords to be filled in with FourCC codes supported by this DirectDraw object. If NULL is passed, lpNumCodes will be set to the number of supported FourCC codes and the method will return.