OleEnumFormats

  OLECLIPFORMAT OleEnumFormats(lpObject, cfFormat)    
  LPOLEOBJECT lpObject; /* pointer to object to query */
  OLECLIPFORMAT cfFormat; /* format from previous function call */

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

Parameters

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.

Return Value

The return value is the next available format, or NULL if there are no further formats.

Comments

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.

See Also

OleGetData