Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 955 Bytes

PathFindFileName.md

File metadata and controls

42 lines (28 loc) · 955 Bytes

Home

Function name : PathFindFileName

Group: Shell Lightweight Utility APIs -- Path Functions - Library: shlwapi


Searches a path for a file name.


Code examples:

Using Path functions from Shell Lightweight Utility APIs (shlapi.dll)

Declaration:

LPTSTR PathFindFileName(
    LPCTSTR pPath
);
  

FoxPro declaration:

DECLARE STRING  PathFindFileName IN shlwapi;
	STRING pPath  

Parameters:

pPath [in] Pointer to a null-terminated string of maximum length MAX_PATH that contains the path to search.


Return value:

Returns a pointer to the address in the string if successful, or a pointer to the beginning of the path otherwise.