SysReAllocString

This function allocates a new BSTR and copies the passed string into it, then frees the BSTR referenced by pbstr, and finally resets pbstr to point to the new BSTR.

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

Parameters

  • pbstr
    [in, out] Pointer to a variable that contains a BSTR.
  • sz
    [in] Null-terminated string to copy.

Return Values

Returns an HRESULT value.

Remarks

Windows CE supports only Unicode strings.

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

Requirements

OS Versions: Windows CE 2.0 and later.
Header: Oleauto.h.
Link Library: Oleaut32.lib.

See Also

BSTR

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.