SysReAllocString

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

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.

Parameters

pbstr
Points to a variable containing a BSTR.
sz
A zero-terminated string to copy.

Return Value

Returns False if insufficient memory exists.

QuickInfo

  Windows NT: Use version 3.1 and later.
  Windows: Use Windows 95 and later.
  Header: Declared in oleauto.h.
  Import Library: Link with oleaut32.lib.