Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6ISafeString::wstrlen ( const P6WCHAR pwszString,
P6SIZE  cchMax,
P6SIZE pcLen 
)
pure virtual

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
SuccessP6R::eOk 
FailureP6R::eInvalidArgpwszString and/or pcLen is NULL, or cchMax is zero
P6R::eTooBigpwszString is longer than cchMax characters. This could indicate an improperly terminated string or possibly a buffer overrun.