Sets the value of an element in a single-dimensional array.
The index number of the array element to set.
The new value of the specified element.
Indicates whether a copy of the data should be created. The default value is TRUE.
Returns S_OK on success, or an error HRESULT on failure.
The bCopy flag is taken into account when elements of type BSTR or VARIANT are added to an array. The default value of TRUE ensures that a new copy is made of the data when the element is added to the array.