OleEnumFormats

3.1

  #include <ole.h>    

  OLECLIPFORMAT OleEnumFormats(lpObject, cfFormat)    
  LPOLEOBJECT lpObject; /* address of 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 if any further formats are available. Otherwise, the return value is NULL.

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