Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 1.01 KB

PathFindExtension.md

File metadata and controls

41 lines (28 loc) · 1.01 KB

Home

Function name : PathFindExtension

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


Searches a path for an extension.


Code examples:

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

Declaration:

LPTSTR PathFindExtension(
    LPCTSTR pPath
);  

FoxPro declaration:

DECLARE STRING PathFindExtension IN shlwapi;
	STRING pPath  

Parameters:

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.


Return value:

Returns the address of the "." preceding the extension within pPath if an extension is found, or the address of the trailing NULL character otherwise.