9.6.1 OleEnumFormats

OLECLIPFORMAT OleEnumFormats(lpObject, cfFormat)

LPOLEOBJECT lpObject;

OLECLIPFORMAT cfFormat;

The OleEnumFormats function enumerates the data formats that describe a specified object.

Parameter Description

lpObject Points to the object to be queried.
cfFormat Specifies the format returned by the last call to the OleEnumFormats function. For the first call to this function, this parameter is zero.

When an application specifies NULL for the cfFormat parameter, the OleEnumFormats function returns the first available format. Whenever an application specifies a format that was returned by a previous call to OleEnumFormats, the function returns the next available format, in sequence. When no more formats are available, the function returns NULL.

The return value is the next available format; otherwise, it is NULL.

See AlsoOleGetData