Removes the file name extension from a path, if one is present.
This function differs from PathRemoveExtension in that it accepts paths with "\", "\?" and "\?\UNC" prefixes.
WINPATHCCHAPI HRESULT PathCchRemoveExtension( PWSTR pszPath, size_t cchPath );
A pointer to the path string. When this function returns successfully, the string contains the path with any extension removed. If no extension was found, the string is unchanged.
The size of the buffer pointed to by pszPath, in characters.
This function returns S_OK if the function was successful, S_FALSE if no extension was found, or an error code otherwise.
|Minimum supported client||Windows 8 [desktop apps | UWP apps]|
|Minimum supported server||Windows Server 2012 [desktop apps | UWP apps]|