共用方式為


SysReAllocString

A version of this page is also available for

Windows Embedded CE 6.0 R3

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

Reference

Automation Functions
BSTR