Searches a path to find its file name extension, such as ".exe" or ".ini". This function does not search for a specific extension; it searches for the presence of any extension.
This function differs from PathFindExtension in that it accepts paths with "\", "\?" and "\?\UNC" prefixes.
WINPATHCCHAPI HRESULT PathCchFindExtension( PCWSTR pszPath, size_t cchPath, PCWSTR *ppszExt );
A pointer to the path to search.
The size of the buffer pointed to by pszPath, in characters.
The address of a pointer that, when this function returns successfully, points to the "." character that precedes the extension within pszPath. If no extension is found, it points to the string's terminating null character.
If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
|Minimum supported client||Windows 8 [desktop apps | UWP apps]|
|Minimum supported server||Windows Server 2012 [desktop apps | UWP apps]|