MNLS_lstrlenW

Applies to: Outlook 2013 | Outlook 2016

Determines the length of the specified Unicode string, excluding the terminating null character.

Tip

Consider using StringCchLength instead.

int MNLS_lstrlen(
  LPCWSTR lpsz);

Parameters

lpsz

[in] The null-terminated Unicode string to be checked.

Return value

The function returns an integer with the length of the string. It is a count of characters in the string, excluding the terminating null character. If lpsz is NULL, the function returns zero.

Remarks

This function wraps the lstrlen function. For more information, see lstrlen.

See also

lstrlen

StringCchLength