Duplicates the provided NULL terminated wide character string, allocating memory for it and returning the allocated copy.
You MUST use wstrfree() to free this string.
- Parameters
-
pString | [ in ] A pointer to the wide character string to be duplicated. |
ppCopy | [ out ] The address of a P6WCHAR in which will be placed a pointer to the newly allocated duplicate string. |
- Returns
Success | P6R::eOk | |
Failure | P6R::eInvalidArg | pString and/or ppCopy is NULL. |
P6R::eNoMemory | There is not enough memory available to fulfill this request. |