Group: Shell Lightweight Utility APIs -- Path Functions - Library: shlwapi
Using Path functions from Shell Lightweight Utility APIs (shlapi.dll)
LPTSTR PathFindExtension(
LPCTSTR pPath
);
DECLARE STRING PathFindExtension IN shlwapi;
STRING pPath
pPath [in] Pointer to a null-terminated string of maximum length MAX_PATH that contains the path that contains the extension for which to search.
Returns the address of the "." preceding the extension within pPath if an extension is found, or the address of the trailing NULL character otherwise.