ICreateTypeInfo2::SetParamCustData method (oaidl.h)

Sets a value for the custom data for the specified parameter.

Syntax

HRESULT SetParamCustData(
  [in] UINT    indexFunc,
  [in] UINT    indexParam,
  [in] REFGUID guid,
  [in] VARIANT *pVarVal
);

Parameters

[in] indexFunc

The index of the function for which to set the custom data.

[in] indexParam

The index of the parameter of the function for which to set the custom data.

[in] guid

The globally unique identifier (GUID) used to identify the data.

[in] pVarVal

The data to store (any variant except an object).

Return value

This method can return one of these values.

Return code Description
S_OK
Success.
E_INVALIDARG
One or more of the arguments is not valid.
E_OUTOFMEMORY
Insufficient memory to complete the operation.

Requirements

Requirement Value
Target Platform Windows
Header oaidl.h

See also

ICreateTypeInfo2