Alocate new storage for and duplicate the specified P6BWCSTR into that storage.
The resulting P6WCHAR string is NULL terminated. You MUST call p6ISafeString::wstrfree() to deallocate the string.
- See Also
- p6ISafeString::strfree()
- Parameters
-
pString | [ in ] A pointer to the P6R::P6BWCSTR string to duplicate. |
ppCopy | [ out ] The address of a P6R::P6WCHAR * in which to a place a pointer to the newly allocated copy. |
- Returns
Success | P6R::eOk | |
Failure | P6R::eInvalidArg | pString or ppCopy is NULL |
P6R::eTooBig | The string was longer than P6SAFESTR_MAX_CCH characters. |
P6R::eNoMemory | There were not enough resources to allocate space for the copy of the string. |