Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This function reallocates a string and retrieves a pointer to the new string.

Syntax

HRESULT SysReAllocString(
  BSTR FAR* 
pbstr, 
  OLECHAR FAR* 
sz 
); 

Parameters

pbstr

[in, out] Pointer to a string.

sz

[in] Null-terminated string to copy.

Return Value

Returns an HRESULT value.

Remarks

Only Unicode strings are supported.

Passing invalid (and under some circumstances NULL) pointers to this function causes an unexpected termination of the application.

Requirements

Header oleauto.h
Library oleaut32.lib
Windows Embedded CE Windows CE 2.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also