IASImageMenu::get_String

This method gets the string associated with a menu item.

Syntax

HRESULT get_String( long index, BSTR *pbstr );

Parameters

index
[in] Index of the item associated with the image.
pbstr
[out] Pointer to the Unicode string.

Return Values

NOERROR indicates success. E_INVALIDARG indicates that the argument is invalid.

Remarks

The string associated with an image can be used to display text in the Auto PC label control associated with the image menu.