ICreateTypeInfo2::SetVarCustData

HRESULT SetVarCustData(
  unsigned int  index,  
  REFGUID  guid,        
  VARIANT  *pVarVal     
);
 

Sets a custom data variable.

Parameters

index
Index of the variable for which to set the custom data.
guid
Globally unique ID (GUID) used to identify the data.
pVarVal
Data to store (any legal variant except an object).

Return Value

The return value obtained from the returned HRESULT is one of the following:

Return value Meaning
S_OK Success.
E_OUTOFMEMORY Out of memory.
E_INVALIDARG One or more of the arguments is invalid.