GetStringLength method
Prototype
GetStringLength Proto lpszString:LPSTR
Syntax
Invoke GetStringLength, lpszString
Function
Gets the length of a null-terminated string.
Parameters
lpszString
Pointer to the effective address of the null-terminated string whose length is to be retrieved.
Return value
Eax returns the length in characters of the string.
REMARKS: The GetStringLength
method expects lpszString to be a Unicode string if the application is running as Unicode,
or an ANSI string if not (see the IsAppUnicode
method). You can call GetStringLengthA to get the length for ANSI strings
in Unicode applications, or GetStringLengthW to get the length for Unicode
strings in ANSI applications.