StrRChrW function (shlwapi.h)
Searches a string for the last occurrence of a specified character. The comparison is case-sensitive.
PCWSTR StrRChrW( PCWSTR pszStart, PCWSTR pszEnd, WCHAR wMatch );
A pointer to the null-terminated string to be searched.
A pointer into the source string that defines the range of the search. Set pszEnd to point to a character in the string and the search will stop with the preceding character. Set pszEnd to NULL to search the entire string.
The character to search for.
Returns a pointer to the last occurrence of the character in the string, if successful, or NULL if not.
The comparison assumes that pszEnd points to the end of the string.
The shlwapi.h header defines StrRChr as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.
|Minimum supported client||Windows 2000 Professional, Windows XP [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|
|DLL||Shlwapi.dll (version 4.71 or later)|