ICreateTypeInfo::SetFuncAndParamNames

HRESULT SetFuncAndParamNames(
  unsigned int  index,           
  OLECHAR FAR* FAR*  rgszNames,  
  unsigned int  cNames           
);
 

Sets the name of a function and the names of its parameters to the names in the array of pointers rgszNames.

Parameters

index
Index of the function whose function name and parameter names are to be set.
rgszNames
Array of pointers to names. The first element is the function name. Subsequent elements are names of parameters.
cNames
Number of elements in the rgszNames array.

Return Value

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

Return value Meaning
S_OK Success.
STG_E_INSUFFICIENTMEMORY Out of memory.
E_OUTOFMEMORY Out of memory.
E_INVALIDARG One or more of the arguments is invalid.
E_ACCESSDENIED Cannot write to the destination.
TYPE_E_ELEMENTNOTFOUND The element cannot be found.

Comments

The function SetFuncAndParamNames needs to be used once for each property. The last parameter for put and putref accessor functions is unnamed.