FindCharRev method


FindCharRev Proto lpszString:LPSTR, lChar:DWord (for 32-bit projects)

FindCharRev Proto lpszString:LPSTR, lChar:QWord (for 64-bit projects)


Invoke FindCharRev, lpszString, lChar


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



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


A DWord value (or QWord for 64-bit projects) containing the character to be searched for.

Return value

Eax/Rax 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.