FindCharRev method


Prototype

FindCharRev Proto lpszString:LPSTR, chChar:CHAR

Syntax

Invoke FindCharRev, lpszString, chChar

Function

Searches the specified character inside the specified string, but in reverse order.

Parameters

lpszString

Pointer to the effective address of the null-terminated string where to search.

chChar

A CHAR value containing the character to be searched for.

Return value

Eax returns the zero-based position of the character inside the string, or -1 if the character was not found.


REMARKS: The FindCharRev 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 FindCharRevA to find characters inside ANSI strings in Unicode applications, or FindCharRevW to find characters inside Unicode strings in ANSI applications.