9.6.7 OleQueryName

OLESTATUS OleQueryName(lpObject, lpszObject, lpwBuffSize)

LPOLEOBJECT lpObject;

LPSTR lpszObject;

WORD FAR * lpwBuffSize;

Parameter Description

lpObject Points to the object whose name is being queried.
-lpszObject Points to a character array that contains a null-terminated string. When the function returns, this string specifies the name of the object.
lpwBuffSize Points to a variable containing the size (in bytes) of the buffer pointed to by the lpszObject parameter. When the function returns, this value is the number of bytes copied to the buffer.

The return value is OLE_OK if successful; otherwise, it could be

OLE_ERROR_OBJECT

OLE_ERROR_SIZE

See AlsoOleRename