#include <ole.h> |
OLESTATUS OleQuerySize(lpObject, pdwSize) | |||||
LPOLEOBJECT lpObject; | /* address of object to query | */ | |||
DWORD FAR* pdwSize; | /* address of size of object | */ |
The OleQuerySize function retrieves the size of the specified object.
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.
The return value is OLE_OK if the function is successful. Otherwise, it is an error value, which may be one of the following:
OLE_ERROR_BLANK
OLE_ERROR_MEMORY
OLE_ERROR_OBJECT