_lstrlen


include vmm.inc

VMMcall _lstrlen, <OFFSET32 psz>

Determines the length of a null-terminated ASCII string. The length does not include the terminating null character. Uses the C calling convention. Uses EAX, ECX, EDX, and Flags. The direction flag must be clear.

Returns the following information:

EAX

Length, in bytes, of the string.

EDX

Address of the terminating null character, or undefined if psz is NULL.


psz

Address of the string.

Setting pszSrc to zero is equivalent to specifying a null source string. This service will crash if pszSrc is set to anything other than the address of a null-terminated ASCII string

This is an asynchronous service.