StrRStrIW function (shlwapi.h)
Searches for the last occurrence of a specified substring within a string. The comparison is not case-sensitive.
Syntax
PCWSTR StrRStrIW(
[in] PCWSTR pszSource,
[in, optional] PCWSTR pszLast,
[in] PCWSTR pszSrch
);
Parameters
[in] pszSource
Type: PTSTR
A pointer to a null-terminated source string.
[in, optional] pszLast
Type: PCTSTR
A pointer into the source string that defines the range of the search. Set pszLast to point to a character in the source string, and the search will stop with the preceding character. Set pszLast to NULL to search the entire source string.
[in] pszSrch
Type: PCTSTR
A pointer to the substring to search for.
Return value
Type: PTSTR
Returns the address of the last occurrence of the substring if successful, or NULL otherwise.
Remarks
Note
The shlwapi.h header defines StrRStrI 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.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional, Windows XP [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | shlwapi.h |
Library | Shlwapi.lib |
DLL | Shlwapi.dll (version 4.71 or later) |