Group: Shell Lightweight Utility APIs -- Path Functions - Library: shlwapi
Using Path functions from Shell Lightweight Utility APIs (shlapi.dll)
LPTSTR PathFindFileName(
LPCTSTR pPath
);
DECLARE STRING PathFindFileName IN shlwapi;
STRING pPath
pPath [in] Pointer to a null-terminated string of maximum length MAX_PATH that contains the path to search.
Returns a pointer to the address in the string if successful, or a pointer to the beginning of the path otherwise.