Replaces the extension of a file name with a new extension. If the file name does not contain an extension, the extension will be attached to the end of the string.
BOOL PathRenameExtensionA( LPSTR pszPath, LPCSTR pszExt );
Pointer to a null-terminated string of length MAX_PATH in which to replace the extension.
Pointer to a character buffer that contains a '.' character followed by the new extension.
Returns nonzero if successful, or zero if the new path and extension would exceed MAX_PATH characters.
|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)|