OleQuerySize

  OLESTATUS OleQuerySize(lpObject, pdwSize)    
  LPOLEOBJECT lpObject; /* pointer to object to query */
  DWORD FAR* pdwSize; /* pointer to size of object */

The OleQuerySize function retrieves the size of the specified object.

Parameters

lpObject

Points to the object to query.

pdwSize

Points to a variable for the size of the object. This variable contains the size of the object when the function returns.

Return Value

The return value is OLE_OK if the function is successful. Otherwise, it is an error value, which can be one of the following:

OLE_ERROR_BLANK
OLE_ERROR_MEMORY
OLE_ERROR_OBJECT

See Also

OleLoadFromStream