The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
A version of this page is also available for
This function changes the right-most or least significant bound of a safearray.
SAFEARRAY FAR* psa,
SAFEARRAYBOUND FAR* psaboundNew
[in] Pointer to an array descriptor.
[out] Pointer to a new safearray bound structure that contains the new array boundary.
Only the least significant dimension of an array can be changed.
Returns the HRESULT values shown in the following table.
The array is locked.
The item pointed to by psa is not a safearray descriptor.
If you reduce the bound of an array, SafeArrayRedim deallocates the array elements outside the new array boundary.
If the bound of an array is increased, SafeArrayRedim allocates and initializes the new array elements. The data is preserved for elements that exist in the old and new array.
Passing invalid (and under some circumstances NULL) pointers to this function causes an unexpected termination of the application.
|Windows Embedded CE||Windows CE 2.0 and later|
|Windows Mobile||Windows Mobile Version 5.0 and later|