# Function Reference

# _WinAPI_StrLen

Returns the length of the specified string

#include <WinAPIMisc.au3>
_WinAPI_StrLen ( $pString [, $bUnicode = True] )

## Parameters

$pString | Pointer to a null-terminated string.
$bUnicode | [optional] Specifies whether a string is Unicode or ASCII code of a character, valid values: True - Unicode (Default). False - ASCII.

## Return Value

Success: | The length of the string, in TCHARs values (not including the null-terminating character).
Failure: | 0.

## See Also

Search lstrlen in MSDN Library.