This is implementable as` SafeArrayDestroyData()` followed by `SafeArrayAllocData()`, with suitable error-checking.