SysReAllocString Function

Reallocates a previously allocated string to be the size of a second string and copies the second string into the reallocated memory.

INT SysReAllocString(
  BSTR  *pbstr,
  const OLECHAR  *psz
);

pbstr

Pointer to the previously allocated BSTR.

psz

Pointer to the string to be copied into the reallocated memory.

Value

Meaning

TRUE

The string is reallocated successfully.

FALSE

Insufficient memory exists.

The address passed in psz cannot be part of the string passed in pbstr, or unexpected results may occur.

If pbstr is NULL, there will be an access violation and the program will crash. It is your responsibility to protect this function against NULL pointers.

Show:
© 2014 Microsoft