virtual P6R::P6ERR P6R::p6ISafeString::wstrlen ( const P6R::P6WCHAR *  pwszString,
P6R::P6SIZE  cchMax,
P6R::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.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
Copyright © 2004 - 2010 P6R Inc. - All Rights Reserved.