Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Reallocates a previously allocated string to be the size of a second string and copies the second string into the reallocated memory.
INT SysReAllocString(
[in, out] BSTR *pbstr,
[in, optional] const OLECHAR *psz
);
[in, out] pbstr
The previously allocated string.
[in, optional] psz
The string to copy.
Return code | Description |
---|---|
|
The string is reallocated successfully. |
|
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.
Requirement | Value |
---|---|
Target Platform | Windows |
Header | oleauto.h |
Library | OleAut32.lib |
DLL | OleAut32.dll |
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today