ICreateTypeInfo::SetVarName method (oaidl.h)

Sets the name of a variable.

Syntax

HRESULT SetVarName(
  [in] UINT     index,
  [in] LPOLESTR szName
);

Parameters

[in] index

The index of the variable.

[in] szName

The name.

Return value

This method can return one of these values.

Return code Description
S_OK
Success.
E_OUTOFMEMORY
Insufficient memory to complete the operation.
E_ACCESSDENIED
Cannot write to the destination.
STG_E_INSUFFICIENTMEMORY
Insufficient memory to complete the operation.
TYPE_E_ELEMENTNOTFOUND
The element cannot be found.

Requirements

Requirement Value
Target Platform Windows
Header oaidl.h

See also

ICreateTypeInfo