Calculates the length of a string (excluding the NULL terminator).
This method is not affected by locale.
- Parameters
-
pwszString | [ in ] The NULL terminated string whos length is to be calculated |
cchMax | [ in ] The size of the string buffer pointed to by pwszString. |
pcLen | [ out ] The address of a P6SIZE in which the resulting length will be placed on success. |
- Returns
Success | P6R::eOk | |
Failure | P6R::eInvalidArg | pwszString and/or pcLen is NULL, or cchMax is zero |
P6R::eTooBig | pwszString is longer than cchMax characters. This could indicate an improperly terminated string or possibly a buffer overrun. |